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>
|
||||
@@ -360,6 +360,7 @@
|
||||
<image
|
||||
:src="item.image"
|
||||
class="img"
|
||||
@click="gotoInvestment(item.title, 'project', item.id)"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
@@ -412,7 +413,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="investmentFileList.length > 0" class="more-btn-wrap">
|
||||
<view class="more-btn" @click="gotoInvestment">
|
||||
<view class="more-btn" @click="gotoInvestment('', 'investment')">
|
||||
更多政策
|
||||
</view>
|
||||
</view>
|
||||
@@ -949,8 +950,8 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
gotoInvestment() {
|
||||
uni.navigateTo({ url: `/pkg_product/views/famousQianxianInvestment?id=${this.id}` })
|
||||
gotoInvestment(title = '', type = 'investment', id = '') {
|
||||
uni.navigateTo({ url: `/pkg_product/views/famousQianxianInvestment?id=${id || this.id}&title=${title}&type=${type}` })
|
||||
},
|
||||
villageItemClick(item) {
|
||||
uni.navigateTo({ url: `/pkg_product/views/famousQianxianVillageShop?id=${item.id}` })
|
||||
|
||||
@@ -444,7 +444,7 @@ export default {
|
||||
line-height: 48rpx;
|
||||
}
|
||||
.inn-owner {
|
||||
width: calc(100% - 160rpx);
|
||||
width: calc(100% - 240rpx);
|
||||
font-size: 36rpx;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
|
||||
Reference in New Issue
Block a user