| | |
| | | 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', |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | |
| | | item.icon ? item.icon = item.icon : item.icon = "/static/images/default-book-img.png", |
| | | item.itemType = this.data.goodsData.saleMethodList[0].type == 'createProductFolderSaleMethod' ? '目录' : this.data.goodsData.saleMethodList[0].type == 'createProductItemSaleMethod' ? '资源' : '电子书' |
| | | }) |
| | | console.log(1, res.datas[0]); |
| | | that.setData({ |
| | | productInfo: res.datas |
| | | }) |