|
@@ -46,6 +46,8 @@ Page({
|
|
|
shop_weight: 0,
|
|
|
is_distance:false,
|
|
|
dvyType:'',//配送方式
|
|
|
+ totalAvailableScore:0,//可用积分
|
|
|
+ totalUsableScore:0,//积分抵扣金额
|
|
|
},
|
|
|
|
|
|
/**
|
|
@@ -186,6 +188,8 @@ Page({
|
|
|
scorePlaceholder: `使用${res.totalUsableScore}积分抵扣${res.totalScoreAmount}元`,
|
|
|
shopUseScore: res.shopUseScore, // 店铺积分抵扣比例;
|
|
|
isPurePoints: res.actualTotal == 0 ? true : false,
|
|
|
+ totalUsableScore:res.totalUsableScore,
|
|
|
+ totalAvailableScore:res.totalAvailableScore,
|
|
|
});
|
|
|
this.getDeliveryAmount()
|
|
|
},
|
|
@@ -240,13 +244,13 @@ Page({
|
|
|
* 提交订单校验
|
|
|
*/
|
|
|
toPay: function () {
|
|
|
- if (this.data.actualTotal < this.data.deliveryAmount_num) {
|
|
|
- wx.showToast({
|
|
|
- title: '商品总额需大于起送价~',
|
|
|
- icon: "none"
|
|
|
- })
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (this.data.actualTotal < this.data.deliveryAmount_num) {
|
|
|
+ // wx.showToast({
|
|
|
+ // title: '商品总额需大于起送价~',
|
|
|
+ // icon: "none"
|
|
|
+ // })
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
if (!this.data.userAddr) {
|
|
|
wx.showToast({
|
|
|
title: '请选择地址',
|