| | |
| | | result, |
| | | textValue: result.type == "PromoteCode" ? '领取' : '激活' |
| | | }) |
| | | wx.setNavigationBarTitle({ |
| | | title: result.type == "PromoteCode" ? '领取优惠卷' : '激活商品', |
| | | }) |
| | | // this.getRules(); |
| | | this.getProductByCode(); |
| | | } else { |
| | | debugger |
| | | this.setData({ |
| | | isOther: true |
| | | }) |
| | | } |
| | | } catch (error) { |
| | | console.log(error); |
| | | debugger |
| | | this.setData({ |
| | | isOther: true |
| | | }) |
| | |
| | | wx.showModal({ |
| | | title: '温馨提示', |
| | | content: res, |
| | | showCancel: false |
| | | showCancel: false, |
| | | success(res) { |
| | | if (res.confirm) |
| | | wx.switchTab({ |
| | | url: '/pages/home/home', |
| | | }) |
| | | } |
| | | }) |
| | | setTimeout(() => { |
| | | wx.navigateTo({ |
| | | url: '/pages/codeRecord/index', |
| | | }) |
| | | }, 2500); |
| | | }); |
| | | } else { |
| | | let that = this; |
| | |
| | | showCancel: false, |
| | | success(res) { |
| | | if (res.confirm) { |
| | | wx.navigateBack() |
| | | wx.switchTab({ |
| | | url: '/pages/home/home', |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | |
| | | const list = JSON.parse(res.config); |
| | | console.log('code', res, list); |
| | | if (this.data.result) { |
| | | |
| | | const type = res.saleMethodList[0].type |
| | | this.setData({ |
| | | goodsData: res, |