|
@@ -567,27 +567,10 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if ( this.listTypeIndex==0&& this.submitForm.hour == 0 && this.user.availableBalance < 5) {
|
|
|
- uni.showModal({
|
|
|
- title: '支付',
|
|
|
- content: '余额不足5元无法开启充满自停,是否充值?',
|
|
|
- success: res => {
|
|
|
- if (res.confirm) {
|
|
|
- //付钱 改为组件
|
|
|
- this.gotoUrl("pages/user/recharge");
|
|
|
-
|
|
|
- } else if (res.cancel) {
|
|
|
- console.log('用户点击取消');
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- } else {
|
|
|
- if( this.listTypeIndex==0){
|
|
|
- this.showmodel = true;
|
|
|
- }else{
|
|
|
- this.confirm(true)
|
|
|
- }
|
|
|
-
|
|
|
+ if( this.listTypeIndex==0){
|
|
|
+ this.showmodel = true;
|
|
|
+ }else{
|
|
|
+ this.confirm(true)
|
|
|
}
|
|
|
|
|
|
|