index.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <template>
  2. <view class="app-page">
  3. <view class="card-box" v-for="(item,index) in mList" :key="index" @click="toDetails(item)">
  4. <text class="left-title">{{item.platform}}</text>
  5. <view class="h-view">
  6. <text>{{item.status == '2' ? '已认证' : item.status == '1' ? '审核中' : '未认证'}}</text>
  7. <u-icon name="arrow-right" color="#AEAEAE" size="15rpx" customStyle="padding: 12rpx;margin-right:8rpx">
  8. </u-icon>
  9. </view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. import {
  15. getAuthenticationList
  16. } from "@/common/api/user.js";
  17. export default {
  18. data() {
  19. return {
  20. mList: []
  21. }
  22. },
  23. onLoad(options) {},
  24. onShow() {
  25. this.getAuthenticationList();
  26. },
  27. onPullDownRefresh() {
  28. this.getAuthenticationList();
  29. uni.stopPullDownRefresh()
  30. },
  31. methods: {
  32. toDetails(item){
  33. uni.setStorageSync('selectAuthentication',JSON.stringify(item));
  34. uni.navigateTo({
  35. url:'/subPages/authenticationDetails/index'
  36. })
  37. },
  38. getAuthenticationList() {
  39. uni.showLoading({
  40. })
  41. const data = {}
  42. getAuthenticationList(data)
  43. .then(res => {
  44. uni.hideLoading();
  45. if (res.data) {
  46. this.mList = res.data
  47. }
  48. })
  49. .catch(() => {
  50. uni.hideLoading();
  51. });
  52. },
  53. }
  54. }
  55. </script>
  56. <style lang="scss" scoped>
  57. .app-page {
  58. width: 100%;
  59. display: flex;
  60. padding-top: 20rpx;
  61. align-items: center;
  62. flex-direction: column;
  63. }
  64. .card-box {
  65. width: 710rpx;
  66. background: #FFFFFF;
  67. border-radius: 15rpx 15rpx 15rpx 15rpx;
  68. margin: 0 auto 20rpx auto;
  69. display: flex;
  70. padding: 20rpx 0;
  71. flex-direction: row;
  72. align-items: center;
  73. justify-content: space-between;
  74. }
  75. .h-view {
  76. flex: 1;
  77. display: flex;
  78. flex-direction: row;
  79. justify-content: flex-end;
  80. align-items: center;
  81. }
  82. .left-title {
  83. margin-left: 20rpx;
  84. font-size: 28rpx;
  85. }
  86. button::after {
  87. border: none;
  88. }
  89. .avatar-wrapper button::before {
  90. padding: 0;
  91. margin: 0;
  92. border-radius: 20rpx;
  93. background: transparent;
  94. border: none;
  95. line-height: 1;
  96. }
  97. .avatar-wrapper button::after {
  98. padding: 0;
  99. margin: 0;
  100. border-radius: 20rpx;
  101. background: transparent;
  102. border: none;
  103. line-height: 1;
  104. }
  105. .bottom-view {
  106. margin-bottom: var(--window-bottom);
  107. padding-bottom: calc(150rpx);
  108. }
  109. .bottom-menu-box {
  110. height: calc(150rpx);
  111. display: flex;
  112. flex-direction: row;
  113. justify-content: center;
  114. align-items: flex-start;
  115. position: fixed;
  116. z-index: 9;
  117. background: white;
  118. bottom: var(--window-bottom);
  119. left: 0;
  120. right: 0;
  121. width: 100vw;
  122. .primary-btn {
  123. width: 713rpx;
  124. margin-top: 14rpx;
  125. height: 78rpx;
  126. line-height: 78rpx;
  127. background: #815BFF;
  128. border-radius: 40rpx;
  129. font-size: 32rpx;
  130. font-family: PingFang SC-Medium, PingFang SC;
  131. font-weight: 500;
  132. color: #FFFFFF;
  133. }
  134. button::after {
  135. height: 78rpx;
  136. line-height: 78rpx;
  137. }
  138. .primary-btn:active {
  139. opacity: 0.7;
  140. }
  141. }
  142. </style>