|
@@ -258,13 +258,32 @@
|
|
|
goDetail2(wz,item){
|
|
|
/* console.log(item)
|
|
|
console.log(wz) */
|
|
|
- this.indexShow=false;
|
|
|
- this.listShow=false;
|
|
|
- this.newDetailShow=true;
|
|
|
- this.newgroupingListShow=false;
|
|
|
- this.newsearchShow=false;
|
|
|
- this.newDetailID=wz.id;
|
|
|
- this.newDetailItem=item;
|
|
|
+ if (wz.type == 1) {
|
|
|
+ this.newgroupingcode=wz.code;
|
|
|
+ var newgroupingdata={
|
|
|
+ parentCode:item.code,
|
|
|
+ name:wz.name,
|
|
|
+ title:wz.title,
|
|
|
+ topName:item.name,
|
|
|
+ comment:item.comment
|
|
|
+ }
|
|
|
+ console.log(newgroupingdata)
|
|
|
+ this.indexShow=false;
|
|
|
+ this.listShow=false;
|
|
|
+ this.newDetailShow=false;
|
|
|
+ this.newgroupingListShow=true;
|
|
|
+ this.newsearchShow=false;
|
|
|
+ this.newgroupingdata=newgroupingdata
|
|
|
+ }else{
|
|
|
+ this.indexShow=false;
|
|
|
+ this.listShow=false;
|
|
|
+ this.newDetailShow=true;
|
|
|
+ this.newgroupingListShow=false;
|
|
|
+ this.newsearchShow=false;
|
|
|
+ this.newDetailID=wz.id;
|
|
|
+ this.newDetailItem=item;
|
|
|
+ }
|
|
|
+
|
|
|
/* uni.navigateTo({
|
|
|
url:'detail?id='+wz.id+'&topName='+item.name+"&comment="+item.comment+'&parentCode='+item.code
|
|
|
}) */
|