Commit b55b608a by 高淑倩

下单页已经购买过不显示plus

parent 29dc5359
// pages/confirmOrder/confirmOrder.js // pages/confirmOrder/confirmOrder.js
const wxService = require('../../utils/wxService') const wxService = require('../../utils/wxService')
const app = getApp()
wxService.page({ wxService.page({
/** /**
...@@ -27,7 +28,8 @@ wxService.page({ ...@@ -27,7 +28,8 @@ wxService.page({
plusMemberPrice: 0, // plus 默认价 plusMemberPrice: 0, // plus 默认价
plusMemberName:'', plusMemberName:'',
defalutCoupon: '', defalutCoupon: '',
addressId: '' // 收货地址id addressId: '', // 收货地址id
showPlus: null
}, },
/** /**
...@@ -40,6 +42,8 @@ wxService.page({ ...@@ -40,6 +42,8 @@ wxService.page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function () {
console.log('dddd',app.globalData.isPlusVip)
const { memberId } = wx.getStorageSync('_baseUserInfo') const { memberId } = wx.getStorageSync('_baseUserInfo')
let pages = getCurrentPages(); let pages = getCurrentPages();
...@@ -53,7 +57,11 @@ wxService.page({ ...@@ -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 const { trolleySku2Buy, checkByPremium } = this.data
let params = { let params = {
checkByPremium, checkByPremium,
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<!-- 商品合计 --> <!-- 商品合计 -->
<view class="pro-sum"> <view class="pro-sum">
<view class="vip-info"> <view class="vip-info" wx:if="{{showPlus}}">
<view class="vip-left"> <view class="vip-left">
<view class="left-top"> <view class="left-top">
<image class="top-image" src="/assets/imgs/7_1_0/plus-icon.png" /> <image class="top-image" src="/assets/imgs/7_1_0/plus-icon.png" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment