index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939
  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. console.log('=== 开始检查申请状态 ===')
  203. // 获取用户ID
  204. const userId = await userAuth.checkLoginStatus({
  205. requireLogin: false,
  206. allowTestUser: false
  207. })
  208. if (!userId) {
  209. console.log('用户未登录,保持默认按钮状态')
  210. return
  211. }
  212. console.log('当前用户ID:', userId)
  213. // 查询申请状态
  214. const result = await api.matchmaker.getApplyStatus(userId)
  215. console.log('申请状态查询结果:', result)
  216. if (result && result.hasApplied) {
  217. this.applyStatus = result.status
  218. this.updateButtonState(result.status)
  219. } else {
  220. console.log('用户未申请过,保持默认状态')
  221. }
  222. } catch (error) {
  223. console.error('查询申请状态失败:', error)
  224. // 查询失败不影响页面显示,保持默认状态
  225. }
  226. },
  227. // 根据status更新按钮状态
  228. updateButtonState(status) {
  229. console.log('更新按钮状态,status:', status)
  230. if (status === 2) {
  231. // 审核中
  232. this.buttonText = '审核中'
  233. this.buttonDisabled = true
  234. } else if (status === 0) {
  235. // 已成为红娘
  236. this.buttonText = '已成为红娘'
  237. this.buttonDisabled = true
  238. } else if (status === 1) {
  239. // 审核被拒绝,可以重新提交
  240. this.buttonText = '重新提交'
  241. this.buttonDisabled = false
  242. } else {
  243. // 其他状态,保持默认
  244. this.buttonText = '提交申请'
  245. this.buttonDisabled = false
  246. }
  247. console.log('按钮文字:', this.buttonText, '是否禁用:', this.buttonDisabled)
  248. },
  249. // 省市区相关方法
  250. // 加载省市区数据
  251. async loadAreaData() {
  252. try {
  253. // 加载省份列表
  254. const provinceRes = await api.area.getProvinces()
  255. if (Array.isArray(provinceRes)) {
  256. this.provinceList = provinceRes
  257. } else if (provinceRes && provinceRes.data) {
  258. this.provinceList = provinceRes.data
  259. } else if (provinceRes && provinceRes.code === 200 && provinceRes.data) {
  260. this.provinceList = provinceRes.data
  261. } else {
  262. this.provinceList = []
  263. }
  264. this.multiAreaData[0] = this.provinceList
  265. // 如果有省份,加载第一个省份的城市
  266. if (this.provinceList.length > 0) {
  267. await this.loadCitiesForProvince(this.provinceList[0].id)
  268. }
  269. } catch (e) {
  270. console.error('加载省份失败:', e)
  271. uni.showToast({
  272. title: '加载省份数据失败',
  273. icon: 'none'
  274. })
  275. }
  276. },
  277. // 根据省份ID加载城市
  278. async loadCitiesForProvince(provinceId) {
  279. if (!provinceId) return
  280. try {
  281. const cityRes = await api.area.getCities(provinceId)
  282. if (Array.isArray(cityRes)) {
  283. this.cityList = cityRes
  284. } else if (cityRes && cityRes.data) {
  285. this.cityList = cityRes.data
  286. } else if (cityRes && cityRes.code === 200 && cityRes.data) {
  287. this.cityList = cityRes.data
  288. } else {
  289. this.cityList = []
  290. }
  291. this.multiAreaData[1] = this.cityList
  292. // 如果有城市,加载第一个城市的区域
  293. if (this.cityList.length > 0) {
  294. await this.loadAreasForCity(this.cityList[0].id)
  295. }
  296. } catch (e) {
  297. console.error('加载城市失败:', e)
  298. this.cityList = []
  299. this.multiAreaData[1] = []
  300. }
  301. },
  302. // 根据城市ID加载区域
  303. async loadAreasForCity(cityId) {
  304. if (!cityId) return
  305. try {
  306. const areaRes = await api.area.getAreas(cityId)
  307. if (Array.isArray(areaRes)) {
  308. this.areaList = areaRes
  309. } else if (areaRes && areaRes.data) {
  310. this.areaList = areaRes.data
  311. } else if (areaRes && areaRes.code === 200 && areaRes.data) {
  312. this.areaList = areaRes.data
  313. } else {
  314. this.areaList = []
  315. }
  316. this.multiAreaData[2] = this.areaList
  317. } catch (e) {
  318. console.error('加载区域失败:', e)
  319. this.areaList = []
  320. this.multiAreaData[2] = []
  321. }
  322. },
  323. // 省市区选择器列变化事件
  324. async onAreaColumnChange(e) {
  325. const column = e.detail.column // 列索引:0-省,1-市,2-区
  326. const row = e.detail.value // 选中的行索引
  327. if (column === 0) {
  328. // 选择了省份
  329. const province = this.provinceList[row]
  330. if (province && province.id) {
  331. this.multiAreaIndex[0] = row
  332. this.multiAreaIndex[1] = 0
  333. this.multiAreaIndex[2] = 0
  334. // 加载该省份的城市
  335. await this.loadCitiesForProvince(province.id)
  336. }
  337. } else if (column === 1) {
  338. // 选择了城市
  339. const city = this.cityList[row]
  340. if (city && city.id) {
  341. this.multiAreaIndex[1] = row
  342. this.multiAreaIndex[2] = 0
  343. // 加载该城市的区域
  344. await this.loadAreasForCity(city.id)
  345. }
  346. } else if (column === 2) {
  347. // 选择了区域
  348. this.multiAreaIndex[2] = row
  349. }
  350. },
  351. // 省市区选择器确认事件
  352. onAreaChange(e) {
  353. const values = e.detail.value
  354. this.multiAreaIndex = values
  355. // 设置选中的省市区ID
  356. if (this.provinceList[values[0]]) {
  357. this.formData.provinceId = this.provinceList[values[0]].id
  358. }
  359. if (this.cityList[values[1]]) {
  360. this.formData.cityId = this.cityList[values[1]].id
  361. }
  362. if (this.areaList[values[2]]) {
  363. this.formData.areaId = this.areaList[values[2]].id
  364. }
  365. // 更新显示文本
  366. this.updateAreaDisplayText()
  367. },
  368. // 更新地区显示文本
  369. updateAreaDisplayText() {
  370. let text = ''
  371. if (this.provinceList[this.multiAreaIndex[0]]) {
  372. text += this.provinceList[this.multiAreaIndex[0]].name
  373. }
  374. if (this.cityList[this.multiAreaIndex[1]]) {
  375. text += ' ' + this.cityList[this.multiAreaIndex[1]].name
  376. }
  377. if (this.areaList[this.multiAreaIndex[2]]) {
  378. text += ' ' + this.areaList[this.multiAreaIndex[2]].name
  379. }
  380. this.areaDisplayText = text
  381. },
  382. // 时间段选择器确认事件
  383. onTimeSlotChange(e) {
  384. const values = e.detail.value
  385. this.timeSlotIndex = values
  386. const startTime = this.hourOptions[values[0]]
  387. const endTime = this.hourOptions[values[1]]
  388. // 验证结束时间必须大于开始时间
  389. if (values[1] <= values[0]) {
  390. uni.showToast({
  391. title: '结束时间必须大于开始时间',
  392. icon: 'none'
  393. })
  394. // 自动调整结束时间为开始时间+1
  395. if (values[0] < 23) {
  396. this.timeSlotIndex[1] = values[0] + 1
  397. this.formData.startTime = startTime
  398. this.formData.endTime = this.hourOptions[this.timeSlotIndex[1]]
  399. this.timeSlotDisplayText = `每天 ${startTime} - ${this.formData.endTime}`
  400. } else {
  401. // 如果开始时间是23:00,则结束时间设为23:00(表示到当天结束)
  402. this.formData.startTime = startTime
  403. this.formData.endTime = endTime
  404. this.timeSlotDisplayText = `每天 ${startTime} - ${endTime}`
  405. }
  406. } else {
  407. this.formData.startTime = startTime
  408. this.formData.endTime = endTime
  409. this.timeSlotDisplayText = `每天 ${startTime} - ${endTime}`
  410. }
  411. },
  412. // 提交申请
  413. async handleSubmit() {
  414. // 如果按钮被禁用,不执行提交
  415. if (this.buttonDisabled) {
  416. return
  417. }
  418. // 表单验证
  419. if (!this.formData.name) {
  420. uni.showToast({
  421. title: '请输入姓名',
  422. icon: 'none'
  423. })
  424. return
  425. }
  426. if (!this.formData.phone) {
  427. uni.showToast({
  428. title: '请输入手机号',
  429. icon: 'none'
  430. })
  431. return
  432. }
  433. // 验证手机号格式
  434. const phoneReg = /^1[3-9]\d{9}$/
  435. if (!phoneReg.test(this.formData.phone)) {
  436. uni.showToast({
  437. title: '请输入正确的手机号',
  438. icon: 'none'
  439. })
  440. return
  441. }
  442. if (!this.formData.email) {
  443. uni.showToast({
  444. title: '请输入电子邮箱',
  445. icon: 'none'
  446. })
  447. return
  448. }
  449. // 验证邮箱格式
  450. const emailReg = /^[^\s@]+@[^\s@]+\.[^\s@]+$/
  451. if (!emailReg.test(this.formData.email)) {
  452. uni.showToast({
  453. title: '请输入正确的邮箱',
  454. icon: 'none'
  455. })
  456. return
  457. }
  458. if (!this.formData.age) {
  459. uni.showToast({
  460. title: '请输入年龄',
  461. icon: 'none'
  462. })
  463. return
  464. }
  465. if (!this.formData.gender) {
  466. uni.showToast({
  467. title: '请选择性别',
  468. icon: 'none'
  469. })
  470. return
  471. }
  472. if (!this.formData.provinceId || !this.formData.cityId || !this.formData.areaId) {
  473. uni.showToast({
  474. title: '请选择所在地区',
  475. icon: 'none'
  476. })
  477. return
  478. }
  479. if (!this.formData.experience) {
  480. uni.showToast({
  481. title: '请输入婚姻介绍经验',
  482. icon: 'none'
  483. })
  484. return
  485. }
  486. if (!this.formData.startTime || !this.formData.endTime) {
  487. uni.showToast({
  488. title: '请选择可服务时间',
  489. icon: 'none'
  490. })
  491. return
  492. }
  493. if (!this.formData.introduction) {
  494. uni.showToast({
  495. title: '请输入个人简介',
  496. icon: 'none'
  497. })
  498. return
  499. }
  500. // 检查登录状态并获取用户ID
  501. console.log('=== 开始检查登录状态 ===')
  502. const userId = await userAuth.checkLoginStatus({
  503. requireLogin: true,
  504. allowTestUser: false,
  505. redirectUrl: '/pages/part-time-matchmaker/index'
  506. })
  507. console.log('获取到的userId:', userId)
  508. if (!userId) {
  509. console.log('用户未登录或登录信息异常')
  510. return
  511. }
  512. uni.showModal({
  513. title: '提交申请',
  514. content: '确认提交兼职红娘申请吗?',
  515. success: async (res) => {
  516. if (res.confirm) {
  517. uni.showLoading({
  518. title: '提交中...'
  519. })
  520. try {
  521. // 组装提交数据
  522. const submitData = {
  523. userId: userId,
  524. name: this.formData.name,
  525. phone: this.formData.phone,
  526. email: this.formData.email,
  527. age: parseInt(this.formData.age),
  528. gender: this.formData.gender,
  529. area: this.areaDisplayText, // 使用显示文本作为地区
  530. experience: this.formData.experience,
  531. serverTime: `${this.formData.startTime}-${this.formData.endTime}`,
  532. introduction: this.formData.introduction
  533. }
  534. console.log('=== 提交红娘申请 ===')
  535. console.log('userId类型:', typeof userId)
  536. console.log('userId值:', userId)
  537. console.log('完整提交数据:', JSON.stringify(submitData, null, 2))
  538. // 调用后端接口提交申请
  539. await api.matchmaker.submitApply(submitData)
  540. uni.hideLoading()
  541. uni.showModal({
  542. title: '申请成功',
  543. content: '您的申请已提交,我们会在1-3个工作日内完成审核,请耐心等待。审核结果将通过短信或邮件通知您。',
  544. showCancel: false,
  545. success: () => {
  546. // 清空表单
  547. this.formData = {
  548. name: '',
  549. phone: '',
  550. email: '',
  551. age: '',
  552. gender: '',
  553. provinceId: null,
  554. cityId: null,
  555. areaId: null,
  556. experience: '',
  557. startTime: '',
  558. endTime: '',
  559. introduction: ''
  560. }
  561. this.multiAreaIndex = [0, 0, 0]
  562. this.areaDisplayText = ''
  563. this.timeSlotIndex = [0, 0]
  564. this.timeSlotDisplayText = ''
  565. // 重新检查申请状态,更新按钮
  566. this.checkApplyStatus()
  567. }
  568. })
  569. } catch (error) {
  570. uni.hideLoading()
  571. console.error('提交申请失败:', error)
  572. uni.showToast({
  573. title: error.message || '提交失败,请稍后重试',
  574. icon: 'none',
  575. duration: 2000
  576. })
  577. }
  578. }
  579. }
  580. })
  581. }
  582. }
  583. }
  584. </script>
  585. <style lang="scss" scoped>
  586. * {
  587. box-sizing: border-box;
  588. }
  589. .matchmaker-page {
  590. min-height: 100vh;
  591. background: #F5F5F5;
  592. display: flex;
  593. flex-direction: column;
  594. }
  595. /* 顶部导航栏 */
  596. .header {
  597. display: flex;
  598. align-items: center;
  599. justify-content: space-between;
  600. padding: 25rpx 30rpx;
  601. padding-top: calc(25rpx + env(safe-area-inset-top));
  602. background: linear-gradient(135deg, #FF8A9B 0%, #FFB4C0 100%);
  603. .back-btn {
  604. width: 70rpx;
  605. height: 70rpx;
  606. display: flex;
  607. align-items: center;
  608. justify-content: center;
  609. background: rgba(255, 255, 255, 0.2);
  610. border-radius: 50%;
  611. .back-icon {
  612. font-size: 44rpx;
  613. color: #FFFFFF;
  614. font-weight: bold;
  615. }
  616. }
  617. .header-title {
  618. font-size: 38rpx;
  619. font-weight: bold;
  620. color: #FFFFFF;
  621. }
  622. .placeholder {
  623. width: 70rpx;
  624. }
  625. }
  626. .content {
  627. flex: 1;
  628. background: #F5F5F5;
  629. padding-bottom: calc(40rpx + env(safe-area-inset-bottom));
  630. }
  631. /* 顶部Banner */
  632. .top-banner {
  633. background: linear-gradient(135deg, #E688A1 0%, #D97890 100%);
  634. padding: 50rpx 40rpx;
  635. text-align: center;
  636. .banner-title {
  637. display: block;
  638. font-size: 40rpx;
  639. font-weight: bold;
  640. color: #FFFFFF;
  641. margin-bottom: 25rpx;
  642. }
  643. .banner-subtitle {
  644. display: block;
  645. font-size: 26rpx;
  646. color: #FFFFFF;
  647. line-height: 1.6;
  648. opacity: 0.95;
  649. }
  650. }
  651. /* 兼职红娘按钮 */
  652. .action-button {
  653. margin: 35rpx 40rpx;
  654. padding: 25rpx;
  655. background: #FFFFFF;
  656. border: 3rpx solid #FF6B8A;
  657. border-radius: 15rpx;
  658. text-align: center;
  659. .button-text {
  660. font-size: 30rpx;
  661. color: #FF6B8A;
  662. font-weight: bold;
  663. }
  664. }
  665. /* 特点列表 */
  666. .features-section {
  667. padding: 0 40rpx 25rpx;
  668. }
  669. .more-features {
  670. padding: 0 40rpx 40rpx;
  671. }
  672. .features-section,
  673. .more-features {
  674. .feature-card {
  675. background: #F0F0F0;
  676. border-radius: 15rpx;
  677. padding: 30rpx;
  678. margin-bottom: 20rpx;
  679. display: flex;
  680. align-items: flex-start;
  681. .feature-icon {
  682. font-size: 42rpx;
  683. margin-right: 20rpx;
  684. flex-shrink: 0;
  685. }
  686. .feature-content {
  687. flex: 1;
  688. }
  689. .feature-title {
  690. display: block;
  691. font-size: 30rpx;
  692. font-weight: bold;
  693. color: #333333;
  694. margin-bottom: 12rpx;
  695. }
  696. .feature-desc {
  697. display: block;
  698. font-size: 24rpx;
  699. color: #666666;
  700. line-height: 1.5;
  701. }
  702. }
  703. }
  704. /* 申请表单 */
  705. .form-section {
  706. background: #FFFFFF;
  707. margin: 25rpx 40rpx;
  708. padding: 35rpx;
  709. border-radius: 15rpx;
  710. box-shadow: 0 4rpx 15rpx rgba(0, 0, 0, 0.05);
  711. box-sizing: border-box;
  712. .form-title {
  713. font-size: 34rpx;
  714. font-weight: bold;
  715. color: #333333;
  716. margin-bottom: 35rpx;
  717. text-align: center;
  718. }
  719. .form-group {
  720. margin-bottom: 30rpx;
  721. box-sizing: border-box;
  722. .form-label {
  723. display: block;
  724. font-size: 26rpx;
  725. color: #333333;
  726. margin-bottom: 12rpx;
  727. font-weight: 500;
  728. }
  729. .form-input {
  730. width: 100%;
  731. height: 70rpx;
  732. padding: 0 20rpx;
  733. border: 1rpx solid #E0E0E0;
  734. border-radius: 10rpx;
  735. font-size: 26rpx;
  736. background: #FAFAFA;
  737. box-sizing: border-box;
  738. &:focus {
  739. border-color: #FF8A9B;
  740. background: #FFFFFF;
  741. }
  742. }
  743. .picker-input {
  744. display: flex;
  745. align-items: center;
  746. justify-content: space-between;
  747. cursor: pointer;
  748. .placeholder-text {
  749. color: #999999;
  750. }
  751. .picker-arrow {
  752. color: #CCCCCC;
  753. font-size: 24rpx;
  754. }
  755. }
  756. .form-textarea {
  757. width: 100%;
  758. min-height: 160rpx;
  759. padding: 15rpx 20rpx;
  760. border: 1rpx solid #E0E0E0;
  761. border-radius: 10rpx;
  762. font-size: 26rpx;
  763. line-height: 1.5;
  764. background: #FAFAFA;
  765. box-sizing: border-box;
  766. &:focus {
  767. border-color: #FF8A9B;
  768. background: #FFFFFF;
  769. }
  770. }
  771. .radio-group {
  772. display: flex;
  773. align-items: center;
  774. gap: 50rpx;
  775. .radio-item {
  776. display: flex;
  777. align-items: center;
  778. .radio {
  779. width: 36rpx;
  780. height: 36rpx;
  781. border: 3rpx solid #CCCCCC;
  782. border-radius: 50%;
  783. margin-right: 15rpx;
  784. position: relative;
  785. transition: all 0.3s;
  786. &.radio-checked {
  787. border-color: #FF6B8A;
  788. background: #FF6B8A;
  789. &::after {
  790. content: '';
  791. position: absolute;
  792. width: 16rpx;
  793. height: 16rpx;
  794. background: #FFFFFF;
  795. border-radius: 50%;
  796. top: 50%;
  797. left: 50%;
  798. transform: translate(-50%, -50%);
  799. }
  800. }
  801. }
  802. .radio-label {
  803. font-size: 28rpx;
  804. color: #333333;
  805. }
  806. }
  807. }
  808. }
  809. .submit-btn {
  810. width: 100%;
  811. height: 80rpx;
  812. background: linear-gradient(135deg, #FF8A9B 0%, #FF6B8A 100%);
  813. color: #FFFFFF;
  814. font-size: 30rpx;
  815. font-weight: bold;
  816. border: none;
  817. border-radius: 40rpx;
  818. margin-top: 30rpx;
  819. &.btn-disabled {
  820. background: #CCCCCC;
  821. color: #FFFFFF;
  822. opacity: 0.6;
  823. }
  824. }
  825. }
  826. </style>