306132416@qq.com il y a 3 ans
Parent
commit
0b77673ee6
2 fichiers modifiés avec 6 ajouts et 4 suppressions
  1. 5 3
      pages/index/activity/list.vue
  2. 1 1
      pages/index/activity/record.vue

+ 5 - 3
pages/index/activity/list.vue

@@ -100,9 +100,10 @@ export default {
   onLoad(option) {
 	this.recordId = option.id;
 	this.readDesc(this.recordId);
+	this.readActive(this.recordId);
   },
   onShow() {
-	 this.readActive(this.recordId);
+	// this.readActive(this.recordId);
 	 //this.getFileList(this.recordId);
   },
   onShareAppMessage() {
@@ -119,14 +120,15 @@ export default {
 		  },
 		  pageShowShare(obj,tabs){
 			  switch (tabs){
+				case 'record':
+				this.readActive(this.recordId)
+				  	break;
 			  	case 'files':
 				   this.getFileList(this.recordId)
 			  		break;
 				case 'comment':
 				   this.getCommentList(this.recordId)
 					break;
-			  	default:
-			  		break;
 			  }
 			  this.isShowShareModal = true;
 		  },

+ 1 - 1
pages/index/activity/record.vue

@@ -192,7 +192,7 @@
 							let pages = getCurrentPages(); // 获取当前页面栈的实例,以数组形式按栈的顺序给出,第一个元素为首页,最后一个元素为当前页面。
 							let nowPage = pages[pages.length - 1]; //当前页页面实例
 							let prevPage = pages[pages.length - 2]; //上一页页面实例
-							prevPage.$vm.pageShowShare(types)
+							prevPage.$vm.pageShowShare(types,'record')
 							uni.showToast({
 							  title: "上传成功",
 							  icon: "none",