From aea728e413903d03639d228e9d036bf6113dcb09 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 03 七月 2025 17:21:57 +0800
Subject: [PATCH] 视频主页操作按钮颜色

---
 pages/product/goods.vue |   60 ++++++++++++++++++++++++++++++++++++++++++------------------
 1 files changed, 42 insertions(+), 18 deletions(-)

diff --git a/pages/product/goods.vue b/pages/product/goods.vue
index e4ad5dd..10b03f2 100644
--- a/pages/product/goods.vue
+++ b/pages/product/goods.vue
@@ -275,9 +275,7 @@
 </template>
 
 <script>
-import UIcon from '@/uview-components/uview-ui/components/u-icon/u-icon.vue';
-import UNavbar from '@/uview-components/uview-ui/components/u-navbar/u-navbar.vue';
-import UPopup from '@/uview-components/uview-ui/components/u-popup/u-popup.vue';
+import '@/components/uview-components/uview-ui';
 
 
 /************鎺ュ彛API***************/
@@ -307,7 +305,9 @@
 import popups from "@/components/popups/popups"; //姘旀场妗�
 import takeDownFormSaleGoods from "@/components/m-take-down-sale-goods/index"; //涓嬫灦妗�
 import setup from "./product/popup/popup";
-
+	import {
+		getSTSToken
+	} from '@/api/common.js'
 export default {
   components: {
     popups,
@@ -324,10 +324,7 @@
     GoodsSwiper,
     popupGoods,
     popupAddress,
-    takeDownFormSaleGoods,
-	UIcon,
-	UNavbar,
-	UPopup,
+    takeDownFormSaleGoods
   },
   data () {
     return {
@@ -347,21 +344,21 @@
       // #endif
       navbarListData: [
         //瀵艰埅鏍忓垪琛ㄦ爮鏁版嵁
-        {
-          title: "棣栭〉",
-          icon: "home-fill",
-          ___type: "other",
-        },
+        // {
+        //   title: "棣栭〉",
+        //   icon: "home-fill",
+        //   ___type: "other",
+        // },
         {
           title: "璐墿杞�",
           icon: "bag-fill",
           ___type: "other",
         },
-        {
-          title: "鎼滅储",
-          icon: "search",
-          ___type: "category",
-        },
+        // {
+        //   title: "鎼滅储",
+        //   icon: "search",
+        //   ___type: "category",
+        // },
         {
           title: "涓汉涓績",
           icon: "account-fill",
@@ -581,8 +578,35 @@
           this.$store.state.distributionId = distributionId;
         }
       }
+	  const sts = await getSTSToken();
+	  const stsUrl = sts.data.data.endpoint
+	  // // 澶勭悊鏁版嵁
+	  // goodsList.data.result.records.forEach(item => {
+	  // 	if (item.thumbnail !== '' && item.thumbnail !== null && item.thumbnail.indexOf('http') ===
+	  // 		-1) {
+	  // 		item.thumbnail = stsUrl + '/' + item.thumbnail
+	  // 	}
+	  // 	if (item.goodsVideo !== '' && item.goodsVideo !== null && item.goodsVideo.indexOf(
+	  // 			'http') === -1) {
+	  // 		item.goodsVideo = stsUrl + '/' + item.goodsVideo
+	  // 	}
+	  // })
       /**鍟嗗搧淇℃伅浠ュ強瑙勬牸淇℃伅瀛樺偍 */
+	  console.log('--------------------------1>',response.data.result.data.goodsGalleryList)
+	  response.data.result.data.goodsGalleryList.forEach((item,index)=>{
+		  	if (item !== '' && item !== null && item.indexOf('http') ===
+		  		-1) {
+		  		response.data.result.data.goodsGalleryList[index] =  stsUrl + '/' + item
+				console.log('鏄惁鎵ц-------------銆�',item)
+		  	}
+	  })
+	   console.log('--------------------------2>',response.data.result.data.goodsGalleryList)
       this.goodsDetail = response.data.result.data;
+	  if (this.goodsDetail.goodsVideo !== '' && this.goodsDetail.goodsVideo !== null && this.goodsDetail.goodsVideo.indexOf(
+	  		'http') === -1) {
+	  	this.goodsDetail.goodsVideo = stsUrl + '/' + this.goodsDetail.goodsVideo
+	  }
+	  console.log('--------------------------2>',this.goodsDetail.goodsGalleryList)
       this.wholesaleList = response.data.result.wholesaleList;
       this.goodsSpec = response.data.result.specs;
       this.PromotionList = response.data.result.promotionMap;

--
Gitblit v1.8.0