| | |
| | | driverIndex, |
| | | freightForwarderIndex |
| | | }, |
| | | onLoad(){ |
| | | // 开启双人通话 |
| | | wx.setEnable1v1Chat({ |
| | | enable: true, |
| | | backgroundType: 1, |
| | | minWindowType:2, |
| | | success() { |
| | | console.log('开启双人通话成功'); |
| | | }, |
| | | fail() { |
| | | console.log('开启双人通话失败'); |
| | | }, |
| | | complete() { |
| | | console.log('开启双人通话成功Complete'); |
| | | } |
| | | }); |
| | | }, |
| | | data() { |
| | | return { |
| | | roleType: null |
| | |
| | | userAuthorization() { |
| | | wx.getSetting({ |
| | | success(res) { |
| | | wx.startRecord(); |
| | | // wx.startRecord(); |
| | | console.log('success'); |
| | | if (!res.authSetting['scope.record'] || !res.authSetting['scope.camera']) { |
| | | if (!res.authSetting['scope.camera']) { |