From ef19e7cb726ad2a2a3a72b0eb22ffe314d37a7cc Mon Sep 17 00:00:00 2001 From: sx <2427911852@qq.com> Date: Sat, 12 Apr 2025 09:00:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E4=BB=A3=E7=A0=81=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jiuyi2/api/shop.js | 12 ++++ jiuyi2/common/js/config.js | 4 +- jiuyi2/components/shop/detail/detail.vue | 17 +++--- jiuyi2/components/shop/detail/footerMenu.vue | 4 +- jiuyi2/pages/index/myTeam.vue | 42 +++++++++----- jiuyi2/pages/release/commodity.vue | 52 ++++++++++------- jiuyi2/pages/shop/commodity/index.vue | 1 - jiuyi2/pages/shop/gift.vue | 59 +++++++++++++++++++- jiuyi2/pages/shop/shop.vue | 34 +++++++++-- jiuyi2/vite.config.js | 4 +- 10 files changed, 173 insertions(+), 56 deletions(-) diff --git a/jiuyi2/api/shop.js b/jiuyi2/api/shop.js index c75d947c..bbdba913 100644 --- a/jiuyi2/api/shop.js +++ b/jiuyi2/api/shop.js @@ -135,6 +135,18 @@ const shop = { }) }, + /** + * 发布商品分类列表 + * @param {Object} param + */ + getSaveProCate(param) { + return util.request({ + url: `/shopify/category/getListBySaveProduct`, + method: 'GET', + query: param.query, + }) + }, + /** * 根据商品主键获取商品详情 * @param {Object} param diff --git a/jiuyi2/common/js/config.js b/jiuyi2/common/js/config.js index 9fa6fc82..7a0f6484 100644 --- a/jiuyi2/common/js/config.js +++ b/jiuyi2/common/js/config.js @@ -7,8 +7,8 @@ const config = { // #endif // #ifndef H5 // host: 'http://91f.xyz:8080', - host: 'http://liuyd.cpolar.top', - // host: 'http://hpedc3.natappfree.cc', + // host: 'http://liuyd.cpolar.top', + host: 'http://5vpc5z.natappfree.cc', // #endif // 是否vivo显示 showVivo: true, diff --git a/jiuyi2/components/shop/detail/detail.vue b/jiuyi2/components/shop/detail/detail.vue index 569fe3ee..748b73fa 100644 --- a/jiuyi2/components/shop/detail/detail.vue +++ b/jiuyi2/components/shop/detail/detail.vue @@ -23,6 +23,9 @@ // 富文本处理 import parseRichText from '@/components/public/parse/parse.vue' + const { + proxy + } = getCurrentInstance() // 传参 const props = defineProps({ id: { @@ -34,10 +37,8 @@ default: {} }, }) - - const { - proxy - } = getCurrentInstance() + // 是否礼包商品 + const giftPack = computed(() => props.detail.categoryCode?.startsWith('GIFT_PACK')) // 在这里设置swiper高度补足多端差异 const bannerHeight = ref('800rpx') // 轮播图详情 @@ -218,7 +219,7 @@ - + 已售 {{detail.sales}} @@ -247,7 +248,7 @@ - + 假一赔十 @@ -267,7 +268,7 @@ - + @@ -319,7 +320,7 @@ - + diff --git a/jiuyi2/components/shop/detail/footerMenu.vue b/jiuyi2/components/shop/detail/footerMenu.vue index 9574cdae..d36537a4 100644 --- a/jiuyi2/components/shop/detail/footerMenu.vue +++ b/jiuyi2/components/shop/detail/footerMenu.vue @@ -30,6 +30,8 @@ default: () => ({}) }, }) + // 是否礼包商品 + const giftPack = computed(() => props.detail.categoryCode?.startsWith('GIFT_PACK')) // const emit = defineEmits(['update', 'buy']) // 用户信息 @@ -114,7 +116,7 @@ - + 店铺 diff --git a/jiuyi2/pages/index/myTeam.vue b/jiuyi2/pages/index/myTeam.vue index 17518191..23c6b33a 100644 --- a/jiuyi2/pages/index/myTeam.vue +++ b/jiuyi2/pages/index/myTeam.vue @@ -109,7 +109,7 @@ 账户昵称 - {{team.referrerReferrerUser.userNickname}} + {{team.referrerReferrerUser.userNickname}} @@ -135,7 +135,7 @@ 账户昵称 - {{team.referrerUser.userNickname}} + {{team.referrerUser.userNickname}} @@ -158,8 +158,12 @@ + + + - {{item.userNickname}} + {{item.userNickname}} {{item.sonList.length}}