| | |
| | | onLoad(options) { |
| | | this.appInfo = utils.getCacheSync('appInfo'); |
| | | console.log(this.appInfo) |
| | | this.goodsInfo = JSON.parse(options.info); |
| | | // this.goodsInfo = JSON.parse(options.info); |
| | | this.goodsInfo = JSON.parse(decodeURIComponent(options.info)); |
| | | console.log(this.goodsInfo,"@@@@this.goodsInfo") |
| | | this.imageList = this.goodsInfo.imgs |
| | | this.getJumpUrl(this.goodsInfo) |
| | |
| | | var that = this; |
| | | if (goods.faction == 't') { |
| | | this.$u.api.getPrivilegeLink({type:0,goodsId:goods.goodsId}).then(e => { |
| | | console.log(e) |
| | | if(e.code == 1)return that.$alert(e.msg); |
| | | var res = e.data.info; |
| | | //that.Jumpurl = res.kuaiZhanUrl |
| | | that.tpwd = res.tpwd |
| | | var long = res.longTpwd |
| | | that.url = res.shortUrl; |
| | | if(that.url){ |
| | | that.makeQRcode() |
| | | }else{ |
| | | uni.showToast({ |
| | | title:'制作海报失败!', |
| | | icon:'none' |
| | | }) |
| | | } |
| | | //获取转链接 |
| | | that.$u.api.getPrivilegeShareLink({type:0,goodsId:goods.goodsId}).then(ed=>{ |
| | | /* that.$u.api.getPrivilegeShareLink({type:0,goodsId:goods.goodsId}).then(ed=>{ |
| | | console.log(ed) |
| | | if(ed.code == 1)return that.$alert(ed.msg); |
| | | var re = ed.data.list; |
| | | that.url = re.link; |
| | |
| | | }) |
| | | } |
| | | }).catch(function (er) { |
| | | }) |
| | | }) */ |
| | | |
| | | }).catch(function (err) { |
| | | }) |
| | |
| | | } |
| | | // APP下载地址+邀请码 |
| | | if (e === 3) { |
| | | console.log(this.user) |
| | | data = '【下载链接】' + this.appInfo.appAndroidDownUrl + |
| | | '\n【邀请码】' + this.user.invitation_code |
| | | data = this.appInfo.invite_url +"?code="+this.user.invitation_code |
| | | } |
| | | uni.setClipboardData({ |
| | | data, |