Commit fd1187ee by 高淑倩

首页 plus 跳转

parent 1533eeec
...@@ -74,6 +74,14 @@ Component({ ...@@ -74,6 +74,14 @@ Component({
}) })
}, },
methods: { methods: {
toPlusPay(e) {
const { row }= e.currentTarget.dataset
let toPlus = typeof(row) == 'string'? JSON.parse(row) : row
if(toPlus.type == 2) {
let pageId = toPlus.url
wxService.router(`/subPackage/page/pages/subPage/subPage`).search({ pageId })
}
},
_getUserInfo(res = {}) { _getUserInfo(res = {}) {
wxService.nextTick(() => { wxService.nextTick(() => {
this.triggerEvent('getAuth', res); this.triggerEvent('getAuth', res);
......
...@@ -58,6 +58,6 @@ ...@@ -58,6 +58,6 @@
</view> </view>
<!--plus--> <!--plus-->
<view class='df tc person-num' wx:if='{{currentMobile}}'> <view class='df tc person-num' wx:if='{{currentMobile}}'>
<image class="" src='{{currentPlusStyle.imageUrl}}' mode="widthFix" /> <image class="" src='{{currentPlusStyle.imageUrl}}' data-row="{{currentPlusStyle.row}}" mode="widthFix" bindtap="toPlusPay"/>
</view> </view>
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