|
|
|
@ -26,15 +26,14 @@ |
|
|
|
|
<view class="tab-bar-placeholder"> |
|
|
|
|
<view class="flex tab-content"> |
|
|
|
|
<view :data-idx="index" class="tab-item" v-for="(item, index) in categoryList" :key="item.id" @click="handleCateClick(item)"> |
|
|
|
|
<image :src="item.pic" mode="aspectFill"></image> |
|
|
|
|
<image v-if="item.id > 0" :src="item.pic" mode="aspectFill"></image> |
|
|
|
|
<image v-else :src="getImgPath('/static/frontend/more.png')" mode="aspectFill"></image> |
|
|
|
|
<view>{{ item.name }}</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- 广告 --> |
|
|
|
|
<view class="advert"> |
|
|
|
|
<image :src="advertList[0].banner" mode="aspectFill"></image> |
|
|
|
|
</view> |
|
|
|
|
<advert /> |
|
|
|
|
<view class="goods-section"> |
|
|
|
|
<view class="goods-title">精品推荐</view> |
|
|
|
|
<view class="list"> |
|
|
|
@ -74,12 +73,14 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { getGoodsCateList, getGoodsList, getRecommendGoodsList, getIndexData } from "@/api/store"; |
|
|
|
|
import { getGoodsCateList, getGoodsList, getRecommendGoodsList, getIndexData } from "@/api/store"; |
|
|
|
|
import RecommendPoster from "@/components/RecommendPoster/index.vue"; |
|
|
|
|
import Advert from '@/components/Advert/index.vue'; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
components: { |
|
|
|
|
RecommendPoster, |
|
|
|
|
Advert, |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
const systemInfo = this.$util.getSystemInfo(); |
|
|
|
|