7.11(优化页面
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
margin-bottom: 32rpx;
|
||||
.view_img {
|
||||
width: 340rpx;
|
||||
height: 184rpx;
|
||||
height: 340rpx;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
.view_txt {
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<swiper-item v-for="(item,index) in couponList3" :key="index">
|
||||
<view id="showimage1" class="swiper-item flex">
|
||||
<image class="swiper-item-image" :src="item.cover" mode="aspectFill"></image>
|
||||
<view class="swiper-item-cont">
|
||||
<view class="swiper-item-cont flex flex-column justify-between">
|
||||
<view class="swiper-item-cont-name">{{item.name}}</view>
|
||||
<view class="swiper-item-cont-num flex justify-between align-center">
|
||||
<view>已助力<text class="cont-num">{{item.helpNum}}人</text></view>
|
||||
@@ -593,24 +593,18 @@
|
||||
font-size: 24rpx;
|
||||
color: #333333;
|
||||
|
||||
.serve-seckill-item {
|
||||
color: #333;
|
||||
font-size: 22rpx;
|
||||
|
||||
// .swiper-item-cont {
|
||||
// width: 34rpx;
|
||||
// height: 34rpx;
|
||||
// font-size: 24rpx;
|
||||
// text-align: center;
|
||||
// line-height: 34rpx;
|
||||
// color: #FF5400;
|
||||
// background: rgba(255, 129, 62, 0.3);
|
||||
// }
|
||||
|
||||
.swiper-item-cont {
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
font-size: 24rpx;
|
||||
text-align: center;
|
||||
line-height: 34rpx;
|
||||
color: #FF5400;
|
||||
background: rgba(255, 129, 62, 0.3);
|
||||
}
|
||||
|
||||
.swiper-item-text {
|
||||
margin: 0 9rpx;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -754,7 +748,7 @@
|
||||
height: 20rpx;
|
||||
background: #FFE5A3;
|
||||
border-radius: 10rpx;
|
||||
margin-top: 16rpx;
|
||||
// margin-top: 16rpx;
|
||||
position: relative;
|
||||
|
||||
.schedule-num {
|
||||
@@ -765,7 +759,7 @@
|
||||
}
|
||||
|
||||
.swiper-item-cont-num {
|
||||
margin-top: 16rpx;
|
||||
// margin-top: 16rpx;
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
|
||||
@@ -775,7 +769,7 @@
|
||||
}
|
||||
|
||||
.swiper-item-cont-down {
|
||||
margin-top: 16rpx;
|
||||
// margin-top: 16rpx;
|
||||
}
|
||||
|
||||
.swiper-item-cont-butt {
|
||||
@@ -787,7 +781,7 @@
|
||||
text-align: center;
|
||||
line-height: 54rpx;
|
||||
border-radius: 27rpx;
|
||||
margin-top: 16rpx;
|
||||
// margin-top: 16rpx;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<u-icon name="arrow-right" color="#666" size="18"></u-icon>
|
||||
</view>
|
||||
<view class="coupons_con">
|
||||
<view class="con_view" v-for="(item,index) in helps " :key="item.id" @click="toMyactivityPages(item)">
|
||||
<view class="con_view" v-for="(item,index) in helps " :key="item.id" @click="toDetails(item,1)">
|
||||
<image class="view_img" :src="item.cover" mode="aspectFill"></image>
|
||||
<view class="view_txt"> {{item.name ? item.name : '--'}} </view>
|
||||
</view>
|
||||
@@ -21,7 +21,7 @@
|
||||
</view>
|
||||
<view class="coupons_con">
|
||||
<view class="con_view" v-for="(item,index) in flashSales " :key="item.id"
|
||||
@click="toMyactivityPages(item)">
|
||||
@click="toDetails(item,2)">
|
||||
<image class="view_img" :src="item.cover" mode="aspectFill"></image>
|
||||
<view class="view_txt"> {{item.name ? item.name : '--'}} </view>
|
||||
</view>
|
||||
@@ -32,8 +32,8 @@
|
||||
</view>
|
||||
<view class="coupons_con">
|
||||
<view class="con_view" v-for="(item,index) in integrals " :key="item.id"
|
||||
@click="toMyactivityPages(item)">
|
||||
<image class="view_img" :src="item.cover" mode="aspectFill"></image>
|
||||
@click="toDetails(item,3)">
|
||||
<image class="view_img" :src="item.image" mode="aspectFill"></image>
|
||||
<view class="view_txt"> {{item.name ? item.name : '--'}} </view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -43,7 +43,7 @@
|
||||
</view>
|
||||
<view class="coupons_con">
|
||||
<view class="con_view" v-for="(item,index) in hotSelling " :key="item.id"
|
||||
@click="toMyactivityPages(item)">
|
||||
@click="toDetails(item,4)">
|
||||
<image class="view_img" :src="item.cover" mode="aspectFill"></image>
|
||||
<view class="view_txt"> {{item.name ? item.name : '--'}} </view>
|
||||
</view>
|
||||
@@ -114,16 +114,27 @@
|
||||
}
|
||||
},
|
||||
// 去活动详情
|
||||
toMyactivityPages(item) {
|
||||
console.log(item, '列表--活动详情');
|
||||
// uni.navigateTo({
|
||||
// url: `/pages/driver/serve/hot_list?type=help&id=${item && item.id}&name=${item && item.name}`
|
||||
// })
|
||||
uni.navigateTo({
|
||||
url: `/pages/driver/mine/my_activity/detail?id=${item.productId}&helpGenre=${item.helpType}&activityId=${item.id}&isMould=${item.isMould}`
|
||||
})
|
||||
toDetails(item,type) {
|
||||
if(type==1){
|
||||
uni.navigateTo({
|
||||
url: `/pages/mine/my_activity/detail?id=${item.productId}&helpGenre=${item.helpType}&activityId=${item.id}&isMould=${item.isMould}`
|
||||
})
|
||||
}else if(type==2){
|
||||
this.$store.dispatch('CardId', item.id)
|
||||
uni.navigateTo({
|
||||
url: `/pages/serve/coupons/cou_detail?id=${item.id}`
|
||||
})
|
||||
}else if(type==3){
|
||||
uni.navigateTo({
|
||||
url: `/pages/welfare/rightsInterests/rightsInterests_particulars?id=${item.id}`
|
||||
})
|
||||
}else{
|
||||
this.$store.dispatch('CardId', item.id)
|
||||
uni.navigateTo({
|
||||
url: `/pages/serve/coupons/cou_detail?id=${item.id}`
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user