| @@ -19,11 +19,11 @@ | |||
| <view class='section' wx:for='{{list}}' wx:key="index"> | |||
| <!-- <view class='mms' style='background:{{item.background}}'> --> | |||
| <view class='mms'> | |||
| <view class="gray-bg" style="background-image: url({{item.coverImg}});"></view> | |||
| <view class='mms'> | |||
| <view class="gray-bg" style="background-image: url({{item.coverImg}});"></view> | |||
| <!-- <image class="cover-img" src="{{item.coverImg}}" /> --> | |||
| <view class="cover-img" > </view> | |||
| <image src="{{canTransferred}}" wx-if='{{item.supportTransfer==1&&!item.showImg}}' class='cantransferred' mode="aspectFill" /> | |||
| <view class="cover-img"> </view> | |||
| <image src="{{canTransferred}}" wx-if='{{item.supportTransfer==1&&!item.showImg}}' class='cantransferred' mode="aspectFill" /> | |||
| <view class='detail_msg'> | |||
| <view class='info'> | |||
| <view class='clearfix' data-id='{{item.id}}' data-showImg='{{item.showImg? "0":"1"}}' bindtap='gotoConsumeDetail'> | |||
| @@ -10,7 +10,7 @@ Page({ | |||
| mouldConfig: {}, | |||
| navigationBarHeight, | |||
| data: { | |||
| bgColor:"#fff" | |||
| bgColor: "#fff" | |||
| }, | |||
| wmhome: imgurl.wmhome.url, | |||
| couponId: null, | |||
| @@ -19,30 +19,31 @@ Page({ | |||
| hour: "", | |||
| minute: "", | |||
| nodes: '', | |||
| id:'', | |||
| goHomeUrl:"" | |||
| id: '', | |||
| goHomeUrl: "", | |||
| winHeight: "100%" | |||
| }, | |||
| onLoad(options){ | |||
| onLoad(options) { | |||
| this.setData({ | |||
| mouldType: app.globalData.mouldType, | |||
| mouldConfig: app.globalData.mouldConfig, | |||
| goHomeUrl: app.globalData.goHomeUrl, | |||
| }) | |||
| console.log(options) | |||
| if(options&&options.id){ | |||
| if (options && options.id) { | |||
| this.setData({ | |||
| id:options.id | |||
| id: options.id | |||
| }) | |||
| this.topicShow(options.id) | |||
| } | |||
| }, | |||
| goback: function () { | |||
| goback: function () { | |||
| let this_ = this | |||
| wx.switchTab({ | |||
| url: this_.data.goHomeUrl, | |||
| }) | |||
| }, | |||
| topicShow(id){ | |||
| topicShow(id) { | |||
| let that = this; | |||
| Http.get({ | |||
| url: config.api.topicFindById, | |||
| @@ -51,7 +52,7 @@ Page({ | |||
| } | |||
| }).then(res => { | |||
| console.log(res) | |||
| if (res&&res.data) { | |||
| if (res && res.data) { | |||
| that.setData({ | |||
| data: res.data | |||
| }); | |||
| @@ -65,9 +66,9 @@ Page({ | |||
| query.exec((res) => { | |||
| let listHeight = res[0].height; // 获取list高度 | |||
| let windowHeight = wx.getSystemInfoSync().windowHeight; | |||
| if (windowHeight >= listHeight){ | |||
| if (windowHeight >= listHeight) { | |||
| that.setData({ | |||
| winHeight:'100%' | |||
| winHeight: '100%' | |||
| }) | |||
| } | |||
| }) | |||
| @@ -81,13 +82,13 @@ Page({ | |||
| }); | |||
| }) | |||
| }, | |||
| gotoDetail:function(e){ | |||
| if (e.currentTarget.dataset.type == 9){ | |||
| gotoDetail: function (e) { | |||
| if (e.currentTarget.dataset.type == 9) { | |||
| console.log("平团") | |||
| wx.navigateTo({ | |||
| url: `/pages/spellGroup/mySpellGroup/index?couponChannelId=${e.currentTarget.dataset.couponchannelid}`, | |||
| }) | |||
| }else{ | |||
| } else { | |||
| console.log("优惠卷") | |||
| wx.navigateTo({ | |||
| url: `/pages/coupon/detail/index?couponChannelId=${e.currentTarget.dataset.couponchannelid}&couponId=${e.currentTarget.dataset.couponid}`, | |||
| @@ -14,7 +14,7 @@ | |||
| <text>{{data.content}}</text> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| <view class='contain clearfix'> | |||
| <!-- 优惠券 --> | |||
| @@ -37,11 +37,11 @@ | |||
| </view> | |||
| </view> | |||
| </view> | |||
| <!-- <view class="coupons1-info-name subtitle sy">剩余{{item.remainInventory}}</view> --> | |||
| <!-- <view class="coupons1-info-name subtitle sy">剩余{{item.remainInventory}}</view> --> | |||
| <view class="coupons1-btn"> | |||
| <!-- 优惠券价格 --> | |||
| <i-button class="buy" hover-class='active' wx:if="{{item.salePriceStr==0}}" data-date='{{data}}'>免费领</i-button> | |||
| <i-button class="buy" hover-class='active' wx:if="{{item.salePriceStr==0}}" data-date='{{data}}'>免费领</i-button> | |||
| <i-button class="buy" hover-class='active' wx:elif="{{item.salePriceStr!=0}}" data-date='{{data}}'>马上购</i-button> | |||
| </view> | |||
| <!-- <view class="coupons1-border"></view> --> | |||
| @@ -1,8 +1,13 @@ | |||
| @import "../../app.wxss"; | |||
| page { | |||
| padding: 0; | |||
| } | |||
| .coupons { | |||
| width: 100%; | |||
| position: relative; | |||
| padding-bottom:57rpx; | |||
| padding-bottom: 57rpx; | |||
| } | |||
| .coupons-body { | |||
| @@ -66,7 +71,7 @@ | |||
| letter-spacing: 0; | |||
| line-height: 42rpx; | |||
| margin-bottom: 20rpx; | |||
| text-align: left!important; | |||
| text-align: left !important; | |||
| /* width: 60rpx; */ | |||
| /* height: 64rpx; */ | |||
| } | |||
| @@ -76,7 +81,7 @@ | |||
| /* width: 498rpx; */ | |||
| /* height: 63rpx; */ | |||
| /* overflow: hidden; */ | |||
| word-wrap:break-word; | |||
| word-wrap: break-word; | |||
| /* text-overflow: ellipsis; */ | |||
| font-size: 22rpx; | |||
| color: #6f6f6f; | |||
| @@ -172,14 +177,16 @@ | |||
| width: 344rpx; | |||
| } | |||
| .navigator-hover{ | |||
| opacity: 1!important; | |||
| background: #fff!important; | |||
| border-radius:16rpx; | |||
| .navigator-hover { | |||
| opacity: 1 !important; | |||
| background: #fff !important; | |||
| border-radius: 16rpx; | |||
| } | |||
| .active{ | |||
| .active { | |||
| opacity: .6; | |||
| } | |||
| .navigator:nth-of-type(2n) { | |||
| float: right; | |||
| } | |||
| @@ -311,7 +318,7 @@ | |||
| .buy { | |||
| display: block; | |||
| background: linear-gradient(127deg,rgba(252,177,74,1) 0%,rgba(254,70,20,1) 100%); | |||
| background: linear-gradient(127deg, rgba(252, 177, 74, 1) 0%, rgba(254, 70, 20, 1) 100%); | |||
| border-radius: 30rpx; | |||
| height: 48rpx; | |||
| width: 112rpx; | |||
| @@ -515,7 +522,7 @@ scroll-view { | |||
| width: 90%; | |||
| height: 300rpx; | |||
| margin: 20rpx auto; | |||
| background: brown; | |||
| background: #a52a2a; | |||
| overflow: hidden; | |||
| } | |||
| @@ -530,24 +537,30 @@ scroll-view { | |||
| display: block; | |||
| margin: 30rpx auto; | |||
| } | |||
| .description { | |||
| font-size: 26rpx; | |||
| line-height: 15rpx; | |||
| } | |||
| button::after{ border: none; } | |||
| .goback{ | |||
| button::after { | |||
| border: none; | |||
| } | |||
| .goback { | |||
| position: fixed; | |||
| right: 50rpx; | |||
| bottom: 60rpx; | |||
| width:100rpx!important; | |||
| height:100rpx; | |||
| width: 100rpx !important; | |||
| height: 100rpx; | |||
| z-index: 100; | |||
| background:rgba(255,255,255,1); | |||
| background: rgba(255, 255, 255, 1); | |||
| line-height: 95rpx; | |||
| border:1rpx solid rgba(227,227,227,1); | |||
| border-radius:50%; | |||
| border: 1rpx solid rgba(227, 227, 227, 1); | |||
| border-radius: 50%; | |||
| } | |||
| .goback image{ | |||
| .goback image { | |||
| position: absolute; | |||
| width: 60rpx; | |||
| left: 0; | |||