Browse Source

直播权限问题,第一次进入直播不提示补充

unknown 4 years ago
parent
commit
d806a9f7cb
3 changed files with 6 additions and 14 deletions
  1. 2 10
      pagesGood/videoList.vue
  2. 2 2
      pagesMain/orderDetail.vue
  3. 2 2
      pagesMain/orderItem.vue

+ 2 - 10
pagesGood/videoList.vue

@@ -121,17 +121,9 @@
 				}
 				if(this.videoType == 1){
 					var that=this;
-					/*uni.setStorage({
-						key: 'firstTimeLive',
-						data: {
-							headImage: JSON.parse(this.wxLoginData.rawData).avatarUrl,
-							userName: res.data.name,
-							userId: res.data.userId,
-						}
-					})*/
-					if(uni.getStorageSync("firstTimeLive")==""){
+					if(uni.getStorageSync("firstTimeLiveUser")==""){
 						uni.setStorage({
-							key: 'firstTimeLive',
+							key: 'firstTimeLiveUser',
 							data: 1
 						})
 						uni.navigateTo({

+ 2 - 2
pagesMain/orderDetail.vue

@@ -439,9 +439,9 @@
 					} else {
 						if (this.orderData.orderStatus == 2) {
 							var that=this;
-							if(uni.getStorageSync("firstTimeLive")==""){
+							if(uni.getStorageSync("firstTimeLiveUser")==""){
 								uni.setStorage({
-									key: 'firstTimeLive',
+									key: 'firstTimeLiveUser',
 									data: 1
 								})
 								uni.navigateTo({

+ 2 - 2
pagesMain/orderItem.vue

@@ -196,9 +196,9 @@
 				} else if (type == 4) {
 					//  自助采摘
 					var that=this;
-					if(uni.getStorageSync("firstTimeLive")==""){
+					if(uni.getStorageSync("firstTimeLiveUser")==""){
 						uni.setStorage({
-							key: 'firstTimeLive',
+							key: 'firstTimeLiveUser',
 							data: 1
 						})
 						uni.navigateTo({