1.修改2.0扫码领券

2.优化肯德基 星巴克样式
yj-dev
杨杰 2 years ago
parent f9bbd63963
commit 82c8d55ef3
  1. 2
      pages/goods/externalCoupon/externalCoupon.vue
  2. 19
      pages/order/confirmation.vue
  3. 6
      qianzhu-KFC/home/home.vue
  4. 2
      qianzhu-KFC/menu-list/menu-list.vue
  5. 4
      qianzhu-Starbucks/home/home.vue

@ -368,7 +368,7 @@
}) })
} else { } else {
uni.navigateTo({ uni.navigateTo({
url: '../../order/confirmation?id=' + e url: '../../order/confirmation?id=' + e+'&postPayType=2,'
}) })
} }

@ -259,11 +259,15 @@
Integrastu: 1, // Integrastu: 1, //
contactPepole: '', // contactPepole: '', //
contactPhone: '', // contactPhone: '', //
contactAddress: '' // contactAddress: '', //
postPayType: '' //
}; };
}, },
onLoad(option) { onLoad(option) {
this.couponId = option.id; this.couponId = option.id;
if (option.postPayType != undefined && option.postPayType) {
this.postPayType = option.postPayType;
}
// #ifdef H5 // #ifdef H5
this.identificationCode = app.globalData.staffCode; this.identificationCode = app.globalData.staffCode;
// #endif // #endif
@ -318,7 +322,8 @@
platformId: this.showType, platformId: this.showType,
"companyId": this.couponList.companyId, "companyId": this.couponList.companyId,
productType: 5, productType: 5,
productId: this.couponList.couponSource productId: this.couponList.couponSource,
payType: this.postPayType
} }
getThirdPartyByDetail(datas).then(res => { getThirdPartyByDetail(datas).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {
@ -356,12 +361,12 @@
}); });
}, },
// //
getRebateIntegral() { getRebateIntegral() {
let datas = { let datas = {
"companyId": this.couponList.companyId, "companyId": this.couponList.companyId,
"price": this.paytheprice, "price": this.paytheprice,
"type": 5, "type": 5,
} }
getRebateIntegral(datas).then(res => { getRebateIntegral(datas).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {
this.rebateIntegral = res.return_data; this.rebateIntegral = res.return_data;
@ -386,7 +391,7 @@
this.couponList = res.return_data; this.couponList = res.return_data;
this.paytheprice = res.return_data.discountPrice; this.paytheprice = res.return_data.discountPrice;
this.saveprice = res.return_data.discountPrice; this.saveprice = res.return_data.discountPrice;
this.orderPrice = res.return_data.salesPrice; this.orderPrice = res.return_data.salesPrice;
this.getRebateIntegral(); this.getRebateIntegral();
this.getThirdPartyByDetail(); this.getThirdPartyByDetail();
} }
@ -587,7 +592,7 @@
}], }],
"payGold": this.priceValue[1], "payGold": this.priceValue[1],
"promoteCode": this.identificationCode, "promoteCode": this.identificationCode,
memDiscountId: this.memDiscountId, memDiscountId: this.memDiscountId,
"companyId": app.globalData.companyId, "companyId": app.globalData.companyId,
"storeId": this.storeId, "storeId": this.storeId,
"postData": { "postData": {
@ -757,7 +762,7 @@
}], }],
"payGold": this.priceValue[1], "payGold": this.priceValue[1],
"promoteCode": this.identificationCode, "promoteCode": this.identificationCode,
"payPwd": this.PaymentPassword, "payPwd": this.PaymentPassword,
"companyId": app.globalData.companyId, "companyId": app.globalData.companyId,
memDiscountId: this.memDiscountId memDiscountId: this.memDiscountId
} }

@ -3,11 +3,11 @@
<image mode="widthFix" class="width100 imgs" src="../static/imgs/kfchome.png"></image> <image mode="widthFix" class="width100 imgs" src="../static/imgs/kfchome.png"></image>
<view class="width94 heads alijusstart"> <view class="width94 heads alijusstart">
<view class="width48 backcorfff height280 fotct paddtop15"> <view class="width48 backcorfff height280 fotct paddtop15">
<view class="fcor666 font20"><text class="fcor333 fontwig6 ">KFC</text>在线点餐</view> <view class="fcor666 fontwig6 font20">平台特惠</view>
<view class="c62a1e font28 mart10 fontwig6">5折起</view> <view class="c62a1e font28 mart10 fontwig6">凭码取餐</view>
<image class="width80p mart20" mode="widthFix" src="../static/imgs/kfc1.png"></image> <image class="width80p mart20" mode="widthFix" src="../static/imgs/kfc1.png"></image>
<view class="mart20 width80 height30 border-15 fcorfff backcorf062 font13" @click="jumpbuffert()"> <view class="mart20 width80 height30 border-15 fcorfff backcorf062 font13" @click="jumpbuffert()">
立即点餐(堂食/外带) 立即点餐
</view> </view>
</view> </view>
<!-- <view class="width48 backcorfff margitle height260 fotct paddtop15"> <!-- <view class="width48 backcorfff margitle height260 fotct paddtop15">

@ -211,7 +211,7 @@
} }
}, },
onLoad(options) { onLoad(options) {
// this.storeCode = options.storeCode; this.storeCode = options.storeCode;
this.starttime = options.sttime; this.starttime = options.sttime;
this.endtime = options.entime; this.endtime = options.entime;
this.getStarbucksProducts(); this.getStarbucksProducts();

@ -4,10 +4,10 @@
<view class="width94 heads alijusstart"> <view class="width94 heads alijusstart">
<view class="width48 backcorfff height280 fotct paddtop15"> <view class="width48 backcorfff height280 fotct paddtop15">
<view class="fcor333 fontwig6 font20">星专享</view> <view class="fcor333 fontwig6 font20">星专享</view>
<view class="color2f6f43 font16 mart10">低至9折</view> <view class="color2f6f43 font28 mart10 fontwig6">凭码取餐</view>
<image class="width80p mart20" mode="widthFix" src="../static/imgs/sk1.png"></image> <image class="width80p mart20" mode="widthFix" src="../static/imgs/sk1.png"></image>
<view class="mart20 width80 height30 border-15 fcorfff backcorf2f6 font13" @click="jumpbuffert()"> <view class="mart20 width80 height30 border-15 fcorfff backcorf2f6 font13" @click="jumpbuffert()">
立即点餐(堂食/外带) 立即点餐
</view> </view>
</view> </view>
</view> </view>

Loading…
Cancel
Save