部分页面调整
This commit is contained in:
@@ -10,11 +10,14 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="homeRecommend_right">
|
||||
<div class="homeRecommend_right" v-if="systemUser.value == 0">
|
||||
<a class="started_btn" href="https://code-create.com.hk/aida/" target="_blank">升级成为正式用户</a>
|
||||
<div class="started_btn started_btn2" @click="logout">退出登录</div>
|
||||
</div>
|
||||
<div class="homeRecommend_right" v-else-if="systemUser.value == -1">
|
||||
<div class="started_btn" @click="setLogin">登录</div>
|
||||
<div class="started_btn started_btn2" @click="setRegister">注册</div>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
<div class="homeRecommend_content_body">
|
||||
<div class="homeRecommend_content_body_recommend" id="aaaa">
|
||||
@@ -91,11 +94,24 @@ export default defineComponent({
|
||||
behavior: 'smooth' // 平滑滚动到顶部
|
||||
});
|
||||
}
|
||||
let logout = ()=>{
|
||||
let userInfo = JSON.parse(getCookie("userInfo"));
|
||||
let data = {
|
||||
userId: userInfo.userId,
|
||||
};
|
||||
let isTest = getCookie('isTest')
|
||||
// console.log(getCookie("token"));
|
||||
Https.axiosPost(Https.httpUrls.accountLogout, data).then((rv) => {
|
||||
// WriteCookie("token");
|
||||
});
|
||||
store.commit('clearSystemUser')
|
||||
}
|
||||
return {
|
||||
systemUser,
|
||||
setLogin,
|
||||
setRegister,
|
||||
setAdminUp,
|
||||
logout,
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -324,7 +340,7 @@ export default defineComponent({
|
||||
height: 20rem;
|
||||
object-fit: cover;
|
||||
top: calc(10rem + var(--margin));
|
||||
left: calc(0 + var(--margin));
|
||||
// left: calc(0 + var(--margin));
|
||||
}
|
||||
.content_body_img4{
|
||||
width: 30rem;
|
||||
|
||||
Reference in New Issue
Block a user