index.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. },
  62. };
  63. },
  64. onLoad(){
  65. this.getList()
  66. },
  67. computed: {
  68. ...mapState(['hasLogin','userInfo'])
  69. },
  70. methods: {
  71. getList(){
  72. this.identityAuthenticationInfo.commonId = this.userInfo.id
  73. this.$api.doRequest('get', '/identityAuthenticationInfo/selectIdentityAuthenticationInfo', this.identityAuthenticationInfo).then(res => {
  74. console.log("添加成功")
  75. this.procurementPlanInfos = res.data.data
  76. })
  77. .catch(res => {
  78. uni.showToast({
  79. title: res.errmsg,
  80. icon: 'none',
  81. duration: 2000
  82. })
  83. });
  84. },
  85. adddriver(index) {
  86. if (index == 1) {
  87. uni.navigateTo({
  88. url: `/pageD/identity/companyIdentity`
  89. })
  90. } else {
  91. uni.navigateTo({
  92. url: `/pageD/identity/driverIdentity`
  93. })
  94. }
  95. },
  96. navToDetailPage(index) {
  97. if (index == 1) {
  98. uni.navigateTo({
  99. url: `/pageD/identity/companyIdentityLook`
  100. })
  101. } else {
  102. uni.navigateTo({
  103. url: `/pageD/identity/driverIdentityLook`
  104. })
  105. }
  106. }
  107. }
  108. }
  109. </script>
  110. <style>
  111. .center {
  112. padding: 10px 20px;
  113. }
  114. .title {
  115. font-size: 18px;
  116. font-weight: 900;
  117. margin-right: 20px;
  118. display: initial;
  119. }
  120. .company {
  121. font-size: 16px;
  122. margin-top: 10px;
  123. }
  124. .infos {
  125. /* margin: 10px 20px; */
  126. width: 100%;
  127. display: inline-table;
  128. }
  129. .info {
  130. line-height: 20px;
  131. }
  132. .but {
  133. right: 3px;
  134. float: right;
  135. }
  136. </style>