zhaojs
2023-07-06 cf1973556ff35a0798436aa63d90f2cc8a2f53ba
uniapp/pages/goods/goodsDetail.vue
@@ -373,6 +373,7 @@
      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)
@@ -441,15 +442,11 @@
      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()
@@ -578,7 +575,6 @@
            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
@@ -632,10 +628,11 @@
          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=>{
              
           });
@@ -757,6 +754,16 @@
       }).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({