| | |
| | | <template> |
| | | <div class="userCard"> |
| | | <div class="profile"> |
| | | <img src="/images/index/默认头像-01.png" alt="" /> |
| | | <img v-if="!userInfo" src="/images/index/default.png" alt="" /> |
| | | <img v-else src="/images/index/8.jpg" style="border-radius: 50%" alt="" /> |
| | | </div> |
| | | <div class="notification" v-if="!userInfo"> |
| | | Hi!请 |
| | |
| | | >注册</span |
| | | > |
| | | </div> |
| | | <div class="des" v-if="!userInfo">登录后查看个人工具栏</div> |
| | | <div class="des" v-if="!userInfo">欢迎来到贝思科工业互联网平台</div> |
| | | <div class="userName" v-else>{{ userInfo.username }}</div> |
| | | <div class="bottom"> |
| | | <div class="bottomItem" v-for="(item, index) in userCardArr" :key="index"> |
| | |
| | | <script> |
| | | export default { |
| | | props: { |
| | | userBuyInfo:Object, |
| | | userBuyInfo: Object, |
| | | userCardArr: { |
| | | type: Array, |
| | | default: () => { |
| | |
| | | num: "_", |
| | | label: "待付款", |
| | | }, |
| | | { |
| | | /* { |
| | | num: "_", |
| | | label: "待续费", |
| | | }, |
| | | { |
| | | num: "_", |
| | | label: "消息中心", |
| | | }, |
| | | }, */ |
| | | ]; |
| | | }, |
| | | }, |