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
8142caac
Commit
8142caac
authored
Sep 21, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式修改
parent
41c04d09
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
10 deletions
+60
-10
coupons.vue
components/coupons/coupons.vue
+17
-5
order-commit-detail.vue
pages/guidecar/order-commit-detail.vue
+31
-3
order-commit.vue
pages/guidecar/order-commit.vue
+2
-1
order-detail.vue
pages/order/order-detail.vue
+4
-0
share-order.vue
pages/share-order/share-order.vue
+6
-1
No files found.
components/coupons/coupons.vue
View file @
8142caac
...
...
@@ -4,7 +4,7 @@
<view
class=
"Xbox"
>
<img
src=
"../../static/images/couponsbg.png"
mode=
"widthFix"
/>
<view
class=
"coupons-box"
>
<text
style=
"font-size: 18px;color: #FFFFFF;"
>
恭喜获得
优惠券
</text>
<text
style=
"font-size: 18px;color: #FFFFFF;"
>
恭喜获得
{{
msgtype
==
1
?
'优惠券'
:
'积分'
}}
</text>
<text
style=
"font-size: 14px;color: #FFFFFF;margin-top: 20rpx;"
>
{{
couponMessage
}}
</text>
<view
class=
"btn"
@
click=
"goLook"
>
<text>
立即查看
</text>
...
...
@@ -22,6 +22,10 @@ props: {
couponMessage
:
{
type
:
String
,
default
:
0
},
msgtype
:{
type
:
String
,
default
:
1
}
},
data
()
{
...
...
@@ -32,15 +36,23 @@ props: {
},
created
()
{
console
.
log
(
this
.
couponMessage
)
console
.
log
(
this
.
msgtype
)
},
methods
:
{
goLook
(){
this
.
showDialog
=
false
;
if
(
this
.
msgtype
==
1
){
uni
.
navigateTo
({
url
:
"/pages/coupon/index/index"
,
});
}
else
if
(
this
.
msgtype
==
2
){
uni
.
navigateTo
({
url
:
"/pages/user-center/integral-detail/integral-detail"
,
});
}
this
.
$emit
(
'goLook'
);
},
...
...
pages/guidecar/order-commit-detail.vue
View file @
8142caac
...
...
@@ -7,7 +7,7 @@
<view
class=
"right-box"
>
<view
class=
"good-info"
>
{{
dataList
.
DetailList
[
0
].
GoodsName
}}
</view>
<view
class=
"op-box"
>
天数:
{{
dataList
.
DetailList
[
0
].
UseDay
}}
天数:
{{
dataList
.
DetailList
[
0
].
UseDay
==
0.5
?
'半天'
:
dataList
.
DetailList
[
0
].
UseDay
+
'天'
}}
颜色:
{{
dataList
.
DetailList
[
0
].
CarColorName
}}
类型:
{{
dataList
.
DetailList
[
0
].
RideNum
}}
座
</view>
...
...
@@ -77,11 +77,22 @@
<u-loading
mode=
"circle"
style=
"margin-right: 5px;"
v-if=
"submitStatus"
></u-loading>
提交评价
</u-button>
</view>
<coupon
v-if=
"showCoupons"
:coupon-message=
"couponMessage"
:msgtype=
"msgType"
@
goLook=
"goLook"
@
closeBtn=
"closeBtn"
></coupon>
</view>
</
template
>
<
script
>
import
coupon
from
"@/components/coupons/coupons"
;
export
default
{
components
:
{
coupon
},
data
()
{
return
{
pageTitle
:
"发表评价"
,
...
...
@@ -111,7 +122,10 @@
action
:
this
.
host2
+
"/api/File/UploadTencent"
,
fileList
:
[],
//商品上传图
fileList2
:
[],
//导游上传图
dataList
:
{}
//商品详情数据
dataList
:
{}
,
//商品详情数据
couponMessage
:
""
,
//弹出优惠券的内容
showCoupons
:
false
,
msgType
:
1
,
//类型
};
},
onLoad
(
option
)
{
...
...
@@ -177,6 +191,11 @@
this
.
msg
[
1
].
CommentScore
=
val
},
submitForm
()
{
this
.
couponMessage
=
'获取10积分'
;
// this.couponMessage = res.couponMessage;
// this.msgType = res.msgType;
this
.
msgType
=
2
;
this
.
showCoupons
=
true
;
if
(
this
.
msg
[
0
].
CommentScore
==
0
)
{
this
.
$refs
.
uTips
.
show
({
title
:
"请您为车打打分吧"
,
...
...
@@ -223,7 +242,16 @@
}
}
);
}
},
goLook
()
{
this
.
showCoupons
=
true
;
uni
.
navigateTo
({
url
:
"/pages/user-center/integral-detail/integral-detail"
,
});
},
closeBtn
()
{
this
.
showCoupons
=
false
;
},
}
};
</
script
>
...
...
pages/guidecar/order-commit.vue
View file @
8142caac
...
...
@@ -2,7 +2,7 @@
<view
class=
"commit-box"
>
<u-empty
text=
"没有找到未评价的商品信息"
font-size=
"36"
mode=
"list"
v-if=
"g.length == 0 && !loading"
></u-empty>
<view
v-if=
"g.length > 0"
v-if=
"g.length > 0
&& !loading
"
style=
"height: 100vh;width: 100vw;overflow: hidden;padding:0 0 10px 0;"
>
<scroll-view
...
...
@@ -139,6 +139,7 @@ export default {
data
:
this
.
msg
,
},
(
res
)
=>
{
this
.
loading
=
false
;
this
.
isloading
=
false
;
if
(
res
.
resultCode
==
1
)
{
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
...
...
pages/order/order-detail.vue
View file @
8142caac
...
...
@@ -180,6 +180,10 @@
<view
class=
"label"
>
下单时间:
</view>
<view
class=
"content"
>
{{ orders.CreateDate }}
</view>
</view>
<view
class=
"field"
>
<view
class=
"label"
>
备注:
</view>
<view
class=
"content"
>
{{ orders.BuyerMessage }}
</view>
</view>
</view>
<view
class=
"order-info-item"
>
<view
class=
"field"
>
...
...
pages/share-order/share-order.vue
View file @
8142caac
...
...
@@ -19,7 +19,7 @@
:style=
"
{ height: '100%' }">
<view
style=
"display: flex;flex-direction: column;align-items: center;"
>
<view
v-for=
"(item, index) in g"
:key=
"index"
class=
"listbox"
>
<view
class=
"box_top"
>
<view
class=
"box_top"
@
click=
"redirectToDetail(item.OrderId)"
>
<Text
style=
'font-size: 14px;'
>
订单号:
{{
item
.
OrderNo
}}
</Text>
<Text
:style=
"
{'font-size':'14px','color':mainColor}">
{{
item
.
StatusName
}}
</Text>
</view>
...
...
@@ -176,6 +176,11 @@
this
.
status
=
"nomore"
;
}
},
redirectToDetail
(
id
)
{
uni
.
navigateTo
({
url
:
"/pages/order/order-detail?id="
+
id
,
});
},
}
}
</
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