From 46b858b700dcba466c4f10e46ec029dbe7c312e0 Mon Sep 17 00:00:00 2001 From: modendeveloper Date: Tue, 14 Jan 2025 23:42:33 +0800 Subject: [PATCH] =?UTF-8?q?Task=EF=BC=9A=E7=82=B9=E5=87=BB=E8=B4=AD?= =?UTF-8?q?=E7=89=A9=E8=BD=A6=E5=9B=BE=E6=A0=87=E5=8A=A0=E5=85=A5=E8=B4=AD?= =?UTF-8?q?=E7=89=A9=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ProductWindow.vue | 18 +- components/xdd-product-item/index.vue | 2 +- mixins/goCartMixins.js | 376 +++++++++++++++++++++++ pages/home/components/goods.vue | 1 + pages/home/index.vue | 18 +- pages/home/landMark.vue | 17 +- pages/shop/GoodsCon/index.vue | 23 +- pages/shop/GoodsList/index.vue | 21 +- pkg_product/views/famousQianxianShop.vue | 17 +- pkg_product/views/healthFoods.vue | 16 +- 10 files changed, 485 insertions(+), 24 deletions(-) create mode 100644 mixins/goCartMixins.js diff --git a/components/ProductWindow.vue b/components/ProductWindow.vue index c6a0f0f..b7b7fed 100644 --- a/components/ProductWindow.vue +++ b/components/ProductWindow.vue @@ -1,6 +1,6 @@ @@ -334,6 +345,8 @@ import { getCouponReceive } from '@/api/user' import { getHomeData, getShareImage } from '@/api/public' import { sharpBannar } from '@/api/goods' import { pageListenMixins } from '@/mixins/pageListenMixins' +import ProductWindow from '@/components/ProductWindow' +import goCartMixin from '@/mixins/goCartMixins' import { getCurAddress, getLocationPromise, @@ -344,9 +357,10 @@ export default { name: 'IndexPage', components: { XddTabbar, - XddProductItem + XddProductItem, + ProductWindow }, - mixins: [pageListenMixins], + mixins: [pageListenMixins, goCartMixin], data() { return { webUrl: this.$VUE_APP_RESOURCES_URL, diff --git a/pages/home/landMark.vue b/pages/home/landMark.vue index 4d2310d..214b669 100644 --- a/pages/home/landMark.vue +++ b/pages/home/landMark.vue @@ -56,7 +56,7 @@ - + @@ -160,26 +163,36 @@ v-if="searchType === 'good' && loadend && list.length === 0" /> +