weixin_52219567 hai 1 mes
pai
achega
9e49ca8569
Modificáronse 2 ficheiros con 42 adicións e 14 borrados
  1. 18 0
      src/api/home/index.ts
  2. 24 14
      src/views/home/index.vue

+ 18 - 0
src/api/home/index.ts

@@ -100,6 +100,15 @@ export function getPlatformFlashSaleList(query: any) {
   });
 }
 
+//大牌推荐列表(平台闪购列表)-右
+export function getPlatformFlashSaleBrand(query: any) {
+  return request({
+    url: '/product/indexProduct/getPlatformFlashSaleBrand',
+    method: 'get',
+    params: query
+  });
+}
+
 //行家精选标题
 export function getExpertSelectionTitle(query: any) {
   return request({
@@ -127,6 +136,15 @@ export function getPurchaseGuideTitle(query: any) {
   });
 }
 
+//采购指南列表
+// export function getPurchaseGuideTitle(query: any) {
+//   return request({
+//     url: '/system/indexSystem/getPurchaseGuideTitle',
+//     method: 'get',
+//     params: query
+//   });
+// }
+
 //外面循环
 export function getClassificationFloorList(query: any) {
   return request({

+ 24 - 14
src/views/home/index.vue

@@ -131,8 +131,8 @@
       <template v-for="(item, index) in sceneList" :key="index">
         <div class="scene-list" v-if="Number(index) < 5" @click="onPath('/plan_info?id=' + item.id)">
           <div class="scene-box">
-            <div class="scene1">{{ item.advertTitle }}</div>
-            <div class="scene2">{{ item.advertBrief }}</div>
+            <!-- <div class="scene1">{{ item.advertTitle }}</div>
+            <div class="scene2">{{ item.advertBrief }}</div> -->
           </div>
           <img :src="item.coverImage" alt="" />
         </div>
@@ -156,8 +156,8 @@
       <div class="bigBrand-bos">
         <template v-for="(item, index) in bigbrandList" :key="index">
           <div class="bigBrand-list" v-if="Number(index) < 10">
-            <img :src="item.coverImage" alt="" />
-            <div class="bigBrand1">{{ item.advertTitle || '' }}</div>
+            <img :src="item.brandLogo" alt="" />
+            <div class="bigBrand1">{{ item.brandName || '' }}</div>
             <div class="bigBrand2">
               {{ item.advertBrief || '' }}
             </div>
@@ -191,7 +191,7 @@
       </template>
     </div>
     <!-- 采购指南 -->
-    <div class="home-title flex-row-between">
+    <!-- <div class="home-title flex-row-between">
       <div>
         <span class="title1">{{ procureTitle.title }}</span>
         <span class="title2">{{ procureTitle.subtitle }}</span>
@@ -202,8 +202,8 @@
           <ArrowRight />
         </el-icon>
       </div>
-    </div>
-    <div class="procure-bos">
+    </div> -->
+    <!-- <div class="procure-bos">
       <template v-for="(item, index) in expertList" :key="index">
         <div class="procure-list" v-if="Number(index) < 3">
           <img :src="item.productImage" alt="" />
@@ -211,7 +211,7 @@
           <div class="procure2">{{ item.itemName || '干款好礼·百大品牌·个性定制' }}</div>
         </div>
       </template>
-    </div>
+    </div> -->
     <!-- 循环-商品 -->
     <div v-for="(item1, index1) in homeList" :key="index1">
       <!-- 头部 -->
@@ -229,14 +229,14 @@
       </div>
       <!-- 商品 -->
       <div class="goods-bos" v-if="item1.imgOne">
-        <img class="goods-img" :src="item1.imgOne" alt="" />
+        <img class="goods-img" :src="item1.imgOne.advertiseImage" alt="" />
         <div class="home1-bos" v-if="item1.home1List && item1.home1List.length > 0">
           <div class="floorName">{{ item1.floorName }}</div>
           <div v-for="(item2, index2) in item1.home1List" :key="index2" class="home1-list">
-            <img :src="item2.img" alt="" />
+            <img :src="item2.advertiseImage" alt="" />
             <div style="flex: 1; width: 0">
               <div class="advertiseName">{{ item2.advertiseName }}</div>
-              <div class="advertiseDescribe ellipsis">{{ item2.advertiseDescribe }}新政策执行中心城中心城中心啊实打实大苏打实打实水水的</div>
+              <div class="advertiseDescribe ellipsis">{{ item2.advertiseDescribe }}</div>
             </div>
           </div>
         </div>
@@ -250,14 +250,14 @@
                   <div class="advertiseDescribe ellipsis">{{ item2.advertiseDescribe }}</div>
                   <el-button class="bnt" type="primary" size="small">立即进入</el-button>
                 </div>
-                <img :src="item2.img" alt="" />
+                <img :src="item2.advertiseImage" alt="" />
               </div>
             </div>
           </div>
           <div class="home2-two" v-if="item1.infoTwo">
             <div class="advertiseName">{{ item1.infoTwo.advertiseName }}</div>
             <div class="advertiseDescribe">{{ item1.infoTwo.advertiseDescribe }}</div>
-            <img :src="item1.infoTwo.img" alt="" />
+            <img :src="item1.infoTwo.advertiseImage" alt="" />
           </div>
         </div>
       </div>
@@ -335,6 +335,7 @@ import {
   getScenePurchaseList,
   getPlatformFlashSaleTitle,
   getPlatformFlashSaleList,
+  getPlatformFlashSaleBrand,
   getExpertSelectionTitle,
   getPurchaseGuideTitle,
   getExpertSelectionList,
@@ -475,7 +476,16 @@ getPlatformFlashSaleList({}).then((res) => {
   if (res.code == 200) {
     if (res.data.length > 0) {
       bigbrandOne.value = res.data[0];
-      bigbrandList.value = res.data.slice(1);
+      // bigbrandList.value = res.data.slice(1);
+    }
+  }
+});
+
+//大牌推荐列表(平台闪购列表)-右
+getPlatformFlashSaleBrand({}).then((res) => {
+  if (res.code == 200) {
+    if (res.data.length > 0) {
+      bigbrandList.value = res.data;
     }
   }
 });