feat:登录接口增加theme_type,便于后端区分优惠券/兑换码链接
This commit is contained in:
parent
bd75bbe66e
commit
e15f5f1ae4
12
index.html
12
index.html
|
@ -96,7 +96,6 @@
|
|||
'4': 'coupon',
|
||||
'8': 'coupon',
|
||||
},
|
||||
|
||||
/* 提示框状态 */
|
||||
popShow: false,
|
||||
popTitle: '',
|
||||
|
@ -146,7 +145,8 @@
|
|||
//是否携带token
|
||||
if (keyCode) {
|
||||
let data = {
|
||||
key: keyCode
|
||||
key: keyCode,
|
||||
theme_type:this.pageType
|
||||
}
|
||||
req.axiosPost('/key/loginFromLink', data).then(res => {
|
||||
if (res.code == 200) {
|
||||
|
@ -242,7 +242,8 @@
|
|||
let data = {
|
||||
"key": this.key,
|
||||
"code": this.code,
|
||||
"code_unique_str": sessionStorage.getItem('unique_str')
|
||||
"code_unique_str": sessionStorage.getItem('unique_str'),
|
||||
"theme_type":this.pageType
|
||||
}
|
||||
req.axiosPost('/key/login', data).then(res => {
|
||||
setTimeout(() => {
|
||||
|
@ -269,7 +270,7 @@
|
|||
let par = {
|
||||
"code": this.code,
|
||||
"mobile": this.key,
|
||||
"plan_id": this.plan_id
|
||||
"plan_id": this.plan_id,
|
||||
}
|
||||
let getTokenList = [];//多个批次下的key存放token
|
||||
req.axiosPostgetKey('/key/getKeyByMobile', par).then(async res => {
|
||||
|
@ -287,7 +288,8 @@
|
|||
let obj = {}
|
||||
let data = {
|
||||
"code_unique_str": res.headers['unique-str'],
|
||||
"key": item
|
||||
"key": item,
|
||||
"theme_type":this.pageType
|
||||
}
|
||||
let wait = await req.axiosPost('/key/loginFromMobileKey', data).then(res => {
|
||||
if (res.code == 200) {
|
||||
|
|
Loading…
Reference in New Issue