1.修改星巴克规格数据问题

yj-dev
杨杰 2 years ago
parent c5c7d876da
commit 452125bab6
  1. 3
      manifest.json
  2. 19
      qianzhu-KFC/menu-list/menu-list.vue

@ -69,7 +69,8 @@
"scope.userLocation" : { "scope.userLocation" : {
"desc" : "你的位置信息将用于小程序定位" "desc" : "你的位置信息将用于小程序定位"
} }
} },
"requiredPrivateInfos" : [ "getLocation" ]
}, },
"h5" : { "h5" : {
"sdkConfigs" : { "sdkConfigs" : {

@ -353,12 +353,25 @@
showPopup(item) { showPopup(item) {
this.nums = 1; this.nums = 1;
this.cbkchangelist = item; this.cbkchangelist = item;
this.salesTallPrice = item.salesTallPrice;
app.globalData.salesTallPrice = item.salesTallPrice;
this.marketTallPrice = item.marketTallPrice;
if (item.cupSize) { if (item.cupSize) {
this.cupSize = item.cupSize.split(','); 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) { if (item.temperature) {
this.temperature = item.temperature.split(','); this.temperature = item.temperature.split(',');

Loading…
Cancel
Save