Commit d9f34cdf authored by 俞嘉婷's avatar 俞嘉婷

feat: 长图页完善

parent fb0e65ea
...@@ -25,7 +25,7 @@ ComponentWithStore({ ...@@ -25,7 +25,7 @@ ComponentWithStore({
// 跳转活动详情页 // 跳转活动详情页
jumpDetailPage: _asyncThrottle(async function (e) { jumpDetailPage: _asyncThrottle(async function (e) {
const item = e.currentTarget.dataset.item const item = e.currentTarget.dataset.item
wx.navigateTo({ url: `/pages/activityDetail/activityDetail?url=${item.img}` }) wx.navigateTo({ url: `/pages/activityDetail/activityDetail?imgUrl=${item.detailImg}` })
}), }),
onShareAppMessage() { onShareAppMessage() {
......
/* pages/activity/activity.wxss */ /* pages/activity/activity.wxss */
.prod_detail { .prod_detail {
width: 750rpx; width: 100%;
min-height: 100vh; height: 100%;
position: absolute; position: absolute;
overflow-y: auto; overflow-y: auto;
font-size: 0;
.prod_img { .prod_img {
width: 100%; width: 100%;
......
<!-- pages/activityDetail/activityDetail.wxml --> <!-- pages/activityDetail/activityDetail.wxml -->
<view class="prod_detail"> <view class="prod_detail">
<image class="prod_img" src="{{imgUrl}}" mode="aspectFit" lazy-load /> <image class="prod_img" src="{{imgUrl}}" mode="widthFix"/>
</view> </view>
\ No newline at end of file
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