shish 4 tahun lalu
induk
melakukan
e75c151970

+ 10 - 49
mallApp/src/pages/home/shop.vue

@@ -1,57 +1,34 @@
 <template>
   <view class="app-main app-content">
-    <app-swiper :list="ad" @detail="adDetailFn" />
+    <app-swiper :list="ad" />
     <view class="shop-wrap">
       <view class="shop-tit">{{ shop.shopName }}</view>
       <view>{{ shop.introduction }}</view>
     </view>
     <view class="list-content">
       <tui-list-view class="tui-list-view">
-        <tui-list-cell
-          :lineLeft="false"
-          :lineRight="false"
-          padding="26upx 30upx 26upx 0"
-          class="tui-list"
-        >
+        <tui-list-cell :lineLeft="false" :lineRight="false" class="tui-list" >
           <view class="list-wrap">
             <view class="list-label">营业时间</view>
             <view class="list-val">{{ shop.openTime || '' }}</view>
           </view>
         </tui-list-cell>
-        <tui-list-cell
-          @click="phoneCall"
-          :lineLeft="false"
-          :lineRight="false"
-          padding="26upx 30upx 26upx 0"
-          class="tui-list"
-        >
+        <tui-list-cell @click="phoneCall" :lineLeft="false" :lineRight="false" class="tui-list" >
           <view class="list-wrap">
             <view class="list-label">联系电话</view>
             <view class="list-val">{{ shop.mobile || '' }}</view>
           </view>
           <view class="list-icon">
-            <i
-              class="iconfont iconditu"
-              style="font-size:36upx;"
-            ></i>
+            <i class="iconfont iconditu" style="font-size:36upx;" ></i>
           </view>
         </tui-list-cell>
-        <tui-list-cell
-          @click="goNavBtn"
-          :lineLeft="false"
-          :lineRight="false"
-          padding="26upx 30upx 26upx 0"
-          class="tui-list"
-        >
+        <tui-list-cell @click="goNavBtn" :lineLeft="false" :lineRight="false" class="tui-list" >
           <view class="list-wrap">
             <view class="list-label">门店地址</view>
             <view class="list-val">{{ shop.fullAddress || '' }}</view>
           </view>
           <view class="list-icon">
-            <i
-              class="iconfont icondianhua"
-              style="font-size:36upx;"
-            ></i>
+            <i class="iconfont icondianhua" style="font-size:36upx;" ></i>
           </view>
         </tui-list-cell>
       </tui-list-view>
@@ -60,7 +37,6 @@
     <tab-bar :current="3" ></tab-bar>
   </view>
 </template>
-
 <script>
 import TuiListView from "@/components/plugin/list-view";
 import TuiListCell from "@/components/plugin/list-cell";
@@ -70,9 +46,8 @@ import { getShopUser } from "@/utils/auth";
 import { getShop } from "@/api/common";
 import { share } from "@/mixins";
 export default {
-  name: "category",
+  name: "shop",
   components: {
-    // AppFooter,
     AppSwiper,
     TuiListView,
     TuiListCell,
@@ -84,14 +59,12 @@ export default {
       data: {},
       ad: [],
       shop: {},
-      // 新人领券
       newUserGift: {},
       activeCoupon: false,
       currentTabIndex: 3
     };
   },
-  onLoad (option) {
-    // this.init()
+  onLoad () {
   },
   onShow () {
     uni.hideTabBar();
@@ -133,14 +106,6 @@ export default {
         }
       });
     },
-    // operate
-    adDetailFn (item) {
-      // #ifdef H5
-      location.href = item.url;
-      // #endif
-      // #ifndef H5
-      // #endif
-    },
     phoneCall () {
       uni.makePhoneCall({
         phoneNumber: this.shop.telephone
@@ -164,7 +129,6 @@ export default {
   }
 };
 </script>
-
 <style lang="scss" scoped>
 .shop-wrap {
   padding: 40upx 20upx;
@@ -172,7 +136,7 @@ export default {
   background-color: #fff;
   margin-bottom: 20upx;
   .shop-tit {
-    font-size: 38upx;
+    font-size: 38px;
     color: #333;
     font-weight: 600;
     margin-bottom: 20upx;
@@ -183,8 +147,6 @@ export default {
   .tui-list {
     width: calc(100% - 20upx);
     @include disFlex(center, space-between);
-    // padding-left: 0 !important;
-    margin-left: 20upx;
     .list-wrap {
       width: calc(100% - 40upx);
       @include disFlex(center, flex-start);
@@ -192,7 +154,6 @@ export default {
       .list-label {
         width: 150upx;
         color: #333;
-        // margin-right: 40upx;
       }
       .list-val {
         width: calc(100% - 150upx);
@@ -207,4 +168,4 @@ export default {
     }
   }
 }
-</style>
+</style>

+ 3 - 15
mallApp/src/pages/item/components/app-wrapper-empty.vue

@@ -3,9 +3,8 @@
 		<div class="app-empty-center" :style="{'text-align: center;': !!isEmpty}">
 			<slot v-if="!isEmpty" name="empty_body" />
 			<slot v-if="isEmpty && !isLoading" name="empty_content">
-				<!-- :style="`width:${pictureWidth};`" -->
 				<div class="app-empty__img" :style="{width: pictureWidth}">
-					<img :src="src" mode="widthFix" />
+					<image :src="src" mode="widthFix"></image>
 				</div>
 				<div class="app-empty__title">
 					<template v-if="isTitle">
@@ -18,9 +17,7 @@
 			<slot v-else>
 				<div>
 					<div class="foot-layout" v-if="finished">
-						<!-- <div class='foot-divider'></div> -->
 						<div class="foot-text">{{finishedText}}</div>
-						<!-- <div class='foot-divider'></div> -->
 					</div>
 					<div class="foot-layout" v-if="isLoading">
 						<div class="foot-text">
@@ -38,16 +35,10 @@
 export default {
 	name: 'AppWrapperEmpty',
 	props: {
-		/**
-			 * type()
-			 * search (搜索)
-			 * noData (无数据)
-			 */
 		type: {
 			type: String,
 			default: 'noData'
 		},
-
 		// 图片宽度
 		pictureWidth: {
 			type: String,
@@ -58,12 +49,10 @@ export default {
 			type: String,
 			default: ''
 		},
-
 		title: {
 			type: String,
 			default: '暂无数据'
 		},
-
 		// 是否垂直居中
 		content: {
 			type: String,
@@ -124,9 +113,8 @@ export default {
 			text-align: center;
 			margin: 116upx auto 50upx;
 			& image {
-				width: 500upx;
-				max-width: 100%;
-				height: auto;
+				margin:0 auto;
+				width: 160upx;
 			}
 		}