Merge branch 'dev' of https://gitee.com/fengyuze178/xdd-uniapp-new into dev
# Conflicts: # pkg_product/views/famousQianxianVillageShop.vue
This commit is contained in:
@@ -140,11 +140,12 @@ export default {
|
|||||||
.county-index {
|
.county-index {
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background-color: #fff;
|
background-color: #f0f0f0;
|
||||||
.top-img {
|
.top-img {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
padding: 21rpx;
|
padding: 21rpx;
|
||||||
|
background-color: #fff;
|
||||||
.img {
|
.img {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -175,7 +176,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.list-wrap {
|
.list-wrap {
|
||||||
background-color: #F0F0F0;
|
|
||||||
.loadend {
|
.loadend {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,18 +26,17 @@
|
|||||||
class="icon"
|
class="icon"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
<!-- <image
|
<view v-if="currentList.length === 0" class="no-data-txt">
|
||||||
:src="webUrl + '/home/no-data-bg.png'"
|
暂无数据~
|
||||||
mode="widthFix"
|
</view>
|
||||||
class="loadend"
|
|
||||||
/> -->
|
|
||||||
</view>
|
</view>
|
||||||
<goo-skeleton v-else />
|
<goo-skeleton v-else />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
getCountyFamousInvestmentFile
|
getCountyFamousInvestmentFile,
|
||||||
|
getCountyFamousIndustryProjectFile
|
||||||
} from '@/api/qianxian'
|
} from '@/api/qianxian'
|
||||||
import { pageListenMixins } from '@/mixins/pageListenMixins'
|
import { pageListenMixins } from '@/mixins/pageListenMixins'
|
||||||
export default {
|
export default {
|
||||||
@@ -55,18 +54,36 @@ export default {
|
|||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
const id = options.id
|
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: {
|
methods: {
|
||||||
handleSearch() {
|
handleSearch() {
|
||||||
this.currentList = this.list.filter(item => item.title.indexOf(this.keyword) > -1)
|
this.currentList = this.list.filter(item => item.title.indexOf(this.keyword) > -1)
|
||||||
},
|
},
|
||||||
getListReq(id) {
|
getListReq(id, type) {
|
||||||
getCountyFamousInvestmentFile({
|
let reqFn = null
|
||||||
countyFamousDataId: id,
|
let params = {}
|
||||||
page: 1,
|
if (type === 'investment') {
|
||||||
limit: 9999
|
reqFn = getCountyFamousInvestmentFile
|
||||||
}).then(res => {
|
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
|
const { success, data } = res
|
||||||
if (success) {
|
if (success) {
|
||||||
this.isLoad = true
|
this.isLoad = true
|
||||||
@@ -126,5 +143,11 @@ export default {
|
|||||||
.loadend {
|
.loadend {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
.no-data-txt {
|
||||||
|
text-align: center;
|
||||||
|
line-height: 200rpx;
|
||||||
|
color: #999;
|
||||||
|
font-size: 36rpx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -360,6 +360,7 @@
|
|||||||
<image
|
<image
|
||||||
:src="item.image"
|
:src="item.image"
|
||||||
class="img"
|
class="img"
|
||||||
|
@click="gotoInvestment(item.title, 'project', item.id)"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -412,7 +413,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="investmentFileList.length > 0" class="more-btn-wrap">
|
<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>
|
||||||
</view>
|
</view>
|
||||||
@@ -949,8 +950,8 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
gotoInvestment() {
|
gotoInvestment(title = '', type = 'investment', id = '') {
|
||||||
uni.navigateTo({ url: `/pkg_product/views/famousQianxianInvestment?id=${this.id}` })
|
uni.navigateTo({ url: `/pkg_product/views/famousQianxianInvestment?id=${id || this.id}&title=${title}&type=${type}` })
|
||||||
},
|
},
|
||||||
villageItemClick(item) {
|
villageItemClick(item) {
|
||||||
uni.navigateTo({ url: `/pkg_product/views/famousQianxianVillageShop?id=${item.id}` })
|
uni.navigateTo({ url: `/pkg_product/views/famousQianxianVillageShop?id=${item.id}` })
|
||||||
|
|||||||
@@ -56,9 +56,9 @@
|
|||||||
<image :src="inn.logo" v-if="inn.logo"></image>
|
<image :src="inn.logo" v-if="inn.logo"></image>
|
||||||
<image :src="webUrl + '/20230609145651814148.png'" v-else/>
|
<image :src="webUrl + '/20230609145651814148.png'" v-else/>
|
||||||
</view>
|
</view>
|
||||||
<view class="a3 flex v12-justify-between" style="width: calc(100% - 140rpx);">
|
<view class="a3 flex" style="width: 100%">
|
||||||
<view class="inn-owner one-t">{{ inn.name }}</view>
|
<view class="inn-owner one-t">{{ inn.name }}</view>
|
||||||
<view class="inn-owner-desc one-t">
|
<view class="inn-owner-desc">
|
||||||
{{ inn.contact }}/联系人
|
{{ inn.contact }}/联系人
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -444,7 +444,7 @@ export default {
|
|||||||
line-height: 48rpx;
|
line-height: 48rpx;
|
||||||
}
|
}
|
||||||
.inn-owner {
|
.inn-owner {
|
||||||
width: calc(100% - 180rpx);
|
width: calc(100% - 240rpx);
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #333;
|
color: #333;
|
||||||
@@ -455,7 +455,6 @@ export default {
|
|||||||
color: #999;
|
color: #999;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
max-width: 160rpx;
|
|
||||||
}
|
}
|
||||||
.inn-tag-wrap {
|
.inn-tag-wrap {
|
||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
|
|||||||
Reference in New Issue
Block a user