首页baocuo

version/0412
syt 9 months ago
parent 65140af1df
commit c270921c25
  1. 63
      pages/index/index.vue

@ -111,19 +111,22 @@
style="margin-left:10rpx;" name="arrow-right"></u-icon>
</view>
<view class="dapaiContent" @click="goBigGoods" v-if="dapaiList.length>0">
<view class="dapaiItem" v-for="(item,index) in dapaiList.slice(0,10)" :key="index"
@click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)">
<view class="picContent">
<image :src="item.goods_image"></image>
</view>
<view class="priceBox">
<image :src="$picUrl+'/static/index/price.png'"></image>
<view><text></text>{{item.goods_price_min}}</view>
</view>
<view class="name">
{{item.goods_name}}
<template v-for="(item,index) in dapaiList" :key="index">
<view class="dapaiItem"
v-if="index <= 9"
@click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)">
<view class="picContent">
<image :src="item.goods_image"></image>
</view>
<view class="priceBox">
<image :src="$picUrl+'/static/index/price.png'"></image>
<view><text></text>{{item.goods_price_min}}</view>
</view>
<view class="name">
{{item.goods_name}}
</view>
</view>
</view>
</template>
</view>
</view>
@ -186,16 +189,17 @@
</view>
<scroll-view scroll-x="true">
<view class="right1Good">
<view class="right1Item" v-for="(item,index) in xinpinList.slice(0,3)"
:key="index"
@click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)">
<image :src="item.goods_image"></image>
<view class="priceBox">
<image :src="$picUrl+'/static/index/price.png'" mode="heightFix">
</image>
<view><text></text>{{item.goods_price_min}}</view>
<template v-for="(item,index) in xinpinList" :key="index">
<view class="right1Item" v-if="index<=2"
@click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)">
<image :src="item.goods_image"></image>
<view class="priceBox">
<image :src="$picUrl+'/static/index/price.png'" mode="heightFix">
</image>
<view><text></text>{{item.goods_price_min}}</view>
</view>
</view>
</view>
</template>
</view>
</scroll-view>
</view>
@ -207,14 +211,17 @@
<view class="more" @click="rankIng">查看更多<u-icon name="arrow-right"></u-icon>
</view>
<view class="right1Good">
<view class="right1Item" v-for="(item,index) in paihangList.slice(0,3)" :key="index"
@click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)">
<image :src="item.goods_image"></image>
<view class="priceBox">
<image :src="$picUrl+'/static/index/price.png'" mode="heightFix"></image>
<view><text></text>{{item.goods_price_min}}</view>
<template v-for="(item,index) in paihangList" :key="index">
<view class="right1Item"
v-if="index <=2"
@click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)">
<image :src="item.goods_image"></image>
<view class="priceBox">
<image :src="$picUrl+'/static/index/price.png'" mode="heightFix"></image>
<view><text></text>{{item.goods_price_min}}</view>
</view>
</view>
</view>
</template>
</view>
</view>

Loading…
Cancel
Save