master
chaiyapeng 2024-09-02 21:22:59 +08:00
parent 13c1905b57
commit 7f8f55ea6d
1 changed files with 22 additions and 5 deletions

View File

@ -332,11 +332,28 @@ export default {
} }
}, },
buyInterface(){ buyInterface(){
this.$prompt('请输入支付密码', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
inputPattern: /\d{6}?/,
inputErrorMessage: '密码格式不正确'
}).then(({ value }) => {
this.$message({
type: 'success',
message: '你的密码是: ' + value
});
doBuyInterface(this.buyForm).then((res)=>{ doBuyInterface(this.buyForm).then((res)=>{
console.log(res); console.log(res);
alert(res.msg); alert(res.msg);
this.dialogFormVisible5=false; this.dialogFormVisible5=false;
}) })
}).catch(() => {
this.$message({
type: 'info',
message: '取消输入'
});
});
}, },
// //
buy(connector){ buy(connector){