Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
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
高淑倩
7-Eleven
Commits
7d9e37e2
Commit
7d9e37e2
authored
Sep 19, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_7.1.0' into fixbug-ZYW
parents
0808a75c
9bb73bf4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
7 deletions
+17
-7
confirmOrder.js
src/pages/confirmOrder/confirmOrder.js
+7
-4
confirmOrder.wxml
src/pages/confirmOrder/confirmOrder.wxml
+2
-2
project.config.json
src/project.config.json
+8
-1
No files found.
src/pages/confirmOrder/confirmOrder.js
View file @
7d9e37e2
...
...
@@ -26,7 +26,8 @@ wxService.page({
orderInitPrice
:
0
,
plusMemberPrice
:
0
,
// plus 默认价
plusMemberName
:
''
,
defalutCoupon
:
''
defalutCoupon
:
''
,
addressId
:
''
// 收货地址id
},
/**
...
...
@@ -284,7 +285,7 @@ wxService.page({
wx
.
hideLoading
()
this
.
setData
({
currentOrderList
:
data
,
defalutCoupon
:
data
&&
data
.
couponDiscountPreviews
&&
data
.
couponDiscountPreviews
[
0
].
couponDiscount
,
defalutCoupon
:
data
&&
data
.
couponDiscountPreviews
.
length
&&
data
.
couponDiscountPreviews
[
0
].
couponDiscount
||
''
,
orderInitPrice
:
data
.
amount
},()
=>
{
// 实付款
...
...
@@ -295,11 +296,13 @@ wxService.page({
})
},
handelGobuy
()
{
const
{
trolleySku2Buy
,
couponId
}
=
this
.
data
const
{
trolleySku2Buy
,
couponId
,
addressInfo
}
=
this
.
data
let
params
=
{
couponId
,
trolleySku2Buy
trolleySku2Buy
,
addressId
:
addressInfo
.
id
}
this
.
getBill
(
params
)
// 下单
},
// 下单
...
...
src/pages/confirmOrder/confirmOrder.wxml
View file @
7d9e37e2
...
...
@@ -122,9 +122,9 @@
</view>
<view class="coupon">
<view>
<text class="price-label">优惠券
{{defalutCoupon}}
</text>
<text class="price-label">优惠券</text>
<view class="select-coupon" bindtap="selectCoupon">
<text class="coupon-price">
-
{{currentCoupon ? currentCoupon : defalutCoupon}}{{defalutCoupon?'元': ''}}</text>
<text class="coupon-price">
{{defalutCoupon?'-': ''}}
{{currentCoupon ? currentCoupon : defalutCoupon}}{{defalutCoupon?'元': ''}}</text>
<!--<text class="{{haveCoupon ? 'coupon-price' : 'no-coupon'}}"> -{{currentCoupon ? currentCoupon : defalutCoupon}}</text>-->
<image class="arrow-right" src="/assets/imgs/7_1_0/arrow-right.png" />
</view>
...
...
src/project.config.json
View file @
7d9e37e2
...
...
@@ -39,7 +39,7 @@
"list"
:
[]
},
"miniprogram"
:
{
"current"
:
-1
,
"current"
:
44
,
"list"
:
[
{
"id"
:
-1
,
...
...
@@ -334,6 +334,13 @@
"pathName"
:
"pages/my_11/my"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"pages/my_11/my"
,
"pathName"
:
"pages/my_11/my"
,
"query"
:
""
,
"scene"
:
null
}
]
}
...
...
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