user.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <template>
  2. <view class="user-page">
  3. <view class="flex base-info-wrap">
  4. <view class="avatar">
  5. <open-data type="userAvatarUrl"></open-data>
  6. </view>
  7. <view>
  8. <view style="margin-top:6px;margin-bottom:18px">手机号:{{userInfo.mobile}}</view>
  9. <view>姓名:{{userInfo.real_name}}</view>
  10. </view>
  11. </view>
  12. <view class="main-info-wrap">
  13. <view class="title">我的信息</view>
  14. <view class="info-list">
  15. <view class="flex item">
  16. <text class="label">公司名称:</text>
  17. <text>{{userInfo.company_name}}</text>
  18. </view>
  19. <view class="flex item">
  20. <text class="label">品种权限:</text>
  21. <template v-if="userInfo.permission_list.length==0">
  22. <text>暂无权限</text>
  23. <van-button custom-class="apply-btn" plain round color="#DDAA6A" size="small" @click="handleGoApplyPermission">立即申请</van-button>
  24. </template>
  25. </view>
  26. </view>
  27. <view class="tips" v-if="userInfo.permission_list.length!=0">服务截止日期:2022.11.11</view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. data() {
  34. return {
  35. }
  36. },
  37. onLoad() {
  38. },
  39. methods: {
  40. handleGoApplyPermission(){
  41. uni.navigateTo({
  42. url:"/pages-applyPermission/applyPermission"
  43. })
  44. }
  45. }
  46. }
  47. </script>
  48. <style lang="scss">
  49. .base-info-wrap{
  50. width: 100%;
  51. height: 393rpx;
  52. background-color: #373634;
  53. padding-top: 99rpx;
  54. padding-left: 50rpx;
  55. color: $global-text-color-white;
  56. font-size: $global-font-size-lg;
  57. font-weight: bold;
  58. .avatar{
  59. width: 154rpx;
  60. height: 154rpx;
  61. border-radius: 16rpx;
  62. overflow: hidden;
  63. margin-right: 40rpx;
  64. }
  65. }
  66. .main-info-wrap{
  67. width: calc(100% - 68rpx);
  68. min-height: 561rpx;
  69. margin-left: auto;
  70. margin-right: auto;
  71. margin-top: -30rpx;
  72. padding: 30rpx;
  73. background-color: $global-bg-color;
  74. box-shadow: 0px 3rpx 12rpx rgba(0, 0, 0, 0.16);
  75. border-radius: 16rpx;
  76. .title{
  77. font-size: $global-font-size-lg;
  78. font-weight: bold;
  79. padding-bottom: 30rpx;
  80. border-bottom: 1px solid $global-border-color;
  81. }
  82. .tips{
  83. font-size: $global-font-size-sm;
  84. color: $global-text-color-999;
  85. }
  86. }
  87. .info-list{
  88. min-height: 300rpx;
  89. .item{
  90. margin-top: 40rpx;
  91. .apply-btn{
  92. font-size: $global-font-size-sm;
  93. height: 48rpx;
  94. margin-left: 20rpx;
  95. }
  96. }
  97. }
  98. </style>