Forráskód Böngészése

直播订阅修改

unknown 4 éve
szülő
commit
16691e2188
2 módosított fájl, 10 hozzáadás és 3 törlés
  1. 3 3
      pagesGood/liveDetail.vue
  2. 7 0
      pagesGood/videoList.vue

+ 3 - 3
pagesGood/liveDetail.vue

@@ -157,7 +157,7 @@
 			    let that = this;
 				if(that.tixing_str=="取消提醒"){
 					var post_data={liveId:that.liveId,mid:uni.getStorageSync("userData").userId}
-					post_data.isDelete=0;
+					post_data.isDelete=1;
 					NET.request(API.subscribeLive, post_data, 'POST').then(res => {
 						if(that.tixing_str=="取消提醒"){
 							that.tixing_str="直播提醒"
@@ -175,9 +175,9 @@
 						if(res.y0X1cZfbEMg7HdTGN_bW8v7TKeI3M0CHSVTY1zStIXM=="accept"){
 							var post_data={liveId:that.liveId,mid:uni.getStorageSync("userData").userId}
 							if(that.tixing_str=="直播提醒"){
-								post_data.isDelete=1;
-							}else{
 								post_data.isDelete=0;
+							}else{
+								post_data.isDelete=1;
 							}
 							NET.request(API.subscribeLive, post_data, 'POST').then(res => {
 								if(that.tixing_str=="取消提醒"){

+ 7 - 0
pagesGood/videoList.vue

@@ -121,6 +121,13 @@
 				}
 				if(this.videoType == 1){
 					var that=this;
+					if(item.liveStatus==2){
+						this.$refs.uTips.show({
+							title: '直播未开始',
+							type: 'warning',
+						})
+						return false;
+					}
 					if(uni.getStorageSync("firstTimeLiveUser")==""){
 						uni.setStorage({
 							key: 'firstTimeLiveUser',