indexTwo.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <template>
  2. <view class="center">
  3. <view v-for="(item , index) in businessman" :Key="index" class="forList">
  4. <view class='flex' @click="navToDetailPage(item)">
  5. <view class="logo">
  6. 粮商
  7. </view>
  8. <view class = "company" >{{item.compName}}</view>
  9. <view class = "company" v-if="item.customerTypeFlag == 1">{{item.customerName}}</view>
  10. <view class = "geren" v-if="item.customerTypeFlag == 1"> {{item.customerPhone}}</view>
  11. <view class = "geren" v-if="item.customerTypeFlag == 2">{{item.customerName}} {{item.customerPhone}}</view>
  12. <view class="status" v-if="item.authenticationStatus == '已认证'" >
  13. <image src="../../static/img/authentication/cert-personal@3x.png" style="width: 16px;height: 16px;top:3px;"></image>
  14. {{item.authenticationStatus}}
  15. </view>
  16. <view class="status1" v-if="item.authenticationStatus == '审核中'" >
  17. {{item.authenticationStatus}}
  18. </view>
  19. <view class="status2" v-if="item.authenticationStatus == '未通过'" >
  20. {{item.authenticationStatus}}
  21. </view>
  22. <view class="status3" v-if="item.authenticationStatus == '已覆盖'" >
  23. {{item.authenticationStatus}}
  24. </view>
  25. </view>
  26. <hr style="margin: 10px 0;">
  27. <view class="cu-tag yuan">
  28. <image src="../../static/img/authentication/selected(2).png" style="width: 16px;height: 16px;">设置默认</image>
  29. </view>
  30. <view class='cu-tag but'>更换手机号</view>
  31. <view class='cu-tag but' @click="companyEdit(item)">修改</view>
  32. <view class='cu-tag but' @click="deleteLS(item)">删除</view>
  33. </view>
  34. <button class="btn btns" @click="Add">新增</button>
  35. </view>
  36. </template>
  37. <script>
  38. import {
  39. mapState
  40. } from 'vuex';
  41. export default {
  42. name: "buy",
  43. data() {
  44. return {
  45. businessman: {},
  46. identityAuthenticationInfo: {},
  47. judge:"geren",
  48. }
  49. },
  50. computed: {
  51. ...mapState(['hasLogin', 'userInfo'])
  52. },
  53. onLoad() {
  54. this.getList()
  55. },
  56. methods: {
  57. Add(){
  58. uni.navigateTo({
  59. url: `/pageD/identity/companyIdentity`
  60. })
  61. },
  62. getList() {
  63. this.identityAuthenticationInfo.commonId = this.userInfo.id
  64. this.$api.doRequest('get', '/identityAuthenticationInfo/selectIdentityAuthenticationInfo', {
  65. pageSize: 10,
  66. currentPage: 1,
  67. commonId: this.userInfo.id
  68. }, 'application/json;charset=UTF-8').then(res => {
  69. console.log("成功连接")
  70. this.businessman = res.data.data.records
  71. })
  72. .catch(res => {
  73. uni.showToast({
  74. title: res.errmsg,
  75. icon: 'none',
  76. duration: 2000
  77. })
  78. });
  79. },
  80. navToDetailPage(item){
  81. uni.navigateTo({
  82. url: `/pageD/identity/companyIdentityLook?id=${item.id}`
  83. })
  84. },
  85. deleteLS(item) {
  86. uni.showModal({
  87. // title: '登录提示',
  88. content: '身份信息删除后不可恢复,是否确定删除?',
  89. showCancel: true,
  90. confirmText: '确定',
  91. success: (e) => {
  92. this.$api.doRequest('post',
  93. '/identityAuthenticationInfo/api/deleteIdentityAuthenticationInfo', {
  94. id: item.id
  95. }, 'application/json;charset=UTF-8').then(res => {
  96. this.procurementPlanInfos = res.data.data.records
  97. if (res.errmsg == "Success") {
  98. this.$api.msg('删除成功!')
  99. this.getList()
  100. return
  101. }
  102. })
  103. .catch(res => {
  104. uni.showToast({
  105. title: res.errmsg,
  106. icon: 'none',
  107. duration: 2000
  108. })
  109. });
  110. },
  111. fail: () => {},
  112. complete: () => {}
  113. })
  114. },
  115. companyEdit(item) {
  116. uni.navigateTo({
  117. url: `/pageD/identity/companyIdentityEdit?id=${item.id}`
  118. })
  119. },
  120. }
  121. }
  122. </script>
  123. <style>
  124. .center {
  125. padding: 10px 20px;
  126. background-color: #F5F6FA;
  127. }
  128. .title {
  129. font-size: 22px;
  130. font-weight: 900;
  131. /* margin-top: 30px; */
  132. top: 50px;
  133. left: 24px;
  134. position: relative;
  135. }
  136. .company {
  137. font-size: 16px;
  138. font-weight: 600;
  139. margin-top: 10px;
  140. display: inline-block;
  141. margin-left: 10px;
  142. }
  143. .geren{
  144. color: #AFB3BF;
  145. font-size: 14px;
  146. margin-top: 34px;
  147. margin-left: -54px;
  148. }
  149. .infos {
  150. width: 100%;
  151. display: inline-table;
  152. }
  153. .info {
  154. line-height: 20px;
  155. }
  156. .but {
  157. border: 1px solid #CDCDCD;
  158. border-radius: 10px;
  159. }
  160. .homePage {
  161. width: 101%;
  162. height: 200px;
  163. margin: 20px auto;
  164. }
  165. .logo {
  166. width: 35px;
  167. height: 35px;
  168. background-color: #E9F8F0;
  169. color: #22C572;
  170. text-align: center;
  171. line-height: 35px;
  172. padding: 0 3px;
  173. border-radius: 6px;
  174. display: inline-block;
  175. margin-top: 10px;
  176. }
  177. .forList {
  178. background: #FFFFFF;
  179. margin-top: 10px;
  180. padding: 10px 10px;
  181. border-radius: 16px;
  182. }
  183. .status{
  184. position: absolute;
  185. margin-top: 10px;
  186. right: 36px;
  187. color:#22C572;
  188. }
  189. .status1{
  190. position: absolute;
  191. margin-top: 10px;
  192. right: 36px;
  193. color:#FE6430;
  194. }
  195. .status2{
  196. position: absolute;
  197. margin-top: 10px;
  198. right: 36px;
  199. color: #FB1E1E;
  200. }
  201. .status3{
  202. position: absolute;
  203. margin-top: 10px;
  204. right: 36px;
  205. color: #AFB3BF;
  206. }
  207. .btn {
  208. margin-top: 10px;
  209. background-color: #FFFFFF;
  210. border-radius: 25px;
  211. border: none;
  212. }
  213. .btns {
  214. background-color: #22C572;
  215. }
  216. </style>