This commit is contained in:
X1627315083
2024-01-15 17:05:55 +08:00
parent 2fca178eeb
commit bf9556378c
11 changed files with 182 additions and 50 deletions

View File

@@ -9,6 +9,7 @@
<div v-if="isTest" class="username"><span>/</span> {{$t('Header.hello')}}@{{ $t('isTest.userName') }}</div>
<div v-else class="username"><span>/</span> {{$t('Header.hello')}}@{{ userInfo?.userName }}</div>
<div
v-if="!isMurmur"
:class="[
'icon',
'iconfont',
@@ -189,11 +190,13 @@ export default defineComponent({
const {t} = useI18n()
const {locale} = useI18n()
let isTest = ref()
let isMurmur = ref()
return {
store,
t,
locale,
isTest,
isMurmur,
}
},
data() {
@@ -226,9 +229,10 @@ export default defineComponent({
};
},
mounted() {
let isTest = getCookie('isTest')
let isTest = getCookie('isTest')//获取是否是试用用户
this.isTest =JSON.parse(isTest)
let isMurmur = getCookie('isMurmur')//获取是否是试用用户
this.isMurmur =JSON.parse(isMurmur)
this.userInfo = JSON.parse(getCookie("userInfo"));
if (!this.userInfo) {
this.$router.replace("/login");
@@ -236,8 +240,10 @@ export default defineComponent({
this.accountIsLogin(this.userInfo);
}
this.isHaveBindEmail = this.userInfo?.email ? true : false;
this.operateClick();
document.addEventListener("click", this.operateClick);
if(!isMurmur){
this.operateClick();
document.addEventListener("click", this.operateClick);
}
this.getLang('')
},
methods: {

View File

@@ -341,8 +341,7 @@ export default defineComponent({
this.chatCentent = ""
},
setDriver(index:number){
let isBeginner = JSON.parse((getCookie('isBeginner') as any))
// let isBeginner = JSON.parse((getCookie('isBeginner') as any))
if(this.driver__.driver){
driverObj__.moveNext();
this.robotTop = false