From f562cf22e554e7e89017ef98d60ccaf5fbfc0208 Mon Sep 17 00:00:00 2001 From: peng <peng.com> Date: 星期二, 05 八月 2025 09:27:28 +0800 Subject: [PATCH] 修改首页不兼容问题 --- config/config.js | 2 +- pages/video/home-page.vue | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/config/config.js b/config/config.js index d5e771e..cf41908 100644 --- a/config/config.js +++ b/config/config.js @@ -9,7 +9,7 @@ aMapKey: "1f78544934b66c9fbc0104117f663973", //鍦ㄩ珮寰蜂腑鐢宠Web鏈嶅姟key scanAuthNavigation: ["https://m-b2b2c.pickmall.cn/"], //鎵爜璁よ瘉璺宠浆鍩熷悕閰嶇疆 浼氭牴鎹澶勯厤缃殑璺敱杩涜璺宠浆 iosAppId: "id1564638363", //AppStore鐨勫簲鐢ㄥ湴鍧�id 鍏蜂綋鍦ㄥ垎浜�->鎷疯礉閾炬帴涓煡鐪� - logo: "https://lilishop-oss.oss-cn-beijing.aliyuncs.com/4c864e133c2944efad1f7282ac8a3b9e.png", //logo鍦板潃 + logo: "https://lmk-1356772813.cos.ap-chengdu.myqcloud.com/MANAGER/undefined/b84d86a47e404d27a46471d8c65722a8.png", //logo鍦板潃 customerServiceMobile: "13161366885", //瀹㈡湇鐢佃瘽 customerServiceEmail: "lili@lili.com", //瀹㈡湇閭 imWebSrc: "https://im.pickmall.cn", //IM鍦板潃 diff --git a/pages/video/home-page.vue b/pages/video/home-page.vue index c00838f..de28ae4 100644 --- a/pages/video/home-page.vue +++ b/pages/video/home-page.vue @@ -74,8 +74,16 @@ v-for="(item, index) in videoList" :key="item.id" > - - <image class="video-cover" @click="playAuthorVideo(index)" :src="item.videoContentType === 'video' ? item.coverUrl : item.imgs[0]" mode="aspectFill"></image> + <image v-if="item.videoContentType === 'img'" class="video-cover" @click="playAuthorVideo(index)" :src="item.imgs[0]" mode="aspectFill"></image> + <!-- <image class="video-cover" @click="playAuthorVideo(index)" :src="item.videoContentType === 'video' ? item.coverUrl : item.imgs[0]" mode="aspectFill"></image> --> + <video v-else :src="item.videoUrl" + :poster-for-crawler='item.coverUrl' + object-fit='"cover"' + :show-fullscreen-btn='false' + :show-play-btn='false' + :show-center-play-btn='false' + :enable-progress-gesture='false' + class="video-cover" @click="playAuthorVideo(index)"></video> <view class="video-info"> <view class="video-stats"> <view class="stat"> -- Gitblit v1.8.0