'!'
This commit is contained in:
@@ -11,19 +11,6 @@
|
||||
{{ formData.vendorID === 101 ? '400-661-5020' : formData.vendorID === 102 ? '400-055-6100' : '400-990-0295转1号键' }}
|
||||
</el-form-item>
|
||||
<!-- 专送信息 -->
|
||||
<!-- 平台余额 -->
|
||||
<br>
|
||||
<el-form-item label="平台余额:" style="" class="platformBalance" v-if="currentDialog.vendorID === 101 || currentDialog.vendorID === 103">
|
||||
<div style="display: flex;">
|
||||
{{ '¥' + platformBalance }}
|
||||
<el-input placeholder="请输入充值金额" v-model.number="amount" style="width: 200px;margin-left: 10px;">
|
||||
<template slot="append" >
|
||||
<div @click="sureRecharge">充值(元)</div>
|
||||
</template>
|
||||
</el-input>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<!-- 平台余额 -->
|
||||
<!-- 专送门店 -->
|
||||
<el-form-item label="专送门店ID:" prop="vendorStoreID">
|
||||
<el-input v-model.trim="formData.vendorStoreID" style="">
|
||||
@@ -74,8 +61,8 @@ import {
|
||||
addStoreCourierMap,
|
||||
updateStoreCourierMap,
|
||||
// getStoreCourierMaps,
|
||||
queryPlatformBalance,
|
||||
balanceRecharge
|
||||
// queryPlatformBalance,
|
||||
// balanceRecharge
|
||||
} from "@/apis/store.js";
|
||||
import { getVendorStore } from "@/apis/controls/shop.js";
|
||||
export default {
|
||||
@@ -111,8 +98,6 @@ export default {
|
||||
},
|
||||
auditStatus: 0,
|
||||
errMessage:'',
|
||||
platformBalance:'0.00',
|
||||
amount:0, // 充值金额
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -161,13 +146,13 @@ export default {
|
||||
}
|
||||
|
||||
|
||||
// 查询平台余额 达达和蜂鸟
|
||||
if(this.currentDialog.vendorID === 101 || this.currentDialog.vendorID === 103){
|
||||
// console.log(this.currentDialog,'查询平台余额,,,currentDialog')
|
||||
let res1 = await queryPlatformBalance({vendorID:this.currentDialog.vendorID})
|
||||
this.platformBalance = +res1/100
|
||||
// console.log(this.currentDialog,'查询平台余额',res1)
|
||||
}
|
||||
// // 查询平台余额 达达和蜂鸟
|
||||
// if(this.currentDialog.vendorID === 101 || this.currentDialog.vendorID === 103){
|
||||
// // console.log(this.currentDialog,'查询平台余额,,,currentDialog')
|
||||
// let res1 = await queryPlatformBalance({vendorID:this.currentDialog.vendorID})
|
||||
// this.platformBalance = +res1/100
|
||||
// // console.log(this.currentDialog,'查询平台余额',res1)
|
||||
// }
|
||||
},
|
||||
mounted() { },
|
||||
methods: {
|
||||
@@ -236,36 +221,10 @@ export default {
|
||||
// // 刷新美团状态
|
||||
// refreshMT() {
|
||||
// }
|
||||
// 确认充值
|
||||
async sureRecharge(){
|
||||
if(!this.amount) return this.$toast('请输入充值金额')
|
||||
let form = new FormData()
|
||||
form.append('vendorID',this.currentDialog.vendorID)
|
||||
form.append('amount',this.amount * 100)
|
||||
form.append('category','PC') // 链接场景 [PC,H5]
|
||||
// form.append('notifyUrl','https://www.jxc4.com/#/jxstoremanager') //支付宝有,微信没有
|
||||
|
||||
let res = await balanceRecharge(form)
|
||||
// window.location.href = res
|
||||
window.open(res, '_blank');
|
||||
this.handleClose();
|
||||
console.log(this.amount,'充值情况','res',res)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
// .editor-courier {}
|
||||
|
||||
|
||||
/deep/ .platformBalance{
|
||||
color: #409EFF;
|
||||
|
||||
.el-input-group__append{
|
||||
background-color: #409EFF;
|
||||
color:#fff;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user