From 0416bf5e15bfb73c9be0e9e08b7fed50c415200a Mon Sep 17 00:00:00 2001 From: youngS Date: Mon, 26 Apr 2021 14:24:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_client/src/components/FirHeader.vue | 9 ++++++++- fir_client/src/components/user/FirUserOrders.vue | 2 +- .../user/FirUserProfileCertification.vue | 16 +++++++++++----- .../src/components/user/FirUserProfileInfo.vue | 14 +++++++++----- 4 files changed, 29 insertions(+), 12 deletions(-) diff --git a/fir_client/src/components/FirHeader.vue b/fir_client/src/components/FirHeader.vue index 6246141..2b1f56c 100644 --- a/fir_client/src/components/FirHeader.vue +++ b/fir_client/src/components/FirHeader.vue @@ -9,7 +9,11 @@ > 可用于调用公开 API,可用于登录 fly-cli,请勿泄露您的 token - {{ token }} + + {{ token }} + + 重新生成 @@ -78,6 +82,9 @@ route_info: {'name': '', 'label': ''}, } }, methods: { + copy_success() { + this.$message.success('复制剪切板成功'); + }, maketoken() { apitoken(data => { if (data.code === 1000) { diff --git a/fir_client/src/components/user/FirUserOrders.vue b/fir_client/src/components/user/FirUserOrders.vue index 7fae6d4..0879e28 100644 --- a/fir_client/src/components/user/FirUserOrders.vue +++ b/fir_client/src/components/user/FirUserOrders.vue @@ -419,7 +419,7 @@ let out_trade_no = this.$route.params.out_trade_no; if (out_trade_no) { this.goto_pay(this.current_order_info); - this.$route.params.out_trade_no=undefined; + this.$route.params.out_trade_no = undefined; } } } else if (data.code === 1008) { diff --git a/fir_client/src/components/user/FirUserProfileCertification.vue b/fir_client/src/components/user/FirUserProfileCertification.vue index 61a6ab2..7fb840d 100644 --- a/fir_client/src/components/user/FirUserProfileCertification.vue +++ b/fir_client/src/components/user/FirUserProfileCertification.vue @@ -227,7 +227,13 @@ data() { return { form: {}, - cptch: {cptch_image: '', cptch_key: '',authcode:'', length: 8, change_type:{email:false,sms:false}}, + cptch: { + cptch_image: '', + cptch_key: '', + authcode: '', + length: 8, + change_type: {email: false, sms: false} + }, user_certification: {'one': '', 'two': '', 'three': ''}, certification: {}, certification_status: 0, @@ -256,7 +262,7 @@ this.$message.error("身份证输入不合法"); return false; } - if(this.cptch.change_type.sms){ + if (this.cptch.change_type.sms) { let checkp = checkphone(this.form.mobile); if (!checkp) { this.$message.error("手机号输入不合法"); @@ -345,13 +351,13 @@ }, get_auth_code() { - if(this.form.authcode){ + if (this.form.authcode) { this.form.authcode = ''; } changeInfoFun(data => { if (data.code === 1000) { this.cptch = data.data; - if(this.cptch.cptch_key){ + if (this.cptch.cptch_key) { this.form.cptch_key = this.cptch.cptch_key; } } else { @@ -387,7 +393,7 @@ }, init() { - if (this.$store.state.userinfo.certification||this.$store.state.userinfo.certification===0) { + if (this.$store.state.userinfo.certification || this.$store.state.userinfo.certification === 0) { this.certification_status = this.$store.state.userinfo.certification; if (this.certification_status !== -1) { this.get_user_certification({methods: 'GET', data: {act: 'usercert'}}); diff --git a/fir_client/src/components/user/FirUserProfileInfo.vue b/fir_client/src/components/user/FirUserProfileInfo.vue index b74ec70..79b3609 100644 --- a/fir_client/src/components/user/FirUserProfileInfo.vue +++ b/fir_client/src/components/user/FirUserProfileInfo.vue @@ -29,7 +29,8 @@ + prefix-icon="el-icon-mobile" placeholder="手机" maxlength="11" clearable + :disabled="!cptch.change_type.sms"/> @@ -44,7 +45,8 @@ - + @@ -80,7 +82,8 @@ + prefix-icon="el-icon-bank-card" placeholder="邮箱" maxlength="20" clearable + :disabled="!cptch.change_type.email"/> @@ -96,7 +99,8 @@ - + @@ -199,7 +203,7 @@ editdomain_name: false, edituser_name: false, editposition: false, - cptch: {"cptch_image": '', "cptch_key": '', "length": 8, change_type:{email:false,sms:false}}, + cptch: {"cptch_image": '', "cptch_key": '', "length": 8, change_type: {email: false, sms: false}}, form: {}, } }, methods: {