|
@@ -125,6 +125,11 @@
|
|
const shelfInfo = this.shelfInfo
|
|
const shelfInfo = this.shelfInfo
|
|
return shelfInfo&&shelfInfo.payOnlineFlag&&shelfInfo.payOnlineFlag=='1'
|
|
return shelfInfo&&shelfInfo.payOnlineFlag&&shelfInfo.payOnlineFlag=='1'
|
|
},
|
|
},
|
|
|
|
+ // 最小支付金额
|
|
|
|
+ minPayAmount(){
|
|
|
|
+ const shelfInfo = this.shelfInfo
|
|
|
|
+ return shelfInfo&&shelfInfo.minAmount ? shelfInfo.minAmount : 0
|
|
|
|
+ },
|
|
// 付款信息
|
|
// 付款信息
|
|
payInfo(){
|
|
payInfo(){
|
|
return this.$store.state.vuex_tempOrderData
|
|
return this.$store.state.vuex_tempOrderData
|
|
@@ -272,6 +277,13 @@
|
|
// 立即支付
|
|
// 立即支付
|
|
payOrder(item){
|
|
payOrder(item){
|
|
const _this = this
|
|
const _this = this
|
|
|
|
+ if(item.totalAmount<this.minPayAmount){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '支付金额不能小于'+this.minPayAmount+'元!',
|
|
|
|
+ icon: 'none'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
this.$store.state.vuex_tempOrderData = item
|
|
this.$store.state.vuex_tempOrderData = item
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: '加载中...'
|
|
title: '加载中...'
|