| | |
| | | rect.top // 节点的上边界坐标 |
| | | rect.bottom // 节点的下边界坐标 |
| | | }).exec(res => { |
| | | console.log('res', res); |
| | | console.log(windowInfo.windowHeight) |
| | | this.setData({ videoTop: res[0].top,windowHeight: windowInfo.windowHeight}) |
| | | }) |
| | |
| | | let that = this |
| | | switch (index) { |
| | | case '0': |
| | | wx.navigateTo({ |
| | | url: '/pages/webView/index', |
| | | success: function (res) { |
| | | // 通过eventChannel向被打开页面传送数据 |
| | | res.eventChannel.emit('acceptDataFromOpenerPage', { |
| | | link: that.data.testUrl |
| | | }) |
| | | } |
| | | }) |
| | | if (member && member.phone) { |
| | | wx.navigateTo({ |
| | | url: '/pages/webView/index', |
| | | success: function (res) { |
| | | // 通过eventChannel向被打开页面传送数据 |
| | | res.eventChannel.emit('acceptDataFromOpenerPage', { |
| | | link: that.data.testUrl |
| | | }) |
| | | } |
| | | }) |
| | | } else { |
| | | wx.navigateTo({ |
| | | url: '/pages/auth/auth', |
| | | }) |
| | | } |
| | | break; |
| | | |
| | | case '1': |