소스 검색

门店图片补充

xiaohaizhao 1 년 전
부모
커밋
8eaff1a8be
2개의 변경된 파일15개의 추가작업 그리고 6개의 파일을 삭제
  1. 7 5
      components/storeInfo.vue
  2. 8 1
      pages/index/index/index.vue

+ 7 - 5
components/storeInfo.vue

@@ -7,11 +7,13 @@
             {{ title }}
         </view>
         <view class="content">
-            <u--image width="60" height="62" radius="8" :src="detail.cover" lazy-load>
-                <template v-slot:loading>
-                    <u-loading-icon color="red"></u-loading-icon>
-                </template>
-            </u--image>
+            <view style="flex-shrink: 0;">
+                <u--image width="60" height="62" radius="8" :src="detail.cover" lazy-load>
+                    <template v-slot:loading>
+                        <u-loading-icon color="red"></u-loading-icon>
+                    </template>
+                </u--image>
+            </view>
             <view class="text-box" hover-class="navigator-hover" @click="goAtOnce(detail)">
                 <view class="storename u-line-1" :style="{ width: detail.phoneNumber ? '230px' : '100%' }">
                     {{ detail.storename }}

+ 8 - 1
pages/index/index/index.vue

@@ -13,7 +13,9 @@
         <apps ref="apps" />
 
         <view class="shop" v-if="shopDetail.storename">
-            <view class="head">
+            <u-image v-if="shopDetail.cover" :src="shopDetail.cover" @click="previewImg(shopDetail.cover)" :lazy-load="true"
+                :width="tovw(335)" :height="tovw(134)" radius="8" />
+            <view class="head" :style="{ marginTop: shopDetail.cover ? tovw(10) : '' }">
                 <view class="text">
                     当前服务导购
                 </view>
@@ -91,6 +93,7 @@
 </template>
 
 <script>
+import { viewImage } from "../../../utils/settleFiles"
 import contact from "../../../components/contact"
 import apps from "./modules/apps"
 export default {
@@ -137,6 +140,9 @@ export default {
                 callBack()
             }, 5000);
         },
+        previewImg(url) {
+            viewImage(url)
+        },
         changeStore(item) {
             this.shopDetail = item;
             this.showShopOtions = false;
@@ -146,6 +152,7 @@ export default {
                 this.getLocationLoading = true;
                 this.getLocation().then(s => {
                     console.log("获取地理位置信息", s)
+                    //"sa storeid":3
                     this.$Http.basic({
                         "id": 20240416153202,
                         "content": {