Commit 9235f29e by 李伟康

修复

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