index.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <template>
  2. <view class="center">
  3. <view>
  4. <view class="title">粮商身份</view>
  5. <view class='cu-tag radius line-pink' @click="adddriver(1)">新增</view>
  6. <view class="company">****公司</view>
  7. <view class="guess-item" @click="navToDetailPage(1)">
  8. <view class="infos">
  9. <view class="info">张三
  10. <view class='cu-tag radius line-pink but'>审核中</view>
  11. </view>
  12. <view class="info">13333333333</view>
  13. <label>
  14. <checkbox :value="1" /><text>设置默认</text>
  15. </label>
  16. <view class='cu-tag radius line-pink '>删除</view>
  17. <view class='cu-tag radius line-pink but'>更换手机号</view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="margin-top">
  22. <view class="title">司机身份</view>
  23. <view class='cu-tag radius line-pink' @click="adddriver(2)">新增</view>
  24. <view class="guess-item" @click="navToDetailPage(2)">
  25. <view class="infos">
  26. <view class="info">张三
  27. <view class='cu-tag radius line-pink but'>审核中</view>
  28. </view>
  29. <view class="info">13333333333</view>
  30. <view class='cu-tag radius line-pink '>删除</view>
  31. <view class='cu-tag radius line-pink '>修改</view>
  32. <view class='cu-tag radius line-pink but'>更换手机号</view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. import {
  42. mapState
  43. } from 'vuex';
  44. export default {
  45. name: "buy",
  46. data() {
  47. return {
  48. PageCur: "buy",
  49. buyInfo: [],
  50. pages: 1, //页数
  51. limit: 10, //每次取条目数
  52. loadStatus: 'loading', //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式
  53. isLoadMore: false, //是否加载中
  54. showTran: true,
  55. scrollTop: 0,
  56. TabCur: 0,
  57. current: 1,
  58. identityAuthenticationInfo:{
  59. pageSize:10,
  60. currentPage:1,
  61. commonId:"",
  62. },
  63. };
  64. },
  65. onLoad(){
  66. this.getList()
  67. },
  68. computed: {
  69. ...mapState(['hasLogin','userInfo'])
  70. },
  71. methods: {
  72. getList(){
  73. this.identityAuthenticationInfo.commonId = this.userInfo.id
  74. console.log(12313)
  75. this.$api.doRequest('get', '/identityAuthenticationInfo/selectIdentityAuthenticationInfo', {pageSize:10,
  76. currentPage:1,
  77. commonId:this.userInfo.id},'application/json;charset=UTF-8').then(res => {
  78. console.log("成功连接")
  79. this.procurementPlanInfos = res.data.data
  80. })
  81. .catch(res => {
  82. uni.showToast({
  83. title: res.errmsg,
  84. icon: 'none',
  85. duration: 2000
  86. })
  87. });
  88. },
  89. adddriver(index) {
  90. if (index == 1) {
  91. uni.navigateTo({
  92. url: `/pageD/identity/companyIdentity`
  93. })
  94. } else {
  95. uni.navigateTo({
  96. url: `/pageD/identity/driverIdentity`
  97. })
  98. }
  99. },
  100. navToDetailPage(index) {
  101. if (index == 1) {
  102. uni.navigateTo({
  103. url: `/pageD/identity/companyIdentityLook`
  104. })
  105. } else {
  106. uni.navigateTo({
  107. url: `/pageD/identity/driverIdentityLook`
  108. })
  109. }
  110. }
  111. }
  112. }
  113. </script>
  114. <style>
  115. .center {
  116. padding: 10px 20px;
  117. }
  118. .title {
  119. font-size: 18px;
  120. font-weight: 900;
  121. margin-right: 20px;
  122. display: initial;
  123. }
  124. .company {
  125. font-size: 16px;
  126. margin-top: 10px;
  127. }
  128. .infos {
  129. /* margin: 10px 20px; */
  130. width: 100%;
  131. display: inline-table;
  132. }
  133. .info {
  134. line-height: 20px;
  135. }
  136. .but {
  137. right: 3px;
  138. float: right;
  139. }
  140. </style>