Commit 06923184 authored by 杨硕's avatar 杨硕

修改首页

parents 4abf8815 a3e12871
......@@ -30,6 +30,27 @@
<view class="gl-price">{{formatPrice(item.price)}}</view>
</view>
</view>
<view>
<u-tabs :list="navList" :is-scroll="false" :current="activeNav" @change="changeNav"></u-tabs>
<u-row gutter="16">
<u-col style="padding:0px;" v-for="(topic,index) in topicList" :key="index" :span="(index+3)%3===0?6:3">
<u-image width="100%" height="180rpx" :src="topic.img" @click="toTopic(topic.id)"></u-image>
</u-col>
</u-row>
<view>
<view class="gl-title">热门推荐</view>
<view class="gl-body">
<u-row v-for="(item,index) in hotList" :key="index">
<u-col :span="4" class="gl-img">
<u-image width="170rpx" height="170rpx" :src="item.img" @click="toDetail(item.id)"></u-image>
</u-col>
<u-col :span="8" @click="toDetail(item.id)">
<view class="gl-name">{{item.name}}</view>
<view class="gl-descript">{{item.descript}}</view>
<view class="gl-price">{{formatPrice(item.price)}}</view>
</u-col>
</u-row>
</view>
</view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment