|
@@ -125,16 +125,30 @@
|
|
|
<view>会员立减</view>
|
|
<view>会员立减</view>
|
|
|
<view class="tosend_header_do_ri">- ¥{{ Vipmoney.reduceAmount }}</view>
|
|
<view class="tosend_header_do_ri">- ¥{{ Vipmoney.reduceAmount }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="tosend_header_do justify-between do_bot" @click="isShow">
|
|
|
|
|
|
|
+ <view class="tosend_header_do justify-between do_bot" v-if="Vipmoney.canReduceFlag=='1'">
|
|
|
|
|
+ <view>优惠券</view>
|
|
|
|
|
+ <!-- <view class="tosend_header_do_ri" v-if="coupon">- ¥{{ coupon.money }}</view>
|
|
|
|
|
+ <view v-else>
|
|
|
|
|
+ <image src="../../../static/images/order/right1.png" style="width: 14rpx; height: 24rpx" mode=""></image>
|
|
|
|
|
+ </view> -->
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="tosend_header_do justify-between do_bot" @click="isShow" v-if="Vipmoney.canReduceFlag=='0'">
|
|
|
<view>优惠券</view>
|
|
<view>优惠券</view>
|
|
|
<view class="tosend_header_do_ri" v-if="coupon">- ¥{{ coupon.money }}</view>
|
|
<view class="tosend_header_do_ri" v-if="coupon">- ¥{{ coupon.money }}</view>
|
|
|
<view v-else>
|
|
<view v-else>
|
|
|
<image src="../../../static/images/order/right1.png" style="width: 14rpx; height: 24rpx" mode=""></image>
|
|
<image src="../../../static/images/order/right1.png" style="width: 14rpx; height: 24rpx" mode=""></image>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="tosend_header_do justify-between do_bot" @click="huodongShow">
|
|
|
|
|
|
|
+ <view class="tosend_header_do justify-between do_bot" v-if="Vipmoney.canReduceFlag=='1'">
|
|
|
<view>优惠活动</view>
|
|
<view>优惠活动</view>
|
|
|
- <view class="tosend_header_do_ri" v-if="huodong">- ¥{{ huodong.discountAmount }}</view>
|
|
|
|
|
|
|
+ <!-- <view class="tosend_header_do_ri" v-if="huodong &&Vipmoney.canReduceFlag=='0'">- ¥{{ huodong.discountAmount }}</view>
|
|
|
|
|
+ <view v-else>
|
|
|
|
|
+ <image src="../../../static/images/order/right1.png" style="width: 14rpx; height: 24rpx" mode=""></image>
|
|
|
|
|
+ </view> -->
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="tosend_header_do justify-between do_bot" @click="huodongShow" v-if="Vipmoney.canReduceFlag=='0'">
|
|
|
|
|
+ <view>优惠活动</view>
|
|
|
|
|
+ <view class="tosend_header_do_ri" v-if="huodong &&Vipmoney.canReduceFlag=='0'">- ¥{{ huodong.discountAmount }}</view>
|
|
|
<view v-else>
|
|
<view v-else>
|
|
|
<image src="../../../static/images/order/right1.png" style="width: 14rpx; height: 24rpx" mode=""></image>
|
|
<image src="../../../static/images/order/right1.png" style="width: 14rpx; height: 24rpx" mode=""></image>
|
|
|
</view>
|
|
</view>
|
|
@@ -143,7 +157,7 @@
|
|
|
<view class="tosend_header_do_le2">合计</view>
|
|
<view class="tosend_header_do_le2">合计</view>
|
|
|
<view class="tosend_header_do_ri2">
|
|
<view class="tosend_header_do_ri2">
|
|
|
<text>¥</text>
|
|
<text>¥</text>
|
|
|
- {{ totalPrice1 }}
|
|
|
|
|
|
|
+ {{ totalPrice12 }}
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -357,6 +371,7 @@ export default {
|
|
|
packMoney: 0, //打包费
|
|
packMoney: 0, //打包费
|
|
|
totalPrice: 0,
|
|
totalPrice: 0,
|
|
|
totalPrice1: 0,
|
|
totalPrice1: 0,
|
|
|
|
|
+ totalPrice12:0,
|
|
|
address: {
|
|
address: {
|
|
|
insideDeliveryFee: 0
|
|
insideDeliveryFee: 0
|
|
|
}, //地址
|
|
}, //地址
|
|
@@ -472,7 +487,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
this.getMsgData()
|
|
this.getMsgData()
|
|
|
- this.getvipMoney()
|
|
|
|
|
|
|
+
|
|
|
this.addressId = this.addressId ? this.addressId : uni.getStorageSync('addressId')
|
|
this.addressId = this.addressId ? this.addressId : uni.getStorageSync('addressId')
|
|
|
if (this.addressId) {
|
|
if (this.addressId) {
|
|
|
console.log(this.addressId, '地址id')
|
|
console.log(this.addressId, '地址id')
|
|
@@ -520,19 +535,28 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- let totalMoney = parseFloat(this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
|
|
+ let totalMoney =0
|
|
|
|
|
+ if(this.Vipmoney.canReduceFlag=='1'){
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 -(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }else{
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if (totalMoney <= 0) {
|
|
if (totalMoney <= 0) {
|
|
|
- this.totalPrice1 = 0.01
|
|
|
|
|
|
|
+ this.totalPrice12 = 0.01
|
|
|
} else {
|
|
} else {
|
|
|
- this.totalPrice1 = totalMoney
|
|
|
|
|
|
|
+ this.totalPrice12 = totalMoney
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
//获取会员立减金额
|
|
//获取会员立减金额
|
|
|
getvipMoney() {
|
|
getvipMoney() {
|
|
|
- var shopId =this.shopId
|
|
|
|
|
- this.$Request.get(`/app/vip/get-can-reduce/${shopId}`).then((res) => {
|
|
|
|
|
- console.log(res, '会员立减')
|
|
|
|
|
|
|
+ let data = {
|
|
|
|
|
+ shopId: this.shopId,
|
|
|
|
|
+ userId: uni.getStorageSync('userId'),
|
|
|
|
|
+ originalPrice:this.totalPrice1
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$Request.get('/app/vip/get-can-reduce',data).then((res) => {
|
|
|
|
|
+ console.log(res, '会员立减',data)
|
|
|
if (res.code == 0 && res.data) {
|
|
if (res.code == 0 && res.data) {
|
|
|
this.Vipmoney=res.data
|
|
this.Vipmoney=res.data
|
|
|
}
|
|
}
|
|
@@ -540,10 +564,10 @@ export default {
|
|
|
},
|
|
},
|
|
|
getIntegralRules() {
|
|
getIntegralRules() {
|
|
|
let data = {
|
|
let data = {
|
|
|
- money: this.totalPrice1
|
|
|
|
|
|
|
+ money: this.totalPrice12
|
|
|
}
|
|
}
|
|
|
this.$Request.get('/app/userintegral/getIntegralByMoney', data).then((res) => {
|
|
this.$Request.get('/app/userintegral/getIntegralByMoney', data).then((res) => {
|
|
|
- console.log(res, '999')
|
|
|
|
|
|
|
+ console.log(res, '999',data)
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
|
this.intergral = res.data.intergral
|
|
this.intergral = res.data.intergral
|
|
|
this.maxIntegral = res.data.maxIntegral
|
|
this.maxIntegral = res.data.maxIntegral
|
|
@@ -857,15 +881,18 @@ export default {
|
|
|
this.totalPrice1 = parseFloat(this.totalPrice).toFixed(2)
|
|
this.totalPrice1 = parseFloat(this.totalPrice).toFixed(2)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- let totalMoney = parseFloat(
|
|
|
|
|
- this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0).toFixed(2)
|
|
|
|
|
- ).toFixed(2)
|
|
|
|
|
|
|
+ let totalMoney =0
|
|
|
|
|
+ if(this.Vipmoney.canReduceFlag=='1'){
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 -(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }else{
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }
|
|
|
if (totalMoney <= 0) {
|
|
if (totalMoney <= 0) {
|
|
|
- this.totalPrice1 = 0.01
|
|
|
|
|
|
|
+ this.totalPrice12 = 0.01
|
|
|
} else {
|
|
} else {
|
|
|
- this.totalPrice1 = totalMoney
|
|
|
|
|
|
|
+ this.totalPrice12 = totalMoney
|
|
|
}
|
|
}
|
|
|
- console.log(this.totalPrice1,'切换',totalMoney)
|
|
|
|
|
|
|
+ console.log(this.totalPrice12,'切换',totalMoney)
|
|
|
if (this.coupon) {
|
|
if (this.coupon) {
|
|
|
if (this.orderType == 2) {
|
|
if (this.orderType == 2) {
|
|
|
this.totalPrice1 = parseFloat(
|
|
this.totalPrice1 = parseFloat(
|
|
@@ -878,13 +905,16 @@ export default {
|
|
|
this.totalPrice1 = parseFloat(this.totalPrice).toFixed(2)
|
|
this.totalPrice1 = parseFloat(this.totalPrice).toFixed(2)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- let totalMoney = parseFloat(
|
|
|
|
|
- this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0).toFixed(2)
|
|
|
|
|
- ).toFixed(2)
|
|
|
|
|
|
|
+ let totalMoney =0
|
|
|
|
|
+ if(this.Vipmoney.canReduceFlag=='1'){
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 -(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }else{
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }
|
|
|
if (totalMoney <= 0) {
|
|
if (totalMoney <= 0) {
|
|
|
- this.totalPrice1 = 0.01
|
|
|
|
|
|
|
+ this.totalPrice12 = 0.01
|
|
|
} else {
|
|
} else {
|
|
|
- this.totalPrice1 = totalMoney
|
|
|
|
|
|
|
+ this.totalPrice12 = totalMoney
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -900,13 +930,16 @@ export default {
|
|
|
this.totalPrice1 = parseFloat(this.totalPrice).toFixed(2)
|
|
this.totalPrice1 = parseFloat(this.totalPrice).toFixed(2)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- let totalMoney = parseFloat(
|
|
|
|
|
- this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0).toFixed(2)
|
|
|
|
|
- ).toFixed(2)
|
|
|
|
|
|
|
+ let totalMoney =0
|
|
|
|
|
+ if(this.Vipmoney.canReduceFlag=='1'){
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 -(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }else{
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }
|
|
|
if (totalMoney <= 0) {
|
|
if (totalMoney <= 0) {
|
|
|
- this.totalPrice1 = 0.01
|
|
|
|
|
|
|
+ this.totalPrice12 = 0.01
|
|
|
} else {
|
|
} else {
|
|
|
- this.totalPrice1 = totalMoney
|
|
|
|
|
|
|
+ this.totalPrice12 = totalMoney
|
|
|
}
|
|
}
|
|
|
}if (this.Vipmoney.canReduceFlag=='1') {
|
|
}if (this.Vipmoney.canReduceFlag=='1') {
|
|
|
if (this.orderType == 2) {
|
|
if (this.orderType == 2) {
|
|
@@ -920,13 +953,16 @@ export default {
|
|
|
this.totalPrice1 = parseFloat(this.totalPrice).toFixed(2)
|
|
this.totalPrice1 = parseFloat(this.totalPrice).toFixed(2)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- let totalMoney = parseFloat(
|
|
|
|
|
- this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0).toFixed(2)
|
|
|
|
|
- ).toFixed(2)
|
|
|
|
|
|
|
+ let totalMoney =0
|
|
|
|
|
+ if(this.Vipmoney.canReduceFlag=='1'){
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 -(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }else{
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }
|
|
|
if (totalMoney <= 0) {
|
|
if (totalMoney <= 0) {
|
|
|
- this.totalPrice1 = 0.01
|
|
|
|
|
|
|
+ this.totalPrice12 = 0.01
|
|
|
} else {
|
|
} else {
|
|
|
- this.totalPrice1 = totalMoney
|
|
|
|
|
|
|
+ this.totalPrice12 = totalMoney
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -953,12 +989,16 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- let totalMoney = parseFloat(this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
-
|
|
|
|
|
|
|
+ let totalMoney =0
|
|
|
|
|
+ if(this.Vipmoney.canReduceFlag=='1'){
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 -(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }else{
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }
|
|
|
if (totalMoney <= 0) {
|
|
if (totalMoney <= 0) {
|
|
|
- this.totalPrice1 = 0.01
|
|
|
|
|
|
|
+ this.totalPrice12 = 0.01
|
|
|
} else {
|
|
} else {
|
|
|
- this.totalPrice1 = totalMoney
|
|
|
|
|
|
|
+ this.totalPrice12 = totalMoney
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
let data = {
|
|
let data = {
|
|
@@ -983,11 +1023,16 @@ export default {
|
|
|
this.totalPrice1 = parseFloat(this.totalPrice).toFixed(2)
|
|
this.totalPrice1 = parseFloat(this.totalPrice).toFixed(2)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- let totalMoney = parseFloat(this.totalPrice1 - (this.huodong.discountAmount ? this.huodong.discountAmount : 0) - (this.coupon.money ? this.coupon.money : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
|
|
+ let totalMoney =0
|
|
|
|
|
+ if(this.Vipmoney.canReduceFlag=='1'){
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 -(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }else{
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }
|
|
|
if (totalMoney <= 0) {
|
|
if (totalMoney <= 0) {
|
|
|
- this.totalPrice1 = 0.01
|
|
|
|
|
|
|
+ this.totalPrice12 = 0.01
|
|
|
} else {
|
|
} else {
|
|
|
- this.totalPrice1 = totalMoney
|
|
|
|
|
|
|
+ this.totalPrice12 = totalMoney
|
|
|
}
|
|
}
|
|
|
this.youhui = false
|
|
this.youhui = false
|
|
|
},
|
|
},
|
|
@@ -1023,14 +1068,17 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- let totalMoney = parseFloat(
|
|
|
|
|
- this.totalPrice1 - (this.huodong.discountAmount ? this.huodong.discountAmount : 0) - (this.coupon.money ? this.coupon.money : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)
|
|
|
|
|
- ).toFixed(2)
|
|
|
|
|
|
|
+ let totalMoney =0
|
|
|
|
|
+ if(this.Vipmoney.canReduceFlag=='1'){
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 -(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }else{
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if (totalMoney <= 0) {
|
|
if (totalMoney <= 0) {
|
|
|
- this.totalPrice1 = 0.01
|
|
|
|
|
|
|
+ this.totalPrice12 = 0.01
|
|
|
} else {
|
|
} else {
|
|
|
- this.totalPrice1 = totalMoney
|
|
|
|
|
|
|
+ this.totalPrice12 = totalMoney
|
|
|
}
|
|
}
|
|
|
uni.showModal({
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
title: '提示',
|
|
@@ -1072,14 +1120,17 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- let totalMoney = parseFloat(
|
|
|
|
|
- this.totalPrice1 - (this.huodong.discountAmount ? this.huodong.discountAmount : 0) - (this.coupon.money ? this.coupon.money : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)
|
|
|
|
|
- ).toFixed(2)
|
|
|
|
|
|
|
+ let totalMoney =0
|
|
|
|
|
+ if(this.Vipmoney.canReduceFlag=='1'){
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 -(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }else{
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if (totalMoney <= 0) {
|
|
if (totalMoney <= 0) {
|
|
|
- this.totalPrice1 = 0.01
|
|
|
|
|
|
|
+ this.totalPrice12 = 0.01
|
|
|
} else {
|
|
} else {
|
|
|
- this.totalPrice1 = totalMoney
|
|
|
|
|
|
|
+ this.totalPrice12 = totalMoney
|
|
|
}
|
|
}
|
|
|
uni.showModal({
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
title: '提示',
|
|
@@ -1138,6 +1189,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
this.paotuiMoney = 0
|
|
this.paotuiMoney = 0
|
|
|
this.totalPrice1 = 0
|
|
this.totalPrice1 = 0
|
|
|
|
|
+ this.totalPrice12=0
|
|
|
|
|
|
|
|
if (this.status == 0) {
|
|
if (this.status == 0) {
|
|
|
console.log(6666)
|
|
console.log(6666)
|
|
@@ -1201,20 +1253,25 @@ export default {
|
|
|
this.totalPrice1 = parseFloat(this.totalPrice).toFixed(2)
|
|
this.totalPrice1 = parseFloat(this.totalPrice).toFixed(2)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- let totalMoney = parseFloat(
|
|
|
|
|
- this.totalPrice1 - (this.huodong.discountAmount ? this.huodong.discountAmount : 0) - (this.coupon.money ? this.coupon.money : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)
|
|
|
|
|
- ).toFixed(2)
|
|
|
|
|
- if (totalMoney <= 0) {
|
|
|
|
|
- this.totalPrice1 = 0.01
|
|
|
|
|
- } else {
|
|
|
|
|
- this.totalPrice1 = totalMoney
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
// console.log(this.dataList)
|
|
// console.log(this.dataList)
|
|
|
|
|
+ this.getvipMoney()
|
|
|
this.getCouponList()
|
|
this.getCouponList()
|
|
|
this.getHuoList()
|
|
this.getHuoList()
|
|
|
this.detCoupon()
|
|
this.detCoupon()
|
|
|
this.getDistance()
|
|
this.getDistance()
|
|
|
|
|
+ let totalMoney =0
|
|
|
|
|
+ if(this.Vipmoney.canReduceFlag=='1'){
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 -(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }else{
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }
|
|
|
|
|
+ if (totalMoney <= 0) {
|
|
|
|
|
+ this.totalPrice12 = 0.01
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.totalPrice12 = totalMoney
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
// 加载提示关闭
|
|
// 加载提示关闭
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
@@ -1269,14 +1326,17 @@ export default {
|
|
|
this.totalPrice1 = parseFloat(this.totalPrice).toFixed(2)
|
|
this.totalPrice1 = parseFloat(this.totalPrice).toFixed(2)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- let totalMoney = parseFloat(
|
|
|
|
|
- this.totalPrice1 - (this.huodong.discountAmount ? this.huodong.discountAmount : 0) - (this.coupon.money ? this.coupon.money : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)
|
|
|
|
|
- ).toFixed(2)
|
|
|
|
|
|
|
+ let totalMoney =0
|
|
|
|
|
+ if(this.Vipmoney.canReduceFlag=='1'){
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 -(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }else{
|
|
|
|
|
+ totalMoney = parseFloat(this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0)).toFixed(2)
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if (totalMoney <= 0) {
|
|
if (totalMoney <= 0) {
|
|
|
- this.totalPrice1 = 0.01
|
|
|
|
|
|
|
+ this.totalPrice12 = 0.01
|
|
|
} else {
|
|
} else {
|
|
|
- this.totalPrice1 = totalMoney
|
|
|
|
|
|
|
+ this.totalPrice12 = totalMoney
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// console.log(this.dataList)
|
|
// console.log(this.dataList)
|