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
b55b608a
Commit
b55b608a
authored
Sep 19, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下单页已经购买过不显示plus
parent
29dc5359
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
confirmOrder.js
src/pages/confirmOrder/confirmOrder.js
+10
-2
confirmOrder.wxml
src/pages/confirmOrder/confirmOrder.wxml
+1
-1
No files found.
src/pages/confirmOrder/confirmOrder.js
View file @
b55b608a
// pages/confirmOrder/confirmOrder.js
const
wxService
=
require
(
'../../utils/wxService'
)
const
app
=
getApp
()
wxService
.
page
({
/**
...
...
@@ -27,7 +28,8 @@ wxService.page({
plusMemberPrice
:
0
,
// plus 默认价
plusMemberName
:
''
,
defalutCoupon
:
''
,
addressId
:
''
// 收货地址id
addressId
:
''
,
// 收货地址id
showPlus
:
null
},
/**
...
...
@@ -40,6 +42,8 @@ wxService.page({
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
console
.
log
(
'dddd'
,
app
.
globalData
.
isPlusVip
)
const
{
memberId
}
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
let
pages
=
getCurrentPages
();
...
...
@@ -53,7 +57,11 @@ wxService.page({
// 下单 && 计算优惠价
this
.
setData
({
trolleySku2Buy
:
tradeDto
.
trolleySku2Buy
},
()
=>
{
this
.
setData
({
trolleySku2Buy
:
tradeDto
.
trolleySku2Buy
,
showPlus
:
app
.
globalData
.
isPlusVip
?
false
:
true
},
()
=>
{
console
.
log
(
'showPlus'
,
this
.
data
.
showPlus
)
const
{
trolleySku2Buy
,
checkByPremium
}
=
this
.
data
let
params
=
{
checkByPremium
,
...
...
src/pages/confirmOrder/confirmOrder.wxml
View file @
b55b608a
...
...
@@ -86,7 +86,7 @@
<!-- 商品合计 -->
<view class="pro-sum">
<view class="vip-info">
<view class="vip-info"
wx:if="{{showPlus}}"
>
<view class="vip-left">
<view class="left-top">
<image class="top-image" src="/assets/imgs/7_1_0/plus-icon.png" />
...
...
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