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: {