Commit e2c67f2a by 高淑倩

开卡

parent 9ecca829
...@@ -74,26 +74,26 @@ Component({ ...@@ -74,26 +74,26 @@ Component({
}, },
setUserInfo: function (e) { setUserInfo: function (e) {
console.log('开卡') console.log('开卡')
// if (!app.globalData.openCard) { // 没有开卡并且需要开卡 if (!app.globalData.openCard) { // 没有开卡并且需要开卡
// wxService.openCard() wxService.openCard()
// return false return false
// } }
// 跳转 // 跳转
const urls = getCurrentPages() // const urls = getCurrentPages()
setTimeout(() => { // setTimeout(() => {
const item = urls[0].options // const item = urls[0].options
console.log('----', item.route) // console.log('----', item.route)
if (item.route) { // if (item.route) {
try { // try {
const options = JSON.parse(item.options) // const options = JSON.parse(item.options)
wxService.router(`/${item.route}`).search(options).replace() // wxService.router(`/${item.route}`).search(options).replace()
} catch (e) { // } catch (e) {
wxService.router('/pages/userCenter/userCenter') // wxService.router('/pages/userCenter/userCenter')
} // }
} else { // } else {
wxService.router('/pages/userCenter/userCenter') // wxService.router('/pages/userCenter/userCenter')
} // }
}, 200) // }, 200)
} }
} }
......
<!--component/personCenter/personCenter.wxml--> <!--component/personCenter/personCenter.wxml-->
<!-- <view class="activation-content activation-bg {{true ? 'user-content' : ''}}" style="{{personData.backgroundImageUrl ? 'background-image: url('+ personData.backgroundImageUrl +');' : 'background-image: url(../../assets/imgs/user-bg.png);'}}"> <view class="activation-content activation-bg {{true ? 'user-content' : ''}}" style="{{personData.backgroundImageUrl ? 'background-image: url('+ personData.backgroundImageUrl +');' : 'background-image: url(../../assets/imgs/user-bg.png);'}}">
<button type="primary" plain='false' wx:if='{{!memberActivateStatus}}' bindtap="handleTtoActiveMemebr">激活立享会员特权</button> <button type="primary" plain='false' wx:if='{{!memberActivateStatus}}' bindtap="handleTtoActiveMemebr">激活立享会员特权</button>
<view class='user-info' wx:if='{{memberActivateStatus}}'> <view class='user-info' wx:if='{{memberActivateStatus}}'>
<view class="user-avatar"> <view class="user-avatar">
...@@ -28,9 +28,9 @@ ...@@ -28,9 +28,9 @@
<view class='point-number' style="color:{{personCenter.fontColor}};">{{personCenter.coupon}}</view> <view class='point-number' style="color:{{personCenter.fontColor}};">{{personCenter.coupon}}</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">优惠券</view> <view class='point-desc' style="color:{{personCenter.fontColor}};">优惠券</view>
</view> </view>
</view>--> </view>
<view class="activation-content activation-bg {{true ? 'user-content' : ''}}" style="{{personData.backgroundImageUrl ? 'background-image: url('+ personData.backgroundImageUrl +');' : 'background-image: url(../../assets/imgs/user-bg.png);'}}"> <!-- <view class="activation-content activation-bg {{true ? 'user-content' : ''}}" style="{{personData.backgroundImageUrl ? 'background-image: url('+ personData.backgroundImageUrl +');' : 'background-image: url(../../assets/imgs/user-bg.png);'}}">
<view class='user-info'> <view class='user-info'>
<view class="user-avatar"> <view class="user-avatar">
<open-data type="userAvatarUrl"></open-data> <open-data type="userAvatarUrl"></open-data>
...@@ -58,4 +58,4 @@ ...@@ -58,4 +58,4 @@
<view class='point-number' style="color:{{personCenter.fontColor}};">{{couponNum}}</view> <view class='point-number' style="color:{{personCenter.fontColor}};">{{couponNum}}</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">优惠券</view> <view class='point-desc' style="color:{{personCenter.fontColor}};">优惠券</view>
</view> </view>
</view> </view>-->
\ No newline at end of file \ 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