From bfcd461d2374274226922806130fa67ce7d939a1 Mon Sep 17 00:00:00 2001 From: shaojing <2901156235@qq.com> Date: Tue, 27 Aug 2024 10:44:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subPackages/food/foodDetail.vue | 198 ++------------------------------ 1 file changed, 7 insertions(+), 191 deletions(-) diff --git a/subPackages/food/foodDetail.vue b/subPackages/food/foodDetail.vue index d691af4..0803693 100644 --- a/subPackages/food/foodDetail.vue +++ b/subPackages/food/foodDetail.vue @@ -1,18 +1,17 @@ @@ -209,7 +61,6 @@ },'/api/goods/getGoodDetail').then(res => { res.data.goods_new_tag = (res.data.goods_new_tag ? res.data.goods_new_tag.split(',') : []).splice(0, 2); this.info = res.data - this.getComment() }) }, getSpecificationsByGoodsId() { @@ -223,20 +74,6 @@ } }); }, - getBusinessInfo() { - this.Post({ - goods_id: this.id, - lon: this.$store.state.user.location.lon || 116.437164, - lat: this.$store.state.user.location.lat || 39.911372, - limit: 10 - }, - '/api/extract/getMerchantExtractListByGoodsId' - ).then(res => { - if (res) { - this.businessInfo = res.data; - } - }); - }, // 收藏 collect() { this.Post({ @@ -256,22 +93,6 @@ } }); }, - //数量加减 - addNumber() { - this.buyNum += 1; - }, - delNumber() { - if (this.buyNum <= 1) { - return; - } - this.buyNum -= 1; - }, - closePopup() { - this.$refs.popup.close() - }, - openPop(){ - this.$refs.popup.open() - }, order(item) { let goods = this.sku[this.productIndex] goods.buyNum = this.buyNum @@ -281,11 +102,6 @@ url: '/subPackages/oneplus/oneplusOrder' }); }, - goUser() { - uni.switchTab({ - url: '/pages/index/user' - }) - } }, onReachBottom() {