m-info.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <template>
  2. <view>
  3. <view class="bg_color"></view>
  4. <view class="content">
  5. <view class="user">
  6. <view class="user_left">
  7. <view class="user_img" @click="go_personal()">
  8. <image src="./icon/user_img.png" mode=""></image>
  9. </view>
  10. <view class="user_info">
  11. <view class="name">
  12. <view class="name_text">{{user.name}}</view>
  13. <view class="name_icon">
  14. <image src="./icon/name_icon.png" mode=""></image>
  15. </view>
  16. </view>
  17. <view class="tips">{{user.section}}</view>
  18. </view>
  19. </view>
  20. <view class="user_right">
  21. <uni-icons type="forward"></uni-icons>
  22. </view>
  23. </view>
  24. <view class="warning">
  25. <view class="warning_icon"></view>
  26. <view class="warning_text">未绑定手机号,请立即绑定手机号。</view>
  27. </view>
  28. <view class="warning">
  29. <view class="warning_icon"></view>
  30. <view class="warning_text">未添加手写签名,请添加手写签名。</view>
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. export default {
  37. props:{
  38. user:{
  39. type:Object,
  40. default(){
  41. return{}
  42. }
  43. }
  44. },
  45. data() {
  46. return {
  47. };
  48. },
  49. methods:{
  50. go_personal(){
  51. uni.navigateTo({
  52. url: '../../m-personal/m-personal',
  53. animationType:"fade-in",
  54. animationDuration:200
  55. });
  56. }
  57. }
  58. }
  59. </script>
  60. <style lang="scss">
  61. .bg_color{
  62. height: 100rpx;
  63. background: #009FE8;
  64. }
  65. .content{
  66. padding: 0 30rpx;
  67. .user{
  68. margin-top: -75rpx;
  69. margin-bottom: 6rpx;
  70. height: 163rpx;
  71. background: #FFFFFF;
  72. box-shadow: 0px 0px 5rpx 5rpx rgba(0, 0, 0, 0.05);
  73. border-radius: 5rpx;
  74. display: flex;
  75. justify-content: space-between;
  76. box-sizing: border-box;
  77. padding-top: 13rpx;
  78. padding-bottom: 18rpx;
  79. padding-left: 16rpx;
  80. padding-right: 33rpx;
  81. .user_left{
  82. display: flex;
  83. .user_img{
  84. width: 132rpx;
  85. height: 132rpx;
  86. image{
  87. width: 132rpx;
  88. height: 132rpx;
  89. }
  90. }
  91. .user_info{
  92. margin-left: 13rpx;
  93. box-sizing: border-box;
  94. padding-top: 18rpx;
  95. .name{
  96. display: flex;
  97. .name_text{
  98. height: 52rpx;
  99. font-size: 38rpx;
  100. font-family: PingFangSC-Medium, PingFang SC;
  101. font-weight: 500;
  102. color: #232627;
  103. line-height: 52rpx;
  104. }
  105. .name_icon{
  106. margin-left: 10rpx;
  107. margin-top: 7rpx;
  108. width: 38rpx;
  109. height: 38rpx;
  110. image{
  111. width: 38rpx;
  112. height: 38rpx;
  113. }
  114. }
  115. }
  116. .tips{
  117. margin-top: 8rpx;
  118. height: 40rpx;
  119. font-size: 27rpx;
  120. font-family: PingFangSC-Medium, PingFang SC;
  121. font-weight: 500;
  122. color: #232627;
  123. line-height: 40rpx;
  124. }
  125. }
  126. }
  127. .user_right{
  128. line-height: 132rpx;
  129. }
  130. }
  131. .warning{
  132. margin-top: 10rpx;
  133. height: 91rpx;
  134. background: #FFFFFF;
  135. box-shadow: 0px 0px 5rpx 5rpx rgba(0, 0, 0, 0.05);
  136. border-radius: 5rpx;
  137. display: flex;
  138. box-sizing: border-box;
  139. padding-left: 19rpx;
  140. padding-top: 22rpx;
  141. .warning_icon{
  142. width: 45rpx;
  143. height: 45rpx;
  144. background-image: url(icon/warning_icon.png);
  145. background-size: cover;
  146. background-repeat: no-repeat;
  147. }
  148. .warning_text{
  149. margin-left: 12rpx;
  150. height: 45rpx;
  151. font-size: 29rpx;
  152. font-family: MicrosoftYaHei;
  153. color: #7F8C8D;
  154. line-height: 45rpx;
  155. }
  156. }
  157. }
  158. </style>