Commit fd1187ee by 高淑倩

首页 plus 跳转

parent 1533eeec
......@@ -74,6 +74,14 @@ Component({
})
},
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 = {}) {
wxService.nextTick(() => {
this.triggerEvent('getAuth', res);
......
......@@ -58,6 +58,6 @@
</view>
<!--plus-->
<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>
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