|
@@ -41,7 +41,7 @@
|
|
<script>
|
|
<script>
|
|
import { mapState } from 'vuex'
|
|
import { mapState } from 'vuex'
|
|
import selectCall from '@/util/country.js'
|
|
import selectCall from '@/util/country.js'
|
|
-import { reg, encodeStr } from '@/util'
|
|
|
|
|
|
+import { encodeStr } from '@/util'
|
|
import { Base64 } from 'js-base64'
|
|
import { Base64 } from 'js-base64'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -95,9 +95,9 @@ export default {
|
|
this.codeActive = item
|
|
this.codeActive = item
|
|
},
|
|
},
|
|
async getAuthCode () {
|
|
async getAuthCode () {
|
|
- if (!reg.phone.test(this.phone)) {
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ // if (!reg.phone.test(this.phone)) {
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
let res = await this.$store.dispatch('getAuthCode', {
|
|
let res = await this.$store.dispatch('getAuthCode', {
|
|
phone: this.phone,
|
|
phone: this.phone,
|
|
code: Number(this.codeActive[1].substr(1))
|
|
code: Number(this.codeActive[1].substr(1))
|