| | |
| | | console.log(options); |
| | | if(options.sourcefrom) |
| | | { |
| | | console.log(decodeURIComponent(options.info)); |
| | | this.optionsInfo = JSON.parse(decodeURIComponent(options.info)); |
| | | this.pageInfo = JSON.parse(decodeURIComponent(options.info)); |
| | | console.log(this.optionsInfo) |
| | |
| | | getPageInfo(e) { |
| | | var that = this; |
| | | if (this.faction == 'j') { |
| | | var loinf={ |
| | | goodsId: this.optionsInfo.goodsId, |
| | | goods: JSON.stringify(this.optionsInfo) |
| | | } |
| | | console.log(loinf) |
| | | this.$u.api.getJdsDetail({ |
| | | goodsId: this.optionsInfo.goodsId, |
| | | goods: JSON.stringify(this.optionsInfo) |
| | | }).then(e => { |
| | | console.log(e) |
| | | var res = e.data.detailPics; |
| | | this.JdDetails = that.JdDetails.concat(res) |
| | | that.$forceUpdate() |
| | |
| | | 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({ |