| @@ -13,6 +13,7 @@ Page({ | |||||
| headbgUrl: imgurl.headbg.url, | headbgUrl: imgurl.headbg.url, | ||||
| quesBgUrl: imgurl.ques_bg.url, | quesBgUrl: imgurl.ques_bg.url, | ||||
| dingdanUrl: imgurl.dingdan.url, | dingdanUrl: imgurl.dingdan.url, | ||||
| weixinTitle: imgurl.weixinTitle.url, | |||||
| cardDetail: null, | cardDetail: null, | ||||
| data: { | data: { | ||||
| title: null | title: null | ||||
| @@ -52,7 +53,8 @@ Page({ | |||||
| hidden: "hidden", | hidden: "hidden", | ||||
| height: "", | height: "", | ||||
| more: "点击查看更多", | more: "点击查看更多", | ||||
| showMore: true | |||||
| showMore: true, | |||||
| supportTransfer:1 | |||||
| }, | }, | ||||
| phone: function(e) { | phone: function(e) { | ||||
| let that = this; | let that = this; | ||||
| @@ -60,6 +62,9 @@ Page({ | |||||
| phoneNumber: e.target.dataset.merchantlinkphone | phoneNumber: e.target.dataset.merchantlinkphone | ||||
| }); | }); | ||||
| }, | }, | ||||
| goToTranser(){ | |||||
| // wx. | |||||
| }, | |||||
| // 点击查看更多 | // 点击查看更多 | ||||
| more: function() { | more: function() { | ||||
| let that = this; | let that = this; | ||||
| @@ -21,7 +21,7 @@ | |||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| <view class='bottom' bindtap='more' wx:if="{{showMore}}">{{more}}</view> | <view class='bottom' bindtap='more' wx:if="{{showMore}}">{{more}}</view> | ||||
| <text class='title'>交易记录</text> | |||||
| <text class='title' wx:if="{{supportTransfer!=1}}">交易记录</text> | |||||
| <view wx:for="{{data}}" wx:key="{{index}}" class='list'> | <view wx:for="{{data}}" wx:key="{{index}}" class='list'> | ||||
| <view class='record clearfix record1'> | <view class='record clearfix record1'> | ||||
| <text class='fl'>{{item.merchantName}}</text> | <text class='fl'>{{item.merchantName}}</text> | ||||
| @@ -32,8 +32,9 @@ | |||||
| <text class='fr'>余 {{item.cardRemainAmount/100}}元</text> | <text class='fr'>余 {{item.cardRemainAmount/100}}元</text> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| <view class="dingdan" wx:if="{{data.length==0}}"> | |||||
| <view class="dingdan" wx:if="{{data.length==0&&supportTransfer!=1}}"> | |||||
| <image src="{{dingdanUrl}}" mode="widthFix"></image> | <image src="{{dingdanUrl}}" mode="widthFix"></image> | ||||
| <text>暂无交易明细</text> | <text>暂无交易明细</text> | ||||
| </view> | </view> | ||||
| <button type="primary" class='support-tansfer' bindtap='goToTranser'><image src="{{weixinTitle}}" class='share' mode="widthFix"></image>转赠给微信好友</button> | |||||
| </view> | </view> | ||||
| @@ -1,4 +1,7 @@ | |||||
| .notes{ | |||||
| padding-bottom: 60rpx; | |||||
| } | |||||
| .record text:nth-of-type(2n+1) { | .record text:nth-of-type(2n+1) { | ||||
| float: left; | float: left; | ||||
| } | } | ||||
| @@ -195,4 +198,15 @@ | |||||
| line-height: 70rpx; | line-height: 70rpx; | ||||
| color: #999; | color: #999; | ||||
| font-size: 32rpx; | font-size: 32rpx; | ||||
| } | |||||
| .support-tansfer{ | |||||
| width: 690rpx; | |||||
| border-radius: 50rpx; | |||||
| margin-top: 30rpx; | |||||
| background: #02C0FF!important; | |||||
| } | |||||
| .share{ | |||||
| width: 40rpx; | |||||
| height: 40rpx; | |||||
| margin-right: 20rpx; | |||||
| } | } | ||||
| @@ -8,6 +8,8 @@ Page({ | |||||
| couponUrl: imgurl.coupon.url, | couponUrl: imgurl.coupon.url, | ||||
| linessUrl: imgurl.liness.url, | linessUrl: imgurl.liness.url, | ||||
| loadingUrl: imgurl.loading.url, | loadingUrl: imgurl.loading.url, | ||||
| canTransferred: imgurl.canTransferred.url, | |||||
| weixinTitle: imgurl.weixinTitle.url, | |||||
| tabs: [{ | tabs: [{ | ||||
| key: 4, | key: 4, | ||||
| name: "使用中" | name: "使用中" | ||||
| @@ -15,6 +15,7 @@ | |||||
| <view class='section' wx:for='{{list}}' wx:key='{{index}}'> | <view class='section' wx:for='{{list}}' wx:key='{{index}}'> | ||||
| <view class='mms' style='background:{{item.background}}'> | <view class='mms' style='background:{{item.background}}'> | ||||
| <image src="{{canTransferred}}" wx-if='{{item.supportTransfer==1}}' class='cantransferred' mode="aspectFill"/> | |||||
| <view class='detail_msg'> | <view class='detail_msg'> | ||||
| <view class='info'> | <view class='info'> | ||||
| <view class='clearfix' data-id='{{item.id}}' bindtap='gotoConsumeDetail' data-id='{{item.id}}'> | <view class='clearfix' data-id='{{item.id}}' bindtap='gotoConsumeDetail' data-id='{{item.id}}'> | ||||
| @@ -268,4 +268,12 @@ | |||||
| } | } | ||||
| .yue text:nth-of-type(2){ | .yue text:nth-of-type(2){ | ||||
| margin-left: 6rpx; | margin-left: 6rpx; | ||||
| } | |||||
| .cantransferred{ | |||||
| position:absolute; | |||||
| right:0; | |||||
| top:0; | |||||
| width:60rpx; | |||||
| height:60rpx; | |||||
| z-index:100; | |||||
| } | } | ||||
| @@ -12,6 +12,7 @@ Page({ | |||||
| spcodeUrl: imgurl.spcode.url, | spcodeUrl: imgurl.spcode.url, | ||||
| teljpgUrl: imgurl.teljpg.url, | teljpgUrl: imgurl.teljpg.url, | ||||
| newUrl: imgurl.new.url, | newUrl: imgurl.new.url, | ||||
| weixinTitle: imgurl.weixinTitle.url, | |||||
| showModalStatus: false, | showModalStatus: false, | ||||
| flag: 0, | flag: 0, | ||||
| order: null, | order: null, | ||||
| @@ -31,6 +32,10 @@ Page({ | |||||
| wx.makePhoneCall({ | wx.makePhoneCall({ | ||||
| phoneNumber: e.currentTarget.dataset.merchantlinkphone | phoneNumber: e.currentTarget.dataset.merchantlinkphone | ||||
| }); | }); | ||||
| }, | |||||
| //转赠给微信好友 | |||||
| goToTranser() { | |||||
| }, | }, | ||||
| powerDrawer: function (e) { | powerDrawer: function (e) { | ||||
| let that = this; | let that = this; | ||||
| @@ -79,4 +79,5 @@ | |||||
| <image src="{{newUrl}}" class='gameimg' mode='widthFix'></image> | <image src="{{newUrl}}" class='gameimg' mode='widthFix'></image> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| <button type="primary" wx:if="{{order.type == 100}}" class='support-tansfer' bindtap='goToTranser'><image src="{{weixinTitle}}" class='share' mode="widthFix"></image>转赠给微信好友</button> | |||||
| </view> | </view> | ||||
| @@ -447,4 +447,15 @@ radio { | |||||
| left: 0; | left: 0; | ||||
| border-radius: 10rpx; | border-radius: 10rpx; | ||||
| z-index: 10; | z-index: 10; | ||||
| } | |||||
| .support-tansfer{ | |||||
| width: 690rpx; | |||||
| border-radius: 50rpx; | |||||
| margin-top: 60rpx; | |||||
| background: #02C0FF!important; | |||||
| } | |||||
| .share{ | |||||
| width: 40rpx; | |||||
| height: 40rpx; | |||||
| margin-right: 20rpx; | |||||
| } | } | ||||
| @@ -339,5 +339,13 @@ module.exports = { | |||||
| 'icon004': { | 'icon004': { | ||||
| 'url': baseUrl + 'icon004.gif', | 'url': baseUrl + 'icon004.gif', | ||||
| 'name': '' | 'name': '' | ||||
| } | |||||
| }, | |||||
| 'canTransferred': { | |||||
| 'url': baseUrl + 'can-transferred.png', | |||||
| 'name': '转赠图标' | |||||
| }, | |||||
| 'weixinTitle': { | |||||
| 'url': baseUrl + 'weixin-title.png', | |||||
| 'name': '微信图标' | |||||
| }, | |||||
| } | } | ||||