diff --git a/pages/index/index.vue b/pages/index/index.vue index accaf9d..40d7a11 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -258,6 +258,14 @@ } } }, + //首页跳转到列表页 + merge(item) + { + var _this =this; + uni.navigateTo({ + url:'/pagesA/merge/index?id='+item.id+'&type='+item.type+'&ilk='+item.ilk, + }) + }, } } diff --git a/pages/user/index.vue b/pages/user/index.vue index 2ae46ef..d71ab02 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -232,6 +232,7 @@ export default { //_this.getSceneMenu(); //面部档案 _this.getPortraitList(); + _this.tabChange({index:0}); }, onReachBottom () { @@ -314,6 +315,8 @@ export default { console.log(e); _this.current = e.index; var type = _this.tabList[_this.current].type; + _this.dataList = []; + _this.page = 1; switch(type) { case 1: diff --git a/pagesA/merge/index.vue b/pagesA/merge/index.vue index cd9acf8..9783de3 100644 --- a/pagesA/merge/index.vue +++ b/pagesA/merge/index.vue @@ -149,7 +149,8 @@ - + + @@ -266,7 +267,16 @@ }, } }, - onLoad(){ + onLoad(options){ + var _this =this; + if(!_this.$com.isNull(options.id)) + { + var tabList = _this.tabList; + var this_tab = tabList.findIndex(item => item.type == options.type); + _this.this_tab = this_tab; + _this.checkHave({id:options.id,type:options.type,ilk:options.ilk},options.ilk); + } + console.log('onLoad 参数',options); this.getList(); }, diff --git a/static/img/index/waiting.png b/static/img/index/waiting.png new file mode 100644 index 0000000..a0b9002 Binary files /dev/null and b/static/img/index/waiting.png differ