Przeglądaj źródła

目录bug修改

twt 2 lat temu
rodzic
commit
63e2607b4a
3 zmienionych plików z 11 dodań i 2 usunięć
  1. 6 1
      pages/pc/indexNew.vue
  2. 2 0
      pages/pc/newDetail.vue
  3. 3 1
      pages/pc/newgroupingList.vue

+ 6 - 1
pages/pc/indexNew.vue

@@ -293,7 +293,10 @@
 				this.newgroupingListShow=false;
 				this.newsearchShow=false;
 				this.newDetailID=item.id;
+				item.categoryName=item.topName;
+				//item.code=
 				this.newDetailItem=item;
+				console.log(this.newDetailItem)
 				//this.$refs.newDetailV.test()
 				//this.$refs.newDetailV.newidfn()
 				/* uni.navigateTo({
@@ -310,7 +313,8 @@
 						name:wz.name,
 						title:wz.title,
 						topName:item.name,
-						comment:item.comment
+						comment:item.comment,
+						code:item.code
 					}
 					console.log(newgroupingdata)
 					this.indexShow=false;
@@ -361,6 +365,7 @@
 					this.newsearchShow=false;
 					this.newgroupingdata=newgroupingdata
 				}else{
+					//console.log(wz)
 					this.indexShow=false;
 					this.listShow=false;
 					this.newDetailShow=true;

+ 2 - 0
pages/pc/newDetail.vue

@@ -50,6 +50,7 @@
 		watch:{
 			newid(newValue, oldValue){
 				console.log(newValue);
+				console.log(this.data)
 				this.id = newValue
 				this.topName=this.data.categoryName;
 				this.twoName=this.data.twoName;
@@ -102,6 +103,7 @@
 				uni.navigateTo({
 					url:'list?code='+code+'&topName='+this.topName+'&comment='+this.comment
 				}) */
+				console.log(this.parentCode)
 				var code=this.parentCode.substring(0,3)
 				var data={
 					code:code,

+ 3 - 1
pages/pc/newgroupingList.vue

@@ -153,10 +153,12 @@
 				}) */
 			},
 			goDetail(wz){
+				console.log(wz)
 				this.$emit("goDetail",{
 					id:wz.ID,
 					topName:this.topName,
-					twoName:this.dynamicCol[this.tabIndex].name
+					twoName:this.dynamicCol[this.tabIndex].name,
+					code:wz.Code
 				})
 				// 1分类2文章
 				/* if (wz.Type == 1) {