From 4a29244fd31cc4e64a53dd67ea0806277a1c09ec Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期日, 18 六月 2023 23:31:42 +0800
Subject: [PATCH] no message

---
 uniapp/pages/goods/goodsDetail.vue |   57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 54 insertions(+), 3 deletions(-)

diff --git a/uniapp/pages/goods/goodsDetail.vue b/uniapp/pages/goods/goodsDetail.vue
index 108156d..6eeb2cc 100644
--- a/uniapp/pages/goods/goodsDetail.vue
+++ b/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 -->
@@ -263,6 +290,7 @@
   import pddEmpower from '../../components/pddempower.vue'
   import inviteCodeModel from '../../components/inviteCode.vue'
   import inviterModel from '../../components/inviterModel.vue'
+   
   export default {
     components: {
       empowerModel,
@@ -295,7 +323,8 @@
         showtar: false,
         platform: '',
         inviteCodeShow: false,
-        inviterShow: false
+        inviterShow: false,
+		frompage:'',
       };
     },
     onPageScroll(e) {
@@ -311,6 +340,11 @@
 		  console.log("鍒濆鍖�")
 	  	getApp().getAppInfo();
 	  }
+	  //console.log("2222222222222222-"+getApp().globalData.hasbcinit);
+	  if(!getApp().globalData.hasbcinit)
+	  {
+		  getApp().bcInit();
+	  }
     },
     onLoad(options) {
       this.appinfo = utils.getCacheSync('appInfo')
@@ -318,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';
@@ -507,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
@@ -559,10 +598,22 @@
           goodsId: this.optionsInfo.goodsId,
           type: 0
         }).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
+		 
           if (plus.runtime.isApplicationExist({
               pname: 'com.taobao.taobao',
               action: 'taobao://'

--
Gitblit v1.9.3