index.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <template>
  2. <view class="container">
  3. <!-- 自定义头部 -->
  4. <view class="custom-header">
  5. <view class="header-left" @click="navBack">
  6. <image class="back-icon" src="/static/icons/chevron_right_dark.svg" style="transform: rotate(180deg);"></image>
  7. </view>
  8. <text class="header-title">认证信息</text>
  9. <view class="header-right"></view>
  10. </view>
  11. <view class="header-placeholder"></view>
  12. <!-- 身份认证 -->
  13. <view class="card">
  14. <view class="section-header">
  15. <view class="orange-bar"></view>
  16. <text class="section-title">身份认证</text>
  17. <view class="tag-green">已认证</view>
  18. </view>
  19. <view class="info-row">
  20. <text class="label">真实姓名</text>
  21. <text class="value">张三哥</text>
  22. </view>
  23. <view class="info-row">
  24. <text class="label">证件号码</text>
  25. <text class="value">4403**********1234</text>
  26. </view>
  27. <view class="id-card-row">
  28. <view class="id-card-box green-bg">
  29. <text class="id-text">ID Front</text>
  30. <view class="corner-tag">人像面</view>
  31. </view>
  32. <view class="id-card-box green-bg">
  33. <text class="id-text">ID Back</text>
  34. <view class="corner-tag">国徽面</view>
  35. </view>
  36. </view>
  37. </view>
  38. <!-- 服务类型 -->
  39. <view class="card">
  40. <view class="section-header">
  41. <view class="orange-bar"></view>
  42. <text class="section-title">服务类型</text>
  43. </view>
  44. <view class="tags-row">
  45. <view class="service-tag">宠物接送</view>
  46. <view class="service-tag">上门喂遛</view>
  47. </view>
  48. </view>
  49. <!-- 资质证书 -->
  50. <view class="card">
  51. <view class="section-header">
  52. <view class="orange-bar"></view>
  53. <text class="section-title">资质证书</text>
  54. </view>
  55. <text class="sub-title">宠物接送服务资质</text>
  56. <view class="cert-row">
  57. <view class="cert-box yellow-bg">
  58. <text class="cert-text orange">Cert 1</text>
  59. </view>
  60. <view class="cert-box yellow-bg">
  61. <text class="cert-text orange">Cert 2</text>
  62. </view>
  63. </view>
  64. <text class="sub-title">上门喂遛服务资质</text>
  65. <view class="cert-row">
  66. <view class="cert-box blue-bg">
  67. <text class="cert-text blue">Cert 3</text>
  68. </view>
  69. </view>
  70. <text class="sub-title">上门洗护服务资质</text>
  71. <view class="cert-row">
  72. <view class="cert-box green-light-bg">
  73. <text class="cert-text green">Cert 4</text>
  74. </view>
  75. </view>
  76. </view>
  77. <!-- 修改按钮 -->
  78. <view class="bottom-btn-area">
  79. <button class="action-btn" @click="editAuth">修改认证信息</button>
  80. <text class="tips">修改认证信息需要重新审核,审核期间无法接单</text>
  81. </view>
  82. </view>
  83. </template>
  84. <script>
  85. export default {
  86. data() {
  87. return {}
  88. },
  89. methods: {
  90. navBack() {
  91. uni.navigateBack({
  92. delta: 1
  93. });
  94. },
  95. editAuth() {
  96. uni.showToast({ title: '跳转修改认证页', icon: 'none' });
  97. }
  98. }
  99. }
  100. </script>
  101. <style>
  102. page {
  103. background-color: #F8F8F8;
  104. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  105. }
  106. .custom-header {
  107. position: fixed;
  108. top: 0;
  109. left: 0;
  110. width: 100%;
  111. height: 88rpx;
  112. padding-top: var(--status-bar-height);
  113. background-color: #fff;
  114. display: flex;
  115. align-items: center;
  116. justify-content: space-between;
  117. padding-left: 30rpx;
  118. padding-right: 30rpx;
  119. box-sizing: content-box;
  120. z-index: 100;
  121. }
  122. .header-placeholder {
  123. height: calc(88rpx + var(--status-bar-height));
  124. }
  125. .back-icon {
  126. width: 40rpx;
  127. height: 40rpx;
  128. }
  129. .header-title {
  130. font-size: 28rpx;
  131. font-weight: bold;
  132. color: #333;
  133. }
  134. .header-right {
  135. width: 40rpx;
  136. }
  137. .container {
  138. padding: 20rpx 30rpx;
  139. padding-bottom: 100rpx;
  140. }
  141. .card {
  142. background-color: #fff;
  143. border-radius: 20rpx;
  144. padding: 30rpx;
  145. margin-bottom: 30rpx;
  146. }
  147. .section-header {
  148. display: flex;
  149. align-items: center;
  150. margin-bottom: 30rpx;
  151. }
  152. .orange-bar {
  153. width: 8rpx;
  154. height: 32rpx;
  155. background-color: #FF5722;
  156. border-radius: 4rpx;
  157. margin-right: 16rpx;
  158. }
  159. .section-title {
  160. font-size: 32rpx;
  161. font-weight: bold;
  162. color: #333;
  163. flex: 1;
  164. }
  165. .tag-green {
  166. font-size: 24rpx;
  167. color: #4CAF50;
  168. background-color: #E8F5E9;
  169. padding: 4rpx 12rpx;
  170. border-radius: 8rpx;
  171. }
  172. .info-row {
  173. display: flex;
  174. justify-content: space-between;
  175. margin-bottom: 20rpx;
  176. }
  177. .label {
  178. font-size: 28rpx;
  179. color: #999;
  180. }
  181. .value {
  182. font-size: 28rpx;
  183. color: #333;
  184. font-weight: 500;
  185. }
  186. .id-card-row {
  187. display: flex;
  188. justify-content: space-between;
  189. margin-top: 20rpx;
  190. }
  191. .id-card-box {
  192. width: 48%;
  193. height: 180rpx;
  194. border-radius: 12rpx;
  195. display: flex;
  196. align-items: center;
  197. justify-content: center;
  198. position: relative;
  199. overflow: hidden;
  200. }
  201. .green-bg {
  202. background-color: #E8F5E9;
  203. }
  204. .id-text {
  205. font-size: 36rpx;
  206. color: #4CAF50;
  207. font-weight: bold;
  208. }
  209. .corner-tag {
  210. position: absolute;
  211. right: 0;
  212. bottom: 0;
  213. background-color: rgba(0,0,0,0.5);
  214. color: #fff;
  215. font-size: 20rpx;
  216. padding: 4rpx 10rpx;
  217. border-top-left-radius: 8rpx;
  218. }
  219. .tags-row {
  220. display: flex;
  221. flex-wrap: wrap;
  222. }
  223. .service-tag {
  224. background-color: #FFF3E0;
  225. color: #FF9800;
  226. font-size: 26rpx;
  227. padding: 10rpx 30rpx;
  228. border-radius: 30rpx;
  229. margin-right: 20rpx;
  230. margin-bottom: 20rpx;
  231. }
  232. .sub-title {
  233. font-size: 28rpx;
  234. color: #666;
  235. margin-top: 10rpx;
  236. margin-bottom: 20rpx;
  237. display: block;
  238. }
  239. .cert-row {
  240. display: flex;
  241. flex-wrap: wrap;
  242. margin-bottom: 20rpx;
  243. }
  244. .cert-box {
  245. width: 180rpx;
  246. height: 180rpx;
  247. border-radius: 12rpx;
  248. display: flex;
  249. align-items: center;
  250. justify-content: center;
  251. margin-right: 20rpx;
  252. margin-bottom: 20rpx;
  253. }
  254. .yellow-bg { background-color: #FFF8E1; }
  255. .blue-bg { background-color: #E3F2FD; }
  256. .green-light-bg { background-color: #F1F8E9; }
  257. .cert-text { font-size: 32rpx; font-weight: bold; }
  258. .cert-text.orange { color: #FFA000; }
  259. .cert-text.blue { color: #2196F3; }
  260. .cert-text.green { color: #8BC34A; }
  261. .bottom-btn-area {
  262. margin-top: 40rpx;
  263. text-align: center;
  264. }
  265. .action-btn {
  266. background-color: #fff;
  267. color: #FF5722;
  268. border: 1px solid #FF5722;
  269. font-size: 32rpx;
  270. border-radius: 44rpx;
  271. height: 88rpx;
  272. line-height: 88rpx;
  273. }
  274. .tips {
  275. display: block;
  276. font-size: 24rpx;
  277. color: #999;
  278. margin-top: 20rpx;
  279. }
  280. </style>