Selaa lähdekoodia

优化小程序

yanj 3 kuukautta sitten
vanhempi
commit
885a637037

+ 7 - 5
pages/exhibitor/components/exhibitor-card.vue

@@ -4,8 +4,8 @@
       <view class="exhibitor-card">
         <view class="exhibitor-info">
           <view class="exhibitor-logo">
-            <image v-if="exhibit && exhibit.exhibitors_logo" :src="exhibit.exhibitors_logo + '?x-oss-process=image/resize,w_400'" mode="aspectFit" />
-            <image v-else src="https://onlinecatelogue.productronicachina.com.cn/assets/image/normal-logo.jpg" mode="aspectFit" />
+            <image v-if="exhibit && exhibit.exhibitors_logo" :src="exhibit.exhibitors_logo + '?x-oss-process=image/resize,w_400'" mode="widthFix" />
+            <image v-else src="https://onlinecatelogue.productronicachina.com.cn/assets/image/normal-logo.jpg" mode="widthFix" />
           </view>
           <view class="exhibitor-name-cn">{{ exhibit.exhibitors_name_zh_cn }}</view>
           <view class="exhibitor-name-en">{{ exhibit.exhibitors_name_en_us }}</view>
@@ -45,7 +45,7 @@ export default {
     }
   },
   mounted() {
-
+    console.log(this.exhibit)
   },
 }
 </script>
@@ -63,8 +63,10 @@ export default {
   }
   .exhibitor-logo{
     width: 194rpx;
-    image{
-      height: auto;
+    //height: 120rpx;
+    padding: 20rpx;
+    image {
+      display: block;
     }
   }
   .exhibitor-detail-link{

+ 1 - 1
pages/exhibitor/components/exhibitor-item.vue

@@ -2,7 +2,7 @@
 	<view class="exhibitor-item" hover-class="active" @click="onClickExhibitor(item)">
 		<view class="exhibitor-body">
 			<view class="exhibitor-logo">
-        <image v-if="item && item.pic" :src="item.pic + '?x-oss-process=image/resize,w_400'" mode="aspectFit" />
+        <image v-if="item && item.logo" :src="item.logo + '?x-oss-process=image/resize,w_400'" mode="aspectFit" />
         <image v-else src="https://onlinecatelogue.productronicachina.com.cn/assets/image/normal-logo.jpg" mode="aspectFit" />
       </view>
 			<view class="exhibitor-name">

+ 1 - 1
pages/exhibitor/detail.vue

@@ -5,7 +5,7 @@
       <view class="main-container">
         <view class="exhibitor-main">
           <view class="exhibitor-logo">
-            <image v-if="exhibitor && exhibitor.exhibitors_logo" :src="exhibitor.exhibitors_logo + '?x-oss-process=image/resize,w_400'" mode="aspectFit" />
+            <image v-if="exhibitor && exhibitor.logo" :src="exhibitor.logo + '?x-oss-process=image/resize,w_400'" mode="aspectFit" />
             <image v-else src="https://onlinecatelogue.productronicachina.com.cn/assets/image/normal-logo.jpg" mode="aspectFit" />
           </view>
           <view class="exhibitor-title">

+ 0 - 2
pages/files/index.vue

@@ -68,7 +68,6 @@ export default {
           success: function (res) {
             const filePath = res.tempFilePath
             if (that.isImageUrl(url)) {
-              console.log(filePath)
               uni.saveImageToPhotosAlbum({
                 filePath: filePath
               })
@@ -77,7 +76,6 @@ export default {
                 showMenu:true,
                 filePath: filePath,
                 success: function (res) {
-                  console.log('打开文档成功')
                 }
               })
             }

+ 6 - 1
pages/index/home.vue

@@ -211,7 +211,7 @@
 			this.getAdData()
 		},
 		mounted() {
-			this.isShow = this.$store.state.app.adIsShow
+
 		},
 		methods: {
       getPartHeight(part) {
@@ -285,6 +285,11 @@
 					number: "IndexPopUp001"
 				}).then(res => {
 					this.adInfo = res.data[0]
+          if (this.adInfo && this.adInfo.ad_file) {
+            this.isShow = this.$store.state.app.adIsShow
+          } else {
+            this.isShow = false
+          }
 				})
 			},
 			navigateToAdLink(href) {