From 452125bab6161ef7e961a24ed2359e77f1093948 Mon Sep 17 00:00:00 2001 From: Wik-T <812952667@qq.com> Date: Tue, 25 Oct 2022 14:45:55 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E6=98=9F=E5=B7=B4=E5=85=8B?= =?UTF-8?q?=E8=A7=84=E6=A0=BC=E6=95=B0=E6=8D=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 3 ++- qianzhu-KFC/menu-list/menu-list.vue | 21 +++++++++++++++++---- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/manifest.json b/manifest.json index 5c09ace..1d876a3 100644 --- a/manifest.json +++ b/manifest.json @@ -69,7 +69,8 @@ "scope.userLocation" : { "desc" : "你的位置信息将用于小程序定位" } - } + }, + "requiredPrivateInfos" : [ "getLocation" ] }, "h5" : { "sdkConfigs" : { diff --git a/qianzhu-KFC/menu-list/menu-list.vue b/qianzhu-KFC/menu-list/menu-list.vue index 1ad94b2..c5dfe36 100644 --- a/qianzhu-KFC/menu-list/menu-list.vue +++ b/qianzhu-KFC/menu-list/menu-list.vue @@ -353,12 +353,25 @@ showPopup(item) { this.nums = 1; this.cbkchangelist = item; - this.salesTallPrice = item.salesTallPrice; - app.globalData.salesTallPrice = item.salesTallPrice; - this.marketTallPrice = item.marketTallPrice; + if (item.cupSize) { this.cupSize = item.cupSize.split(','); - this.cupSizeid = this.cupSize[0]; + this.cupSizeid = this.cupSize[0]; + if (this.cupSizeid == '中杯') { + this.salesTallPrice = this.cbkchangelist.salesTallPrice; + app.globalData.salesTallPrice = this.cbkchangelist.salesTallPrice; + this.marketTallPrice = this.cbkchangelist.marketTallPrice; + } + if (this.cupSizeid == '大杯') { + this.salesTallPrice = this.cbkchangelist.salesGrandePrice; + app.globalData.salesTallPrice = this.cbkchangelist.salesGrandePrice; + this.marketTallPrice = this.cbkchangelist.marketGrandePrice; + } + if (this.cupSizeid == '超大杯') { + this.salesTallPrice = this.cbkchangelist.salesVentiPrice; + app.globalData.salesTallPrice = this.cbkchangelist.salesVentiPrice; + this.marketTallPrice = this.cbkchangelist.marketVentiPrice; + } } if (item.temperature) { this.temperature = item.temperature.split(',');