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
b86a4bfa
Commit
b86a4bfa
authored
Sep 22, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
d65ab943
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
104 additions
and
91 deletions
+104
-91
guidecarGoodsdetails.vue
pages/guidecar/guidecarGoodsdetails.vue
+9
-0
order-commit-detail.vue
pages/guidecar/order-commit-detail.vue
+2
-2
order-commit.vue
pages/guidecar/order-commit.vue
+1
-1
orderDetail.vue
pages/guidecar/orderDetail.vue
+92
-88
No files found.
pages/guidecar/guidecarGoodsdetails.vue
View file @
b86a4bfa
...
...
@@ -212,6 +212,7 @@
v-for=
"(item, index) in comments[0].CommentList[1].CommentImgList"
:key=
"index"
mode=
"aspectFill"
:src=
"item"
@
click=
"previewImage2(index,comments[0].CommentList[1].CommentImgList)"
:style=
"
{'width':san,'height':san}"
/>
</view>
...
...
@@ -237,6 +238,7 @@
v-for=
"(item, index) in comments[0].CommentList[0].CommentImgList"
:key=
"index"
mode=
"aspectFill"
:src=
"item"
@
click=
"previewImage2(index,comments[0].CommentList[0].CommentImgList)"
:style=
"
{'width':san,'height':san}"
/>
</view>
...
...
@@ -479,6 +481,13 @@
});
},
methods
:
{
//图片预览
previewImage2
(
index
,
images
)
{
uni
.
previewImage
({
urls
:
images
,
current
:
index
,
});
},
init
(){
this
.
loading
=
true
;
uni
.
showLoading
({
...
...
pages/guidecar/order-commit-detail.vue
View file @
b86a4bfa
...
...
@@ -56,7 +56,7 @@
</view>
<view
class=
"editor"
>
<textarea
placeholder=
"写入评价"
v-model=
"msg[1].Content"
maxlength=
"200"
></textarea>
<u-upload
:action=
"action"
:file-list=
"fileList2"
@
on-remove=
"onRemove2"
max-count=
"9"
:custom-btn=
"true"
<u-upload
:action=
"action"
:file-list=
"fileList2"
style=
"display:none;"
@
on-remove=
"onRemove2"
max-count=
"9"
:custom-btn=
"true"
@
on-success=
"uploadSuccessHandler2"
>
<view
slot=
"addBtn"
class=
"slot-btn"
>
<u-icon
name=
"photograph"
size=
"40"
color=
"#888"
></u-icon>
...
...
@@ -328,7 +328,7 @@
.commit-detail
.good_List
.editor-box
.editor
textarea
{
width
:
100%
;
height
:
1
5
0px
;
height
:
1
0
0px
;
font-size
:
14px
;
color
:
#000
;
border
:
none
;
...
...
pages/guidecar/order-commit.vue
View file @
b86a4bfa
...
...
@@ -36,7 +36,7 @@
ripple
plain
shape=
"circle"
:custom-style=
"
{color:mc,borderColor:mc}"
:custom-style=
"
{color:mc,borderColor:mc
,width:60+'px'
}"
@click="goCommit(x)"
>评价
</u-button>
</view>
...
...
pages/guidecar/orderDetail.vue
View file @
b86a4bfa
...
...
@@ -116,6 +116,7 @@
display
:
flex
;
align-items
:
center
;
}
.order_Btn_Com
{
padding
:
5px
10px
;
border
:
1px
solid
#888888
;
...
...
@@ -128,96 +129,99 @@
</
style
>
<
template
>
<view
class=
"orderDetail"
style=
"height:100vh;"
>
<view
class=
"orderItem"
>
<view
class=
"orderDay"
>
<view>
<template
v-if=
"dataList.DetailList&&dataList.DetailList.length>0"
>
<view
class=
"order_big"
>
{{
getStart
(
dataList
.
DetailList
[
0
].
TripSTime
)
}}
</view>
<view
class=
"order_mini"
>
{{
getWeek
(
dataList
.
DetailList
[
0
].
TripSTime
)
}}
</view>
</
template
>
</view>
<view
style=
"text-align: center;margin-top:8px;"
>
<view
style=
"font-size:13px;color:#1B1D1E;"
v-if=
"dataList.DetailList&&dataList.DetailList.length>0"
>
{{getDays()}}
</view>
<view
style=
"position: relative;top:-8px;"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/dir_arrow.png"
mode=
"aspectFill"
style=
"width: 55px;height: 4px;"
></image>
<template
v-if=
"dataList"
>
<view
class=
"orderItem"
>
<view
class=
"orderDay"
>
<view>
<template
v-if=
"dataList.DetailList&&dataList.DetailList.length>0"
>
<view
class=
"order_big"
>
{{
getStart
(
dataList
.
DetailList
[
0
].
TripSTime
)
}}
</view>
<view
class=
"order_mini"
>
{{
getWeek
(
dataList
.
DetailList
[
0
].
TripSTime
)
}}
</view>
</
template
>
</view>
<view
style=
"text-align: center;margin-top:8px;"
>
<view
style=
"font-size:13px;color:#1B1D1E;"
v-if=
"dataList.DetailList&&dataList.DetailList.length>0"
>
{{getDays()}}
</view>
<view
style=
"position: relative;top:-8px;"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/dir_arrow.png"
mode=
"aspectFill"
style=
"width: 55px;height: 4px;"
></image>
</view>
</view>
<view>
<
template
v-if=
"dataList.DetailList&&dataList.DetailList.length>0"
>
<view
class=
"order_big"
>
{{
getStart
(
dataList
.
DetailList
[
0
].
TripETime
)
}}
</view>
<view
class=
"order_mini"
>
{{
getWeek
(
dataList
.
DetailList
[
0
].
TripETime
)
}}
</view>
</
template
>
</view>
</view>
<view>
<
template
v-if=
"dataList.DetailList&&dataList.DetailList.length>0"
>
<view
class=
"order_big"
>
{{
getStart
(
dataList
.
DetailList
[
0
].
TripETime
)
}}
</view>
<view
class=
"order_mini"
>
{{
getWeek
(
dataList
.
DetailList
[
0
].
TripETime
)
}}
</view>
</
template
>
</view>
</view>
<view
class=
"orderCar"
>
<view
class=
"order_carImg"
>
<image
mode=
"aspectFit"
:src=
"dataList.DetailList[0].CoverImagePath"
/>
</image>
</view>
<view
style=
"width:55%"
>
<view
class=
"order_big"
>
{{dataList.DetailList[0].CarName}}
</view>
<view
class=
"order_small"
style=
"margin-top:5px;"
>
{{dataList.DetailList[0].UseDay==0.5?'半':dataList.DetailList[0].UseDay}}天,
{{dataList.DetailList[0].GoodsName}},
{{dataList.DetailList[0].GuideCarType}},
{{dataList.DetailList[0].RideNum}}座,
<view
class=
"orderCar"
>
<view
class=
"order_carImg"
>
<image
mode=
"aspectFit"
:src=
"dataList.DetailList[0].CoverImagePath"
/>
</image>
</view>
<view
class=
"order_small"
style=
"margin-top:5px;"
>
车牌号:{{dataList.DetailList[0].CarNumber}},
{{dataList.DetailList[0].IsSpell==1?'拼座':'不拼座'}},
<view
style=
"width:55%"
>
<view
class=
"order_big"
>
{{dataList.DetailList[0].CarName}}
</view>
<view
class=
"order_small"
style=
"margin-top:5px;"
>
{{dataList.DetailList[0].UseDay==0.5?'半':dataList.DetailList[0].UseDay}}天,
{{dataList.DetailList[0].GoodsName}},
{{dataList.DetailList[0].GuideCarType}},
{{dataList.DetailList[0].RideNum}}座,
</view>
<view
class=
"order_small"
style=
"margin-top:5px;"
>
车牌号:{{dataList.DetailList[0].CarNumber}},
{{dataList.DetailList[0].IsSpell==1?'拼座':'不拼座'}},
{{dataList.DetailList[0].CarColorName}},
{{dataList.CarTypeStr}}
</view>
</view>
<view
style=
"text-align: right;"
>
<view
class=
"order_big"
>
¥ {{getPrice()}}
</view>
<view
style=
"color:#727272;font-size:13px;"
>
×{{dataList.DetailList[0].Number}}
</view>
</view>
</view>
<view
style=
"text-align: right;"
>
<view
class=
"order_big"
>
¥ {{getPrice()}}
</view>
<view
style=
"color:#727272;font-size:13px;"
>
×{{dataList.DetailList[0].Number}}
</view>
<view
class=
"order_GName"
>
<view
class=
"order_small"
>
匹配导游
</view>
<view
style=
"display: flex;align-items: center;"
>
<u-avatar
mode=
"circle"
:src=
"dataList.DetailList[0].GuidePhoto"
size=
"60"
></u-avatar>
<text
class=
"order_big"
style=
"margin-left:5px;"
>
{{dataList.DetailList[0].GuideName}}
</text>
</view>
</view>
</view>
<view
class=
"order_GName"
>
<view
class=
"order_small order_comLeft"
>
匹配导游
</view>
<view
style=
"display: flex;align-items: center;"
>
<u-avatar
mode=
"circle"
:src=
"dataList.DetailList[0].GuidePhoto"
size=
"60"
></u-avatar>
<text
class=
"order_big"
style=
"margin-left:5px;"
>
{{dataList.DetailList[0].GuideName}}
</text>
<view
class=
"orderItem"
>
<view
class=
"order_dList order_Tprice"
>
<text
class=
"order_small"
>
订单编号
</text>
<text
class=
"order_big"
style=
"margin-left:20px;"
>
{{dataList.OrderNo}}
</text>
</view>
<view
class=
"order_dList order_Tprice"
>
<text
class=
"order_small"
>
下单时间
</text>
<text
class=
"order_big"
style=
"margin-left:20px;"
>
{{dataList.CreateDate}}
</text>
</view>
<view
class=
"order_dList order_Tprice"
>
<text
class=
"order_small"
>
支付方式
</text>
<text
class=
"order_big"
style=
"margin-left:20px;"
>
{{dataList.PaymentWayName}}
</text>
</view>
</view>
</view>
<view
class=
"orderItem"
>
<view
class=
"order_dList"
>
<text
class=
"order_small order_comLeft"
>
订单编号:
</text>
<text
class=
"order_big"
style=
"margin-left:20px;"
>
{{dataList.OrderNo}}
</text>
</view>
<view
class=
"order_dList"
>
<text
class=
"order_small order_comLeft"
>
下单时间:
</text>
<text
class=
"order_big"
style=
"margin-left:20px;"
>
{{dataList.CreateDate}}
</text>
</view>
<view
class=
"order_dList"
>
<text
class=
"order_small order_comLeft"
>
支付方式:
</text>
<text
class=
"order_big"
style=
"margin-left:20px;"
>
{{dataList.PaymentWayName}}
</text>
</view>
</view>
<view
class=
"orderItem"
style=
"padding-bottom:60px;"
>
<view
class=
"order_dList order_Tprice"
>
<text
class=
"order_small order_comLeft"
>
商品总额
</text>
<text
class=
"order_big"
>
¥ {{dataList.Income}}
</text>
</view>
<view
class=
"order_dList order_Tprice"
>
<text
class=
"order_small order_comLeft"
>
优惠
</text>
<text
class=
"order_big"
>
¥ {{dataList.CouponMoney}}
</text>
</view>
<view
class=
"order_dList"
style=
"text-align: right"
:class=
"{'order_nonBtm':dataList.OrderStatus!=3}"
>
<text
class=
"order_big"
>
实付款:
</text>
<text
class=
"order_redPrice"
>
¥ {{dataList.Income}}
</text>
</view>
<view
class=
"btn-box"
v-if=
"dataList.OrderStatus != 5"
>
<view
class=
"item"
v-if=
"dataList.OrderStatus == 1"
>
<view
class=
"order_Btn_Com"
v-on:click
.
stop=
"payment(dataList)"
style=
"color:#FF4048;border-color:#FF4048;"
>
立即支付
</view>
<view
class=
"orderItem"
style=
"padding-bottom:60px;"
>
<view
class=
"order_dList order_Tprice"
>
<text
class=
"order_small"
>
商品总额
</text>
<text
class=
"order_big"
>
¥ {{dataList.Income}}
</text>
</view>
<view
class=
"item"
v-if=
"dataList.OrderStatus == 1||dataList.OrderStatus==2||dataList.OrderStatus==3"
>
<view
class=
"order_Btn_Com"
@
click=
"cancel"
>
取消订单
</view>
<view
class=
"order_dList order_Tprice"
>
<text
class=
"order_small"
>
优惠
</text>
<text
class=
"order_big"
>
¥ {{dataList.CouponMoney}}
</text>
</view>
<view
class=
"order_dList"
style=
"text-align: right"
:class=
"{'order_nonBtm':dataList.OrderStatus!=3}"
>
<text
class=
"order_big"
>
实付款:
</text>
<text
class=
"order_redPrice"
>
¥ {{dataList.Income}}
</text>
</view>
<view
class=
"btn-box"
v-if=
"dataList.OrderStatus != 5"
>
<view
class=
"item"
v-if=
"dataList.OrderStatus == 1"
>
<view
class=
"order_Btn_Com"
v-on:click
.
stop=
"payment(dataList)"
style=
"color:#FF4048;border-color:#FF4048;"
>
立即支付
</view>
</view>
<view
class=
"item"
v-if=
"dataList.OrderStatus == 1||dataList.OrderStatus==2||dataList.OrderStatus==3"
>
<view
class=
"order_Btn_Com"
@
click=
"cancel"
>
取消订单
</view>
</view>
</view>
</view>
</
view
>
</
template
>
<after-sale
:list=
"dataList.DetailList"
v-if=
"showAfter"
@
close=
"closeAfterHandler"
></after-sale>
<u-popup
v-model=
"showModal"
mode=
"center"
length=
"80%"
>
<view
style=
'display: flex;flex-direction: column;align-items: center;background: #fff;'
>
...
...
@@ -286,8 +290,8 @@
OrderPayType
:
1
,
GoodsName
:
''
},
payBtn
:
false
,
payExit
:
false
payBtn
:
false
,
payExit
:
false
}
},
created
()
{
...
...
@@ -310,7 +314,7 @@
onLoad
(
option
)
{
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
msg
.
OrderId
=
option
.
OrderId
;
this
.
payInfo
.
OpenId
=
uni
.
getStorageSync
(
'mall_UserInfo'
).
OpenId
;
this
.
payInfo
.
OpenId
=
uni
.
getStorageSync
(
'mall_UserInfo'
).
OpenId
;
this
.
getData
();
},
methods
:
{
...
...
@@ -419,21 +423,21 @@
icon
:
'none'
})
uni
.
redirectTo
({
url
:
"/pages/guidecar/orderList?status=1"
,
url
:
"/pages/guidecar/orderList?status=1"
,
});
}
);
}
})
},
//支付
payment
(
e
){
payment
(
e
)
{
this
.
payInfo
.
OrderId
=
e
.
OrderId
;
this
.
payInfo
.
GoodsName
=
e
.
DetailList
[
0
].
GoodsName
.
slice
(
0
,
10
);
this
.
payInfo
.
PaymentWay
=
e
.
PaymentWay
;
this
.
payInfo
.
total_price
=
e
.
Income
;
this
.
payBtn
=
true
this
.
payInfo
.
GoodsName
=
e
.
DetailList
[
0
].
GoodsName
.
slice
(
0
,
10
);
this
.
payInfo
.
PaymentWay
=
e
.
PaymentWay
;
this
.
payInfo
.
total_price
=
e
.
Income
;
this
.
payBtn
=
true
},
closePay
()
{
this
.
payBtn
=
false
;
...
...
@@ -441,7 +445,7 @@
},
exitPay
()
{
this
.
payExit
=
false
;
},
},
}
}
</
script
>
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