1.修改2.0 页面问题

yj-dev
杨杰 2 years ago
parent d8158babc3
commit 033c8ff68b
  1. 136
      pages/order/confirmation.vue
  2. 2
      qianzhu-KFC/confirmOrder/confirmOrder.vue
  3. 4
      subPages/unionComfirmation/unionComfirmation.vue

@ -9,28 +9,14 @@
<view class="font13 fcor666 mart10">规格: 默认</view> <view class="font13 fcor666 mart10">规格: 默认</view>
<view class="price-number mart10" v-if="isDiscont"> <view class="price-number mart10" v-if="isDiscont">
<view class="price font16">{{couponList.salesPrice}}</view> <view class="price font16">{{couponList.salesPrice}}</view>
<!-- <view class="price font16" v-else>
<image style="width: 15px;height: 15px;" src="../../static/img/jfx.png">
</image>{{couponList.salesPrice * 100}}
</view> -->
<view class="flright fotrt paddleft10">x1</view> <view class="flright fotrt paddleft10">x1</view>
</view> </view>
<view class="price-number mart10" v-if="!isDiscont"> <view class="price-number mart10" v-if="!isDiscont">
<view class="price font16">{{couponList.discountPrice}}</view> <view class="price font16">{{couponList.discountPrice}}</view>
<!-- <view class="price font16" v-else>
<image style="width: 15px;height: 15px;" src="../../static/img/jfx.png">
</image>{{couponList.discountPrice*100}}
</view> -->
<view class="number fcor666 font13 margle" <view class="number fcor666 font13 margle"
v-if="couponList.salesPrice != couponList.discountPrice"> v-if="couponList.salesPrice != couponList.discountPrice">
{{couponList.salesPrice}} {{couponList.salesPrice}}
</view> </view>
<!-- <view class="number fcor666 font13 margle"
v-if="couponList.payType != 1 && couponList.salesPrice != couponList.discountPrice">
<image style="width: 15px;height: 15px;" src="../../static/img/jfh.png">
</image>{{couponList.salesPrice*100}}
</view> -->
<view class="flright fotrt paddleft10">x1</view> <view class="flright fotrt paddleft10">x1</view>
</view> </view>
</view> </view>
@ -43,19 +29,9 @@
<view class="width40 flright fotrt paddtright10 font15 fontwig6 fcor999" v-if=" isDiscont"> <view class="width40 flright fotrt paddtright10 font15 fontwig6 fcor999" v-if=" isDiscont">
{{couponList.salesPrice}} {{couponList.salesPrice}}
</view> </view>
<!-- <view class="width40 flright alijun paddtright10 font15 fontwig6 fcor666 aliitem"
v-if="couponList.payType != 1 && isDiscont">
<image style="width: 15px;height: 15px;" src="../../static/img/jfx.png">
</image>{{couponList.salesPrice*100}}
</view> -->
<view class="width40 flright fotrt paddtright10 font15 fontwig6 fcor999" v-if="!isDiscont"> <view class="width40 flright fotrt paddtright10 font15 fontwig6 fcor999" v-if="!isDiscont">
{{couponList.discountPrice}} {{couponList.discountPrice}}
</view> </view>
<!-- <view class="width40 flright alijun paddtright10 font15 fontwig6 fcor666 aliitem"
v-if="couponList.payType != 1 && !isDiscont">
<image style="width: 15px;height: 15px;" src="../../static/img/jfx.png">
</image>{{couponList.discountPrice*100}}
</view> -->
</view> </view>
<view class="width94 line1 mart5 marb5"></view> <view class="width94 line1 mart5 marb5"></view>
@ -104,9 +80,6 @@
<cj-slider style="width: 60%; float:left;" v-if="isDiscount" v-model="priceValue" :min="0" <cj-slider style="width: 60%; float:left;" v-if="isDiscount" v-model="priceValue" :min="0"
:max="availIntegal" :step="1" :blockWidth="40" @start="blockStart" @moving="blockMoving" :max="availIntegal" :step="1" :blockWidth="40" @start="blockStart" @moving="blockMoving"
@end="blockEnd" /> @end="blockEnd" />
<!-- <cj-slider style="width: 60%; float:left;" v-if="isDiscount == 2" v-model="priceValue" :min="0"
:max="availIntegal" :step="1" :blockWidth="40" @start="blockStart" @moving="blockMoving"
@end="blockEnd" /> -->
<view class="flright fotrt font14 fcor666" style="width: 25%;">{{availIntegal}}</view> <view class="flright fotrt font14 fcor666" style="width: 25%;">{{availIntegal}}</view>
</view> </view>
</view> </view>
@ -174,27 +147,10 @@
</view> </view>
</view> </view>
<!-- <view class="width94 comorder mart10">
<view class="height50 width100 backcorfff">
<view class="width80p flleft fcor333 fontwig6 font14" style="padding-left: 4%;">
<text style="color: #0083F5;">条约协议</text>点击立即支付即代表同意
</view>
<view class="width15 flright fotct">
<image class="jtcs" src="../../static/img/jt.png"></image>
</view>
</view>
</view> -->
<view class="width100 height60"></view> <view class="width100 height60"></view>
<view class="footer"> <view class="footer">
<view class="settlement"> <view class="settlement">
<view class="sum">实付:<view class="money">{{paytheprice}}</view> <view class="sum">实付:<view class="money">{{paytheprice}}</view>
<!-- <view class="money aliitem" v-else>
<image style="width: 15px;height: 15px;vertical-align: sub;" src="../../static/img/jfx.png">
</image>{{paytheprice*100}}
</view> -->
</view> </view>
<!-- #ifdef MP --> <!-- #ifdef MP -->
<button class="btn" open-type="getPhoneNumber" v-if="user == null" <button class="btn" open-type="getPhoneNumber" v-if="user == null"
@ -234,7 +190,6 @@
getCouponById, getCouponById,
loginByPhone, loginByPhone,
getUserNormalDiscountList, getUserNormalDiscountList,
orderToGoldPay,
findUser, findUser,
cardPay, cardPay,
getRebateIntegral, getRebateIntegral,
@ -256,13 +211,6 @@
}, },
data() { data() {
return { return {
buylist: [], //
goodsPrice: 0.0, //
sumPrice: 0.0, //
freight: 12.00, //
note: '', //
int: 1200, //
deduction: 0, //
couponId: '', couponId: '',
couponList: [], couponList: [],
UserNormalDiscountList: [], UserNormalDiscountList: [],
@ -431,38 +379,6 @@
showPopup() { showPopup() {
this.$refs.popup.show(); this.$refs.popup.show();
}, },
// radioChanges(item) {
// if (this.memDiscountId == item.id) { //
// this.memDiscountId = '';
// this.coupondiscountid = '';
// this.paytheprice = this.couponList.discountPrice;
// this.deductionPrice = '0.00';
// this.isDiscont = false;
// } else { //
// this.isDiscont = true;
// this.memDiscountId = item.id;
// this.coupondiscountid = item.id;
// if (item.highDiscount.discountType == 1) {
// //
// this.deductionPrice = item.highDiscount.discountPrice;
// this.paytheprice = parseFloat(this.couponList.salesPrice - this.deductionPrice).toFixed(2);
// } else if (item.highDiscount.discountType == 2) {
// //
// this.deductionPrice = item.highDiscount.discountPrice;
// this.paytheprice = parseFloat(this.couponList.salesPrice - this.deductionPrice).toFixed(2);
// } else if (item.highDiscount.discountType == 3) {
// //
// this.deductionPrice = parseFloat(this.couponList.salesPrice - (this.couponList.salesPrice *
// item
// .highDiscount.discountPrice)).toFixed(2)
// this.paytheprice = parseFloat(this.couponList.salesPrice * item.highDiscount.discountPrice)
// .toFixed(2);
// }
// }
// this.$refs.popup.hide();
// },
// //
radioChanges(item) { radioChanges(item) {
this.paytheprice = this.orderPrice; this.paytheprice = this.orderPrice;
@ -516,14 +432,9 @@
if (payprice > this.user.gold) { if (payprice > this.user.gold) {
this.availIntegal = this.user.gold; this.availIntegal = this.user.gold;
this.priceValue[1] = 0; this.priceValue[1] = 0;
// if (this.availIntegal < this.priceValue[1]) {
// this.priceValue[1] = this.user.gold;
// this.reload();
// }
} else { } else {
this.availIntegal = payprice; this.availIntegal = payprice;
this.priceValue[1] = 0; this.priceValue[1] = 0;
// this.reload();
} }
this.reload(); this.reload();
this.calculatepayPrice(); this.calculatepayPrice();
@ -563,7 +474,6 @@
}) })
}, },
// //
//
getHuiLianTongCardBalance() { getHuiLianTongCardBalance() {
let params = { let params = {
cardNo: this.user.hltCardNo.cardNo cardNo: this.user.hltCardNo.cardNo
@ -620,7 +530,7 @@
}); });
}, },
toPay() { toPay() {
if (this.paytheprice == 0) { if (this.paytheprice == 0) {
if (!this.user.isSetPayPwd) { if (!this.user.isSetPayPwd) {
uni.navigateTo({ uni.navigateTo({
@ -630,15 +540,15 @@
} }
this.$refs.paymentPassword.modalFun('show'); this.$refs.paymentPassword.modalFun('show');
return; return;
} }
if (this.paytype == '') { if (this.paytype == '') {
uni.showToast({ uni.showToast({
title: '请选择支付方式', title: '请选择支付方式',
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
return; return;
} }
if (this.orderDetails) { if (this.orderDetails) {
@ -659,8 +569,8 @@
"saleCount": 1, "saleCount": 1,
}], }],
"payGold": this.priceValue[1], "payGold": this.priceValue[1],
"promoteCode": this.identificationCode, "promoteCode": this.identificationCode,
memDiscountId:this.memDiscountId memDiscountId: this.memDiscountId
} }
create(goods).then(res => { create(goods).then(res => {
uni.hideLoading(); uni.hideLoading();
@ -821,21 +731,21 @@
"saleCount": 1, "saleCount": 1,
}], }],
"payGold": this.priceValue[1], "payGold": this.priceValue[1],
"promoteCode": this.identificationCode, "promoteCode": this.identificationCode,
"payPwd": this.PaymentPassword, "payPwd": this.PaymentPassword,
memDiscountId:this.memDiscountId memDiscountId: this.memDiscountId
} }
create(goods).then(res => { create(goods).then(res => {
uni.hideLoading(); uni.hideLoading();
if (res.return_code == '000000') { if (res.return_code == '000000') {
uni.showToast({ uni.showToast({
title: '支付成功' title: '支付成功'
}) })
app.globalData.storeid = ''; app.globalData.storeid = '';
app.globalData.storename = ''; app.globalData.storename = '';
uni.reLaunch({ uni.reLaunch({
url: '../pay/success/success?id=' + this url: '../pay/success/success?id=' + this
.couponId .couponId
}); });
} else { } else {
uni.showToast({ uni.showToast({

@ -619,7 +619,7 @@
"storeCode":this.storeCode, "storeCode":this.storeCode,
"platformId": this.showType, "platformId": this.showType,
"productType": this.productType, "productType": this.productType,
"orderItems": data2, "orderItems": this.orderList,
"goodsType": 9, "goodsType": 9,
"saleCount": 1, "saleCount": 1,
}], }],

@ -564,8 +564,8 @@
"companyId": app.globalData.companyId, "companyId": app.globalData.companyId,
"memDiscountId": that.memDiscountId, "memDiscountId": that.memDiscountId,
"payPwd": "" "payPwd": ""
} }
create(params).then(res => { create(params).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {
uni.hideLoading(); uni.hideLoading();

Loading…
Cancel
Save