Commit fe614311 authored by 罗超's avatar 罗超

修改部分样式漏洞

parent 49d476ce
...@@ -15,7 +15,7 @@ page { ...@@ -15,7 +15,7 @@ page {
@font-face { @font-face {
font-family: "pingfangr"; font-family: "pingfangr";
src: url("https://im.oytour.com/tripfont/PingFangR.ttf") format("truetype"); src: url("https://im.oytour.com/tripfont/a5cf6c61491d0b1aed95c0f9d0737140.woff2") format("woff2");
font-display: swap; font-display: swap;
} }
.el-table.tableHBEbeef5 th.el-table__cell { .el-table.tableHBEbeef5 th.el-table__cell {
......
...@@ -72,7 +72,7 @@ export const useUserStore = defineStore('user', { ...@@ -72,7 +72,7 @@ export const useUserStore = defineStore('user', {
if(!this.userInfo.photo || (!this.userInfo.photo.includes('http://')&& !this.userInfo.photo.includes('https://'))){ if(!this.userInfo.photo || (!this.userInfo.photo.includes('http://')&& !this.userInfo.photo.includes('https://'))){
this.userInfo.photo = USER_DEFAULT_HEADER this.userInfo.photo = USER_DEFAULT_HEADER
} }
if(!this.userInfo.logo || (!this.userInfo.logo.includes('http://')&& !this.userInfo.logo.includes('https://'))){ if(!this.userInfo.logo || (!this.userInfo.logo.includes('http://') && !this.userInfo.logo.includes('https://'))){
this.userInfo.logo = ENTERPRISE_DEFAULT_HEADER this.userInfo.logo = ENTERPRISE_DEFAULT_HEADER
} }
return { isSuccess:true, message:''} return { isSuccess:true, message:''}
...@@ -116,10 +116,10 @@ export const useUserStore = defineStore('user', { ...@@ -116,10 +116,10 @@ export const useUserStore = defineStore('user', {
if(!Array.isArray(response.data.data)) { if(!Array.isArray(response.data.data)) {
this.token = response.data.data.token this.token = response.data.data.token
this.userInfo = response.data.data.userinfo this.userInfo = response.data.data.userinfo
if(!this.userInfo.photo || !this.userInfo.photo.includes('http://')|| !this.userInfo.photo.includes('https://')){ if(!this.userInfo.photo || (!this.userInfo.photo.includes('http://')&& !this.userInfo.photo.includes('https://'))){
this.userInfo.photo = USER_DEFAULT_HEADER this.userInfo.photo = USER_DEFAULT_HEADER
} }
if(!this.userInfo.logo || !this.userInfo.logo.includes('http://')|| !this.userInfo.logo.includes('https://')){ if(!this.userInfo.logo || (!this.userInfo.logo.includes('http://')&& !this.userInfo.logo.includes('https://'))){
this.userInfo.logo = ENTERPRISE_DEFAULT_HEADER this.userInfo.logo = ENTERPRISE_DEFAULT_HEADER
} }
return { status:'SUCCESS',verify:false } as UserLoginResult return { status:'SUCCESS',verify:false } as UserLoginResult
......
...@@ -29,8 +29,10 @@ ...@@ -29,8 +29,10 @@
<span class="text-dark q-ml-md cursor-pointer" @click="goSpace">{{TravelDesign.tripCount}}个行程</span> <span class="text-dark q-ml-md cursor-pointer" @click="goSpace">{{TravelDesign.tripCount}}个行程</span>
<IconRight :size="20"></IconRight> <IconRight :size="20"></IconRight>
<div class="col"></div> <div class="col"></div>
<span class="text-grey-8">还可创建:</span> <template v-if="!userInfo.iv && !userInfo.it">
<span class="text-dark q-ml-md">0个行程</span> <span class="text-grey-8">还可创建:</span>
<span class="text-dark q-ml-md">{{1-TravelDesign.tripCount<0?0:(1-TravelDesign.tripCount)}}个行程</span>
</template>
</div> </div>
</el-card> </el-card>
<el-card class="user-card" shadow="never"> <el-card class="user-card" shadow="never">
...@@ -43,7 +45,7 @@ ...@@ -43,7 +45,7 @@
</div> </div>
<div style="font-size: 14px;" class="row items-center q-mt-lg"> <div style="font-size: 14px;" class="row items-center q-mt-lg">
<span class="text-grey-8">当前模板可用范围:</span> <span class="text-grey-8">当前模板可用范围:</span>
<span class="text-dark q-ml-md cursor-pointer">免费模板</span> <span class="text-dark q-ml-md cursor-pointer">{{ !userInfo.iv && !userInfo.it?'免费模板':'全部平台模板' }}</span>
</div> </div>
</el-card> </el-card>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment