xiebaomin vor 2 Jahren
Ursprung
Commit
e9b83bf080

+ 3 - 1
pages/login/components/growthCommunity.vue

@@ -14,10 +14,11 @@
                     >
                         <view
                             class="video-item"
-                            v-for="item in videoList"
+                            v-for="(item, index) in videoList"
                             :key="item.id"
                             @click="$emit('playVideo', item)"
                             :id="`item${index}`"
+                            v-if="item.appStatus == '1'"
                         >
                             <view class="player">
                                 <image src="https://static.caimei365.com/app/img/supplier-login/player.png" class="player-img"  mode=""></image>
@@ -47,6 +48,7 @@
                             :key="item.id"
                             @click="handlerTramp(item)"
                             :id="`item${index}`"
+                            v-if="item.appStatus == '1'"
                         >
                             <view class="img-item"><image :src="item.headAppBanner" mode="" class="img"></image></view>
                             <view class="articleContent">

+ 9 - 2
pages/login/components/markeServices.vue

@@ -8,9 +8,9 @@
             indicator-color="rgba(0, 0, 0, 0.5)"
             indicator-active-color="rgba(255, 91, 0, 1)"
         >
-            <swiper-item v-for="item in bannersList" :key="item.id">
+            <swiper-item v-for="item in bannersList" :key="item.id" v-if="item.appStatus == '1'">
                 <view class="swiper-item">
-                    <image class="img" :src="item.headAppBanner" />
+                    <image class="img" :src="item.headAppBanner" @click="jumplink(item)"/>
                 </view>
             </swiper-item>
         </swiper>
@@ -85,6 +85,13 @@ export default {
             ]
         }
     },
+    methods: {
+        jumplink($event) {
+            if ($event.jumpAppLink) {
+                this.$api.navigateTo($event.jumpAppLink)
+            }
+        }
+    }
 }
 </script>
 

+ 7 - 0
pages/login/components/successCases.vue

@@ -8,6 +8,7 @@
                 :key="item.id"
                 :id="`item${index}`"
                 :style="{ margin: item.id === 2 ? '40rpx' : '' }"
+                v-if="item.appStatus == '1'"
             >
                 <view class="swiper-item-title">{{ item.title }}</view>
                 <view class="swiper-item-contant" v-html="item.content"></view>
@@ -86,6 +87,7 @@ export default {
     color: #333333;
     font-size: 32rpx;
     font-weight: 600;
+    text-align: center;
 }
 .swiper-item-contant {
     font-size: 24rpx;
@@ -94,6 +96,11 @@ export default {
     overflow-wrap: break-word;
     white-space: normal;
     margin-top: 40rpx;
+    overflow: hidden;
+    text-overflow: ellipsis;
+    display: -webkit-box;
+    -webkit-line-clamp: 9;
+    -webkit-box-orient: vertical;
 }
 .swiper-item-img {
     width: 468rpx;

+ 2 - 3
pages/login/supplier_login.vue

@@ -93,7 +93,7 @@
         </tui-modal>
         <tui-modal :show="isPhone" class="qrcode" custom @cancel="cancel">
             <view class="tui-modal-custom-qrcode">
-                <image style="width: 100%;height: 100%;" show-menu-by-longpress="true" src="https://static.caimei365.com/app/img/supplier-login/qr_code_kefu.png" mode=""></image>
+                <image style="width: 100%;height: 100%;" show-menu-by-longpress="true" src="https://static.caimei365.com/app/img/supplier-login/kefu_qr.jpg" mode=""></image>
             </view>
         </tui-modal>
         <tui-modal :show="modal" custom @cancel="cancel">
@@ -297,12 +297,11 @@ export default {
         },
         async getSupplierLanding() {
             try {
-                const {data} = await this.UserService.supplierLoading({})
+                const {data} = await this.UserService.supplierLoading({source: 2})
                 this.bannerList = data.banner
                 this.successList = data.landing.filter(e => e.type == '1')
                 this.videoList = data.landing.filter(e => e.type == '2')
                 this.articelList = data.landing.filter(e => e.type == '3')
-                console.log(this.successList, this.videoList, this.articelList)
             } catch (error) {
                 console.log(error)
             }