diff --git a/pages/category/consulting/list.vue b/pages/category/consulting/list.vue index ee39b9e..1d15f4c 100644 --- a/pages/category/consulting/list.vue +++ b/pages/category/consulting/list.vue @@ -12,8 +12,8 @@ - - + + @@ -46,8 +46,8 @@ - - + + @@ -122,8 +122,8 @@ this.consultingId = options.consultingId this.curIndex = options.curIndex ? options.curIndex : 0 // 加载页面数据 - this.onRefreshPage() this.getConsultingContextSelection() + this.onRefreshPage() }, /** @@ -211,6 +211,11 @@ CategoryApi.consultingContextSelection().then(res=>{ if (res.resultCode == '00000000') { app.informationList = res.data + app.informationList.forEach((items,key) => { + if (items.consultingId === app.consultingId) { + app.curIndex = key + } + }) } else { app.$error('获取资讯信息失败') } @@ -244,7 +249,7 @@ // 一级分类+二级分类 20 .cate-left { - // height: 100%; + height: 100%; display: flex; flex-direction: column; flex: 0 0 26%; @@ -261,7 +266,7 @@ .cate-cont { width: 96%; height: 300rpx; - padding: 16rpx; + padding: 16rpx 16rpx 0rpx 16rpx; margin-top: 20rpx; margin-right: 60rpx; color: #8e908e; @@ -279,17 +284,17 @@ } .cate-date { position: absolute; - top: 200rpx; + top: 190rpx; } .cate-bt { position: absolute; top: 240rpx; left: 385rpx; width: 110rpx; - height: 50rpx; + height: 53rpx; border-radius: 5rpx; border: 1rpx #8e908e solid; - background-color: #fff; + background-color: #f7f7f7; button { padding-right: 0rpx; diff --git a/pages/targetdata/culturalnumbers.vue b/pages/targetdata/culturalnumbers.vue index 8e7a0d2..14149a0 100644 --- a/pages/targetdata/culturalnumbers.vue +++ b/pages/targetdata/culturalnumbers.vue @@ -114,12 +114,8 @@ export default { methods: { // 搜索 async onSearch() { - if (this.searchValue == '') { - this.$error('请输入搜索关键词'); - } else { - await this.getHomeList(1) - await this.getHomeListImage() - } + await this.getHomeList(1) + await this.getHomeListImage() }, // 切换tab async changeTab(val) { diff --git a/pages/targetdata/culturalresources.vue b/pages/targetdata/culturalresources.vue index b5989a2..b22167e 100644 --- a/pages/targetdata/culturalresources.vue +++ b/pages/targetdata/culturalresources.vue @@ -114,12 +114,8 @@ export default { methods: { // 搜索 async onSearch() { - if (this.searchValue == '') { - this.$error('请输入搜索关键词'); - } else { - await this.getHomeList(1) - await this.getHomeListImage() - } + await this.getHomeList(1) + await this.getHomeListImage() }, // 切换tab async changeTab(val) { diff --git a/pages/targetdata/publicdata.vue b/pages/targetdata/publicdata.vue index a260587..724f629 100644 --- a/pages/targetdata/publicdata.vue +++ b/pages/targetdata/publicdata.vue @@ -114,12 +114,8 @@ methods: { // 搜索 async onSearch() { - if (this.searchValue == '') { - this.$error('请输入搜索关键词'); - } else { - await this.getHomeList(1) - await this.getHomeListImage() - } + await this.getHomeList(1) + await this.getHomeListImage() }, // 切换tab async changeTab(val) { diff --git a/pages/targetdata/supermarket.vue b/pages/targetdata/supermarket.vue index bdb4992..d03afc3 100644 --- a/pages/targetdata/supermarket.vue +++ b/pages/targetdata/supermarket.vue @@ -114,12 +114,8 @@ export default { methods: { // 搜索 async onSearch() { - if (this.searchValue == '') { - this.$error('请输入搜索关键词'); - } else { - await this.getHomeList(1) - await this.getHomeListImage() - } + await this.getHomeList(1) + await this.getHomeListImage() }, // 切换tab async changeTab(val) { diff --git a/pages/user/mycertinfo/personverify.vue b/pages/user/mycertinfo/personverify.vue index 7c141e1..a745a64 100644 --- a/pages/user/mycertinfo/personverify.vue +++ b/pages/user/mycertinfo/personverify.vue @@ -498,7 +498,7 @@ success({ tempFiles }) { oldImageList.push(tempFiles) uni.uploadFile({ - url: VerifyApi.getUploadUrl(), //仅为示例,非真实的接口地址 + url: 'kk/'+VerifyApi.getUploadUrl(), //仅为示例,非真实的接口地址 filePath: tempFiles[0].path, name: 'file', success: (uploadFileRes) => {