Browse Source

首页数据格式改变/商品详情优化

test
Enzo 5 years ago
parent
commit
ccc3ad4209
  1. 2
      pages/goodsDetail/index.vue
  2. 10
      pages/index/index.vue

2
pages/goodsDetail/index.vue

@ -48,7 +48,7 @@
</view>
</view> -->
<!-- 商品详情 -->
<view class="goods-detail">
<view class="goods-detail" v-if="goods_detail.know">
<view class="lf-font-32 lf-font-bold lf-m-b-20">旅游须知</view>
<rich-text :nodes="formatRichText(goods_detail.know)"></rich-text>
<!-- <image class="goods-img" :src="item" v-for="(item, index) in goods_detail.content" :key="index" v-if="goods_detail.content_type == 'img'"></image> -->

10
pages/index/index.vue

@ -51,25 +51,25 @@
<view class="recomm lf-m-t-20 lf-m-b-30">
<view class="lf-row-between">
<view class="max-recomm-img" @click="$url('/pages/goodsDetail/index?goods_id='+hot_list[0].id)">
<image :src="hot_list[0].product.picture" class="lf-w-100 lf-h-100"></image>
<image :src="hot_list[0].picture" class="lf-w-100 lf-h-100"></image>
<view class="recomm-title">
<view class="lf-line-2 lf-m-b-10">{{hot_list[0].product.title}}</view>
<view class="lf-line-2 lf-m-b-10">{{hot_list[0].title}}</view>
<lf-price :price="hot_number" v-if="hot_number"></lf-price>
<!-- <view class="lf-font-42 lf-font-bold lf-m-t-10" style="color: #FF0000;">3999.00</view> -->
</view>
</view>
<view>
<view class="recomm-img" @click="$url('/pages/goodsDetail/index?goods_id='+hot_list[1].id)">
<image :src="hot_list[1].product.picture" class="lf-w-100 lf-h-100"></image>
<image :src="hot_list[1].picture" class="lf-w-100 lf-h-100"></image>
</view>
<view class="recomm-img lf-m-t-10" @click="$url('/pages/goodsDetail/index?goods_id='+hot_list[2].id)">
<image :src="hot_list[2].product.picture" class="lf-w-100 lf-h-100"></image>
<image :src="hot_list[2].picture" class="lf-w-100 lf-h-100"></image>
</view>
</view>
</view>
<view class="lf-row-between lf-m-t-10">
<view class="recomm-img" @click="$url('/pages/goodsDetail/index?goods_id='+item.id)" :key="index" v-for="(item,index) of hot_list" v-if="index>2">
<image :src="item.product.picture" class="lf-w-100 lf-h-100"></image>
<image :src="item.picture" class="lf-w-100 lf-h-100"></image>
</view>
</view>
</view>

Loading…
Cancel
Save