liujd 6 yıl önce
ebeveyn
işleme
3e5745dc52

+ 4 - 2
mobile-code/src/pages/home/category.vue

@@ -11,7 +11,7 @@
 				<div class="page-view" v-if="!$util.isEmpty(list.data)">
 					<div class="goods-list" v-for="(item, index) in list.data" :key="index" @click="$util.pageTo(`/pages/goods/detail?id=${item.id}`)">
 						<div class="img-blo">
-							<img :src="item.imgList[0].middle" alt="商品图" mode="center" />
+							<app-img :src="item.smallImgList[0]" alt="商品图" mode="aspectFit" :height="200" />
 						</div>
 						<div class="goods-det">
 							<div class="goods-det-top">
@@ -32,13 +32,15 @@
 </template>
 
 <script>
+import AppImg from '@/components/app-img'
 import AppWrapperEmpty from '@/components/app-wrapper-empty'
 import { getClass, getList } from '@/api/category'
 import { list } from '@/mixins'
 export default {
 	name: 'category',
 	components: {
-		AppWrapperEmpty
+		AppWrapperEmpty,
+		AppImg
 	},
 	mixins: [list],
 	data() {

+ 1 - 1
mobile-code/src/pages/home/shop.vue

@@ -6,7 +6,7 @@
 			<div>{{ shop.introduction }}</div>
 		</div>
 		<div class="list-content">
-			<tui-list-view title class="tui-list-view">
+			<tui-list-view class="tui-list-view">
 				<tui-list-cell :lineLeft="false" :lineRight="false" class="tui-list">
 					<div class="list-wrap">
 						<div class="list-label">营业时间</div>