Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
919226d6
Commit
919226d6
authored
Jun 04, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
cc5bd543
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
16 deletions
+64
-16
jz_MyOrder.vue
pages/jiuzhai/jz_MyOrder.vue
+3
-4
jz_SureOrder.vue
pages/jiuzhai/jz_SureOrder.vue
+61
-12
No files found.
pages/jiuzhai/jz_MyOrder.vue
View file @
919226d6
...
...
@@ -100,8 +100,8 @@
{{
item
.
title
}}
</view>
<view
style=
"margin-left:10px;"
>
<u-icon
name=
"arrow-down"
@
click=
"getShow(item)"
v-if=
"item.isShowHalf"
color=
"#2979ff"
size=
"28"
></u-icon>
<u-icon
name=
"arrow-up"
@
click=
"getShow(item)"
v-else
color=
"#2979ff"
size=
"28"
></u-icon>
<u-icon
name=
"arrow-down"
@
click
.
native
.
stop
=
"getShow(item)"
v-if=
"item.isShowHalf"
color=
"#2979ff"
size=
"28"
></u-icon>
<u-icon
name=
"arrow-up"
@
click
.
native
.
stop
=
"getShow(item)"
v-else
color=
"#2979ff"
size=
"28"
></u-icon>
</view>
<view
class=
"jz-Oright"
>
{{
item
.
orderStateName
==
'占位'
?
'待付款'
:
item
.
orderStateName
}}
...
...
@@ -267,7 +267,6 @@
},
//取消订单
goCancel
(
item
)
{
console
.
log
(
item
,
'item'
);
//未付款-调用后台取消
if
((
item
.
paymentTime
==
null
||
item
.
paymentTime
==
''
)
&&
item
.
orderState
==
2
)
{
this
.
apipost
(
...
...
@@ -275,7 +274,7 @@
ID
:
item
.
orderId
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
uni
.
showToast
({
title
:
'操作成功'
,
icon
:
'success'
,
...
...
pages/jiuzhai/jz_SureOrder.vue
View file @
919226d6
...
...
@@ -195,10 +195,10 @@
padding
:
0
45
rpx
;
}
.jz_form
.form-items
{
margin-bottom
:
2
0
rpx
;
margin-bottom
:
3
0
rpx
;
display
:
flex
;
align-items
:
center
;
padding-bottom
:
2
0
rpx
;
padding-bottom
:
3
0
rpx
;
border-bottom
:
1px
solid
#f5f5f5
;
font-size
:
28px
;
font-weight
:
500
;
...
...
@@ -320,6 +320,12 @@
line-height
:
40
rpx
;
margin-right
:
24
rpx
;
}
.jz_Reserve
.jz_SureVal
{
flex
:
1
;
font-size
:
28
rpx
;
font-weight
:
500
;
width
:
100%
;
}
</
style
>
<
template
>
<view
class=
"jz_Reserve"
v-if=
"orderData"
>
...
...
@@ -369,32 +375,32 @@
<view
class=
"jz_form"
>
<view
class=
"form-items"
>
<view
class=
"label"
>
订单编号
</view>
<view
class=
"
v
al"
>
<text>
{{
orderData
.
model
.
OrderId
}}
</text>
<view
class=
"
jz_SureV
al"
>
{{
orderData
.
model
.
OrderId
}}
</view>
</view>
<view
class=
"form-items"
>
<view
class=
"label"
>
下单日期
</view>
<view
class=
"
v
al"
>
<text>
{{
orderData
.
model
.
CreateDate
.
replace
(
'T'
,
' '
)
}}
</text>
<view
class=
"
jz_SureV
al"
>
{{
orderData
.
model
.
CreateDate
.
replace
(
'T'
,
' '
)
}}
</view>
</view>
<view
class=
"form-items"
>
<view
class=
"label"
>
下单日期
</view>
<view
class=
"
v
al"
>
<text>
{{
orderData
.
model
.
CreateDate
.
replace
(
'T'
,
' '
)
}}
</text>
<view
class=
"
jz_SureV
al"
>
{{
orderData
.
model
.
CreateDate
.
replace
(
'T'
,
' '
)
}}
</view>
</view>
<view
class=
"form-items"
>
<view
class=
"label"
>
游客姓名
</view>
<view
class=
"
v
al"
>
<text>
{{
orderData
.
model
.
ContactName
}}
</text>
<view
class=
"
jz_SureV
al"
>
{{
orderData
.
model
.
ContactName
}}
</view>
</view>
<view
class=
"form-items"
>
<view
class=
"label"
>
联系电话
</view>
<view
class=
"
v
al"
>
<text>
{{
orderData
.
model
.
ContactMobile
}}
</text>
<view
class=
"
jz_SureV
al"
>
{{
orderData
.
model
.
ContactMobile
}}
</view>
</view>
</view>
...
...
@@ -524,6 +530,49 @@
goCancel
(){
if
(
this
.
submit
||
this
.
submitCancel
)
return
;
//未付款-调用后台取消
if
(
this
.
orderData
.
model
.
OrderState
==
2
)
{
this
.
apipost
(
"sellorder_post_B2BRemoveOrder"
,
{
ID
:
this
.
orderData
.
model
.
OrderId
},
res
=>
{
if
(
res
.
resultCode
==
1
)
{
uni
.
showToast
({
title
:
'操作成功'
,
icon
:
'success'
,
})
uni
.
navigateTo
({
url
:
"/pages/jiuzhai/jz_MyOrder"
});
}
},
err
=>
{}
);
}
else
{
let
msg
=
{
OrderId
:
this
.
orderData
.
model
.
OrderId
,
UserId
:
uni
.
getStorageSync
(
'mall_UserInfo'
).
UserId
}
//已付款取消申请
this
.
apipost
(
"sellorder_post_AppletUserCancelOrder"
,
msg
,
res
=>
{
if
(
res
.
resultCode
==
1
)
{
uni
.
showToast
({
title
:
'操作成功'
,
icon
:
'success'
,
})
uni
.
navigateTo
({
url
:
"/pages/jiuzhai/jz_MyOrder"
});
}
else
{
}
},
null
);
}
},
getWeek
(
date
)
{
var
weekArray
=
new
Array
(
"日"
,
"一"
,
"二"
,
"三"
,
"四"
,
"五"
,
"六"
);
...
...
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