提交 13c91b8c 编写于 作者: tao.wu's avatar tao.wu

修改页面跳转body背景色冲突的bug

上级 e79160d6
...@@ -71,19 +71,24 @@ ...@@ -71,19 +71,24 @@
}, },
async asyncData({ query }){ async asyncData({ query }){
const { id, taskId, activityId } = query; const { id, taskId, activityId } = query;
let avatarImageUrl, name, mobilePhone; let avatarImageUrl = '', name = '', captchaImg = '', captchaToken = '';
const res = await getInviteInfo(id); const res = await getInviteInfo(id);
if(res.code=='000000'){ if(res.code=='000000'){
const data = res.data; const data = res.data;
avatarImageUrl = data.avatarImageUrl; avatarImageUrl = data.avatarImageUrl;
name = data.name ? data.name : data.mobilePhone; name = data.name ? data.name : data.mobilePhone;
} }
const resCapt = await getCaptchaGet();
if(resCapt.code==='000000'){
captchaImg = `data:image/png;base64,${resCapt.data.content}`;
captchaToken = resCapt.data.token;
}
return { return {
avatarImageUrl, name, id, taskId, activityId avatarImageUrl, name, id, taskId, activityId, captchaImg, captchaToken
} }
}, },
mounted(){ mounted(){
this.getCaptcha(); document.querySelector('body').setAttribute('style', 'background: #FE9A51;');
}, },
methods: { methods: {
// 点击刷新验证码 // 点击刷新验证码
...@@ -171,8 +176,3 @@ ...@@ -171,8 +176,3 @@
<style lang="less"> <style lang="less">
@import '../assets/style/revant.less'; @import '../assets/style/revant.less';
</style> </style>
<style lang="less">
body{
background: #FE9A51;
}
</style>
\ No newline at end of file
...@@ -61,6 +61,9 @@ ...@@ -61,6 +61,9 @@
statusTxt statusTxt
} }
}, },
mounted(){
document.querySelector('body').setAttribute('style', 'background: "";');
},
methods: { methods: {
downApp(){ downApp(){
window.location.href = 'https://android.myapp.com/myapp/detail.htm?apkName=com.picahealth.yunque&ADTAG=mobile'; window.location.href = 'https://android.myapp.com/myapp/detail.htm?apkName=com.picahealth.yunque&ADTAG=mobile';
......
...@@ -73,7 +73,7 @@ export const getCourseById = ({ mobile, authCode, id, taskId, activityId }) => { ...@@ -73,7 +73,7 @@ export const getCourseById = ({ mobile, authCode, id, taskId, activityId }) => {
} }
// 获取图形验证码 // 获取图形验证码
export const getCaptchaGet = () => { export const getCaptchaGet = async () => {
return request({ return request({
url: `account/account/captcha`, url: `account/account/captcha`,
method: 'get' method: 'get'
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册