index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928
  1. <template>
  2. <view class="matchmaker-page">
  3. <!-- 顶部导航栏 -->
  4. <view class="header">
  5. <view class="back-btn" @click="goBack">
  6. <text class="back-icon">←</text>
  7. </view>
  8. <text class="header-title">兼职红娘</text>
  9. <view class="placeholder"></view>
  10. </view>
  11. <scroll-view scroll-y class="content">
  12. <!-- 顶部Banner -->
  13. <view class="top-banner">
  14. <text class="banner-title">加入我们的红娘团队</text>
  15. <text class="banner-subtitle">成为传递幸福的使者,利用闲暇时间帮助更多人</text>
  16. <text class="banner-subtitle">找到生命中的另一半,还能获得丰厚报酬</text>
  17. </view>
  18. <!-- 申请成为红娘按钮 -->
  19. <view class="action-button" @click="scrollToForm">
  20. <text class="button-text">立即申请</text>
  21. </view>
  22. <!-- 特点列表 -->
  23. <view class="features-section">
  24. <view class="feature-card">
  25. <text class="feature-icon">⏰</text>
  26. <view class="feature-content">
  27. <text class="feature-title">时间灵活</text>
  28. <text class="feature-desc">利用碎片时间工作,不影响主业,轻松实现副业增收</text>
  29. </view>
  30. </view>
  31. <view class="feature-card">
  32. <text class="feature-icon">💰</text>
  33. <view class="feature-content">
  34. <text class="feature-title">丰厚报酬</text>
  35. <text class="feature-desc">每成功匹配一对,可获得高额佣金,多劳多得</text>
  36. </view>
  37. </view>
  38. <view class="feature-card">
  39. <text class="feature-icon">📚</text>
  40. <view class="feature-content">
  41. <text class="feature-title">免费培训</text>
  42. <text class="feature-desc">提供专业婚恋知识和匹配技巧培训,快速上手</text>
  43. </view>
  44. </view>
  45. </view>
  46. <!-- 申请表单 -->
  47. <view class="form-section" id="application-form">
  48. <view class="form-title">申请加入</view>
  49. <view class="form-group">
  50. <text class="form-label">姓名:</text>
  51. <input class="form-input" v-model="formData.name" placeholder="请输入您的姓名" />
  52. </view>
  53. <view class="form-group">
  54. <text class="form-label">手机号:</text>
  55. <input class="form-input" v-model="formData.phone" type="number" placeholder="请输入您的手机号" />
  56. </view>
  57. <view class="form-group">
  58. <text class="form-label">电子邮箱:</text>
  59. <input class="form-input" v-model="formData.email" placeholder="请输入您的电子邮箱" />
  60. </view>
  61. <view class="form-group">
  62. <text class="form-label">年龄:</text>
  63. <input class="form-input" v-model="formData.age" type="number" placeholder="请输入您的年龄" />
  64. </view>
  65. <view class="form-group">
  66. <text class="form-label">性别:</text>
  67. <view class="radio-group">
  68. <label class="radio-item" @click="formData.gender = 2">
  69. <view class="radio" :class="{ 'radio-checked': formData.gender === 2 }"></view>
  70. <text class="radio-label">女</text>
  71. </label>
  72. <label class="radio-item" @click="formData.gender = 1">
  73. <view class="radio" :class="{ 'radio-checked': formData.gender === 1 }"></view>
  74. <text class="radio-label">男</text>
  75. </label>
  76. </view>
  77. </view>
  78. <view class="form-group">
  79. <text class="form-label">所在地区:</text>
  80. <picker mode="multiSelector" :range="multiAreaData" range-key="name" :value="multiAreaIndex" @change="onAreaChange" @columnchange="onAreaColumnChange">
  81. <view class="form-input picker-input">
  82. <text :class="{ 'placeholder-text': !areaDisplayText }">{{ areaDisplayText || '请选择省市区' }}</text>
  83. <text class="picker-arrow">></text>
  84. </view>
  85. </picker>
  86. </view>
  87. <view class="form-group">
  88. <text class="form-label">婚姻介绍经验:</text>
  89. <input class="form-input" v-model="formData.experience" placeholder="请输入您的婚姻介绍经验" />
  90. </view>
  91. <!-- <view class="form-group">
  92. <text class="form-label">可服务时间:</text>
  93. <picker mode="multiSelector" :range="timeSlotData" :value="timeSlotIndex" @change="onTimeSlotChange">
  94. <view class="form-input picker-input">
  95. <text :class="{ 'placeholder-text': !timeSlotDisplayText }">{{ timeSlotDisplayText || '请选择服务时间段' }}</text>
  96. <text class="picker-arrow">></text>
  97. </view>
  98. </picker>
  99. </view> -->
  100. <view class="form-group">
  101. <text class="form-label">个人简介:</text>
  102. <textarea
  103. class="form-textarea"
  104. v-model="formData.introduction"
  105. placeholder="请简要介绍自己,包括您的性格特点、沟通能力、对红娘工作的理解等"
  106. maxlength="500"
  107. ></textarea>
  108. </view>
  109. <button
  110. class="submit-btn"
  111. :class="{ 'btn-disabled': buttonDisabled }"
  112. :disabled="buttonDisabled"
  113. @click="handleSubmit"
  114. >
  115. {{ buttonText }}
  116. </button>
  117. </view>
  118. <!-- 更多特点 -->
  119. <view class="more-features">
  120. <view class="feature-card">
  121. <text class="feature-icon">⏰</text>
  122. <view class="feature-content">
  123. <text class="feature-title">上传身边人信息</text>
  124. <text class="feature-desc">若您身边有单身朋友,可上传其信息至平台,成功匹配后也可获得奖励</text>
  125. </view>
  126. </view>
  127. <view class="feature-card">
  128. <text class="feature-icon">⏰</text>
  129. <view class="feature-content">
  130. <text class="feature-title">佣金提现</text>
  131. <text class="feature-desc">您的匹配佣金可随时申请提现,到账迅速,让您的努力及时获得回报</text>
  132. </view>
  133. </view>
  134. </view>
  135. </scroll-view>
  136. </view>
  137. </template>
  138. <script>
  139. import api from '@/utils/api.js'
  140. import userAuth from '@/utils/userAuth.js'
  141. export default {
  142. data() {
  143. return {
  144. formData: {
  145. name: '',
  146. phone: '',
  147. email: '',
  148. age: '',
  149. gender: '',
  150. provinceId: null,
  151. cityId: null,
  152. areaId: null,
  153. experience: '',
  154. startTime: '',
  155. endTime: '',
  156. introduction: ''
  157. },
  158. // 省市区数据
  159. provinceList: [],
  160. cityList: [],
  161. areaList: [],
  162. multiAreaData: [[], [], []], // 三级联动数据
  163. multiAreaIndex: [0, 0, 0], // 三级联动索引
  164. areaDisplayText: '',
  165. // 时间段数据
  166. hourOptions: Array.from({ length: 24 }, (_, i) => {
  167. const hour = String(i).padStart(2, '0')
  168. return `${hour}:00`
  169. }),
  170. timeSlotData: [[], []], // [开始时间, 结束时间]
  171. timeSlotIndex: [0, 0],
  172. timeSlotDisplayText: '',
  173. // 按钮状态
  174. buttonText: '提交申请',
  175. buttonDisabled: false,
  176. applyStatus: null // null-未申请, 0-已通过, 1-已拒绝, 2-审核中
  177. }
  178. },
  179. onLoad() {
  180. // 初始化时间段数据
  181. this.timeSlotData = [this.hourOptions, this.hourOptions]
  182. // 加载省市区数据
  183. this.loadAreaData()
  184. // 检查申请状态
  185. this.checkApplyStatus()
  186. },
  187. methods: {
  188. // 返回上一页
  189. goBack() {
  190. uni.navigateBack()
  191. },
  192. // 滚动到表单
  193. scrollToForm() {
  194. uni.pageScrollTo({
  195. selector: '#application-form',
  196. duration: 300
  197. })
  198. },
  199. // 检查申请状态
  200. async checkApplyStatus() {
  201. try {
  202. // 获取用户ID
  203. const userId = await userAuth.checkLoginStatus({
  204. requireLogin: false,
  205. allowTestUser: false
  206. })
  207. if (!userId) {
  208. return
  209. }
  210. // 查询申请状态
  211. const result = await api.matchmaker.getApplyStatus(userId)
  212. if (result && result.hasApplied) {
  213. this.applyStatus = result.status
  214. this.updateButtonState(result.status)
  215. }
  216. } catch (error) {
  217. console.error('查询申请状态失败:', error)
  218. // 查询失败不影响页面显示,保持默认状态
  219. }
  220. },
  221. // 根据status更新按钮状态
  222. updateButtonState(status) {
  223. if (status === 2) {
  224. // 审核中
  225. this.buttonText = '审核中'
  226. this.buttonDisabled = true
  227. } else if (status === 0) {
  228. // 已成为红娘
  229. this.buttonText = '已成为红娘'
  230. this.buttonDisabled = true
  231. } else if (status === 1) {
  232. // 审核被拒绝,可以重新提交
  233. this.buttonText = '重新提交'
  234. this.buttonDisabled = false
  235. } else {
  236. // 其他状态,保持默认
  237. this.buttonText = '提交申请'
  238. this.buttonDisabled = false
  239. }
  240. },
  241. // 省市区相关方法
  242. // 加载省市区数据
  243. async loadAreaData() {
  244. try {
  245. // 加载省份列表
  246. const provinceRes = await api.area.getProvinces()
  247. if (Array.isArray(provinceRes)) {
  248. this.provinceList = provinceRes
  249. } else if (provinceRes && provinceRes.data) {
  250. this.provinceList = provinceRes.data
  251. } else if (provinceRes && provinceRes.code === 200 && provinceRes.data) {
  252. this.provinceList = provinceRes.data
  253. } else {
  254. this.provinceList = []
  255. }
  256. this.multiAreaData[0] = this.provinceList
  257. // 如果有省份,加载第一个省份的城市
  258. if (this.provinceList.length > 0) {
  259. await this.loadCitiesForProvince(this.provinceList[0].id)
  260. }
  261. } catch (e) {
  262. console.error('加载省份失败:', e)
  263. uni.showToast({
  264. title: '加载省份数据失败',
  265. icon: 'none'
  266. })
  267. }
  268. },
  269. // 根据省份ID加载城市
  270. async loadCitiesForProvince(provinceId) {
  271. if (!provinceId) return
  272. try {
  273. const cityRes = await api.area.getCities(provinceId)
  274. if (Array.isArray(cityRes)) {
  275. this.cityList = cityRes
  276. } else if (cityRes && cityRes.data) {
  277. this.cityList = cityRes.data
  278. } else if (cityRes && cityRes.code === 200 && cityRes.data) {
  279. this.cityList = cityRes.data
  280. } else {
  281. this.cityList = []
  282. }
  283. this.multiAreaData[1] = this.cityList
  284. // 如果有城市,加载第一个城市的区域
  285. if (this.cityList.length > 0) {
  286. await this.loadAreasForCity(this.cityList[0].id)
  287. }
  288. } catch (e) {
  289. console.error('加载城市失败:', e)
  290. this.cityList = []
  291. this.multiAreaData[1] = []
  292. }
  293. },
  294. // 根据城市ID加载区域
  295. async loadAreasForCity(cityId) {
  296. if (!cityId) return
  297. try {
  298. const areaRes = await api.area.getAreas(cityId)
  299. if (Array.isArray(areaRes)) {
  300. this.areaList = areaRes
  301. } else if (areaRes && areaRes.data) {
  302. this.areaList = areaRes.data
  303. } else if (areaRes && areaRes.code === 200 && areaRes.data) {
  304. this.areaList = areaRes.data
  305. } else {
  306. this.areaList = []
  307. }
  308. this.multiAreaData[2] = this.areaList
  309. } catch (e) {
  310. console.error('加载区域失败:', e)
  311. this.areaList = []
  312. this.multiAreaData[2] = []
  313. }
  314. },
  315. // 省市区选择器列变化事件
  316. async onAreaColumnChange(e) {
  317. const column = e.detail.column // 列索引:0-省,1-市,2-区
  318. const row = e.detail.value // 选中的行索引
  319. if (column === 0) {
  320. // 选择了省份
  321. const province = this.provinceList[row]
  322. if (province && province.id) {
  323. this.multiAreaIndex[0] = row
  324. this.multiAreaIndex[1] = 0
  325. this.multiAreaIndex[2] = 0
  326. // 加载该省份的城市
  327. await this.loadCitiesForProvince(province.id)
  328. }
  329. } else if (column === 1) {
  330. // 选择了城市
  331. const city = this.cityList[row]
  332. if (city && city.id) {
  333. this.multiAreaIndex[1] = row
  334. this.multiAreaIndex[2] = 0
  335. // 加载该城市的区域
  336. await this.loadAreasForCity(city.id)
  337. }
  338. } else if (column === 2) {
  339. // 选择了区域
  340. this.multiAreaIndex[2] = row
  341. }
  342. },
  343. // 省市区选择器确认事件
  344. onAreaChange(e) {
  345. const values = e.detail.value
  346. this.multiAreaIndex = values
  347. // 设置选中的省市区ID
  348. if (this.provinceList[values[0]]) {
  349. this.formData.provinceId = this.provinceList[values[0]].id
  350. }
  351. if (this.cityList[values[1]]) {
  352. this.formData.cityId = this.cityList[values[1]].id
  353. }
  354. if (this.areaList[values[2]]) {
  355. this.formData.areaId = this.areaList[values[2]].id
  356. }
  357. // 更新显示文本
  358. this.updateAreaDisplayText()
  359. },
  360. // 更新地区显示文本
  361. updateAreaDisplayText() {
  362. let text = ''
  363. if (this.provinceList[this.multiAreaIndex[0]]) {
  364. text += this.provinceList[this.multiAreaIndex[0]].name
  365. }
  366. if (this.cityList[this.multiAreaIndex[1]]) {
  367. text += ' ' + this.cityList[this.multiAreaIndex[1]].name
  368. }
  369. if (this.areaList[this.multiAreaIndex[2]]) {
  370. text += ' ' + this.areaList[this.multiAreaIndex[2]].name
  371. }
  372. this.areaDisplayText = text
  373. },
  374. // 时间段选择器确认事件
  375. onTimeSlotChange(e) {
  376. const values = e.detail.value
  377. this.timeSlotIndex = values
  378. const startTime = this.hourOptions[values[0]]
  379. const endTime = this.hourOptions[values[1]]
  380. // 验证结束时间必须大于开始时间
  381. if (values[1] <= values[0]) {
  382. uni.showToast({
  383. title: '结束时间必须大于开始时间',
  384. icon: 'none'
  385. })
  386. // 自动调整结束时间为开始时间+1
  387. if (values[0] < 23) {
  388. this.timeSlotIndex[1] = values[0] + 1
  389. this.formData.startTime = startTime
  390. this.formData.endTime = this.hourOptions[this.timeSlotIndex[1]]
  391. this.timeSlotDisplayText = `每天 ${startTime} - ${this.formData.endTime}`
  392. } else {
  393. // 如果开始时间是23:00,则结束时间设为23:00(表示到当天结束)
  394. this.formData.startTime = startTime
  395. this.formData.endTime = endTime
  396. this.timeSlotDisplayText = `每天 ${startTime} - ${endTime}`
  397. }
  398. } else {
  399. this.formData.startTime = startTime
  400. this.formData.endTime = endTime
  401. this.timeSlotDisplayText = `每天 ${startTime} - ${endTime}`
  402. }
  403. },
  404. // 提交申请
  405. async handleSubmit() {
  406. // 如果按钮被禁用,不执行提交
  407. if (this.buttonDisabled) {
  408. return
  409. }
  410. // 表单验证
  411. if (!this.formData.name) {
  412. uni.showToast({
  413. title: '请输入姓名',
  414. icon: 'none'
  415. })
  416. return
  417. }
  418. if (!this.formData.phone) {
  419. uni.showToast({
  420. title: '请输入手机号',
  421. icon: 'none'
  422. })
  423. return
  424. }
  425. // 验证手机号格式
  426. const phoneReg = /^1[3-9]\d{9}$/
  427. if (!phoneReg.test(this.formData.phone)) {
  428. uni.showToast({
  429. title: '请输入正确的手机号',
  430. icon: 'none'
  431. })
  432. return
  433. }
  434. if (!this.formData.email) {
  435. uni.showToast({
  436. title: '请输入电子邮箱',
  437. icon: 'none'
  438. })
  439. return
  440. }
  441. // 验证邮箱格式
  442. const emailReg = /^[^\s@]+@[^\s@]+\.[^\s@]+$/
  443. if (!emailReg.test(this.formData.email)) {
  444. uni.showToast({
  445. title: '请输入正确的邮箱',
  446. icon: 'none'
  447. })
  448. return
  449. }
  450. if (!this.formData.age) {
  451. uni.showToast({
  452. title: '请输入年龄',
  453. icon: 'none'
  454. })
  455. return
  456. }
  457. if (!this.formData.gender) {
  458. uni.showToast({
  459. title: '请选择性别',
  460. icon: 'none'
  461. })
  462. return
  463. }
  464. if (!this.formData.provinceId || !this.formData.cityId || !this.formData.areaId) {
  465. uni.showToast({
  466. title: '请选择所在地区',
  467. icon: 'none'
  468. })
  469. return
  470. }
  471. if (!this.formData.experience) {
  472. uni.showToast({
  473. title: '请输入婚姻介绍经验',
  474. icon: 'none'
  475. })
  476. return
  477. }
  478. // if (!this.formData.startTime || !this.formData.endTime) {
  479. // uni.showToast({
  480. // title: '请选择可服务时间',
  481. // icon: 'none'
  482. // })
  483. // return
  484. // }
  485. if (!this.formData.introduction) {
  486. uni.showToast({
  487. title: '请输入个人简介',
  488. icon: 'none'
  489. })
  490. return
  491. }
  492. // 检查登录状态并获取用户ID
  493. const userId = await userAuth.checkLoginStatus({
  494. requireLogin: true,
  495. allowTestUser: false,
  496. redirectUrl: '/pages/part-time-matchmaker/index'
  497. })
  498. uni.showModal({
  499. title: '提交申请',
  500. content: '确认提交兼职红娘申请吗?',
  501. success: async (res) => {
  502. if (res.confirm) {
  503. uni.showLoading({
  504. title: '提交中...'
  505. })
  506. try {
  507. // 组装提交数据
  508. const submitData = {
  509. userId: userId,
  510. name: this.formData.name,
  511. phone: this.formData.phone,
  512. email: this.formData.email,
  513. age: parseInt(this.formData.age),
  514. gender: this.formData.gender,
  515. area: this.areaDisplayText, // 使用显示文本作为地区
  516. experience: this.formData.experience,
  517. serverTime: `${this.formData.startTime}-${this.formData.endTime}`,
  518. introduction: this.formData.introduction
  519. }
  520. // 调用后端接口提交申请
  521. await api.matchmaker.submitApply(submitData)
  522. uni.hideLoading()
  523. uni.showModal({
  524. title: '申请成功',
  525. content: '您的申请已提交,我们会在1-3个工作日内完成审核,请耐心等待。审核结果将通过短信或邮件通知您。',
  526. showCancel: false,
  527. success: () => {
  528. // 清空表单
  529. this.formData = {
  530. name: '',
  531. phone: '',
  532. email: '',
  533. age: '',
  534. gender: '',
  535. provinceId: null,
  536. cityId: null,
  537. areaId: null,
  538. experience: '',
  539. startTime: '',
  540. endTime: '',
  541. introduction: ''
  542. }
  543. this.multiAreaIndex = [0, 0, 0]
  544. this.areaDisplayText = ''
  545. this.timeSlotIndex = [0, 0]
  546. this.timeSlotDisplayText = ''
  547. // 重新检查申请状态,更新按钮
  548. this.checkApplyStatus()
  549. }
  550. })
  551. } catch (error) {
  552. uni.hideLoading()
  553. console.error('提交申请失败:', error)
  554. uni.showToast({
  555. title: error.message || '提交失败,请稍后重试',
  556. icon: 'none',
  557. duration: 2000
  558. })
  559. }
  560. }
  561. }
  562. })
  563. }
  564. }
  565. }
  566. </script>
  567. <style lang="scss" scoped>
  568. * {
  569. box-sizing: border-box;
  570. }
  571. .matchmaker-page {
  572. min-height: 100vh;
  573. background: #F5F5F5;
  574. display: flex;
  575. flex-direction: column;
  576. }
  577. /* 顶部导航栏 */
  578. .header {
  579. display: flex;
  580. align-items: center;
  581. justify-content: space-between;
  582. padding: 25rpx 30rpx;
  583. padding-top: calc(25rpx + env(safe-area-inset-top));
  584. background: linear-gradient(135deg, #FF8A9B 0%, #FFB4C0 100%);
  585. .back-btn {
  586. width: 70rpx;
  587. height: 70rpx;
  588. display: flex;
  589. align-items: center;
  590. justify-content: center;
  591. background: rgba(255, 255, 255, 0.2);
  592. border-radius: 50%;
  593. .back-icon {
  594. font-size: 44rpx;
  595. color: #FFFFFF;
  596. font-weight: bold;
  597. }
  598. }
  599. .header-title {
  600. font-size: 38rpx;
  601. font-weight: bold;
  602. color: #FFFFFF;
  603. }
  604. .placeholder {
  605. width: 70rpx;
  606. }
  607. }
  608. .content {
  609. flex: 1;
  610. background: #F5F5F5;
  611. padding-bottom: calc(40rpx + env(safe-area-inset-bottom));
  612. }
  613. /* 顶部Banner */
  614. .top-banner {
  615. background: linear-gradient(135deg, #E688A1 0%, #D97890 100%);
  616. padding: 50rpx 40rpx;
  617. text-align: center;
  618. .banner-title {
  619. display: block;
  620. font-size: 40rpx;
  621. font-weight: bold;
  622. color: #FFFFFF;
  623. margin-bottom: 25rpx;
  624. }
  625. .banner-subtitle {
  626. display: block;
  627. font-size: 26rpx;
  628. color: #FFFFFF;
  629. line-height: 1.6;
  630. opacity: 0.95;
  631. }
  632. }
  633. /* 兼职红娘按钮 */
  634. .action-button {
  635. margin: 35rpx 40rpx;
  636. padding: 25rpx;
  637. background: #FFFFFF;
  638. border: 3rpx solid #FF6B8A;
  639. border-radius: 15rpx;
  640. text-align: center;
  641. .button-text {
  642. font-size: 30rpx;
  643. color: #FF6B8A;
  644. font-weight: bold;
  645. }
  646. }
  647. /* 特点列表 */
  648. .features-section {
  649. padding: 0 40rpx 25rpx;
  650. }
  651. .more-features {
  652. padding: 0 40rpx 40rpx;
  653. }
  654. .features-section,
  655. .more-features {
  656. .feature-card {
  657. background: #F0F0F0;
  658. border-radius: 15rpx;
  659. padding: 30rpx;
  660. margin-bottom: 20rpx;
  661. display: flex;
  662. align-items: flex-start;
  663. .feature-icon {
  664. font-size: 42rpx;
  665. margin-right: 20rpx;
  666. flex-shrink: 0;
  667. }
  668. .feature-content {
  669. flex: 1;
  670. }
  671. .feature-title {
  672. display: block;
  673. font-size: 30rpx;
  674. font-weight: bold;
  675. color: #333333;
  676. margin-bottom: 12rpx;
  677. }
  678. .feature-desc {
  679. display: block;
  680. font-size: 24rpx;
  681. color: #666666;
  682. line-height: 1.5;
  683. }
  684. }
  685. }
  686. /* 申请表单 */
  687. .form-section {
  688. background: #FFFFFF;
  689. margin: 25rpx 40rpx;
  690. padding: 35rpx;
  691. border-radius: 15rpx;
  692. box-shadow: 0 4rpx 15rpx rgba(0, 0, 0, 0.05);
  693. box-sizing: border-box;
  694. .form-title {
  695. font-size: 34rpx;
  696. font-weight: bold;
  697. color: #333333;
  698. margin-bottom: 35rpx;
  699. text-align: center;
  700. }
  701. .form-group {
  702. margin-bottom: 30rpx;
  703. box-sizing: border-box;
  704. .form-label {
  705. display: block;
  706. font-size: 26rpx;
  707. color: #333333;
  708. margin-bottom: 12rpx;
  709. font-weight: 500;
  710. }
  711. .form-input {
  712. width: 100%;
  713. height: 70rpx;
  714. padding: 0 20rpx;
  715. border: 1rpx solid #E0E0E0;
  716. border-radius: 10rpx;
  717. font-size: 26rpx;
  718. background: #FAFAFA;
  719. box-sizing: border-box;
  720. &:focus {
  721. border-color: #FF8A9B;
  722. background: #FFFFFF;
  723. }
  724. }
  725. .picker-input {
  726. display: flex;
  727. align-items: center;
  728. justify-content: space-between;
  729. cursor: pointer;
  730. .placeholder-text {
  731. color: #999999;
  732. }
  733. .picker-arrow {
  734. color: #CCCCCC;
  735. font-size: 24rpx;
  736. }
  737. }
  738. .form-textarea {
  739. width: 100%;
  740. min-height: 160rpx;
  741. padding: 15rpx 20rpx;
  742. border: 1rpx solid #E0E0E0;
  743. border-radius: 10rpx;
  744. font-size: 26rpx;
  745. line-height: 1.5;
  746. background: #FAFAFA;
  747. box-sizing: border-box;
  748. &:focus {
  749. border-color: #FF8A9B;
  750. background: #FFFFFF;
  751. }
  752. }
  753. .radio-group {
  754. display: flex;
  755. align-items: center;
  756. gap: 50rpx;
  757. .radio-item {
  758. display: flex;
  759. align-items: center;
  760. .radio {
  761. width: 36rpx;
  762. height: 36rpx;
  763. border: 3rpx solid #CCCCCC;
  764. border-radius: 50%;
  765. margin-right: 15rpx;
  766. position: relative;
  767. transition: all 0.3s;
  768. &.radio-checked {
  769. border-color: #FF6B8A;
  770. background: #FF6B8A;
  771. &::after {
  772. content: '';
  773. position: absolute;
  774. width: 16rpx;
  775. height: 16rpx;
  776. background: #FFFFFF;
  777. border-radius: 50%;
  778. top: 50%;
  779. left: 50%;
  780. transform: translate(-50%, -50%);
  781. }
  782. }
  783. }
  784. .radio-label {
  785. font-size: 28rpx;
  786. color: #333333;
  787. }
  788. }
  789. }
  790. }
  791. .submit-btn {
  792. width: 100%;
  793. height: 80rpx;
  794. background: linear-gradient(135deg, #FF8A9B 0%, #FF6B8A 100%);
  795. color: #FFFFFF;
  796. font-size: 30rpx;
  797. font-weight: bold;
  798. border: none;
  799. border-radius: 40rpx;
  800. margin-top: 30rpx;
  801. &.btn-disabled {
  802. background: #CCCCCC;
  803. color: #FFFFFF;
  804. opacity: 0.6;
  805. }
  806. }
  807. }
  808. </style>