Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
786e3bf2
Commit
786e3bf2
authored
Jan 31, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
dd2bfd4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
12 deletions
+31
-12
index.vue
pages/order/index/index.vue
+11
-3
order-detail.vue
pages/order/order-detail.vue
+20
-9
No files found.
pages/order/index/index.vue
View file @
786e3bf2
...
...
@@ -64,7 +64,12 @@
<u-button
shape=
"circle"
size=
"medium"
:custom-style=
"themCustomStyle"
v-on:click
.
stop=
"payment(item)"
v-if=
"item.OrderStatus == '1'"
>
立即支付
</u-button>
<u-button
shape=
"circle"
size=
"medium"
:custom-style=
"item.OrderStatus == '3' ? customStyle : themCustomStyle"
v-if=
"item.OrderStatus != '1'"
@
click
.
stop=
"buy(item)"
>
再次购买
</u-button>
<u-button
shape=
"circle"
size=
"medium"
:custom-style=
"customStyle"
v-if=
"item.OrderStatus == '3'"
@
click=
"shouhuoHandler(item.OrderId)"
>
确认收货
</u-button>
<
template
v-if=
"u&&u.TenantId==29"
>
<u-button
shape=
"circle"
size=
"medium"
:custom-style=
"customStyle"
v-if=
"item.OrderStatus == '3'"
@
click=
"shouhuoHandler(item.OrderId)"
>
确认
</u-button>
</
template
>
<
template
v-else
>
<u-button
shape=
"circle"
size=
"medium"
:custom-style=
"customStyle"
v-if=
"item.OrderStatus == '3'"
@
click=
"shouhuoHandler(item.OrderId)"
>
确认收货
</u-button>
</
template
>
</view>
</view>
</view>
...
...
@@ -91,7 +96,7 @@
</view>
</view>
</u-popup>
<u-modal
v-model=
"showReviceModal"
content=
"是否确认收货?
"
:show-cancel-button=
"true"
:show-title=
"false"
@
confirm=
"submitReviceGoodHandler"
<u-modal
v-model=
"showReviceModal"
:content=
"contentStr
"
:show-cancel-button=
"true"
:show-title=
"false"
@
confirm=
"submitReviceGoodHandler"
:border-radius=
"20"
></u-modal>
<good-list
:list=
"goodData"
v-if=
"showGoodList"
@
close=
"closeGoodListHandler"
></good-list>
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
'goback'
></auth>
...
...
@@ -182,6 +187,7 @@
loading
:
"努力加载中"
,
nomore
:
"没有更多了"
,
},
contentStr
:
"是否确认收货?"
,
};
},
created
()
{
...
...
@@ -260,6 +266,9 @@
shouhuoHandler
(
id
)
{
this
.
showReviceModal
=
true
;
this
.
submitId
=
id
;
if
(
this
.
u
&&
this
.
u
.
TenantId
==
29
)
{
this
.
contentStr
=
"是否确认订单?"
;
}
},
submitReviceGoodHandler
()
{
//确认收货
let
that
=
this
...
...
@@ -321,7 +330,6 @@
this
.
Cancelmsg
.
OrderId
=
e
.
OrderId
;
this
.
Cancelmsg
.
Type
=
e
.
OrderStatus
==
1
?
1
:
2
;
},
// 待付款立即支付
payment
(
e
)
{
let
list
=
[]
...
...
pages/order/order-detail.vue
View file @
786e3bf2
...
...
@@ -124,12 +124,12 @@
</view>
<view
class=
"block"
v-if=
"orders.CustomFormInfo&&orders.CustomFormInfo.length>0"
>
<view
class=
"order-info-item"
>
<
template
v-for=
"(subItem,subIndex) in orders.CustomFormInfo"
>
<view
class=
"field"
v-if=
"(subItem.CompKey=='SingleLineText'||subItem.CompKey=='MultiLineText')&&subItem.CompData.TextValue!=''"
>
<view
class=
"label"
>
{{
subItem
.
CompData
.
Name
}}
:
</view>
<view
class=
"content"
>
{{
subItem
.
CompData
.
TextValue
}}
</view>
</view>
</
template
>
<
template
v-for=
"(subItem,subIndex) in orders.CustomFormInfo"
>
<view
class=
"field"
v-if=
"(subItem.CompKey=='SingleLineText'||subItem.CompKey=='MultiLineText')&&subItem.CompData.TextValue!=''"
>
<view
class=
"label"
>
{{
subItem
.
CompData
.
Name
}}
:
</view>
<view
class=
"content"
>
{{
subItem
.
CompData
.
TextValue
}}
</view>
</view>
</
template
>
</view>
</view>
<view
class=
"block"
>
...
...
@@ -177,8 +177,15 @@
</view>
<view
class=
"btn-box"
v-if=
"orders.OrderStatus != '5'&&isShowBtn"
>
<view
class=
"item"
v-if=
"orders.OrderStatus == '3'"
>
<u-button
shape=
"circle"
size=
"medium"
@
click=
"shouhuoHandler"
:custom-style=
"themCustomStyle"
>
确认收货
</u-button>
<
template
v-if=
"u&&u.TenantId==29"
>
<u-button
shape=
"circle"
size=
"medium"
@
click=
"shouhuoHandler"
:custom-style=
"themCustomStyle"
>
确认
</u-button>
</
template
>
<
template
v-else
>
<u-button
shape=
"circle"
size=
"medium"
@
click=
"shouhuoHandler"
:custom-style=
"themCustomStyle"
>
确认收货
</u-button>
</
template
>
</view>
<view
class=
"item"
v-if=
"orders.OrderStatus == '1'"
>
<u-button
shape=
"circle"
size=
"medium"
:custom-style=
"themCustomStyle"
v-on:click
.
stop=
"payment(orders)"
>
立即支付
</u-button>
...
...
@@ -229,7 +236,7 @@
</view>
</view>
</u-popup>
<u-modal
v-model=
"showReviceModal"
content=
"是否确认收货?
"
:show-cancel-button=
"true"
:show-title=
"false"
@
confirm=
"submitReviceGoodHandler"
<u-modal
v-model=
"showReviceModal"
:content=
"contentStr
"
:show-cancel-button=
"true"
:show-title=
"false"
@
confirm=
"submitReviceGoodHandler"
:border-radius=
"20"
></u-modal>
<u-toast
ref=
"uToast"
/>
<payCom
v-if=
"payBtn&&u.TenantId!=27"
:payInfo=
"payInfo"
@
closePay=
"closePay"
></payCom>
...
...
@@ -306,6 +313,7 @@
NewUserId
:
0
,
//zk新增
isShowBtn
:
true
,
path
:
''
,
contentStr
:
"是否确认收货?"
,
};
},
onLoad
(
option
)
{
...
...
@@ -344,6 +352,9 @@
},
shouhuoHandler
()
{
this
.
showReviceModal
=
true
;
if
(
this
.
u
&&
this
.
u
.
TenantId
==
29
)
{
this
.
contentStr
=
"是否确认订单?"
;
}
},
goExpressHandler
(
express
,
no
,
id
)
{
uni
.
navigateTo
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment