付延余
2023-03-23 1cb780b1762c62751c7f5f26132f3a7aa4ef3e2f
pages/tabbar-page/index-tabbar/index-tabbar.vue
@@ -18,6 +18,23 @@
      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
@@ -57,7 +74,7 @@
      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']) {