Commit e2c67f2a by 高淑倩

开卡

parent 9ecca829
......@@ -74,26 +74,26 @@ Component({
},
setUserInfo: function (e) {
console.log('开卡')
// if (!app.globalData.openCard) { // 没有开卡并且需要开卡
// wxService.openCard()
// return false
// }
if (!app.globalData.openCard) { // 没有开卡并且需要开卡
wxService.openCard()
return false
}
// 跳转
const urls = getCurrentPages()
setTimeout(() => {
const item = urls[0].options
console.log('----', item.route)
if (item.route) {
try {
const options = JSON.parse(item.options)
wxService.router(`/${item.route}`).search(options).replace()
} catch (e) {
wxService.router('/pages/userCenter/userCenter')
}
} else {
wxService.router('/pages/userCenter/userCenter')
}
}, 200)
// const urls = getCurrentPages()
// setTimeout(() => {
// const item = urls[0].options
// console.log('----', item.route)
// if (item.route) {
// try {
// const options = JSON.parse(item.options)
// wxService.router(`/${item.route}`).search(options).replace()
// } catch (e) {
// wxService.router('/pages/userCenter/userCenter')
// }
// } else {
// wxService.router('/pages/userCenter/userCenter')
// }
// }, 200)
}
}
......
<!--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>
<view class='user-info' wx:if='{{memberActivateStatus}}'>
<view class="user-avatar">
......@@ -28,9 +28,9 @@
<view class='point-number' style="color:{{personCenter.fontColor}};">{{personCenter.coupon}}</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">优惠券</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-avatar">
<open-data type="userAvatarUrl"></open-data>
......@@ -58,4 +58,4 @@
<view class='point-number' style="color:{{personCenter.fontColor}};">{{couponNum}}</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">优惠券</view>
</view>
</view>
\ No newline at end of file
</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