Commit fe43bb89f61ee7e26cd757a4136e3d7064db580d

Authored by pengye
1 parent dec01d55

扫码支付页付款金额传参修改、跳转应用后重置数据

@@ -923,7 +923,7 @@ Page({ @@ -923,7 +923,7 @@ Page({
923 // 付款 923 // 付款
924 confirmPayment: util.throttle(function () { 924 confirmPayment: util.throttle(function () {
925 let that = this; 925 let that = this;
926 - let actualPrice = this.data.actualPrice 926 + let soothPrice = this.data.soothPrice
927 wx.showLoading({ 927 wx.showLoading({
928 title: '支付中', 928 title: '支付中',
929 }) 929 })
@@ -931,7 +931,7 @@ Page({ @@ -931,7 +931,7 @@ Page({
931 console.log('核销所勾选的券传参', str); 931 console.log('核销所勾选的券传参', str);
932 let params = { 932 let params = {
933 sellerid: this.data.seller.sid, 933 sellerid: this.data.seller.sid,
934 - price: actualPrice, 934 + price: soothPrice,
935 } 935 }
936 if (this.data.consumeDiscount) { 936 if (this.data.consumeDiscount) {
937 params.consume = this.data.consumeDiscount; 937 params.consume = this.data.consumeDiscount;
@@ -970,7 +970,7 @@ Page({ @@ -970,7 +970,7 @@ Page({
970 }) 970 })
971 } 971 }
972 if (res.ret == '200') { 972 if (res.ret == '200') {
973 - that.deductBalance(actualPrice, res.data.id) 973 + that.deductBalance(soothPrice, res.data.id)
974 } 974 }
975 }) 975 })
976 return false 976 return false
@@ -996,8 +996,8 @@ Page({ @@ -996,8 +996,8 @@ Page({
996 success(ress) { 996 success(ress) {
997 wx.hideLoading() 997 wx.hideLoading()
998 if (ress.errMsg == 'requestPayment:ok') { 998 if (ress.errMsg == 'requestPayment:ok') {
999 - that.giftCouponsFun(actualPrice,res.data.orderid) //送券  
1000 - that.giftConsumeFun(actualPrice, res.data.orderid) //送消费金 999 + that.giftCouponsFun(soothPrice,res.data.orderid) //送券
  1000 + that.giftConsumeFun(soothPrice, res.data.orderid) //送消费金
1001 setTimeout(() => { 1001 setTimeout(() => {
1002 console.log('2送券金额----', that.data.totalPrice); 1002 console.log('2送券金额----', that.data.totalPrice);
1003 console.log('2送消费金----', that.data.totalConsumePrice); 1003 console.log('2送消费金----', that.data.totalConsumePrice);
@@ -1597,6 +1597,7 @@ Page({ @@ -1597,6 +1597,7 @@ Page({
1597 * 生命周期函数--监听页面显示 1597 * 生命周期函数--监听页面显示
1598 */ 1598 */
1599 onShow() { 1599 onShow() {
  1600 + this.payFail()
1600 this.getCheckUserHavePhone() 1601 this.getCheckUserHavePhone()
1601 this.getFreeMealConfigFun() 1602 this.getFreeMealConfigFun()
1602 }, 1603 },
@@ -363,7 +363,6 @@ page { @@ -363,7 +363,6 @@ page {
363 } 363 }
364 364
365 .dishMain image { 365 .dishMain image {
366 - margin-bottom: 12rpx;  
367 width: 100%; 366 width: 100%;
368 } 367 }
369 368