首页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> 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">
@click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)"> <view class="dapaiItem"
<view class="picContent"> v-if="index <= 9"
<image :src="item.goods_image"></image> @click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)">
</view> <view class="picContent">
<view class="priceBox"> <image :src="item.goods_image"></image>
<image :src="$picUrl+'/static/index/price.png'"></image> </view>
<view><text></text>{{item.goods_price_min}}</view> <view class="priceBox">
</view> <image :src="$picUrl+'/static/index/price.png'"></image>
<view class="name"> <view><text></text>{{item.goods_price_min}}</view>
{{item.goods_name}} </view>
<view class="name">
{{item.goods_name}}
</view>
</view> </view>
</view> </template>
</view> </view>
</view> </view>
@ -186,16 +189,17 @@
</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">
<image :src="$picUrl+'/static/index/price.png'" mode="heightFix"> <image :src="$picUrl+'/static/index/price.png'" mode="heightFix">
</image> </image>
<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,14 +211,17 @@
<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">
@click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)"> <view class="right1Item"
<image :src="item.goods_image"></image> v-if="index <=2"
<view class="priceBox"> @click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)">
<image :src="$picUrl+'/static/index/price.png'" mode="heightFix"></image> <image :src="item.goods_image"></image>
<view><text></text>{{item.goods_price_min}}</view> <view class="priceBox">
<image :src="$picUrl+'/static/index/price.png'" mode="heightFix"></image>
<view><text></text>{{item.goods_price_min}}</view>
</view>
</view> </view>
</view> </template>
</view> </view>
</view> </view>

Loading…
Cancel
Save