diff --git a/components/popups/index.vue b/components/popups/index.vue index 4b9b696..1c18754 100644 --- a/components/popups/index.vue +++ b/components/popups/index.vue @@ -6,7 +6,7 @@ - 请输入支付密码 + {{title}} @@ -56,7 +56,11 @@ isPay: { //区分支付密码还是输入数字 type: Boolean, default: false - } + }, + title: { + type: String, + default: '请输入支付密码' + } }, data() { return { diff --git a/pages/store/settled/index.vue b/pages/store/settled/index.vue index ff6e302..d775b70 100644 --- a/pages/store/settled/index.vue +++ b/pages/store/settled/index.vue @@ -255,7 +255,7 @@ 验证码 - - - - - - - + + + + + + + + + + + + + + + + @@ -31,6 +43,7 @@ + @@ -64,10 +77,12 @@ toLogin } from '@/libs/login.js'; import Verify from '@/components/verify/verify.vue'; + import popups from "@/components/popups/index.vue"; export default { mixins: [sendVerifyCode], components: { - Verify + Verify, + popups }, data() { return { @@ -79,7 +94,8 @@ key: '', codeVal: '', disabled: false, - type: '' + type: '', + set_type: '', }; }, computed: mapGetters(['isLogin', 'viewColor']), @@ -113,6 +129,18 @@ that.userInfo = res.data }); }, + showPopup(type){ + this.set_type = type; + this.$refs.popups.handleOpen(); + }, + // 输入密码回调 + handleConfirm(e) { + if(this.set_type==1)this.password = e; + else this.repassword = e; + }, + + handleClear() {}, + handleChange() {}, confirmSubmit: function() { let that = this;