|
@ -5,10 +5,11 @@ |
|
|
<view class="main-container"> |
|
|
<view class="main-container"> |
|
|
<image class="title-image" src="https://static.ticket.sz-trip.com/uploads/20250903/0962fc4e972a669f83e97a5a126b2f53.png"></image> |
|
|
<image class="title-image" src="https://static.ticket.sz-trip.com/uploads/20250903/0962fc4e972a669f83e97a5a126b2f53.png"></image> |
|
|
<view class="coupon-box"> |
|
|
<view class="coupon-box"> |
|
|
<view class="flex-between" style="flex-wrap: wrap;margin-top: 26rpx;"> |
|
|
<view class="flex-between"> |
|
|
<image class="coupon-img" v-for="(item,i) in couponList" :key="i" |
|
|
<image class="coupon-img" v-for="(item,i) in couponList" :key="i" |
|
|
:src="item.img" @click="getCoupon(item)" mode="aspectFill"></image> |
|
|
:src="item.img" @click="getCoupon(item)" mode="aspectFill"></image> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<view class="rule" @click="goRule(3)">活动规则</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -44,10 +45,8 @@ |
|
|
viewNum: 4, |
|
|
viewNum: 4, |
|
|
headImg: '', |
|
|
headImg: '', |
|
|
couponList: [ |
|
|
couponList: [ |
|
|
{id: null, img: "https://static.ticket.sz-trip.com/uploads/20250903/ecbb6d745d444fa838649e67b9901ac8.png"}, |
|
|
{id: null, img: "https://static.ticket.sz-trip.com/uploads/20250904/6bb90a456a4800a99df91b97197fbc76.png"}, |
|
|
{id: null, img: "https://static.ticket.sz-trip.com/uploads/20250903/0d0e31d8cc6b3eef8fa83016b9dd93dd.png"}, |
|
|
{id: null, img: "https://static.ticket.sz-trip.com/uploads/20250904/a20709036f31e6979c9ae84c543a8538.png"}, |
|
|
{id: null, img: "https://static.ticket.sz-trip.com/uploads/20250903/7762e7eea2e005d8c16587f7065e6d3e.png"}, |
|
|
|
|
|
{id: null, img: "https://static.ticket.sz-trip.com/uploads/20250903/fcd19b70b45f80509b0363ef72902974.png"}, |
|
|
|
|
|
], |
|
|
], |
|
|
isReceive: true, |
|
|
isReceive: true, |
|
|
|
|
|
|
|
@ -75,15 +74,27 @@ |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
goRule (id) { |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url:"/subPackages/activity/commonRule?id="+id |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// 产品列表 |
|
|
// 产品列表 |
|
|
getGoods() { |
|
|
getGoods() { |
|
|
|
|
|
// 太慢了 先请求5条 |
|
|
this.Post({ |
|
|
this.Post({ |
|
|
tag_id: 101, |
|
|
tag_id: 101, |
|
|
offset: 0, |
|
|
offset: 0, |
|
|
limit: 999, |
|
|
limit: 5, |
|
|
},'/api/product/get_product_by_tag_subject').then(res => { |
|
|
},'/api/product/get_product_by_tag_subject').then(res => { |
|
|
this.list = res.data.list |
|
|
this.list = res.data.list |
|
|
|
|
|
this.Post({ |
|
|
|
|
|
tag_id: 101,offset: 0, |
|
|
|
|
|
limit: 999,noShowLoading: true, |
|
|
|
|
|
},'/api/product/get_product_by_tag_subject').then(res => { |
|
|
|
|
|
this.list = res.data.list |
|
|
|
|
|
}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
@ -150,12 +161,29 @@ |
|
|
display: block; |
|
|
display: block; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
.rule{ |
|
|
|
|
|
width: 109rpx; |
|
|
|
|
|
height: 41rpx; |
|
|
|
|
|
background: #319F56; |
|
|
|
|
|
border-radius: 7rpx 0rpx 0rpx 7rpx; |
|
|
|
|
|
font-weight: 600; |
|
|
|
|
|
font-size: 24rpx; |
|
|
|
|
|
color: #FFFFFF; |
|
|
|
|
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
top: 20rpx; |
|
|
|
|
|
right: 0; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
line-height: 41rpx; |
|
|
|
|
|
} |
|
|
.coupon-box{ |
|
|
.coupon-box{ |
|
|
height: 466rpx; |
|
|
height: 293rpx; |
|
|
background: #F4FFFE; |
|
|
background: #F4FFFE; |
|
|
border-radius:0 0 25rpx 25rpx; |
|
|
border-radius:0 0 25rpx 25rpx; |
|
|
position: relative; |
|
|
position: relative; |
|
|
padding: 40rpx 26rpx 0; |
|
|
padding: 80rpx 26rpx 0; |
|
|
overflow: hidden; |
|
|
overflow: hidden; |
|
|
margin-bottom: 44rpx; |
|
|
margin-bottom: 44rpx; |
|
|
|
|
|
|
|
|