|
@@ -251,7 +251,7 @@
|
|
|
<script>
|
|
|
import { mapMutations } from 'vuex';
|
|
|
import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
|
|
|
- import { beautyList,mentuzCampNullList,medicaCampNullList } from '@/common/config/register-json.js' //本地数据
|
|
|
+ import { beautyList,mentuzCampNullList,medicaCampNullList } from '@/common/json/data.json.js' //本地数据
|
|
|
import { organizationUpdateModifyInfo , organizationModifyUpdate } from "@/api/use.js"
|
|
|
import { getClubMobileCode,getClubNewMobileCode,uploadFileImage } from "@/api/utils.js"
|
|
|
export default{
|
|
@@ -484,21 +484,21 @@ import { mapMutations } from 'vuex';
|
|
|
getClubMobileCode(params).then(response =>{
|
|
|
this.$util.msg('验证短信已发送',2000);
|
|
|
const TIME_COUNT = 60;
|
|
|
- if (!this.codeTime) {
|
|
|
- this.count = TIME_COUNT;
|
|
|
- this.isMobileDisabled = true;
|
|
|
- this.codeTime = setInterval(() => {
|
|
|
- if (this.count > 1 && this.count <= TIME_COUNT) {
|
|
|
- this.count--
|
|
|
- this.mobileCodeText = this.count +'s重新发送'
|
|
|
- } else {
|
|
|
- this.isMobileDisabled = false;
|
|
|
- clearInterval(this.codeTime)
|
|
|
- this.codeTime = null
|
|
|
+ if (!this.codeTime) {
|
|
|
+ this.count = TIME_COUNT;
|
|
|
+ this.isMobileDisabled = true;
|
|
|
+ this.codeTime = setInterval(() => {
|
|
|
+ if (this.count > 1 && this.count <= TIME_COUNT) {
|
|
|
+ this.count--
|
|
|
+ this.mobileCodeText = this.count +'s重新发送'
|
|
|
+ } else {
|
|
|
+ this.isMobileDisabled = false;
|
|
|
+ clearInterval(this.codeTime)
|
|
|
+ this.codeTime = null
|
|
|
this.mobileCodeText = '获取验证码'
|
|
|
- }
|
|
|
- },1000)
|
|
|
- }
|
|
|
+ }
|
|
|
+ },1000)
|
|
|
+ }
|
|
|
}).catch( response =>{
|
|
|
this.$util.msg(response.msg,2000);
|
|
|
this.isMobileDisabled = false;
|
|
@@ -518,21 +518,21 @@ import { mapMutations } from 'vuex';
|
|
|
getClubNewMobileCode(params).then(response =>{
|
|
|
this.$util.msg('验证短信已发送',2000);
|
|
|
const TIME_COUNT = 60;
|
|
|
- if (!this.codeTimeNew) {
|
|
|
- this.newCount = TIME_COUNT;
|
|
|
- this.isNewMobileDisabled = true;
|
|
|
- this.codeTimeNew = setInterval(() => {
|
|
|
- if (this.newCount > 1 && this.newCount <= TIME_COUNT) {
|
|
|
- this.newCount--
|
|
|
- this.newMobileCodeText = this.newCount +'s重新发送'
|
|
|
- } else {
|
|
|
- this.isNewMobileDisabled = false;
|
|
|
- clearInterval(this.codeTimeNew)
|
|
|
- this.codeTimeNew = null
|
|
|
+ if (!this.codeTimeNew) {
|
|
|
+ this.newCount = TIME_COUNT;
|
|
|
+ this.isNewMobileDisabled = true;
|
|
|
+ this.codeTimeNew = setInterval(() => {
|
|
|
+ if (this.newCount > 1 && this.newCount <= TIME_COUNT) {
|
|
|
+ this.newCount--
|
|
|
+ this.newMobileCodeText = this.newCount +'s重新发送'
|
|
|
+ } else {
|
|
|
+ this.isNewMobileDisabled = false;
|
|
|
+ clearInterval(this.codeTimeNew)
|
|
|
+ this.codeTimeNew = null
|
|
|
this.newMobileCodeText = '获取验证码'
|
|
|
- }
|
|
|
- },1000)
|
|
|
- }
|
|
|
+ }
|
|
|
+ },1000)
|
|
|
+ }
|
|
|
}).catch( response =>{
|
|
|
this.$util.msg(response.msg,2000);
|
|
|
this.isNewMobileDisabled = false;
|