| @@ -13,6 +13,7 @@ Page({ | |||||
| */ | */ | ||||
| onLoad: function (options) { | onLoad: function (options) { | ||||
| let that = this; | let that = this; | ||||
| console.log(options); | |||||
| that.setData({ | that.setData({ | ||||
| detail:options.detail | detail:options.detail | ||||
| }) | }) | ||||
| @@ -33,6 +33,8 @@ Page({ | |||||
| }, | }, | ||||
| gotoactdetail:function(){ | gotoactdetail:function(){ | ||||
| let that = this; | let that = this; | ||||
| console.log(that.data.data.detail) | |||||
| wx.navigateTo({ | wx.navigateTo({ | ||||
| url: `/pages/actdetail/actdetail?detail=${that.data.data.detail}`, | url: `/pages/actdetail/actdetail?detail=${that.data.data.detail}`, | ||||
| }) | }) | ||||
| @@ -5,13 +5,13 @@ | |||||
| <image src='{{data.coverImg}}'></image> | <image src='{{data.coverImg}}'></image> | ||||
| </view> | </view> | ||||
| <!-- <image class="orbg" src='./../../assets/img/orbg.png' mode="widthFix"></image> --> | <!-- <image class="orbg" src='./../../assets/img/orbg.png' mode="widthFix"></image> --> | ||||
| <view class='act' bindtap='gotoactdetail'> | |||||
| <view class='act'> | |||||
| <text class='txt001'>{{data.title}}</text> | <text class='txt001'>{{data.title}}</text> | ||||
| <text class='txt002'>{{data.subTitle}}</text> | <text class='txt002'>{{data.subTitle}}</text> | ||||
| <view class="proct"> | <view class="proct"> | ||||
| <text>活动说明</text> | <text>活动说明</text> | ||||
| <text>{{data.detail}}</text> | <text>{{data.detail}}</text> | ||||
| <image class="jian" src='../../assets/img/jian.png' mode="widthFix"></image> | |||||
| <!-- <image class="jian" src='../../assets/img/jian.png' mode="widthFix"></image> --> | |||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| <view class='notes' style='display:none;'> | <view class='notes' style='display:none;'> | ||||
| @@ -40,9 +40,11 @@ page { | |||||
| .act text { | .act text { | ||||
| display: block; | display: block; | ||||
| padding-left: 4.8%; | padding-left: 4.8%; | ||||
| padding-right: 4.8%; | |||||
| } | } | ||||
| .txt001 { | .txt001 { | ||||
| display: block; | |||||
| font-size: 34rpx; | font-size: 34rpx; | ||||
| color: #363636; | color: #363636; | ||||
| letter-spacing: 0; | letter-spacing: 0; | ||||
| @@ -66,27 +68,27 @@ page { | |||||
| } | } | ||||
| .proct text:nth-of-type(1) { | .proct text:nth-of-type(1) { | ||||
| display: block; | |||||
| font-size: 30rpx; | font-size: 30rpx; | ||||
| color: #ff4949; | color: #ff4949; | ||||
| letter-spacing: 0; | letter-spacing: 0; | ||||
| line-height: 32rpx; | line-height: 32rpx; | ||||
| display: inline-block; | |||||
| width: 60rpx; | |||||
| height: 64rpx; | |||||
| padding-right: 20rpx; | |||||
| border-right: 2px solid #e5e5e5; | |||||
| margin-bottom: 20rpx; | |||||
| /* width: 60rpx; */ | |||||
| /* height: 64rpx; */ | |||||
| } | } | ||||
| .proct text:nth-of-type(2) { | .proct text:nth-of-type(2) { | ||||
| display: inline-block; | |||||
| width: 498rpx; | |||||
| height: 63rpx; | |||||
| overflow: hidden; | |||||
| white-space: nowrap; | |||||
| text-overflow: ellipsis; | |||||
| display: block; | |||||
| /* width: 498rpx; */ | |||||
| /* height: 63rpx; */ | |||||
| /* overflow: hidden; */ | |||||
| word-wrap:break-word; | |||||
| /* text-overflow: ellipsis; */ | |||||
| font-size: 22rpx; | font-size: 22rpx; | ||||
| color: #6f6f6f; | color: #6f6f6f; | ||||
| letter-spacing: 0; | letter-spacing: 0; | ||||
| margin: 0 auto; | |||||
| } | } | ||||
| .orbg { | .orbg { | ||||