| | |
| | | console.log(this.pageType) |
| | | if (this.pageType == 'tb' || this.pageType == 'tmshop' || this.pageType == 'tm') { |
| | | if (this.user.tb_account) { |
| | | |
| | | this.getTbsrc() |
| | | } else { |
| | | this.empowerModel = true |
| | |
| | | if (e.code != 0) return that.$alert(e.msg) |
| | | if(that.frompage=='freebuy') |
| | | {//0元购的记录商品id |
| | | console.log(e.data.info.itemId); |
| | | console.log(e.data.info.itemId); |
| | | this.$u.api.updateFirstFreeBrowse({ |
| | | goodsid:that.optionsInfo.goodsId, |
| | | new_goodsId:e.data.info.itemId |
| | | new_goodsId:e.data.info.itemId, |
| | | plateform:'tb' |
| | | }).then(e=>{ |
| | | |
| | | }); |
| | |
| | | }).then(e => { |
| | | var res = e.data.info; |
| | | console.log(res) |
| | | if(that.frompage=='freebuy') |
| | | {//0元购的记录商品id |
| | | this.$u.api.updateFirstFreeBrowse({ |
| | | goodsid:that.optionsInfo.goodsId, |
| | | new_goodsId:that.optionsInfo.goodsId, |
| | | plateform:'dy' |
| | | }).then(e=>{ |
| | | |
| | | }); |
| | | } |
| | | // #ifdef APP-PLUS |
| | | plus.runtime.openURL(res.dy_deeplink, e => { |
| | | uni.navigateTo({ |