fix:落地页清除localStorage
This commit is contained in:
parent
2200a87200
commit
147941d0c5
18
index.html
18
index.html
|
@ -17,9 +17,10 @@
|
|||
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/modelPop.js"></script>
|
||||
<script src="https://cdn.bootcdn.net/ajax/libs/vConsole/3.4.1/vconsole.min.js"></script>
|
||||
<style>
|
||||
input{
|
||||
input {
|
||||
color: var(--placeholderColor);
|
||||
}
|
||||
|
||||
input::placeholder {
|
||||
color: var(--placeholderColor);
|
||||
}
|
||||
|
@ -146,7 +147,7 @@
|
|||
if (keyCode) {
|
||||
let data = {
|
||||
key: keyCode,
|
||||
theme_type:this.pageType
|
||||
theme_type: this.pageType
|
||||
}
|
||||
req.axiosPost('/key/loginFromLink', data).then(res => {
|
||||
if (res.code == 200) {
|
||||
|
@ -175,7 +176,7 @@
|
|||
self.ftcolor = res.data[keyName].land.font_color;
|
||||
self.topImg = res.data[keyName].land.top_image;
|
||||
self.middleImg = res.data[keyName].land.middle_image;
|
||||
if(this.pageType==8){
|
||||
if (this.pageType == 8) {
|
||||
self.middleImg = res.data[keyName].land.white_image;
|
||||
}
|
||||
self.describe = res.data[keyName].land.describe;
|
||||
|
@ -191,9 +192,10 @@
|
|||
center.style.height = img.clientHeight + "px";
|
||||
}
|
||||
})
|
||||
localStorage.clear()
|
||||
},
|
||||
computed:{
|
||||
bindInputStyle() {
|
||||
computed: {
|
||||
bindInputStyle () {
|
||||
return {
|
||||
'--placeholderColor': this.ftcolor,
|
||||
}
|
||||
|
@ -246,7 +248,7 @@
|
|||
"key": this.key,
|
||||
"code": this.code,
|
||||
"code_unique_str": sessionStorage.getItem('unique_str'),
|
||||
"theme_type":this.pageType
|
||||
"theme_type": this.pageType
|
||||
}
|
||||
req.axiosPost('/key/login', data).then(res => {
|
||||
setTimeout(() => {
|
||||
|
@ -292,7 +294,7 @@
|
|||
let data = {
|
||||
"code_unique_str": res.headers['unique-str'],
|
||||
"key": item,
|
||||
"theme_type":this.pageType
|
||||
"theme_type": this.pageType
|
||||
}
|
||||
let wait = await req.axiosPost('/key/loginFromMobileKey', data).then(res => {
|
||||
if (res.code == 200) {
|
||||
|
@ -353,7 +355,7 @@
|
|||
},
|
||||
watch: {
|
||||
key (val) {
|
||||
this.disabled = Boolean(!([1,8].includes(this.pageType)&& val.length == 11));
|
||||
this.disabled = Boolean(!([1, 8].includes(this.pageType) && val.length == 11));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue