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
3252adbe
Commit
3252adbe
authored
Jun 03, 2021
by
ZJG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
252656b4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
104 additions
and
68 deletions
+104
-68
pickcarcity2.vue
pages/guidecar/pickcarcity2.vue
+5
-9
specialCarReserve.vue
pages/guidecar/specialCarReserve.vue
+6
-4
allorderList.vue
pages/jiuzhai/allorderList.vue
+93
-55
No files found.
pages/guidecar/pickcarcity2.vue
View file @
3252adbe
...
@@ -142,15 +142,11 @@
...
@@ -142,15 +142,11 @@
);
);
},
},
unique
(
arr
){
//数组去重
unique
(
arr
){
//数组去重
var
res
=
[];
const
res
=
new
Map
();
var
obj
=
{};
return
arr
.
filter
(
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
){
(
list
)
=>
!
res
.
has
(
list
.
ti
)
&&
res
.
set
(
list
.
ti
,
1
)
if
(
!
obj
[
arr
[
i
]]
){
);
obj
[
arr
[
i
]]
=
1
;
res
.
push
(
arr
[
i
]);
}
}
return
res
;
},
},
onPageScroll
(
e
)
{
onPageScroll
(
e
)
{
this
.
scrollTop
=
e
.
scrollTop
;
this
.
scrollTop
=
e
.
scrollTop
;
...
...
pages/guidecar/specialCarReserve.vue
View file @
3252adbe
...
@@ -372,14 +372,15 @@
...
@@ -372,14 +372,15 @@
})
})
return
return
}
}
uni
.
showLoading
({
title
:
'下单中...'
})
let
that
=
this
let
that
=
this
uni
.
requestSubscribeMessage
({
uni
.
requestSubscribeMessage
({
tmplIds
:
that
.
details
.
template_message_list
,
tmplIds
:
that
.
details
.
template_message_list
,
complete
(
_res
)
{
complete
(
_res
)
{
console
.
log
(
_res
)
console
.
log
(
_res
)
uni
.
showLoading
({
title
:
'下单中...'
})
that
.
request2
({
that
.
request2
({
url
:
'/api/AppletCar/SetAppletCarOrderInfo'
,
url
:
'/api/AppletCar/SetAppletCarOrderInfo'
,
data
:
that
.
addMsg
data
:
that
.
addMsg
...
@@ -442,7 +443,8 @@
...
@@ -442,7 +443,8 @@
fail
:
function
(
err
)
{
fail
:
function
(
err
)
{
console
.
log
(
'fail:'
,
err
);
console
.
log
(
'fail:'
,
err
);
uni
.
showToast
({
uni
.
showToast
({
title
:
"支付失败"
title
:
"支付失败"
,
icon
:
'none'
})
})
setTimeout
(()
=>
{
setTimeout
(()
=>
{
uni
.
redirectTo
({
uni
.
redirectTo
({
...
...
pages/jiuzhai/allorderList.vue
View file @
3252adbe
...
@@ -158,7 +158,7 @@
...
@@ -158,7 +158,7 @@
出发时间:
{{
x
.
Date
}}
{{
x
.
DepartureTime
}}
出发时间:
{{
x
.
Date
}}
{{
x
.
DepartureTime
}}
</view>
</view>
<view
class=
"car-w"
>
<view
class=
"car-w"
>
总
张
数:
{{
x
.
PeopleNumber
+
x
.
ChildNumber
}}
人 单价:¥
{{
x
.
Unit_Price
.
toFixed
(
2
)
}}
元
总数:
{{
x
.
PeopleNumber
+
x
.
ChildNumber
}}
人 单价:¥
{{
x
.
Unit_Price
.
toFixed
(
2
)
}}
元
</view>
</view>
<view
class=
"order_xu"
></view>
<view
class=
"order_xu"
></view>
</view>
</view>
...
@@ -376,22 +376,9 @@
...
@@ -376,22 +376,9 @@
})
})
return
return
}
}
uni
.
requestSubscribeMessage
({
tmplIds
:
[],
complete
(
res
)
{
that
.
request2
({
url
:
'/api/AppletOrder/CancelAppletMyOrder'
,
data
:
that
.
Cancelmsg
},
(
res
)
=>
{
that
.
showModal
=
false
;
if
(
that
.
msg
.
OrderStatus
==
0
){
//判断在全部列表的时候 改变他的状态
if
(
that
.
msg
.
OrderStatus
==
0
){
//判断在全部列表的时候 改变他的状态
if
(
that
.
Cancelmsg
.
Type
==
1
){
if
(
that
.
Cancelmsg
.
Type
==
1
){
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
})
that
.
g
[
index
].
OrderStatus
=
4
;
that
.
g
[
index
].
OrderStatus
=
4
;
that
.
g
[
index
].
IsApplyForCancel
=
1
;
that
.
g
[
index
].
IsApplyForCancel
=
1
;
}
else
{
}
else
{
...
@@ -424,11 +411,59 @@
...
@@ -424,11 +411,59 @@
this
.
change
(
5
)
this
.
change
(
5
)
}
}
}
}
// uni.requestSubscribeMessage({
// tmplIds: [],
// complete(res) {
// that.request2({
// url: '/api/AppletOrder/CancelAppletMyOrder',
// data: that.Cancelmsg
// },
// (res) => {
// that.showModal = false;
}
// if(that.msg.OrderStatus==0){//判断在全部列表的时候 改变他的状态
);
// if(that.Cancelmsg.Type==1){
}
// uni.showToast({
})
// title: res.message,
// icon: 'none'
// })
// that.g[index].OrderStatus = 4;
// that.g[index].IsApplyForCancel = 1;
// }else{
// uni.showToast({
// title: "取消成功,请等待审核",
// position: "bottom",
// icon: "none",
// duration: 2000,
// });
// that.g[index].OrderStatus = 5;
// that.g[index].IsApplyForCancel = 1;
// }
// }else{//在待付款的页面时候的操作处理
// if (that.Cancelmsg.Type == 1) {
// uni.showToast({
// title: res.message,
// icon: 'none'
// })
// that.g.splice(that.index, 1);
// } else {
// uni.showToast({
// title: "取消成功,请等待审核",
// position: "bottom",
// icon: "none",
// duration: 2000,
// });
// // that.msg.pageIndex = 1;
// // that.g = [];
// // that.init();
// this.change(5)
// }
// }
// }
// );
// }
// })
},
},
getquxiao
(
item
){
//判断是否显示取消
getquxiao
(
item
){
//判断是否显示取消
let
show
=
true
let
show
=
true
...
@@ -505,16 +540,19 @@
...
@@ -505,16 +540,19 @@
title
:
"支付成功"
title
:
"支付成功"
})
})
if
(
that
.
msg
.
OrderStatus
==
0
){
if
(
that
.
msg
.
OrderStatus
==
0
){
that
.
g
[
that
.
payindex
].
OrderStatus
=
2
that
.
g
[
that
.
payindex
].
OrderStatus
=
2
;
that
.
g
[
that
.
payindex
].
OrderStatusName
=
'待确认'
;
}
else
{
}
else
{
th
is
.
change
(
2
)
th
at
.
change
(
2
)
}
}
},
},
fail
:
function
(
err
)
{
fail
:
function
(
err
)
{
console
.
log
(
'fail:'
,
err
);
console
.
log
(
'fail:'
,
err
);
uni
.
showToast
({
uni
.
showToast
({
title
:
"支付失败"
title
:
"支付失败"
,
icon
:
'none'
})
})
}
}
});
});
...
...
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