|
|
@@ -151,7 +151,7 @@
|
|
|
<div class="inp-list-line">
|
|
|
<div class="line-label">充值金额</div>
|
|
|
<div class="line-input">
|
|
|
- <input type="text" placeholder="请输入金额" v-model="rForm.rechargeAmount" :adjust-position="false" class="inp-input" />
|
|
|
+ <input type="text" placeholder="请输入金额" v-model="rForm.rechargeAmount" :adjust-position="false" class="inp-input" style="text-align:center;" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="inp-list-line" style="margin-top:35upx;">
|
|
|
@@ -267,16 +267,17 @@
|
|
|
<template v-slot:content>
|
|
|
<div class="app-modal-input-wrap">
|
|
|
<div class="inp-list-line">
|
|
|
+ <view class="line-label">金额</view>
|
|
|
<div class="line-input">
|
|
|
- <input type="digit" style="width:60%;text-align:center;" v-model="deductAmount" class="inp-input" />
|
|
|
+ <input type="digit" style="text-align:center;" v-model="deductAmount" class="inp-input" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="inp-list-line">
|
|
|
+ <view class="line-label">备注</view>
|
|
|
<div class="line-input">
|
|
|
- <input type="text" style="width:60%;text-align:center;" v-model="deductRemark" class="inp-input" />
|
|
|
+ <input type="text" style="text-align:center;" v-model="deductRemark" class="inp-input" />
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
<view style="font-size:32upx;font-weight:bold;width:80%;margin:0 auto;">余额减少后,不会自动降等级,如需要请手动给客户降级</view>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -407,13 +408,16 @@ export default {
|
|
|
this.$msg('金额要大于0')
|
|
|
return false
|
|
|
}
|
|
|
- deductBalance({amount:this.deductAmount,customId:this.data.id,remark:this.deductRemark}).then(res=>{
|
|
|
- if(res.code == 1){
|
|
|
- this.deductAmount = ''
|
|
|
- this.deductRemark = ''
|
|
|
- this.reduceShow = false
|
|
|
- this.$msg(res.msg)
|
|
|
- }
|
|
|
+ this.$util.confirmModal({content:'确认减少?'},() => {
|
|
|
+ deductBalance({amount:this.deductAmount,customId:this.data.id,remark:this.deductRemark}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ this.deductAmount = ''
|
|
|
+ this.deductRemark = ''
|
|
|
+ this.reduceShow = false
|
|
|
+ this.$msg(res.msg)
|
|
|
+ this.init()
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
beginModifyMember(){
|