Browse Source

直播权限问题

zhaoxw 4 years ago
parent
commit
31a437468c
3 changed files with 20 additions and 58 deletions
  1. 13 13
      pages/media/index.vue
  2. 3 13
      pagesMain/orderDetail.vue
  3. 4 32
      pagesMain/orderItem.vue

+ 13 - 13
pages/media/index.vue

@@ -164,19 +164,19 @@
 							url: '/pagesMedia/liveDetail?liveId=' + that.liveId
 						});
 					}else{
-						wx.getSetting({
-						  success(res) {
-							if (!res.authSetting['scope.camera']){
-							  that.show_qx=false;
-							}else if (!res.authSetting['scope.record']){
-							  that.show_qx=false;
-							}else{
-								uni.navigateTo({
-									url: '/pagesMedia/liveDetail?liveId=' + that.liveId
-								});
-							}
-						  }
-						})
+						// wx.getSetting({
+						//   success(res) {
+						// 	if (!res.authSetting['scope.camera']){
+						// 	  that.show_qx=false;
+						// 	}else if (!res.authSetting['scope.record']){
+						// 	  that.show_qx=false;
+						// 	}else{
+						uni.navigateTo({
+							url: '/pagesMedia/liveDetail?liveId=' + that.liveId
+						});
+						// 	}
+						//   }
+						// })
 					}
 				} else {
 					this.$refs.uTips.show({

+ 3 - 13
pagesMain/orderDetail.vue

@@ -388,19 +388,9 @@
 								url: '/pagesMedia/pickVideo?tenantCode=' + that.orderData.tenantCode + '&orderId=' + that.orderData.orderId
 							});
 						}else{
-							wx.getSetting({
-							  success(res) {
-								if (!res.authSetting['scope.camera']){
-								  that.show_qx=false;
-								}else if (!res.authSetting['scope.record']){
-								  that.show_qx=false;
-								}else{
-									uni.navigateTo({
-										url: '/pagesMedia/pickVideo?tenantCode=' + that.orderData.tenantCode + '&orderId=' + that.orderData.orderId
-									});
-								}
-							  }
-							})
+							uni.navigateTo({
+								url: '/pagesMedia/pickVideo?tenantCode=' + that.orderData.tenantCode + '&orderId=' + that.orderData.orderId
+							});
 						}
 						
 						

+ 4 - 32
pagesMain/orderItem.vue

@@ -175,19 +175,9 @@
 							url: '/pagesMedia/pickVideo?tenantCode=' + that.orderData.tenantCode + '&orderId=' + that.orderData.orderId
 						});
 					} else {
-						wx.getSetting({
-							success(res) {
-								if (!res.authSetting['scope.camera']) {
-									that.show_qx = false;
-								} else if (!res.authSetting['scope.record']) {
-									that.show_qx = false;
-								} else {
-									uni.navigateTo({
-										url: '/pagesMedia/pickVideo?tenantCode=' + that.orderData.tenantCode + '&orderId=' + that.orderData.orderId
-									});
-								}
-							}
-						})
+						uni.navigateTo({
+							url: '/pagesMedia/pickVideo?tenantCode=' + that.orderData.tenantCode + '&orderId=' + that.orderData.orderId
+						});
 					}
 					// #endif
 					// #ifdef APP-PLUS
@@ -215,27 +205,9 @@
 							url: '/pagesMedia/pickVideo?tenantCode=' + that.orderData.tenantCode + '&orderId=' + that.orderData.orderId
 						});
 					} else {
-						// #ifdef MP-WEIXIN
-						wx.getSetting({
-							success(res) {
-								if (!res.authSetting['scope.camera']) {
-									that.show_qx = false;
-								} else if (!res.authSetting['scope.record']) {
-									that.show_qx = false;
-								} else {
-									uni.navigateTo({
-										url: '/pagesMedia/pickVideo?tenantCode=' + that.orderData.tenantCode + '&orderId=' + that.orderData.orderId
-									});
-								}
-							}
-						})
-						// #endif
-
-						// #ifdef APP-PLUS
 						uni.navigateTo({
-							url: '/pagesMedia/pickVideo?tenantCode=' + this.orderData.tenantCode + '&orderId=' + this.orderData.orderId
+							url: '/pagesMedia/pickVideo?tenantCode=' + that.orderData.tenantCode + '&orderId=' + that.orderData.orderId
 						});
-						// #endif
 					}
 				}
 			},