Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

804 linhas
22 KiB

  1. <template>
  2. <view class="page">
  3. <!-- 驳回原因提示 -->
  4. <view v-if="info.status === 2 && info.reject_reason" class="reject-tip">
  5. <u-icon name="warning-fill" size="20" color="#fa8c16" />
  6. <text class="reject-text">驳回原因:{{ info.reject_reason }}</text>
  7. </view>
  8. <!-- 基本信息 -->
  9. <view class="section">
  10. <view class="section-title">
  11. <u-icon name="account-fill" size="18" color="#0e63e3" />
  12. <text>基本信息</text>
  13. </view>
  14. <view class="form-group">
  15. <text class="form-label">姓名</text>
  16. <view class="readonly-input">{{ info.name }}</view>
  17. </view>
  18. <view class="form-group">
  19. <text class="form-label">身份证号</text>
  20. <view class="readonly-input">{{ maskedIdCard }}</view>
  21. </view>
  22. <view class="form-group">
  23. <text class="form-label">手机号</text>
  24. <view class="readonly-input">{{ maskedPhone }}</view>
  25. </view>
  26. <view class="form-group" v-if="info.gender">
  27. <text class="form-label">性别</text>
  28. <view class="readonly-input">{{ info.gender }}</view>
  29. </view>
  30. <view class="form-group" v-else>
  31. <text class="form-label">性别</text>
  32. <view class="gender-row">
  33. <view class="gender-item" :class="{ active: form.gender === '男' }" @tap="form.gender = '男'">男</view>
  34. <view class="gender-item" :class="{ active: form.gender === '女' }" @tap="form.gender = '女'">女</view>
  35. </view>
  36. </view>
  37. <view class="form-group">
  38. <text class="form-label">联系地址</text>
  39. <view class="region-row" @tap="showRegionPicker = true">
  40. <text :class="['region-text', regionText ? '' : 'placeholder']">{{ regionText || '请选择省/市/区' }}</text>
  41. <text class="arrow">›</text>
  42. </view>
  43. <u-input v-model="form.address" placeholder="详细街道地址" border="surround"
  44. :customStyle="{ marginTop: '16rpx' }" />
  45. </view>
  46. <view class="form-group">
  47. <text class="form-label">紧急联系人(选填)</text>
  48. <view class="contact-row">
  49. <view class="contact-input">
  50. <u-input v-model="form.emergency_contact" placeholder="联系人姓名" border="surround" />
  51. </view>
  52. <view class="contact-input">
  53. <u-input v-model="form.emergency_phone" type="number" placeholder="联系人电话" border="surround" maxlength="11" />
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. <!-- 资料上传 -->
  59. <view class="section">
  60. <view class="section-title">
  61. <u-icon name="attach" size="18" color="#fa8c16" />
  62. <text>资料上传</text>
  63. </view>
  64. <view class="upload-tip">请上传您的检查报告单或出院诊断证明书,上传图片请尽量平整清晰。可上传多张。</view>
  65. <view class="upload-row">
  66. <view class="upload-item" v-for="(doc, idx) in form.documents" :key="idx">
  67. <image class="upload-img" :src="doc" mode="aspectFill" @tap="previewImage(idx)" />
  68. <view class="upload-del" @tap="form.documents.splice(idx, 1)">×</view>
  69. </view>
  70. <view class="upload-box" @tap="chooseDocument">
  71. <text class="upload-icon">+</text>
  72. <text class="upload-text">上传图片</text>
  73. </view>
  74. </view>
  75. </view>
  76. <!-- 授权签名 -->
  77. <view class="section">
  78. <view class="section-title">
  79. <u-icon name="edit-pen-fill" size="18" color="#52c41a" />
  80. <text>授权签名</text>
  81. </view>
  82. <view class="sign-item">
  83. <view class="sign-left">
  84. <text class="sign-name">个人可支配收入声明</text>
  85. <text :class="['sign-status', signedIncome ? 'signed' : '']">{{ signedIncome ? '已签署' : '未签署' }}</text>
  86. </view>
  87. <view class="sign-btns" v-if="signedIncome">
  88. <view class="sign-btn view" @tap="previewSign('income')">查看</view>
  89. <view class="sign-btn resign" @tap="goSign('income')">重签</view>
  90. </view>
  91. <view class="sign-btn primary" v-else @tap="goSign('income')">去签署</view>
  92. </view>
  93. <view class="sign-item">
  94. <view class="sign-left">
  95. <text class="sign-name">个人信息处理同意书</text>
  96. <text :class="['sign-status', signedPrivacy ? 'signed' : '']">{{ signedPrivacy ? '已签署' : '未签署' }}</text>
  97. </view>
  98. <view class="sign-btns" v-if="signedPrivacy">
  99. <view class="sign-btn view" @tap="previewSign('privacy')">查看</view>
  100. <view class="sign-btn resign" @tap="goSign('privacy')">重签</view>
  101. </view>
  102. <view class="sign-btn primary" v-else @tap="goSign('privacy')">去签署</view>
  103. </view>
  104. <view class="sign-item" v-if="isMinor">
  105. <view class="sign-left">
  106. <text class="sign-name">个人信息处理同意书(监护人)</text>
  107. <text :class="['sign-status', signedPrivacyJhr ? 'signed' : '']">{{ signedPrivacyJhr ? '已签署' : '未签署' }}</text>
  108. </view>
  109. <view class="sign-btns" v-if="signedPrivacyJhr">
  110. <view class="sign-btn view" @tap="previewSign('privacy_jhr')">查看</view>
  111. <view class="sign-btn resign" @tap="goSign('privacy_jhr')">重签</view>
  112. </view>
  113. <view class="sign-btn primary" v-else @tap="goSign('privacy_jhr')">去签署</view>
  114. </view>
  115. <view class="sign-item">
  116. <view class="sign-left">
  117. <text class="sign-name">声明与承诺</text>
  118. <text :class="['sign-status', signedPromise ? 'signed' : '']">{{ signedPromise ? '已签署' : '未签署' }}</text>
  119. </view>
  120. <view class="sign-btns" v-if="signedPromise">
  121. <view class="sign-btn view" @tap="previewSign('promise')">查看</view>
  122. <view class="sign-btn resign" @tap="goSign('promise')">重签</view>
  123. </view>
  124. <view class="sign-btn primary" v-else @tap="goSign('promise')">去签署</view>
  125. </view>
  126. </view>
  127. <!-- 提交按钮 -->
  128. <view class="btn-wrap">
  129. <u-button text="提交审核" :loading="submitting" @click="handleSubmit" color="#0E63E3" size="large" />
  130. </view>
  131. <!-- 地区选择器 -->
  132. <u-picker v-if="regionColumns[0].length" :show="showRegionPicker" :columns="regionColumns" @confirm="onRegionConfirm"
  133. @cancel="showRegionPicker = false" @change="onRegionChange" :defaultIndex="regionDefaultIndex" />
  134. <!-- 已通过重新提交确认弹窗 -->
  135. <u-popup :show="showConfirmPopup" mode="center" round="12" :safeAreaInsetBottom="false" @close="showConfirmPopup = false">
  136. <view class="confirm-popup">
  137. <view class="confirm-title">提示</view>
  138. <view class="confirm-content">您的资料审核已通过,如果重新提交审核会变为待审核,需要平台重新审核,是否确认提交?</view>
  139. <view class="confirm-btns">
  140. <u-button text="取消" size="normal" :plain="true" shape="circle" @click="showConfirmPopup = false" />
  141. <u-button text="确认提交" size="normal" color="#0E63E3" shape="circle" @click="doSubmit" />
  142. </view>
  143. </view>
  144. </u-popup>
  145. </view>
  146. </template>
  147. <script setup>
  148. import { ref, reactive, computed, onBeforeUnmount } from 'vue'
  149. import { onLoad } from '@dcloudio/uni-app'
  150. import { get, post, upload } from '@/utils/request.js'
  151. const info = ref({})
  152. const form = reactive({
  153. gender: '',
  154. province_code: '',
  155. city_code: '',
  156. district_code: '',
  157. address: '',
  158. emergency_contact: '',
  159. emergency_phone: '',
  160. documents: [],
  161. sign_income: '',
  162. sign_privacy: '',
  163. sign_privacy_jhr: '',
  164. sign_promise: '',
  165. income_amount: ''
  166. })
  167. const submitting = ref(false)
  168. const showRegionPicker = ref(false)
  169. const showConfirmPopup = ref(false)
  170. const subscribeTmplId = ref('')
  171. // 签署时的额外信息(用于重签回显)
  172. const signExtra = reactive({
  173. income_amount: '',
  174. guardian_name: '',
  175. guardian_id_card: '',
  176. guardian_relation: ''
  177. })
  178. // 加载订阅消息模板配置
  179. const loadSubscribeConfig = async () => {
  180. try {
  181. const res = await get('/api/mp/subscribeConfig')
  182. if (res.data && res.data.audit_result) {
  183. subscribeTmplId.value = res.data.audit_result
  184. }
  185. } catch (e) {}
  186. }
  187. // 请求订阅消息授权
  188. const requestSubscribe = () => {
  189. return new Promise((resolve) => {
  190. if (!subscribeTmplId.value) return resolve(false)
  191. // #ifdef MP-WEIXIN
  192. wx.requestSubscribeMessage({
  193. tmplIds: [subscribeTmplId.value],
  194. success: () => resolve(true),
  195. fail: () => resolve(false)
  196. })
  197. // #endif
  198. // #ifndef MP-WEIXIN
  199. resolve(false)
  200. // #endif
  201. })
  202. }
  203. // 地区数据
  204. const allRegions = ref([])
  205. const regionColumns = ref([[], [], []])
  206. const regionDefaultIndex = ref([0, 0, 0])
  207. const maskedIdCard = computed(() => {
  208. const v = info.value.id_card || ''
  209. if (v.length === 18) return v.slice(0, 3) + '***********' + v.slice(-4)
  210. return v
  211. })
  212. const maskedPhone = computed(() => {
  213. const v = info.value.phone || ''
  214. if (v.length === 11) return v.slice(0, 3) + '****' + v.slice(-4)
  215. return v
  216. })
  217. // 签署状态:form 中有新签的 URL 或 info 中有已保存的 URL
  218. const signedIncome = computed(() => form.sign_income || info.value.sign_income)
  219. const signedPrivacy = computed(() => form.sign_privacy || info.value.sign_privacy)
  220. const signedPrivacyJhr = computed(() => form.sign_privacy_jhr || info.value.sign_privacy_jhr)
  221. const signedPromise = computed(() => form.sign_promise || info.value.sign_promise)
  222. // 判断是否未成年(从身份证号解析年龄)
  223. const isMinor = computed(() => {
  224. const idCard = info.value.id_card || ''
  225. if (idCard.length !== 18) return false
  226. const birthYear = parseInt(idCard.substring(6, 10))
  227. const birthMonth = parseInt(idCard.substring(10, 12))
  228. const birthDay = parseInt(idCard.substring(12, 14))
  229. const now = new Date()
  230. let age = now.getFullYear() - birthYear
  231. const monthDiff = (now.getMonth() + 1) - birthMonth
  232. if (monthDiff < 0 || (monthDiff === 0 && now.getDate() < birthDay)) age--
  233. return age < 18
  234. })
  235. const regionText = computed(() => {
  236. const parts = []
  237. if (form.province_code) {
  238. const p = allRegions.value.find(r => r.code === form.province_code)
  239. if (p) parts.push(p.name)
  240. }
  241. if (form.city_code) {
  242. const prov = allRegions.value.find(r => r.code === form.province_code)
  243. if (prov && prov.children) {
  244. const c = prov.children.find(r => r.code === form.city_code)
  245. if (c) parts.push(c.name)
  246. }
  247. }
  248. if (form.district_code) {
  249. const prov = allRegions.value.find(r => r.code === form.province_code)
  250. if (prov && prov.children) {
  251. const city = prov.children.find(r => r.code === form.city_code)
  252. if (city && city.children) {
  253. const d = city.children.find(r => r.code === form.district_code)
  254. if (d) parts.push(d.name)
  255. }
  256. }
  257. }
  258. return parts.join(' ')
  259. })
  260. // 签署结果事件监听
  261. const onSignResult = (data) => {
  262. if (data.type === 'income') {
  263. form.sign_income = data.url
  264. if (data.amount) {
  265. form.income_amount = data.amount
  266. signExtra.income_amount = data.amount
  267. }
  268. } else if (data.type === 'privacy') {
  269. form.sign_privacy = data.url
  270. } else if (data.type === 'privacy_jhr') {
  271. form.sign_privacy_jhr = data.url
  272. if (data.guardianName) signExtra.guardian_name = data.guardianName
  273. if (data.guardianIdCard) signExtra.guardian_id_card = data.guardianIdCard
  274. if (data.guardianRelation) signExtra.guardian_relation = data.guardianRelation
  275. } else if (data.type === 'promise') {
  276. form.sign_promise = data.url
  277. }
  278. }
  279. onLoad(async () => {
  280. uni.$on('signResult', onSignResult)
  281. await loadRegions()
  282. await loadInfo()
  283. loadSubscribeConfig()
  284. })
  285. onBeforeUnmount(() => {
  286. uni.$off('signResult', onSignResult)
  287. })
  288. const goSign = (type) => {
  289. let url = `/pages/sign/sign?type=${type}`
  290. if (type === 'income') {
  291. const amt = form.income_amount || signExtra.income_amount || ''
  292. if (amt) url += `&amount=${encodeURIComponent(amt)}`
  293. }
  294. if (type === 'privacy_jhr') {
  295. const gn = signExtra.guardian_name || ''
  296. const gi = signExtra.guardian_id_card || ''
  297. const gr = signExtra.guardian_relation || ''
  298. if (gn) url += `&guardianName=${encodeURIComponent(gn)}`
  299. if (gi) url += `&guardianIdCard=${encodeURIComponent(gi)}`
  300. if (gr) url += `&guardianRelation=${encodeURIComponent(gr)}`
  301. }
  302. uni.navigateTo({ url })
  303. }
  304. const previewSign = (type) => {
  305. const urlMap = {
  306. income: form.sign_income || info.value.sign_income,
  307. privacy: form.sign_privacy || info.value.sign_privacy,
  308. privacy_jhr: form.sign_privacy_jhr || info.value.sign_privacy_jhr,
  309. promise: form.sign_promise || info.value.sign_promise
  310. }
  311. const url = urlMap[type]
  312. if (url) uni.previewImage({ urls: [url], current: 0 })
  313. }
  314. const loadRegions = async () => {
  315. try {
  316. const res = await get('/common/regions')
  317. allRegions.value = res.data || []
  318. buildRegionColumns()
  319. } catch (e) {}
  320. }
  321. const buildRegionColumns = (pIdx = 0, cIdx = 0) => {
  322. const provinces = allRegions.value
  323. const col0 = provinces.map(p => p.name)
  324. const cities = (provinces[pIdx] && provinces[pIdx].children) || []
  325. const col1 = cities.map(c => c.name)
  326. const districts = (cities[cIdx] && cities[cIdx].children) || []
  327. const col2 = districts.map(d => d.name)
  328. regionColumns.value = [col0, col1, col2]
  329. }
  330. const onRegionChange = (e) => {
  331. const { columnIndex, index } = e
  332. if (columnIndex === 0) {
  333. buildRegionColumns(index, 0)
  334. regionDefaultIndex.value = [index, 0, 0]
  335. } else if (columnIndex === 1) {
  336. const pIdx = regionDefaultIndex.value[0]
  337. buildRegionColumns(pIdx, index)
  338. regionDefaultIndex.value = [pIdx, index, 0]
  339. }
  340. }
  341. const onRegionConfirm = (e) => {
  342. const idxs = e.indexs || e.index || [0, 0, 0]
  343. const provinces = allRegions.value
  344. const prov = provinces[idxs[0]]
  345. const city = prov && prov.children ? prov.children[idxs[1]] : null
  346. const dist = city && city.children ? city.children[idxs[2]] : null
  347. form.province_code = prov ? prov.code : ''
  348. form.city_code = city ? city.code : ''
  349. form.district_code = dist ? dist.code : ''
  350. showRegionPicker.value = false
  351. }
  352. const loadInfo = async () => {
  353. try {
  354. const res = await get('/api/mp/myInfo')
  355. if (!res.data) return
  356. info.value = res.data
  357. // 填充表单
  358. form.gender = res.data.gender || ''
  359. form.province_code = res.data.province_code || ''
  360. form.city_code = res.data.city_code || ''
  361. form.district_code = res.data.district_code || ''
  362. form.address = res.data.address || ''
  363. form.emergency_contact = res.data.emergency_contact || ''
  364. form.emergency_phone = res.data.emergency_phone || ''
  365. form.documents = res.data.documents || []
  366. form.sign_income = res.data.sign_income || ''
  367. form.sign_privacy = res.data.sign_privacy || ''
  368. form.sign_privacy_jhr = res.data.sign_privacy_jhr || ''
  369. form.sign_promise = res.data.sign_promise || ''
  370. form.income_amount = res.data.income_amount || ''
  371. signExtra.income_amount = res.data.income_amount || ''
  372. signExtra.guardian_name = res.data.guardian_name || ''
  373. signExtra.guardian_id_card = res.data.guardian_id_card || ''
  374. signExtra.guardian_relation = res.data.guardian_relation || ''
  375. // 设置地区选择器默认索引
  376. if (form.province_code && allRegions.value.length) {
  377. const pIdx = allRegions.value.findIndex(r => r.code === form.province_code)
  378. if (pIdx >= 0) {
  379. const cities = allRegions.value[pIdx].children || []
  380. const cIdx = cities.findIndex(r => r.code === form.city_code)
  381. const ci = cIdx >= 0 ? cIdx : 0
  382. const districts = (cities[ci] && cities[ci].children) || []
  383. const dIdx = districts.findIndex(r => r.code === form.district_code)
  384. buildRegionColumns(pIdx, ci)
  385. regionDefaultIndex.value = [pIdx, ci, dIdx >= 0 ? dIdx : 0]
  386. }
  387. }
  388. } catch (e) {}
  389. }
  390. const chooseDocument = () => {
  391. uni.chooseImage({
  392. count: 9 - form.documents.length,
  393. sizeType: ['compressed'],
  394. sourceType: ['album', 'camera'],
  395. success: async (res) => {
  396. for (const filePath of res.tempFilePaths) {
  397. try {
  398. const uploadRes = await upload('/api/mp/upload', { filePath, name: 'file' })
  399. if (uploadRes.data && uploadRes.data.url) {
  400. form.documents.push(uploadRes.data.url)
  401. }
  402. } catch (e) {}
  403. }
  404. }
  405. })
  406. }
  407. const previewImage = (idx) => {
  408. uni.previewImage({ urls: form.documents, current: idx })
  409. }
  410. const handleSubmit = async () => {
  411. if (!info.value.gender && !form.gender) {
  412. return uni.showToast({ title: '请选择性别', icon: 'none' })
  413. }
  414. if (!form.province_code || !form.city_code || !form.district_code) {
  415. return uni.showToast({ title: '请选择省市区', icon: 'none' })
  416. }
  417. if (!form.address.trim()) {
  418. return uni.showToast({ title: '请填写详细地址', icon: 'none' })
  419. }
  420. // 资料上传校验:至少上传一个
  421. if (!form.documents || form.documents.length === 0) {
  422. return uni.showToast({ title: '请至少上传一份检查报告或诊断证明', icon: 'none' })
  423. }
  424. // 签名校验:全部必须签
  425. if (!signedIncome.value) {
  426. return uni.showToast({ title: '请签署个人可支配收入声明', icon: 'none' })
  427. }
  428. if (!signedPrivacy.value) {
  429. return uni.showToast({ title: '请签署个人信息处理同意书', icon: 'none' })
  430. }
  431. if (isMinor.value && !signedPrivacyJhr.value) {
  432. return uni.showToast({ title: '请签署个人信息处理同意书(监护人)', icon: 'none' })
  433. }
  434. if (!signedPromise.value) {
  435. return uni.showToast({ title: '请签署声明与承诺', icon: 'none' })
  436. }
  437. // 已通过状态需要二次确认
  438. if (info.value.status === 1) {
  439. showConfirmPopup.value = true
  440. return
  441. }
  442. await doSubmit()
  443. }
  444. const doSubmit = async () => {
  445. showConfirmPopup.value = false
  446. // 先请求订阅消息授权(用户拒绝也继续提交)
  447. await requestSubscribe()
  448. submitting.value = true
  449. try {
  450. const params = {
  451. gender: info.value.gender || form.gender,
  452. province_code: form.province_code,
  453. city_code: form.city_code,
  454. district_code: form.district_code,
  455. address: form.address.trim(),
  456. emergency_contact: form.emergency_contact,
  457. emergency_phone: form.emergency_phone,
  458. documents: form.documents,
  459. sign_income: form.sign_income,
  460. sign_privacy: form.sign_privacy,
  461. sign_privacy_jhr: form.sign_privacy_jhr,
  462. sign_promise: form.sign_promise,
  463. income_amount: form.income_amount || null,
  464. guardian_name: signExtra.guardian_name || '',
  465. guardian_id_card: signExtra.guardian_id_card || '',
  466. guardian_relation: signExtra.guardian_relation || '',
  467. // #ifdef MP-WEIXIN
  468. mp_env_version: uni.getAccountInfoSync().miniProgram.envVersion || 'release'
  469. // #endif
  470. }
  471. await post('/api/mp/saveMyInfo', params)
  472. uni.showToast({ title: '提交成功', icon: 'success' })
  473. setTimeout(() => uni.navigateBack(), 1500)
  474. } catch (e) {
  475. if (e && e.msg) uni.showToast({ title: e.msg, icon: 'none' })
  476. } finally {
  477. submitting.value = false
  478. }
  479. }
  480. </script>
  481. <style lang="scss" scoped>
  482. .page {
  483. min-height: 100vh;
  484. background: #f4f4f5;
  485. padding: 24rpx;
  486. padding-bottom: 240rpx;
  487. }
  488. .section {
  489. background: #fff;
  490. border-radius: 10rpx;
  491. padding: 32rpx;
  492. margin-bottom: 24rpx;
  493. border: 1rpx solid #ebeef5;
  494. }
  495. .reject-tip {
  496. display: flex;
  497. align-items: flex-start;
  498. padding: 24rpx 28rpx;
  499. background: #fff2f0;
  500. border: 1rpx solid #ffccc7;
  501. border-radius: 10rpx;
  502. margin-bottom: 24rpx;
  503. .reject-text {
  504. flex: 1;
  505. font-size: 26rpx;
  506. color: #f5222d;
  507. margin-left: 16rpx;
  508. line-height: 1.5;
  509. }
  510. }
  511. .section-title {
  512. display: flex;
  513. align-items: center;
  514. gap: 12rpx;
  515. font-size: 32rpx;
  516. font-weight: 600;
  517. color: #333;
  518. margin-bottom: 28rpx;
  519. }
  520. .form-group {
  521. padding: 20rpx 0;
  522. border-bottom: 1rpx solid #f0f0f0;
  523. &:last-child {
  524. border-bottom: none;
  525. }
  526. }
  527. .form-label {
  528. font-size: 28rpx;
  529. color: #555;
  530. margin-bottom: 16rpx;
  531. display: block;
  532. }
  533. .readonly-input {
  534. padding: 20rpx 24rpx;
  535. background: #f5f5f5;
  536. border: 1rpx solid #ddd;
  537. border-radius: 12rpx;
  538. font-size: 28rpx;
  539. color: #333;
  540. }
  541. .gender-row {
  542. display: flex;
  543. gap: 20rpx;
  544. }
  545. .gender-item {
  546. flex: 1;
  547. text-align: center;
  548. padding: 16rpx 0;
  549. border: 1rpx solid #ddd;
  550. border-radius: 8rpx;
  551. font-size: 28rpx;
  552. color: #333;
  553. &.active {
  554. border-color: #0e63e3;
  555. color: #0e63e3;
  556. background: rgba(14, 99, 227, 0.05);
  557. }
  558. }
  559. .region-row {
  560. display: flex;
  561. align-items: center;
  562. justify-content: space-between;
  563. padding: 20rpx 24rpx;
  564. border: 1rpx solid #ddd;
  565. border-radius: 8rpx;
  566. }
  567. .region-text {
  568. font-size: 28rpx;
  569. color: #333;
  570. &.placeholder {
  571. color: #c0c4cc;
  572. }
  573. }
  574. .arrow {
  575. font-size: 28rpx;
  576. color: #c0c4cc;
  577. }
  578. .contact-row {
  579. display: flex;
  580. gap: 16rpx;
  581. }
  582. .contact-input {
  583. flex: 1;
  584. }
  585. .upload-tip {
  586. font-size: 26rpx;
  587. color: #888;
  588. line-height: 1.6;
  589. margin-bottom: 20rpx;
  590. }
  591. .upload-row {
  592. display: flex;
  593. gap: 16rpx;
  594. flex-wrap: wrap;
  595. }
  596. .upload-item {
  597. position: relative;
  598. width: 180rpx;
  599. height: 180rpx;
  600. }
  601. .upload-img {
  602. width: 180rpx;
  603. height: 180rpx;
  604. border-radius: 8rpx;
  605. border: 1rpx solid #eee;
  606. }
  607. .upload-del {
  608. position: absolute;
  609. top: -10rpx;
  610. right: -10rpx;
  611. width: 40rpx;
  612. height: 40rpx;
  613. background: rgba(0, 0, 0, 0.5);
  614. color: #fff;
  615. border-radius: 50%;
  616. font-size: 24rpx;
  617. display: flex;
  618. align-items: center;
  619. justify-content: center;
  620. }
  621. .upload-box {
  622. width: 180rpx;
  623. height: 180rpx;
  624. border: 2rpx dashed #ccc;
  625. border-radius: 8rpx;
  626. display: flex;
  627. flex-direction: column;
  628. align-items: center;
  629. justify-content: center;
  630. background: #fafafa;
  631. }
  632. .upload-icon {
  633. font-size: 56rpx;
  634. color: #ccc;
  635. }
  636. .upload-text {
  637. font-size: 22rpx;
  638. color: #999;
  639. margin-top: 4rpx;
  640. }
  641. .sign-item {
  642. display: flex;
  643. align-items: center;
  644. justify-content: space-between;
  645. padding: 28rpx 0;
  646. border-bottom: 1rpx solid #f0f0f0;
  647. &:last-child {
  648. border-bottom: none;
  649. }
  650. }
  651. .sign-left {
  652. display: flex;
  653. flex-direction: column;
  654. gap: 8rpx;
  655. }
  656. .sign-name {
  657. font-size: 28rpx;
  658. color: #333;
  659. }
  660. .sign-status {
  661. font-size: 24rpx;
  662. color: #f5222d;
  663. &.signed {
  664. color: #52c41a;
  665. }
  666. }
  667. .sign-btns {
  668. display: flex;
  669. gap: 12rpx;
  670. flex-shrink: 0;
  671. }
  672. .sign-btn {
  673. padding: 10rpx 28rpx;
  674. border-radius: 28rpx;
  675. font-size: 24rpx;
  676. text-align: center;
  677. flex-shrink: 0;
  678. &.primary {
  679. background: #0e63e3;
  680. color: #fff;
  681. }
  682. &.view {
  683. background: #f0f5ff;
  684. color: #0e63e3;
  685. border: 1rpx solid #d0e0ff;
  686. }
  687. &.resign {
  688. background: #fff7e6;
  689. color: #fa8c16;
  690. border: 1rpx solid #ffe7ba;
  691. }
  692. &:active {
  693. opacity: 0.7;
  694. }
  695. }
  696. .btn-wrap {
  697. position: fixed;
  698. bottom: 0;
  699. left: 0;
  700. right: 0;
  701. background: #fff;
  702. padding: 20rpx 32rpx;
  703. padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  704. box-shadow: 0 -4rpx 16rpx rgba(0, 0, 0, 0.06);
  705. z-index: 100;
  706. }
  707. .confirm-popup {
  708. padding: 48rpx 40rpx 40rpx;
  709. width: 560rpx;
  710. }
  711. .confirm-title {
  712. font-size: 34rpx;
  713. font-weight: 600;
  714. color: #333;
  715. text-align: center;
  716. margin-bottom: 28rpx;
  717. }
  718. .confirm-content {
  719. font-size: 28rpx;
  720. color: #666;
  721. line-height: 1.7;
  722. text-align: center;
  723. margin-bottom: 40rpx;
  724. }
  725. .confirm-btns {
  726. display: flex;
  727. gap: 24rpx;
  728. }
  729. </style>