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