|
@@ -2,7 +2,7 @@
|
|
|
<page-meta :page-style="showFilter? 'overflow: hidden;' : ''" :scroll-top="pageMetaScrollTop" />
|
|
|
<view class="chart-page" v-if="hasAuth">
|
|
|
<van-sticky style="background: #fff">
|
|
|
- <view class="flex search-wrap" id="search-wrap">
|
|
|
+ <view class="flex search-wrap">
|
|
|
<van-search
|
|
|
shape="round"
|
|
|
:value="searchVal"
|
|
@@ -25,7 +25,7 @@
|
|
|
:src="globalImgUrls.chartEmpty"
|
|
|
mode="widthFix"
|
|
|
/>
|
|
|
- <view>暂时找不到对应图,试试别的搜索词吧~</view>
|
|
|
+ <view>暂时找不到对应图,试试别的{{searchVal?'搜索词':'分类'}}吧~</view>
|
|
|
</view>
|
|
|
<view class="chart-list-wrap" v-else>
|
|
|
<drag
|
|
@@ -157,7 +157,6 @@ export default {
|
|
|
ClassifyId:this.selectClassifyId,
|
|
|
Keywords:this.searchVal
|
|
|
})
|
|
|
- // console.log(res);
|
|
|
if(res.code===200){
|
|
|
this.hasAuth=true
|
|
|
if(res.data){
|
|
@@ -215,7 +214,7 @@ export default {
|
|
|
chartClick(e){
|
|
|
console.log(e.detail.data);
|
|
|
uni.navigateTo({
|
|
|
- url:'/pages-chart/chartDetail?chartInfoId='+e.detail.data.ChartInfoId
|
|
|
+ url:`/pages-chart/chartDetail?chartInfoId=${e.detail.data.ChartInfoId}&searchVal=${this.searchVal}&MyChartId=${e.detail.data.MyChartId}&MyChartClassifyId=${this.selectClassifyId}`
|
|
|
})
|
|
|
},
|
|
|
|
|
@@ -298,6 +297,13 @@ export default {
|
|
|
|
|
|
// 确认搜索 搜索图表下的都不允许拖动排序
|
|
|
onSearch(){
|
|
|
+ if(!this.searchVal){
|
|
|
+ uni.showToast({
|
|
|
+ title:"请输入搜索关键词",
|
|
|
+ icon:'none'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
this.initPage()
|
|
|
this.isPublic=true
|
|
|
this.getList()
|