|
|
@@ -237,20 +237,10 @@
|
|
|
this.downToast('您对阅读条款未做勾选')
|
|
|
} else {
|
|
|
this.$indicator.open('验证手机中...')
|
|
|
- let url = window.location.search
|
|
|
- let request = {}
|
|
|
- if (url.indexOf('?' !== -1)) {
|
|
|
- let str = url.substr(1)
|
|
|
- let strs = str.split('&')
|
|
|
- for (let i = 0; i < strs.length; i++) {
|
|
|
- request[strs[i].split('=')[0]] = decodeURI(strs[i].split('=')[1])
|
|
|
- }
|
|
|
- }
|
|
|
- let appId = request['appId'] || ''
|
|
|
let param = new FormData()
|
|
|
param.append('mobile', this.step1.mobile)
|
|
|
param.append('code', this.step1.token)
|
|
|
- param.append('appId', appId)
|
|
|
+ param.append('appId', this.$store.state.option.appId)
|
|
|
param.append('token', this.tokenCode)
|
|
|
let config = {
|
|
|
headers: {'Content-Type': 'multipart/form-data'}
|
|
|
@@ -394,23 +384,13 @@
|
|
|
// 注册请求方法
|
|
|
sbmitRegister () {
|
|
|
this.$indicator.open('注册中...')
|
|
|
- let url = window.location.search
|
|
|
- let request = {}
|
|
|
- if (url.indexOf('?' !== -1)) {
|
|
|
- let str = url.substr(1)
|
|
|
- let strs = str.split('&')
|
|
|
- for (let i = 0; i < strs.length; i++) {
|
|
|
- request[strs[i].split('=')[0]] = decodeURI(strs[i].split('=')[1])
|
|
|
- }
|
|
|
- }
|
|
|
- let appId = request['appId'] || ''
|
|
|
let param = new FormData()
|
|
|
param.append('spaceName', this.step2.spaceName)
|
|
|
param.append('businessCode', this.step2.businessCode)
|
|
|
param.append('vipName', this.step2.vipName || '')
|
|
|
param.append('password', this.step2.password)
|
|
|
param.append('email', this.step2.email || '')
|
|
|
- param.append('appId', appId)
|
|
|
+ param.append('appId', this.$store.state.option.appId)
|
|
|
let config = {
|
|
|
headers: {'Content-Type': 'multipart/form-data'}
|
|
|
}
|