|
@@ -139,7 +139,7 @@
|
|
|
<image src="../../static/pcimg/btn_top@2x.png" mode="" class="gotopImg"></image>
|
|
|
</view>
|
|
|
<view>
|
|
|
- <newDetail v-show="newDetailShow" :newid='newDetailID' :data="newDetailItem" @getIndexList="getIndexList"></newDetail>
|
|
|
+ <newDetail ref="newDetailV" v-show="newDetailShow" :newid='newDetailID' :data="newDetailItem" @getIndexList="getIndexList"></newDetail>
|
|
|
<newgroupingList @getIndexList="getIndexList"
|
|
|
@getChildList="getChildList" @goDetail="goDetail"
|
|
|
v-show="newgroupingListShow" :newcode="newgroupingcode" :data="newgroupingdata"></newgroupingList>
|
|
@@ -189,8 +189,19 @@
|
|
|
newgroupingdata:'',
|
|
|
}
|
|
|
},
|
|
|
- onLoad() {
|
|
|
-
|
|
|
+ onLoad(opt) {
|
|
|
+ if(opt.id){
|
|
|
+ this.newDetailID=opt.id;
|
|
|
+ var item={
|
|
|
+ categoryName:opt.topName,
|
|
|
+ comment:opt.comment,
|
|
|
+ parentCode:'',
|
|
|
+ twoName:'',
|
|
|
+ id:opt.id
|
|
|
+ }
|
|
|
+ console.log(item)
|
|
|
+ this.goDetail(item)
|
|
|
+ }
|
|
|
this.getindexData()
|
|
|
},
|
|
|
created(){
|
|
@@ -251,6 +262,8 @@
|
|
|
this.newsearchShow=false;
|
|
|
this.newDetailID=item.id;
|
|
|
this.newDetailItem=item;
|
|
|
+ //this.$refs.newDetailV.test()
|
|
|
+ //this.$refs.newDetailV.newidfn()
|
|
|
/* uni.navigateTo({
|
|
|
url:'detail?id='+item.id+'&topName='+item.categoryName+"&comment="+item.comment+'&parentCode='+item.code
|
|
|
}) */
|