mobile-myInfor.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <div style="height: 100vh; width: 100vw">
  3. <van-nav-bar title="我的" @click-left="toMain">
  4. <template #left>
  5. <van-icon name="arrow-left" />
  6. </template>
  7. </van-nav-bar>
  8. <van-row style="margin-top: 10%; z-index: 99">
  9. <van-col :span="22" :offset="1" style="border-radius: 10px; overflow: hidden">
  10. <van-cell title="企业名称:" :value="companyInfo.qymc"></van-cell>
  11. <van-cell title="企业联系人:" :value="companyInfo.qylxr"></van-cell>
  12. <div
  13. style="height: 20px; width: 100%; background-color: white; z-index: 9999"
  14. ></div>
  15. </van-col>
  16. </van-row>
  17. </div>
  18. </template>
  19. <script>
  20. import { Toast } from 'vant'
  21. export default {
  22. data() {
  23. return {
  24. companyInfo: {
  25. qymc: '',
  26. qylxr: ''
  27. }
  28. }
  29. },
  30. created() {
  31. let currUser = this.$common.currUser()
  32. if (currUser) {
  33. this.companyInfo.qymc = currUser.qymc
  34. this.companyInfo.qylxr = currUser.qylxr
  35. }
  36. },
  37. mounted() {},
  38. methods: {
  39. toMain() {
  40. this.$router.push('/mobile-main')
  41. }
  42. }
  43. }
  44. </script>
  45. <style scoped>
  46. ::v-deep .van-cell {
  47. height: 60px;
  48. line-height: 60px;
  49. }
  50. ::v-deep .van-cell__title {
  51. height: 60px;
  52. line-height: 60px;
  53. }
  54. ::v-deep .van-cell__right-icon {
  55. height: 60px;
  56. line-height: 60px;
  57. }
  58. </style>