zhaojs
2023-06-09 bef3a652349b7b79c914afcc013d7229706a2b3b
uniapp/pages/goods/shareGoods.vue
@@ -257,7 +257,8 @@
        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)
@@ -310,13 +311,24 @@
            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;
@@ -329,7 +341,7 @@
                        })
                     }
                  }).catch(function (er) {
                  })
                  }) */
                  
               }).catch(function (err) {
               })
@@ -501,9 +513,7 @@
                }
                // 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,