From 0f85b2fc58fd02ce8a996c6cd18429fa882ccdbc Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Mon, 19 Aug 2024 16:52:47 +0800 Subject: [PATCH] =?UTF-8?q?Refactor(=E5=8D=83=E5=8E=BF=E5=90=8D=E5=93=81):?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E9=A6=96=E9=A1=B5=E5=92=8C=E5=8E=BF=E4=B8=BB?= =?UTF-8?q?=E9=A1=B5=E7=95=8C=E9=9D=A2=E4=BD=BF=E7=94=A8=E6=96=B0=E7=89=88?= =?UTF-8?q?UI=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/qianxian.js | 36 ++ components/xdd-product-item/index.vue | 19 +- pages.json | 6 + pkg_product/views/famousList.vue | 622 +++++++++++++------ pkg_product/views/famousList_bak20240819.vue | 260 ++++++++ pkg_product/views/famousQianxian.vue | 189 ++++++ 6 files changed, 927 insertions(+), 205 deletions(-) create mode 100644 api/qianxian.js create mode 100644 pkg_product/views/famousList_bak20240819.vue create mode 100644 pkg_product/views/famousQianxian.vue diff --git a/api/qianxian.js b/api/qianxian.js new file mode 100644 index 0000000..12076da --- /dev/null +++ b/api/qianxian.js @@ -0,0 +1,36 @@ +import request from '@/utils/request' + +// 千县名品首页 +export function getCountyFamousIndex() { + return request.get('/countyFamous/index', {}, { login: true }) +} + +// 获取千县名品省-县树形列表 +export function getCountyFamousCityTree(param) { + return request.get('/countyFamous/cityTree', param, { login: true }) +} + +// 获取千县名品县城数据 +export function getCountyFamousCityDetail(id) { + return request.get('/countyFamous/' + id, {}, { login: true }) +} + +// 获取千县名品县城店铺数据 +export function getCountyFamousCityShop(param) { + return request.get('/countyFamous/shop', param, { login: true }) +} + +// 获取千县名品县城资讯数据 +export function getCountyFamousCityNews(param) { + return request.get('/countyFamous/news', param, { login: true }) +} + +// 获取千县名品县城攻略数据 +export function getCountyFamousCityGuide(param) { + return request.get('/countyFamous/guide', param, { login: true }) +} + +// 获取千县名品县城攻略数据 +export function getCountyFamousCityGuideContent(param) { + return request.get('/countyFamous/guide/content', param, { login: true }) +} diff --git a/components/xdd-product-item/index.vue b/components/xdd-product-item/index.vue index 8a96c2a..466ea28 100644 --- a/components/xdd-product-item/index.vue +++ b/components/xdd-product-item/index.vue @@ -23,18 +23,18 @@ - {{ item.storeName }} + {{ item[nameKey] }} {{ item.bestContent }} - + {{ item.couponName }} - ¥{{ item.price }} + ¥{{ item[priceKey] }} - - - - - - - - - - - - - - - - {{ item.value }} - - - - 千县名品榜单 - - - - - - {{ item.storeName }} - ¥ - {{ item.price }} + + + + + + 搜索 + - - + + + + + + + + + {{ item.provinceName }} + + + + + + + + + + + + + + + + + + + + + + {{ item.provinceName }} + + + + {{ item.intro }} + + + + + + + + + {{ county.countyName }} + + + + + + + + + + + + {{ county.countyName }} + + + + + + + + + + + {{ county.countyName }} + + + + + + + + + + + diff --git a/pkg_product/views/famousList_bak20240819.vue b/pkg_product/views/famousList_bak20240819.vue new file mode 100644 index 0000000..be3da4f --- /dev/null +++ b/pkg_product/views/famousList_bak20240819.vue @@ -0,0 +1,260 @@ + + + + + diff --git a/pkg_product/views/famousQianxian.vue b/pkg_product/views/famousQianxian.vue new file mode 100644 index 0000000..f357382 --- /dev/null +++ b/pkg_product/views/famousQianxian.vue @@ -0,0 +1,189 @@ + + + + +