首页baocuo

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

@ -111,7 +111,9 @@
style="margin-left:10rpx;" name="arrow-right"></u-icon> style="margin-left:10rpx;" name="arrow-right"></u-icon>
</view> </view>
<view class="dapaiContent" @click="goBigGoods" v-if="dapaiList.length>0"> <view class="dapaiContent" @click="goBigGoods" v-if="dapaiList.length>0">
<view class="dapaiItem" v-for="(item,index) in dapaiList.slice(0,10)" :key="index" <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)"> @click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)">
<view class="picContent"> <view class="picContent">
<image :src="item.goods_image"></image> <image :src="item.goods_image"></image>
@ -124,6 +126,7 @@
{{item.goods_name}} {{item.goods_name}}
</view> </view>
</view> </view>
</template>
</view> </view>
</view> </view>
@ -186,8 +189,8 @@
</view> </view>
<scroll-view scroll-x="true"> <scroll-view scroll-x="true">
<view class="right1Good"> <view class="right1Good">
<view class="right1Item" v-for="(item,index) in xinpinList.slice(0,3)" <template v-for="(item,index) in xinpinList" :key="index">
:key="index" <view class="right1Item" v-if="index<=2"
@click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)"> @click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)">
<image :src="item.goods_image"></image> <image :src="item.goods_image"></image>
<view class="priceBox"> <view class="priceBox">
@ -196,6 +199,7 @@
<view><text></text>{{item.goods_price_min}}</view> <view><text></text>{{item.goods_price_min}}</view>
</view> </view>
</view> </view>
</template>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
@ -207,7 +211,9 @@
<view class="more" @click="rankIng">查看更多<u-icon name="arrow-right"></u-icon> <view class="more" @click="rankIng">查看更多<u-icon name="arrow-right"></u-icon>
</view> </view>
<view class="right1Good"> <view class="right1Good">
<view class="right1Item" v-for="(item,index) in paihangList.slice(0,3)" :key="index" <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)"> @click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)">
<image :src="item.goods_image"></image> <image :src="item.goods_image"></image>
<view class="priceBox"> <view class="priceBox">
@ -215,6 +221,7 @@
<view><text></text>{{item.goods_price_min}}</view> <view><text></text>{{item.goods_price_min}}</view>
</view> </view>
</view> </view>
</template>
</view> </view>
</view> </view>

Loading…
Cancel
Save