zhaojs
2023-06-18 4a29244fd31cc4e64a53dd67ea0806277a1c09ec
uniapp/pages/goods/goodsDetail.vue
@@ -215,7 +215,7 @@
          </view>
        </view>
        <view class="right-container rowCen borderBox">
        <view class="right-container rowCen borderBox" v-if="!showtar || platform!='iOS'">
          <view class="leftsharebox btnbox colCenCen" @tap="goPath()">
            <view class="priceText">
              ¥{{optionsInfo.fanli}}
@@ -225,7 +225,10 @@
            </view>
          </view>
          <view class="rightbackbox btnbox colCenCen" @tap="getCouponUrl()">
            <view class="priceText">
           <view v-if="frompage=='freebuy'" class="priceText">
              ¥{{optionsInfo.actualPrice}}
           </view>
            <view v-else class="priceText">
              ¥{{optionsInfo.fanli}}
            </view>
            <view class="texttips">
@@ -233,6 +236,30 @@
            </view>
          </view>
        </view>
      <view v-else class="right-container rowCen borderBox">
        <view class="leftsharebox btnbox colCenCen" style="background: #ffb030;" @tap="goPath()">
          <view class="priceText">
            ¥{{optionsInfo.fanli}}
          </view>
          <view class="texttips">
            分享赚
          </view>
        </view>
        <view class="rightbackbox btnbox colCenCen" style="background: #fe0350;" @tap="getCouponUrl()">
           <view v-if="frompage=='freebuy'" class="priceText">
              ¥{{optionsInfo.actualPrice}}
           </view>
          <view v-else class="priceText">
            ¥{{optionsInfo.fanli}}
          </view>
          <view class="texttips">
            购买返
          </view>
        </view>
      </view>
      </view>
    </view>
    <!-- taobao -->
@@ -297,6 +324,7 @@
        platform: '',
        inviteCodeShow: false,
        inviterShow: false,
      frompage:'',
      };
    },
    onPageScroll(e) {
@@ -324,6 +352,10 @@
      this.showtar = getApp().globalData.ifwt == 1 ? false : true;
      this.platform = plus.os.name
      // #endif
     if(options.frompage)
     {
        this.frompage=options.frompage;
     }
      if (options.id) {
        this.optionsInfo.goodsId = options.id
        this.pageType = this.optionsInfo.sourceType ? this.optionsInfo.sourceType : 'tb';
@@ -513,6 +545,7 @@
            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
@@ -567,6 +600,16 @@
        }).then(e => {
         console.log(e)
          if (e.code != 0) return that.$alert(e.msg)
        if(that.frompage=='freebuy')
        {//0元购的记录商品id
        console.log(e.data.info.itemId);
           this.$u.api.updateFirstFreeBrowse({
              goodsid:that.optionsInfo.goodsId,
              new_goodsId:e.data.info.itemId
           }).then(e=>{
           });
        }
          var res = e.data.info;
          var tburl = res.shortUrl
          // #ifdef APP-PLUS