|
@@ -5,19 +5,19 @@
|
|
|
</view>
|
|
|
<view>
|
|
|
<swiper class="swiper" :indicator-dots="false" :autoplay="true" :interval="3000" :duration="500">
|
|
|
- <swiper-item>
|
|
|
- <cover-image class="" v-for="(item,index) in advertList" :key="index" :src="item.imgPath"></cover-image>
|
|
|
+ <swiper-item v-for="(item,index) in advertList" :key="index">
|
|
|
+ <cover-image :src="item.imgPath"></cover-image>
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
|
</view>
|
|
|
<view class="entrance">
|
|
|
- <view class="entrance-col" @click="goToGoodList(null, 1)">
|
|
|
+ <view class="entrance-col" @click="goToGoodList(null, 3)">
|
|
|
<view class="entrance-button caizhai">自助采摘</view>
|
|
|
</view>
|
|
|
- <view class="entrance-col" @click="goToGoodList(null, 2)">
|
|
|
+ <view class="entrance-col" @click="goToGoodList(null, 4)">
|
|
|
<view class="entrance-button zhongzhi">共享种植</view>
|
|
|
</view>
|
|
|
- <view class="entrance-col" @click="goToGoodList(null, 3)">
|
|
|
+ <view class="entrance-col" @click="goToGoodList(null, 2)">
|
|
|
<view class="entrance-button paimai">拍 卖</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -49,7 +49,7 @@
|
|
|
<view class="title-text">今日特惠</view>
|
|
|
<view class="title-tip">精品特价,限量抢购</view>
|
|
|
</view>
|
|
|
- <view class="content-box" style="display: flex;justify-content: space-between;">
|
|
|
+ <view class="content-box" style="width: calc(100% - 24px);margin-left: 12px; display: flex;justify-content: space-between;">
|
|
|
<view class="discount-col" v-for="(item,index) in discountList" :key="index" @click="goToGoodDetails(item)">
|
|
|
<cover-image class="discount-img" :src="item.imgPath"></cover-image>
|
|
|
<view class="discount-name">{{item.productName}}</view>
|
|
@@ -60,7 +60,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="index-title">
|
|
|
+ <view class="index-title" style="margin-bottom: 4px;">
|
|
|
<view class="title-text">猜你喜欢</view>
|
|
|
</view>
|
|
|
<scroll-view class="content-box" scroll-y="true" refresher-enabled="true" :refresher-triggered="triggered"
|
|
@@ -74,6 +74,7 @@
|
|
|
<text class="sale-icon">¥</text>
|
|
|
<text class="sale-price">{{item.bizPrice}}</text>
|
|
|
<text class="price">原价:{{item.originalPrice}}</text>
|
|
|
+ <text class="iconfont icongengduo"></text>
|
|
|
</text>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -95,7 +96,7 @@
|
|
|
goodsList: [],
|
|
|
}
|
|
|
},
|
|
|
- onLoad(options) {
|
|
|
+ onLoad() {
|
|
|
// this.appLoginWx()
|
|
|
NET.request(API.getAdvert, {}, 'GET').then(res => {
|
|
|
if (res.code == 0) {
|
|
@@ -223,15 +224,9 @@
|
|
|
},
|
|
|
// 跳转商品列表
|
|
|
goToGoodList(data, type) {
|
|
|
- if (type) {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pagesGood/goodList?goodType=' + type
|
|
|
- });
|
|
|
- } else {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pagesGood/goodList?goodName=' + data.value + '&goodType=0'
|
|
|
- });
|
|
|
- }
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pagesGood/goodList?goodType=' + (type ? type : (1 + '&goodName=' + data.value))
|
|
|
+ });
|
|
|
},
|
|
|
// 跳转商品详情
|
|
|
goToGoodDetails(item) {
|
|
@@ -246,7 +241,7 @@
|
|
|
<style lang="less" scoped>
|
|
|
.container {
|
|
|
background-size: 128px 124px;
|
|
|
- background-position: center;
|
|
|
+ background-position: center 510px;
|
|
|
background-repeat: no-repeat;
|
|
|
background-image: url(@/static/images/indexBg.png);
|
|
|
|
|
@@ -318,19 +313,20 @@
|
|
|
width: calc(100% - 24px);
|
|
|
border-left: 1px solid #6CA63A;
|
|
|
padding: 2px 0 2px 5px;
|
|
|
- margin: 15px 12px 8px 12px;
|
|
|
+ margin: 15px 12px 10px 12px;
|
|
|
|
|
|
.title-text {
|
|
|
- height: 16px;
|
|
|
- line-height: 16px;
|
|
|
+ height: 20px;
|
|
|
+ margin-bottom: 2px;
|
|
|
+ line-height: 20px;
|
|
|
font-size: 15px;
|
|
|
font-family: PingFang SC;
|
|
|
color: #6CA63A;
|
|
|
}
|
|
|
|
|
|
.title-tip {
|
|
|
- height: 12px;
|
|
|
- line-height: 12px;
|
|
|
+ height: 14px;
|
|
|
+ line-height: 14px;
|
|
|
font-size: 12px;
|
|
|
font-family: PingFang SC;
|
|
|
color: #666666;
|
|
@@ -338,8 +334,7 @@
|
|
|
}
|
|
|
|
|
|
.content-box {
|
|
|
- width: calc(100% - 24px);
|
|
|
- margin: 0 12px;
|
|
|
+ width: 100%;
|
|
|
|
|
|
.discount-col {
|
|
|
width: calc(50% - 6px);
|
|
@@ -351,7 +346,7 @@
|
|
|
|
|
|
.discount-img {
|
|
|
height: 170px;
|
|
|
- object-fit: co;
|
|
|
+ object-fit: cover;
|
|
|
}
|
|
|
|
|
|
.discount-name {
|
|
@@ -359,7 +354,6 @@
|
|
|
margin: 7px 6px 10px 6px;
|
|
|
font-size: 12px;
|
|
|
font-family: PingFang SC;
|
|
|
- font-weight: 400;
|
|
|
color: #343434;
|
|
|
line-height: 14px;
|
|
|
}
|
|
@@ -394,10 +388,11 @@
|
|
|
}
|
|
|
|
|
|
.goods-row {
|
|
|
+ width: calc(100% - 24px);
|
|
|
height: 104px;
|
|
|
- margin-bottom: 12px;
|
|
|
+ margin: 6px 0 12px 12px;
|
|
|
background: #FFFFFF;
|
|
|
- box-shadow: 0px 2px 19px 0px rgba(0, 0, 0, 0.09);
|
|
|
+ box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.09);
|
|
|
border-radius: 5px;
|
|
|
overflow: hidden;
|
|
|
display: flex;
|
|
@@ -410,15 +405,15 @@
|
|
|
|
|
|
.goods-info {
|
|
|
width: calc(100% - 104px);
|
|
|
- padding: 10px 10px 10px 16px;
|
|
|
+ padding: 10px 10px 10px 12px;
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
.goods-name {
|
|
|
- height: 30px;
|
|
|
+ height: 36px;
|
|
|
font-size: 15px;
|
|
|
font-family: PingFang SC;
|
|
|
color: #333333;
|
|
|
- line-height: 15px;
|
|
|
+ line-height: 18px;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
display: -webkit-box;
|
|
@@ -433,7 +428,7 @@
|
|
|
font-family: PingFang SC;
|
|
|
color: #666666;
|
|
|
line-height: 16px;
|
|
|
- margin: 8px 0;
|
|
|
+ margin: 6px 0 4px 0;
|
|
|
}
|
|
|
|
|
|
.goods-price {
|
|
@@ -444,10 +439,11 @@
|
|
|
.sale-icon {
|
|
|
font-size: 12px;
|
|
|
color: #6CA63A;
|
|
|
+ margin-left: -2px;
|
|
|
}
|
|
|
|
|
|
.sale-price {
|
|
|
- font-size: 24px;
|
|
|
+ font-size: 22px;
|
|
|
color: #6CA63A;
|
|
|
margin-right: 6px;
|
|
|
}
|
|
@@ -457,12 +453,20 @@
|
|
|
text-decoration: line-through;
|
|
|
color: #A67954;
|
|
|
}
|
|
|
+ .iconfont{
|
|
|
+ float: right;
|
|
|
+ color: #999999;
|
|
|
+ font-size: 32px;
|
|
|
+ line-height: 28px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.video-box {
|
|
|
+ width: calc(100% - 24px);
|
|
|
+ margin-left: 12px;
|
|
|
box-sizing: border-box;
|
|
|
background: #FFFFFF;
|
|
|
box-shadow: 1px 2px 19px 0px rgba(0, 0, 0, 0.09);
|