水滴兑换模块开发完成

This commit is contained in:
2023-07-27 16:27:08 +08:00
parent 454b6963a4
commit a0399a8944
14 changed files with 986 additions and 887 deletions

View File

@@ -14,6 +14,7 @@ Page({
inviteText : '', // 自己的邀请码
isParent : false, // 绑定邀请码
nameValue : '', // 上级邀请码
disabled : false
},
onLoad(options) {
@@ -64,7 +65,14 @@ Page({
buyTap() {
// 获取登录状态
if(wx.getStorageSync("token") != ''){
this.setData({
disabled: true
})
if(this.data.mallData.is_parent == true) {
this.setData({
disabled: false
})
wx.navigateTo({
url: '/pages/mall/confirm/confirm?goodsid=' + this.data.mallData.goods_id + '&skuid=' + this.data.mallData.skus[0].sku_id + '&qty=1',
})

View File

@@ -84,7 +84,7 @@
<view class="number-price">{{mallData.is_vip ? mallData.price.vip : mallData.price.price}}</view>
<view class="number-vip">{{mallData.is_vip ? 'VIP会员价' : '市场指导价'}}</view>
</view>
<view bindtap="buyTap" class="btn">确认购买</view>
<button class="btn btn-disabled" disabled="{{disabled}}" bindtap="buyTap">确认购买</button>
</view>
<!-- 产品图 -->

File diff suppressed because it is too large Load Diff