index.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <!-- 我的 -->
  2. <template>
  3. <view class="container">
  4. <view class='container_content'>
  5. <view class="head">
  6. <view style='margin-bottom:14px;' class="row flex flex-end">
  7. <u--image class='image' :showLoading="true" src="../../static/mine/saoma.png" width="20px"
  8. height="20px"></u--image>
  9. <u--image style='margin-right:0;' class='image' :showLoading="true" src="../../static/mine/shezhi.png" width="20px"
  10. height="20px"></u--image>
  11. </view>
  12. <view class="flex">
  13. <u--image :showLoading="true" src="https://cdn.uviewui.com/uview/album/1.jpg" width="56px"
  14. height="56px"></u--image>
  15. <view class='information' v-if='hasLogin'>
  16. <view class='flex items-center'>
  17. <view class='username'>李振华</view>
  18. <view class='currectstatus'>已认证</view>
  19. </view>
  20. <view class='phone'>18513069273</view>
  21. </view>
  22. <view class='information' v-else @click="toLogin">立即登录</view>
  23. </view>
  24. <view class='authentication flex flex-space-between'>
  25. <view>
  26. <view style='font-size:14px;'>货主身份认证</view>
  27. <view style='color:#DDA558;font-size:12px;'>您还没有完成货主认证哦~</view>
  28. </view>
  29. <view @click="goDetailPage('/pages/mine/cargoowner/cargoowner')" class='promptlyAuthentication'>立即认证</view>
  30. </view>
  31. </view>
  32. <view class='flex operate flex-space-around'>
  33. <view class='flex items-center'>
  34. <u--image style='margin-right:8px;' :showLoading="true" src="../../static/mine/wodefabu.png" width="42px"
  35. height="42px"></u--image>我发布的
  36. </view>
  37. <view class='flex items-center'>
  38. <u--image style='margin-right:8px;' :showLoading="true" src="../../static/mine/pingjia.png" width="42px"
  39. height="42px"></u--image>
  40. 司机评价
  41. </view>
  42. </view>
  43. <view class="content1">
  44. <view class="flex flex-space-between content1-item" @click="goDetailPage('/pages/mine/manageBankCards/index')">
  45. <view class='flex items-center'><u--image style='margin-right:8px;' :showLoading="true" src="../../static/mine/wodegongsi.png" width="20px"
  46. height="20px"></u--image>我的公司</view>
  47. <view class='flex'> 证件过期 <u-icon name="arrow-right" color="#7E7E7E" size="10"></u-icon></view>
  48. </view>
  49. <view class="flex flex-space-between content1-item" @click="goDetailPage('/pages/mine/manageVehicles/index')">
  50. <view class='flex items-center'><u--image style='margin-right:8px;' :showLoading="true" src="../../static/mine/dailihuozhu.png" width="20px"
  51. height="20px"></u--image>代理货主</view>
  52. <view> <u-icon name="arrow-right" color="#7E7E7E" size="10"></u-icon> </view>
  53. </view>
  54. <view class="flex flex-space-between content1-item" @click="$helper.contactCustomerService">
  55. <view class='flex items-center'><u--image style='margin-right:8px;' :showLoading="true" src="../../static/mine/kefu.png" width="20px"
  56. height="20px"></u--image>联系客服</view>
  57. <view> <u-icon name="arrow-right" color="#7E7E7E" size="10"></u-icon> </view>
  58. </view>
  59. <view class="flex flex-space-between content1-item" @click="goDetailPage('/pages/mine/helpDescription')">
  60. <view class='flex items-center'><u--image style='margin-right:8px;' :showLoading="true" src="../../static/mine/bangzhushuoming.png" width="20px"
  61. height="20px"></u--image>帮助说明</view>
  62. <view> <u-icon name="arrow-right" color="#7E7E7E" size="10"></u-icon> </view>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. </template>
  68. <script>
  69. import {
  70. mapState
  71. } from 'vuex';
  72. export default {
  73. data() {
  74. return {
  75. userName:'',
  76. };
  77. },
  78. onLoad() {
  79. // debugger
  80. this.userName = this.userInfo.userName
  81. },
  82. computed: {
  83. ...mapState(['hasLogin', 'userInfo']),
  84. // 手机号中间4位加*
  85. // starUserphone() {
  86. // let reg = /^(\d{3})\d{4}(\d{4})$/;
  87. // if (this.userphone) {
  88. // return this.userphone.replace(reg, "$1****$2");
  89. // }
  90. // }
  91. },
  92. methods: {
  93. goDetailPage(src) {
  94. uni.$u.route(src);
  95. },
  96. toLogin() {
  97. console.log("userInfo", this.userInfo)
  98. if (!this.hasLogin || !this.userInfo || this.userName == "立即登录") {
  99. uni.$u.route('/pages/public/login');
  100. } else {}
  101. // else if(!this.userInfo.nickname){
  102. // this.inputShow = true
  103. // this.inputStatus = 'inline'
  104. // this.feild = "nickname"
  105. // this.inputContent = ''
  106. // }
  107. },
  108. }
  109. }
  110. </script>
  111. <style lang="scss" scoped>
  112. .container{
  113. padding-top: 85px;
  114. padding-top: 35px;
  115. background-color: #F5F6FA;
  116. position: relative;
  117. width: 100vw;
  118. overflow: hidden;
  119. background: url('~@/static/mine/bg@3x.png');
  120. background-size: 100% 100%;
  121. margin: 0 auto;
  122. height: calc(100vh - 0px);
  123. .container_content{
  124. padding:18px;
  125. }
  126. }
  127. .image{
  128. margin:0 7px;
  129. }
  130. .username{
  131. font-size:21px;
  132. }
  133. .information{
  134. margin:0 0 36px 17px;
  135. }
  136. .currectstatus{
  137. font-size:10px;
  138. color:#D6B798;background:#161111;
  139. padding:1px 6px;
  140. border-radius:10px;
  141. margin:0 6px;
  142. }
  143. .phone{
  144. color:#8F97AB;
  145. font-size:13px;
  146. margin-top:5px;
  147. }
  148. .operate{
  149. font-size:16px;
  150. font-weight: 600;
  151. background:#fff;
  152. border-radius:10px;
  153. padding:10px 15px;
  154. margin-bottom:15px;
  155. }
  156. .content1{
  157. background:#fff;
  158. padding:10px;
  159. border-radius:10px;
  160. .content1-item{
  161. padding:10px;
  162. }
  163. }
  164. .authentication{
  165. border:1px solid #F3EACF;
  166. margin:10px 0;
  167. height:64px;
  168. border-radius:10px;
  169. padding:15px;
  170. box-sizing: border-box;
  171. background: linear-gradient(144deg, #FEFAEE 0%, #FEFDF8 100%);
  172. }
  173. .promptlyAuthentication{
  174. font-size:13px;
  175. padding:8px 16px;
  176. border-radius:15px;
  177. background: linear-gradient(327deg, #EDBB63 0%, #FFDEA5 100%);;
  178. }
  179. </style>