You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
137 lines
3.0 KiB
137 lines
3.0 KiB
<!-- 子菜单与内容容器布局组件 --> |
|
<script setup lang="ts"> |
|
import { Divider } from 'ant-design-vue' |
|
|
|
import money from '@/assets/images/money.png' |
|
import { useUserStore } from '@/store/moules/userStore/index' |
|
import { useRechargeStore } from '@/store/moules/rechareStore' |
|
|
|
const rechargeStore = useRechargeStore() |
|
const userStore = useUserStore() |
|
const info = userStore.getChatInfo |
|
|
|
function handleRecharge() { |
|
rechargeStore.rechargeOpen() |
|
} |
|
</script> |
|
|
|
<template> |
|
<div class="app-user-info"> |
|
<div class="app-user-info-top"> |
|
<div class="dot"> |
|
<img :src="money" alt=""> |
|
<div class="dot-num"> |
|
点数 |
|
</div> |
|
</div> |
|
<div class="num"> |
|
<!-- {{ info.questionCount > 0 ? info?.questionCount : 0 }} --> |
|
</div> |
|
<div class="pay" @click="handleRecharge"> |
|
充值 |
|
</div> |
|
</div> |
|
<div class="app-user-info-bottom"> |
|
<div> |
|
<div class="accumulative"> |
|
<!-- {{ info?.messageCount }} --> |
|
</div> |
|
<div class="accumulativename"> |
|
累计提问 |
|
</div> |
|
</div> |
|
<Divider type="vertical" style="height: 30px; background-color: #e1e9f9" /> |
|
<div> |
|
<div class="accumulative"> |
|
<!-- {{ info?.createdDay }}天 --> |
|
</div> |
|
<div class="accumulativename"> |
|
来到同聪 |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</template> |
|
|
|
<style lang="scss" scoped> |
|
@include app('user-info') { |
|
position: absolute; |
|
bottom: 0px; |
|
left: 10px; |
|
right: 10px; |
|
padding: 10px; |
|
width: 90%; |
|
height: 120px; |
|
background: #e1e9f9; |
|
border-radius: 8px; |
|
&-top { |
|
height: 40%; |
|
width: 100%; |
|
display: flex; |
|
align-items: center; |
|
justify-content: space-between; |
|
border-bottom: 1px solid #dae1ef; |
|
.dot { |
|
display: flex; |
|
align-items: center; |
|
img { |
|
width: 14px; |
|
height: 16px; |
|
} |
|
.dot-num { |
|
font-size: 12px; |
|
font-family: |
|
PingFangSC, |
|
PingFang SC; |
|
font-weight: 400; |
|
color: #000000; |
|
padding-left: 4px; |
|
} |
|
} |
|
.num { |
|
font-size: 14px; |
|
font-family: DingTalk, DingTalk; |
|
font-weight: normal; |
|
color: #000000; |
|
line-height: 21px; |
|
} |
|
.pay { |
|
width: 45px; |
|
height: 20px; |
|
background: #4670e3; |
|
border-radius: 13px; |
|
font-size: 12px; |
|
text-align: center; |
|
font-family: |
|
PingFangSC, |
|
PingFang SC; |
|
font-weight: 400; |
|
color: #ffffff; |
|
line-height: 20px; |
|
cursor: pointer; |
|
} |
|
} |
|
&-bottom { |
|
height: 60%; |
|
width: 100%; |
|
display: flex; |
|
align-items: flex-end; |
|
justify-content: space-around; |
|
.accumulative { |
|
text-align: center; |
|
font-size: 15px; |
|
font-family: DingTalk, DingTalk; |
|
font-weight: normal; |
|
color: #000000; |
|
} |
|
.accumulativename { |
|
font-size: 12px; |
|
font-family: |
|
PingFangSC, |
|
PingFang SC; |
|
font-weight: 400; |
|
color: #000000; |
|
} |
|
} |
|
} |
|
</style>
|
|
|