feat:登录接口增加theme_type,便于后端区分优惠券/兑换码链接

This commit is contained in:
Apple 2022-10-24 17:49:06 +08:00
parent bd75bbe66e
commit e15f5f1ae4
1 changed files with 7 additions and 5 deletions

View File

@ -96,7 +96,6 @@
'4': 'coupon', '4': 'coupon',
'8': 'coupon', '8': 'coupon',
}, },
/* 提示框状态 */ /* 提示框状态 */
popShow: false, popShow: false,
popTitle: '', popTitle: '',
@ -146,7 +145,8 @@
//是否携带token //是否携带token
if (keyCode) { if (keyCode) {
let data = { let data = {
key: keyCode key: keyCode,
theme_type:this.pageType
} }
req.axiosPost('/key/loginFromLink', data).then(res => { req.axiosPost('/key/loginFromLink', data).then(res => {
if (res.code == 200) { if (res.code == 200) {
@ -242,7 +242,8 @@
let data = { let data = {
"key": this.key, "key": this.key,
"code": this.code, "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 => { req.axiosPost('/key/login', data).then(res => {
setTimeout(() => { setTimeout(() => {
@ -269,7 +270,7 @@
let par = { let par = {
"code": this.code, "code": this.code,
"mobile": this.key, "mobile": this.key,
"plan_id": this.plan_id "plan_id": this.plan_id,
} }
let getTokenList = [];//多个批次下的key存放token let getTokenList = [];//多个批次下的key存放token
req.axiosPostgetKey('/key/getKeyByMobile', par).then(async res => { req.axiosPostgetKey('/key/getKeyByMobile', par).then(async res => {
@ -287,7 +288,8 @@
let obj = {} let obj = {}
let data = { let data = {
"code_unique_str": res.headers['unique-str'], "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 => { let wait = await req.axiosPost('/key/loginFromMobileKey', data).then(res => {
if (res.code == 200) { if (res.code == 200) {