Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 

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