Fix(千县名品/店铺):[#2227]底部的产业项目无法点击进入二级页面查看项目列表
This commit is contained in:
@@ -26,18 +26,17 @@
|
||||
class="icon"
|
||||
/>
|
||||
</view>
|
||||
<!-- <image
|
||||
:src="webUrl + '/home/no-data-bg.png'"
|
||||
mode="widthFix"
|
||||
class="loadend"
|
||||
/> -->
|
||||
<view v-if="currentList.length === 0" class="no-data-txt">
|
||||
暂无数据~
|
||||
</view>
|
||||
</view>
|
||||
<goo-skeleton v-else />
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
getCountyFamousInvestmentFile
|
||||
getCountyFamousInvestmentFile,
|
||||
getCountyFamousIndustryProjectFile
|
||||
} from '@/api/qianxian'
|
||||
import { pageListenMixins } from '@/mixins/pageListenMixins'
|
||||
export default {
|
||||
@@ -55,18 +54,36 @@ export default {
|
||||
},
|
||||
onLoad(options) {
|
||||
const id = options.id
|
||||
this.getListReq(id)
|
||||
const type = options.type || 'investment'
|
||||
const title = options.title || ''
|
||||
if (title) {
|
||||
uni.setNavigationBarTitle({ title })
|
||||
}
|
||||
this.getListReq(id, type)
|
||||
},
|
||||
methods: {
|
||||
handleSearch() {
|
||||
this.currentList = this.list.filter(item => item.title.indexOf(this.keyword) > -1)
|
||||
},
|
||||
getListReq(id) {
|
||||
getCountyFamousInvestmentFile({
|
||||
countyFamousDataId: id,
|
||||
page: 1,
|
||||
limit: 9999
|
||||
}).then(res => {
|
||||
getListReq(id, type) {
|
||||
let reqFn = null
|
||||
let params = {}
|
||||
if (type === 'investment') {
|
||||
reqFn = getCountyFamousInvestmentFile
|
||||
params = {
|
||||
countyFamousDataId: id,
|
||||
page: 1,
|
||||
limit: 9999
|
||||
}
|
||||
} else {
|
||||
reqFn = getCountyFamousIndustryProjectFile
|
||||
params = {
|
||||
industryProjectId: id,
|
||||
page: 1,
|
||||
limit: 9999
|
||||
}
|
||||
}
|
||||
reqFn(params).then(res => {
|
||||
const { success, data } = res
|
||||
if (success) {
|
||||
this.isLoad = true
|
||||
@@ -126,5 +143,11 @@ export default {
|
||||
.loadend {
|
||||
width: 100%;
|
||||
}
|
||||
.no-data-txt {
|
||||
text-align: center;
|
||||
line-height: 200rpx;
|
||||
color: #999;
|
||||
font-size: 36rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user