From 1411f15679b343101076b8d83a2ee5d50db375bb Mon Sep 17 00:00:00 2001 From: "pikachu1995@126.com" Date: Thu, 29 Oct 2026 17:17:35 +0800 Subject: [PATCH] =?UTF-8?q?refactor(goods):=20=E7=A7=BB=E9=99=A4=E5=95=86?= =?UTF-8?q?=E5=93=81=E8=AF=A6=E6=83=85=E9=A1=B5=E9=85=8D=E9=80=81=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E7=9B=B8=E5=85=B3=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除了"送至"地址展示卡片区域 - 移除了配送地址弹窗组件(popupAddress)的引用和导入 - 删除了 delivery 和 addressFlag 响应式变量 - 删除了 deliveryFun 和 closePopupAddress 函数 - 移除了 popupGoods 组件中的 addr 属性传参 - 删除了 shutMask 中地址弹窗的 case 3 逻辑 - 移除了 address.vue 中未登录跳转登录页的 else 分支 --- pages/product/goods.vue | 31 +------------------------ pages/product/product/popup/address.vue | 4 ---- 2 files changed, 1 insertion(+), 34 deletions(-) diff --git a/pages/product/goods.vue b/pages/product/goods.vue index 559e2cf..7c54536 100644 --- a/pages/product/goods.vue +++ b/pages/product/goods.vue @@ -170,17 +170,6 @@ - - 送至 - - {{clearStrComma(delivery.consigneeAddressPath) - }} - 暂无地址信息 - - - - - @@ -271,12 +260,8 @@ - - - - @@ -318,7 +303,6 @@ import storeLayout from './product/shop/-shop' import Evaluation from './product/evaluation/-evaluation' import GoodsSwiper from './product/goods/-goods-swiper' import popupGoods from '@/components/m-buy/goods' -import popupAddress from './product/popup/address' import shares from '@/components/m-share/index' import takeDownFormSaleGoods from '@/components/m-take-down-sale-goods/index' import setup from './product/popup/popup' @@ -358,7 +342,6 @@ const goodsSpec = ref("") const imgList = ref([]) const favorite = ref(false) const recommendList = ref([]) -const addressFlag = ref(false) const buyMask = ref(false) const num = ref(1) const skuId = ref("") @@ -372,7 +355,6 @@ const PromotionList = ref("") const specList = ref([]) const selectedSpec = ref([]) const nums = ref(0) -const delivery = ref("") const exchange = ref({}) const productId = ref(0) const startTimer = ref(false) @@ -550,13 +532,6 @@ function changedGoods(val: any) { selectedGoods.value = val } -function deliveryFun(val: any) { - delivery.value = val -} - -function closePopupAddress(val: any) { - addressFlag.value = val -} function closePopupBuy(val: any) { buyMask.value = val @@ -694,15 +669,11 @@ function handleBuyClick() { function shutMask(flag: any, buyFlag?: any, type?: any) { promotionShow.value = false buyMask.value = false - addressFlag.value = false if (flag) { switch (flag) { case 1: promotionShow.value = true break - case 3: - addressFlag.value = true - break case 4: buyMask.value = true if (buyFlag == "PINTUAN") { diff --git a/pages/product/product/popup/address.vue b/pages/product/product/popup/address.vue index 9692ea1..0998d25 100644 --- a/pages/product/product/popup/address.vue +++ b/pages/product/product/popup/address.vue @@ -54,10 +54,6 @@ const cityList = ref([ onMounted(() => { if (isLogin('auth')) { getShippingAddress() - } else { - uni.navigateTo({ - url: '/pages/passport/login', - }) } })