cargoowner.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. <template>
  2. <view class='content'>
  3. <!-- <view @click='goDetailPage("/pages/mine/cargoowner/editpersonalinformation")'
  4. :class="[statustext == '审核中'?'identity2':'identity']" class=' flex items-center'>
  5. <view style='width:100%;' class='flex items-center content1'>
  6. <u--image style='margin-right:5px;' class='image' :showLoading="true"
  7. :src="status?'../../../static/mine/huozhurenzheng/shenfen2.png':'../../../static/mine/huozhurenzheng/shenfen.png'"
  8. width="32px" height="32px"></u--image>
  9. <view style='width:100%;'>
  10. <view v-if='!datastatus' style='font-size:21px;'>身份信息</view>
  11. <view v-else style='font-size:21px;'>{{personage.name}}</view>
  12. <view v-if='!datastatus' class='flex flex-space-between'
  13. style='width:100%;color:#999999;font-size:14px;'>您还未认证身份信息<u-icon name="arrow-right"
  14. color="#7E7E7E" size="10"></u-icon>
  15. </view>
  16. <view v-else class='flex flex-space-between' style='width:100%;color:#999999;font-size:14px;'>
  17. {{phone}}
  18. <u-icon name="arrow-right" color="#7E7E7E" size="10"></u-icon>
  19. </view>
  20. </view>
  21. </view>
  22. </view> -->
  23. <!-- @click='goDetailPage("/pages/mine/cargoowner/editpersonalinformation")' -->
  24. <view class=' flex items-center identity'>
  25. <view style='width:100%;' class='flex items-center content1'>
  26. <u--image style='margin-right:5px;' class='image' :showLoading="true"
  27. :src="personage.authenticationStatus=='已认证'?'../../../static/mine/huozhurenzheng/shenfen2.png':'../../../static/mine/huozhurenzheng/shenfen.png'"
  28. width="32px" height="32px"></u--image>
  29. <view style='width:100%;'>
  30. <view v-if='!personage' style='font-size:21px;'>身份信息</view>
  31. <view v-else style='font-size:21px;'>{{personage.name}}</view>
  32. <view v-if="personage.authenticationStatus!='已认证'" class='flex flex-space-between'
  33. style='width:100%;color:#999999;font-size:14px;'>您的身份信息{{personage.authenticationStatus}}状态<u-icon name="arrow-right"
  34. color="#7E7E7E" size="10"></u-icon>
  35. </view>
  36. <view v-else class='flex flex-space-between' style='width:100%;color:#999999;font-size:14px;'>
  37. {{phone}}
  38. <u-icon name="arrow-right" color="#7E7E7E" size="10"></u-icon>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. <view>
  44. <view class="content2-title">所属企业 <text style='color:#999;'>({{enterprise.length}})</text></view>
  45. <view v-if='enterprise.length>0'>
  46. <view v-for='item in enterprise' class='wrap'>
  47. <view class='flex flex-space-between'>
  48. <view>{{item.company}}</view>
  49. <view v-if='item.status=="企业已驳回"' class='status wtg-color'>{{item.status}}</view>
  50. <view v-if='item.status=="企业审核中"' class='status number-color'>{{item.status}}</view>
  51. <view v-if='item.status=="平台审核中"' class='status number-color'>{{item.status}}</view>
  52. <view v-if='item.status=="平台已驳回"' class='status wtg-color'>{{item.status}}</view>
  53. <view v-if='item.status=="已认证"' class='status ytg-color'>{{item.status}}</view>
  54. <view v-if='item.status=="授权已过期"' class='status shz-color'>{{item.status}}</view>
  55. <view v-if='item.status=="企业暂不可用"' class='status wtg-color'>{{item.status}}</view>
  56. <view v-if='item.status=="企业不存在"' class='status shz-color'>{{item.status}}</view>
  57. <view v-if='item.status=="授权已撤销"' class='status shz-color'>{{item.status}}</view>
  58. </view>
  59. <view class="row2">
  60. {{item.advanceFreightService==1?'可垫付运费':'不可垫付运费'}}
  61. </view>
  62. <view class="row3">
  63. <view class="right">
  64. <image v-if='item.status!="平台审核中"&&item.status!="企业审核中"&&item.status!="企业暂不可用"&&item.status!="企业不存在"&&item.status!="授权已撤销"' @click='edit(item)'
  65. style='width:17px;height:17px;margin:0 10px;' src="@/static/mine/company/edit.png">
  66. </image>
  67. <image @click='del(item)' style='width:17px;height:17px;margin:0 10px;'
  68. src="@/static/mine/company/del.png"></image>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <view v-else style='text-align:center;'>
  74. <image class='image weibangding' :showLoading="true"
  75. src="../../../static/mine/huozhurenzheng/weibangding.png"></image>
  76. <view style='font-size:12px;color:#999;'>您还未认证企业信息</view>
  77. </view>
  78. <view class='footer'>
  79. <view @click='goDetailPage("/pages/mine/cargoowner/addEnerprise",1)' class='newlyIncreased' v-if='enterprise.authenticationStatus'>新增</view>
  80. <view @click='goDetailPage("/pages/mine/cargoowner/editpersonalinformation")' class='newlyIncreased' v-if="enterprise.authenticationStatus=='未认证'">去认证</view>
  81. </view>
  82. </view>
  83. </view>
  84. </template>
  85. <script>
  86. import {
  87. mapState
  88. } from 'vuex';
  89. export default {
  90. data() {
  91. return {
  92. personage: {},
  93. phone: '',
  94. status: false,
  95. datastatus: false,
  96. statustext: '未认证',
  97. enterprise: []
  98. }
  99. },
  100. onLoad() {
  101. var _this = this;
  102. if (!this.hasLogin) {
  103. uni.$u.route('/pages/public/login');
  104. }
  105. this.getList()
  106. },
  107. computed: {
  108. ...mapState(['hasLogin', 'userInfo']),
  109. },
  110. methods: {
  111. edit(){
  112. },
  113. del(){},
  114. goDetailPage(src, status) {
  115. if (status) {
  116. uni.setStorageSync('cargoOwnerId', this.personage.id)
  117. }
  118. uni.$u.route(src);
  119. },
  120. getList() {
  121. uni.showLoading({
  122. title: '加载中',
  123. mask: true
  124. })
  125. this.$request.baseRequest('get', '/cargoOwnerInfo/selectCargoOwner', {
  126. commonId: this.userInfo.id
  127. }).then(res => {
  128. uni.hideLoading()
  129. if (res.data) {
  130. this.datastatus = true
  131. this.personage = res.data
  132. if (res.data.cargoOwnerCompInfoList) {
  133. this.enterprise = res.data.cargoOwnerCompInfoList
  134. }
  135. if (this.personage) {
  136. // this.statustext = this.personage.authenticationStatus
  137. // if (this.personage.authenticationStatus == '审核中' || this.personage
  138. // .authenticationStatus == '已驳回') {
  139. // this.status = false
  140. // } else {
  141. // this.status = true
  142. // }
  143. this.phone = this.personage.phone.replace(this.personage.phone.substring(3, 7), "****")
  144. }
  145. } else {
  146. this.datastatus = false
  147. }
  148. })
  149. .catch(res => {
  150. uni.hideLoading()
  151. uni.showToast({
  152. title: res.message,
  153. icon: 'none',
  154. duration: 2000
  155. })
  156. });
  157. uni.showLoading({
  158. title: '加载中',
  159. mask: true
  160. })
  161. // this.$request.baseRequest('get', '/cargoOwnerCompInfo/api/addCargoOwnerComp',{commonId:this.userInfo.id} ).then(res => {
  162. // uni.hideLoading()
  163. // if(res.data){
  164. // this.enterprise=res.data
  165. // }
  166. // })
  167. // .catch(res => {
  168. // uni.hideLoading()
  169. // uni.showToast({
  170. // title: res.message,
  171. // icon: 'none',
  172. // duration: 2000
  173. // })
  174. // });
  175. },
  176. }
  177. }
  178. </script>
  179. <style lang="scss" scoped>
  180. .content {
  181. height: 90vh;
  182. }
  183. .identity {
  184. background: linear-gradient(150deg, #FFFFFF 0%, #F8FCFF 100%);
  185. box-shadow: 9rpx 10rpx 17rpx 0px rgba(53, 105, 255, 0.06), inset 2rpx 4rpx 0px 0px rgba(255, 255, 255, 0.5);
  186. padding: 60rpx;
  187. display: flex;
  188. align-items: center;
  189. margin: 20rpx;
  190. border-radius: 20rpx;
  191. }
  192. .content1 {
  193. display: flex;
  194. align-items: center;
  195. }
  196. .content2-title {
  197. margin: 20rpx;
  198. }
  199. .weibangding {
  200. width: 141px;
  201. height: 141px;
  202. }
  203. .footer {
  204. position: fixed;
  205. background: #fff;
  206. width: 100%;
  207. bottom: 0;
  208. left: 0;
  209. padding: 15px 15px 30px;
  210. box-sizing: border-box;
  211. }
  212. .newlyIncreased {
  213. width: 100%;
  214. margin: 0 auto;
  215. text-align: center;
  216. height: 46px;
  217. line-height: 46px;
  218. color: #fff;
  219. background: url(../../../static/mine/huozhurenzheng/Mask@3x.png) no-repeat;
  220. background-size: 100%;
  221. }
  222. .wrap {
  223. background: #fff;
  224. border-radius: 10rpx;
  225. padding: 24rpx;
  226. box-sizing: border-box;
  227. margin: 20rpx;
  228. .row2{
  229. margin: 20rpx 0;
  230. color: #AFB3BF;
  231. }
  232. .row3 {
  233. display: flex;
  234. justify-content: flex-end;
  235. margin-top: 20rpx;
  236. }
  237. }
  238. .status {
  239. font-size: 26rpx;
  240. padding: 5rpx 18rpx;
  241. border-radius: 20rpx;
  242. }
  243. .status.passed {
  244. background: #25E491;
  245. }
  246. .status.aduit {
  247. background: #FE8031;
  248. }
  249. .status.reject {
  250. background: #FC5A51;
  251. }
  252. .content {
  253. margin-bottom: 200rpx;
  254. }
  255. </style>