Commit 9235f29e by 李伟康

修复

1 parent 715d85be
......@@ -22,8 +22,8 @@
<view class="item">…</view>
</block>
<view class="item flex">
<view class="label text-hide">{{list.length}}.名称:{{item.name}}</view>
<view class="value">选择数字:{{item.relayContent}}</view>
<view class="label text-hide">{{list.length}}.名称:{{list[list.length - 1].name}}</view>
<view class="value">选择数字:{{list[list.length - 1].relayContent}}</view>
</view>
</block>
......
......@@ -39,7 +39,7 @@ Page({
let {
showLogin
} = this.data
if(showLogin) return
if (showLogin) return
this.data.haveCouponsList = []
this.setData({
curTabIndex: e.detail,
......@@ -60,12 +60,17 @@ Page({
curTabIndex,
isMerchant
} = this.data
let {merchantId} = wx.p.storage.get('merchant_info')
let {
merchantId
} = wx.p.storage.get('merchant_info')
let para = {
useMemberType: 0
}
if (curTabIndex == 1) para.discountType = 8 //线上优惠券加上这个参数
if (!isMerchant) para.merchantId = merchantId
if (curTabIndex == 1) {
para.discountType = 8 //线上优惠券加上这个参数
delete para.merchantId //权益优惠券不传merchantId
}
wx.p.api.couponsApi.getCardData(para).then(res => {
wx.hideLoading()
let list = res.map(item => {
......
......@@ -27,5 +27,5 @@
"ignore": [],
"include": []
},
"appid": "wx39a574d259fe58a0"
"appid": "wxb818f6bc908c52fc"
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!