1
This commit is contained in:
parent
251a7384be
commit
8579500935
@ -207,4 +207,13 @@ export function getMemberCoupon() {
|
||||
url: '/member/coupon/getMemberCoupon',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
//积分提现
|
||||
export function payout(data) {
|
||||
return request({
|
||||
url: '/member/points/payout',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
@ -65,7 +65,7 @@
|
||||
<script>
|
||||
import navigationBarVue from '@/components/navigation/navigationBar.vue';
|
||||
import {formatNumberWithCommas} from '@/utils/common.js'
|
||||
import {pointList} from '@/api/business/member.js'
|
||||
import {pointList,payout} from '@/api/business/member.js'
|
||||
import {toast} from '@/utils/common.js'
|
||||
export default {
|
||||
components: {
|
||||
@ -143,9 +143,20 @@
|
||||
this.$refs.inputDialog.open()
|
||||
},
|
||||
dialogInputConfirm(val) {
|
||||
console.log(val)
|
||||
// 关闭窗口后,恢复默认内容
|
||||
this.$refs.inputDialog.close()
|
||||
if (val) {
|
||||
payout({points:val}).then(res => {
|
||||
if (res.code == 200) {
|
||||
toast("已生成提现订单,请耐心等待")
|
||||
// 关闭窗口后,恢复默认内容
|
||||
this.$refs.inputDialog.close()
|
||||
}
|
||||
}).catch((e) => {
|
||||
toast(e)
|
||||
})
|
||||
}else {
|
||||
toast("请填写提现金额,单次提交金额小于200")
|
||||
}
|
||||
|
||||
},
|
||||
/**
|
||||
* 菜单点击
|
||||
|
Loading…
Reference in New Issue
Block a user