From 6ba7ccece31dc6ba798565d0bcecc37a15d74629 Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期五, 09 六月 2023 14:28:21 +0800
Subject: [PATCH] no message

---
 uniapp/pages/goods/goodsDetail.vue |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/uniapp/pages/goods/goodsDetail.vue b/uniapp/pages/goods/goodsDetail.vue
index 793fe8b..b06bed0 100644
--- a/uniapp/pages/goods/goodsDetail.vue
+++ b/uniapp/pages/goods/goodsDetail.vue
@@ -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">
@@ -297,6 +300,7 @@
         platform: '',
         inviteCodeShow: false,
         inviterShow: false,
+		frompage:'',
       };
     },
     onPageScroll(e) {
@@ -324,6 +328,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 +521,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 +576,16 @@
         }).then(e => {
 			console.log(e)
           if (e.code != 0) return that.$alert(e.msg)
+		  if(that.frompage=='freebuy')
+		  {//0鍏冭喘鐨勮褰曞晢鍝乮d
+		  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

--
Gitblit v1.9.3