diff --git a/api/qianxian.js b/api/qianxian.js index 8dab74b..499c22d 100644 --- a/api/qianxian.js +++ b/api/qianxian.js @@ -99,3 +99,7 @@ export function getCountyFamousVillageNews(param) { export function getShareImg(id) { return request.get('/countyFamous/poster/' + id, {login: true}) } + +export function getSaleList(params) { + return request.get('/countyFamous/village/category', params, {login: true}) +} diff --git a/pkg_product/views/famousQianxianShop.vue b/pkg_product/views/famousQianxianShop.vue index a643f4a..5c5d5f3 100644 --- a/pkg_product/views/famousQianxianShop.vue +++ b/pkg_product/views/famousQianxianShop.vue @@ -316,6 +316,7 @@ + + + + {{ sale.name }} + + { + const { success, data } = res + if (success) { + this.villageList = data.records || [] + } + }) + }, + getsaleList() { + const params = { + countyFamousDataId: this.id + } + getSaleList(params).then(res => { + this.saleList = res.data || [] + }) + }, goStore(item) { if (item.farmerShopId === 0) { uni.showToast({ @@ -770,7 +807,7 @@ export default { } }) }, - getListReq() { + getListReq(id) { // getPoster(this.id).then(({data}) => this.posterUrl = data) getCountyFamousIndustry({ countyFamousDataId: this.id, @@ -804,6 +841,7 @@ export default { }) getCountyFamousVillage({ countyFamousDataId: this.id, + categoryId: id, page: 1, limit: 9999 }).then(res => { @@ -1203,6 +1241,25 @@ export default {