|
@@ -20,33 +20,33 @@
|
|
|
</swiper>
|
|
|
<!-- 轮播图 end -->
|
|
|
<!-- 积分 -->
|
|
|
-
|
|
|
- <view class="common-wrap" v-if="list.length > 0">
|
|
|
- <view class="tit">
|
|
|
- <view class="cate">
|
|
|
- 特惠折扣 <text>限量抢购</text>
|
|
|
- </view>
|
|
|
- <view class="more" @click="navto('/pages/index/yuyue?state=1')">
|
|
|
- 查看更多<image src="../../static/index/in-go.png" mode=""></image>
|
|
|
- </view>
|
|
|
+
|
|
|
+ <view class="common-wrap" v-if="list.length > 0">
|
|
|
+ <view class="tit">
|
|
|
+ <view class="cate">
|
|
|
+ 特惠折扣 <text>限量抢购</text>
|
|
|
</view>
|
|
|
- <view class="goods-wrap flex-start">
|
|
|
- <view class="goods" v-for="good in list"
|
|
|
- @click="navto('/pages/product/product?id=' + good.id)">
|
|
|
- <image :src="good.image" mode="" class="goods-img"></image>
|
|
|
- <view class="goods-tit clamp">
|
|
|
- {{good.store_name}}
|
|
|
- </view>
|
|
|
- <view class="goods-price" >
|
|
|
- <text class="new-price">
|
|
|
- <text class="rmb">¥</text>{{good.price*1}}
|
|
|
- </text>
|
|
|
- </view>
|
|
|
+ <view class="more" @click="navto('/pages/index/yuyue?state=1')">
|
|
|
+ 查看更多<image src="../../static/index/in-go.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="goods-wrap flex-start">
|
|
|
+ <view class="goods" v-for="good in list" @click="navto('/pages/product/product?id=' + good.id)">
|
|
|
+ <image :src="good.image" mode="" class="goods-img"></image>
|
|
|
+ <view class="goods-tit clamp2">
|
|
|
+ {{good.store_name}}
|
|
|
+ </view>
|
|
|
+ <view class="goods-price">
|
|
|
+ <text class="new-price">
|
|
|
+ <text class="rmb">¥</text>{{good.price*1}}
|
|
|
+ </text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ </view>
|
|
|
<view class="in-banner">
|
|
|
- <image v-for="item in inBanner" :src="'../../static/img/in-b'+item.state + '.png'" mode="widthFix" @click="navto('/pages/index/yuyue?state=' + item.state)"></image>
|
|
|
+ <image v-for="item in inBanner" :src="'../../static/img/in-b'+item.state + '.png'" mode="widthFix"
|
|
|
+ @click="navto('/pages/index/yuyue?state=' + item.state)"></image>
|
|
|
</view>
|
|
|
<view class="in-btm">
|
|
|
<image src="../../static/img/in-ed.png" mode=""></image>
|
|
@@ -89,11 +89,11 @@
|
|
|
// tit: '洗衣'
|
|
|
// },
|
|
|
{
|
|
|
- state:2,
|
|
|
+ state: 2,
|
|
|
tit: '家政'
|
|
|
},
|
|
|
{
|
|
|
- state:3,
|
|
|
+ state: 3,
|
|
|
tit: '维修'
|
|
|
}
|
|
|
],
|
|
@@ -210,27 +210,27 @@
|
|
|
onHide() {},
|
|
|
methods: {
|
|
|
swiperChange() {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
showW() {
|
|
|
// if(this.cateList.length > 4 && )
|
|
|
- if(this.cateList.length < 4) {
|
|
|
+ if (this.cateList.length < 4) {
|
|
|
return '33.3%'
|
|
|
- }else if(this.cateList.length >=4 && this.cateList.length % 4 == 0 ) {
|
|
|
+ } else if (this.cateList.length >= 4 && this.cateList.length % 4 == 0) {
|
|
|
console.log('zhe25')
|
|
|
return '25%'
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
console.log('zhe20')
|
|
|
return '20%'
|
|
|
}
|
|
|
},
|
|
|
getProducts() {
|
|
|
getProducts({
|
|
|
- is_housekeeping:0,
|
|
|
- is_maintenance:0
|
|
|
+ is_housekeeping: 0,
|
|
|
+ is_maintenance: 0
|
|
|
}).then(res => {
|
|
|
this.list = res.data
|
|
|
- console.log(this.cunList,'cunList')
|
|
|
+ console.log(this.cunList, 'cunList')
|
|
|
})
|
|
|
//
|
|
|
getProducts({
|
|
@@ -318,20 +318,20 @@
|
|
|
})
|
|
|
}
|
|
|
} else {
|
|
|
-
|
|
|
+
|
|
|
// #ifdef MP-WEIXIN
|
|
|
// if(url)
|
|
|
- if(url.charAt(0)=='#') {
|
|
|
+ if (url.charAt(0) == '#') {
|
|
|
return wx.navigateToMiniProgram({
|
|
|
- shortLink:url,
|
|
|
- //develop开发版;trial体验版;release正式版
|
|
|
- envVersion: 'release',
|
|
|
- success(res) {
|
|
|
- // 打开成功
|
|
|
- console.log("跳转小程序成功!",res);
|
|
|
- }
|
|
|
- })
|
|
|
- }else {
|
|
|
+ shortLink: url,
|
|
|
+ //develop开发版;trial体验版;release正式版
|
|
|
+ envVersion: 'release',
|
|
|
+ success(res) {
|
|
|
+ // 打开成功
|
|
|
+ console.log("跳转小程序成功!", res);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
uni.navigateTo({
|
|
|
url,
|
|
|
fail() {
|
|
@@ -873,10 +873,12 @@
|
|
|
padding-left: 10rpx;
|
|
|
position: relative;
|
|
|
z-index: 2;
|
|
|
+
|
|
|
text {
|
|
|
font-size: 24rpx;
|
|
|
padding-left: 10rpx;
|
|
|
}
|
|
|
+
|
|
|
&::before {
|
|
|
z-index: 1;
|
|
|
content: '';
|
|
@@ -924,6 +926,7 @@
|
|
|
}
|
|
|
|
|
|
.goods-tit {
|
|
|
+ height: 100rpx;
|
|
|
font-size: 26rpx;
|
|
|
font-weight: 500;
|
|
|
padding: 15rpx 0 8rpx;
|
|
@@ -965,19 +968,23 @@
|
|
|
.rmb {
|
|
|
font-size: 24rpx;
|
|
|
}
|
|
|
+
|
|
|
.in-banner {
|
|
|
background-color: #ffffff;
|
|
|
padding: 20rpx 0;
|
|
|
+
|
|
|
image {
|
|
|
width: 704rpx;
|
|
|
// height: ;
|
|
|
display: block;
|
|
|
- margin:20rpx auto;
|
|
|
+ margin: 20rpx auto;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.in-btm {
|
|
|
padding-bottom: 30rpx;
|
|
|
background-color: #fff;
|
|
|
+
|
|
|
image {
|
|
|
width: 700rpx;
|
|
|
height: 141rpx;
|