index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840
  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 class="submit-btn" @click="handleSubmit">提交申请</button>
  110. </view>
  111. <!-- 更多特点 -->
  112. <view class="more-features">
  113. <view class="feature-card">
  114. <text class="feature-icon">⏰</text>
  115. <view class="feature-content">
  116. <text class="feature-title">上传身边人信息</text>
  117. <text class="feature-desc">若您身边有单身朋友,可上传其信息至平台,成功匹配后也可获得奖励</text>
  118. </view>
  119. </view>
  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>
  128. </scroll-view>
  129. </view>
  130. </template>
  131. <script>
  132. import api from '@/utils/api.js'
  133. export default {
  134. data() {
  135. return {
  136. formData: {
  137. name: '',
  138. phone: '',
  139. email: '',
  140. age: '',
  141. gender: 2, // 默认女
  142. provinceId: null,
  143. cityId: null,
  144. areaId: null,
  145. experience: '',
  146. startTime: '',
  147. endTime: '',
  148. introduction: ''
  149. },
  150. // 省市区数据
  151. provinceList: [],
  152. cityList: [],
  153. areaList: [],
  154. multiAreaData: [[], [], []], // 三级联动数据
  155. multiAreaIndex: [0, 0, 0], // 三级联动索引
  156. areaDisplayText: '',
  157. // 时间段数据
  158. hourOptions: Array.from({ length: 24 }, (_, i) => {
  159. const hour = String(i).padStart(2, '0')
  160. return `${hour}:00`
  161. }),
  162. timeSlotData: [[], []], // [开始时间, 结束时间]
  163. timeSlotIndex: [0, 0],
  164. timeSlotDisplayText: ''
  165. }
  166. },
  167. onLoad() {
  168. // 初始化时间段数据
  169. this.timeSlotData = [this.hourOptions, this.hourOptions]
  170. // 加载省市区数据
  171. this.loadAreaData()
  172. },
  173. methods: {
  174. // 返回上一页
  175. goBack() {
  176. uni.navigateBack()
  177. },
  178. // 滚动到表单
  179. scrollToForm() {
  180. uni.pageScrollTo({
  181. selector: '#application-form',
  182. duration: 300
  183. })
  184. },
  185. // 省市区相关方法
  186. // 加载省市区数据
  187. async loadAreaData() {
  188. try {
  189. // 加载省份列表
  190. const provinceRes = await api.area.getProvinces()
  191. if (Array.isArray(provinceRes)) {
  192. this.provinceList = provinceRes
  193. } else if (provinceRes && provinceRes.data) {
  194. this.provinceList = provinceRes.data
  195. } else if (provinceRes && provinceRes.code === 200 && provinceRes.data) {
  196. this.provinceList = provinceRes.data
  197. } else {
  198. this.provinceList = []
  199. }
  200. this.multiAreaData[0] = this.provinceList
  201. // 如果有省份,加载第一个省份的城市
  202. if (this.provinceList.length > 0) {
  203. await this.loadCitiesForProvince(this.provinceList[0].id)
  204. }
  205. } catch (e) {
  206. console.error('加载省份失败:', e)
  207. uni.showToast({
  208. title: '加载省份数据失败',
  209. icon: 'none'
  210. })
  211. }
  212. },
  213. // 根据省份ID加载城市
  214. async loadCitiesForProvince(provinceId) {
  215. if (!provinceId) return
  216. try {
  217. const cityRes = await api.area.getCities(provinceId)
  218. if (Array.isArray(cityRes)) {
  219. this.cityList = cityRes
  220. } else if (cityRes && cityRes.data) {
  221. this.cityList = cityRes.data
  222. } else if (cityRes && cityRes.code === 200 && cityRes.data) {
  223. this.cityList = cityRes.data
  224. } else {
  225. this.cityList = []
  226. }
  227. this.multiAreaData[1] = this.cityList
  228. // 如果有城市,加载第一个城市的区域
  229. if (this.cityList.length > 0) {
  230. await this.loadAreasForCity(this.cityList[0].id)
  231. }
  232. } catch (e) {
  233. console.error('加载城市失败:', e)
  234. this.cityList = []
  235. this.multiAreaData[1] = []
  236. }
  237. },
  238. // 根据城市ID加载区域
  239. async loadAreasForCity(cityId) {
  240. if (!cityId) return
  241. try {
  242. const areaRes = await api.area.getAreas(cityId)
  243. if (Array.isArray(areaRes)) {
  244. this.areaList = areaRes
  245. } else if (areaRes && areaRes.data) {
  246. this.areaList = areaRes.data
  247. } else if (areaRes && areaRes.code === 200 && areaRes.data) {
  248. this.areaList = areaRes.data
  249. } else {
  250. this.areaList = []
  251. }
  252. this.multiAreaData[2] = this.areaList
  253. } catch (e) {
  254. console.error('加载区域失败:', e)
  255. this.areaList = []
  256. this.multiAreaData[2] = []
  257. }
  258. },
  259. // 省市区选择器列变化事件
  260. async onAreaColumnChange(e) {
  261. const column = e.detail.column // 列索引:0-省,1-市,2-区
  262. const row = e.detail.value // 选中的行索引
  263. if (column === 0) {
  264. // 选择了省份
  265. const province = this.provinceList[row]
  266. if (province && province.id) {
  267. this.multiAreaIndex[0] = row
  268. this.multiAreaIndex[1] = 0
  269. this.multiAreaIndex[2] = 0
  270. // 加载该省份的城市
  271. await this.loadCitiesForProvince(province.id)
  272. }
  273. } else if (column === 1) {
  274. // 选择了城市
  275. const city = this.cityList[row]
  276. if (city && city.id) {
  277. this.multiAreaIndex[1] = row
  278. this.multiAreaIndex[2] = 0
  279. // 加载该城市的区域
  280. await this.loadAreasForCity(city.id)
  281. }
  282. } else if (column === 2) {
  283. // 选择了区域
  284. this.multiAreaIndex[2] = row
  285. }
  286. },
  287. // 省市区选择器确认事件
  288. onAreaChange(e) {
  289. const values = e.detail.value
  290. this.multiAreaIndex = values
  291. // 设置选中的省市区ID
  292. if (this.provinceList[values[0]]) {
  293. this.formData.provinceId = this.provinceList[values[0]].id
  294. }
  295. if (this.cityList[values[1]]) {
  296. this.formData.cityId = this.cityList[values[1]].id
  297. }
  298. if (this.areaList[values[2]]) {
  299. this.formData.areaId = this.areaList[values[2]].id
  300. }
  301. // 更新显示文本
  302. this.updateAreaDisplayText()
  303. },
  304. // 更新地区显示文本
  305. updateAreaDisplayText() {
  306. let text = ''
  307. if (this.provinceList[this.multiAreaIndex[0]]) {
  308. text += this.provinceList[this.multiAreaIndex[0]].name
  309. }
  310. if (this.cityList[this.multiAreaIndex[1]]) {
  311. text += ' ' + this.cityList[this.multiAreaIndex[1]].name
  312. }
  313. if (this.areaList[this.multiAreaIndex[2]]) {
  314. text += ' ' + this.areaList[this.multiAreaIndex[2]].name
  315. }
  316. this.areaDisplayText = text
  317. },
  318. // 时间段选择器确认事件
  319. onTimeSlotChange(e) {
  320. const values = e.detail.value
  321. this.timeSlotIndex = values
  322. const startTime = this.hourOptions[values[0]]
  323. const endTime = this.hourOptions[values[1]]
  324. // 验证结束时间必须大于开始时间
  325. if (values[1] <= values[0]) {
  326. uni.showToast({
  327. title: '结束时间必须大于开始时间',
  328. icon: 'none'
  329. })
  330. // 自动调整结束时间为开始时间+1
  331. if (values[0] < 23) {
  332. this.timeSlotIndex[1] = values[0] + 1
  333. this.formData.startTime = startTime
  334. this.formData.endTime = this.hourOptions[this.timeSlotIndex[1]]
  335. this.timeSlotDisplayText = `每天 ${startTime} - ${this.formData.endTime}`
  336. } else {
  337. // 如果开始时间是23:00,则结束时间设为23:00(表示到当天结束)
  338. this.formData.startTime = startTime
  339. this.formData.endTime = endTime
  340. this.timeSlotDisplayText = `每天 ${startTime} - ${endTime}`
  341. }
  342. } else {
  343. this.formData.startTime = startTime
  344. this.formData.endTime = endTime
  345. this.timeSlotDisplayText = `每天 ${startTime} - ${endTime}`
  346. }
  347. },
  348. // 提交申请
  349. async handleSubmit() {
  350. // 表单验证
  351. if (!this.formData.name) {
  352. uni.showToast({
  353. title: '请输入姓名',
  354. icon: 'none'
  355. })
  356. return
  357. }
  358. if (!this.formData.phone) {
  359. uni.showToast({
  360. title: '请输入手机号',
  361. icon: 'none'
  362. })
  363. return
  364. }
  365. // 验证手机号格式
  366. const phoneReg = /^1[3-9]\d{9}$/
  367. if (!phoneReg.test(this.formData.phone)) {
  368. uni.showToast({
  369. title: '请输入正确的手机号',
  370. icon: 'none'
  371. })
  372. return
  373. }
  374. if (!this.formData.email) {
  375. uni.showToast({
  376. title: '请输入电子邮箱',
  377. icon: 'none'
  378. })
  379. return
  380. }
  381. // 验证邮箱格式
  382. const emailReg = /^[^\s@]+@[^\s@]+\.[^\s@]+$/
  383. if (!emailReg.test(this.formData.email)) {
  384. uni.showToast({
  385. title: '请输入正确的邮箱',
  386. icon: 'none'
  387. })
  388. return
  389. }
  390. if (!this.formData.age) {
  391. uni.showToast({
  392. title: '请输入年龄',
  393. icon: 'none'
  394. })
  395. return
  396. }
  397. if (!this.formData.provinceId || !this.formData.cityId || !this.formData.areaId) {
  398. uni.showToast({
  399. title: '请选择所在地区',
  400. icon: 'none'
  401. })
  402. return
  403. }
  404. if (!this.formData.experience) {
  405. uni.showToast({
  406. title: '请输入婚姻介绍经验',
  407. icon: 'none'
  408. })
  409. return
  410. }
  411. if (!this.formData.startTime || !this.formData.endTime) {
  412. uni.showToast({
  413. title: '请选择可服务时间',
  414. icon: 'none'
  415. })
  416. return
  417. }
  418. if (!this.formData.introduction) {
  419. uni.showToast({
  420. title: '请输入个人简介',
  421. icon: 'none'
  422. })
  423. return
  424. }
  425. uni.showModal({
  426. title: '提交申请',
  427. content: '确认提交兼职红娘申请吗?',
  428. success: async (res) => {
  429. if (res.confirm) {
  430. uni.showLoading({
  431. title: '提交中...'
  432. })
  433. try {
  434. // 获取当前登录用户ID
  435. const userInfo = uni.getStorageSync('userInfo')
  436. if (!userInfo || !userInfo.userId) {
  437. uni.hideLoading()
  438. uni.showToast({
  439. title: '请先登录',
  440. icon: 'none'
  441. })
  442. setTimeout(() => {
  443. uni.navigateTo({
  444. url: '/pages/page3/page3'
  445. })
  446. }, 1500)
  447. return
  448. }
  449. // 组装提交数据
  450. const submitData = {
  451. userId: userInfo.userId,
  452. name: this.formData.name,
  453. phone: this.formData.phone,
  454. email: this.formData.email,
  455. age: parseInt(this.formData.age),
  456. gender: this.formData.gender,
  457. area: this.areaDisplayText, // 使用显示文本作为地区
  458. experience: this.formData.experience,
  459. serverTime: `${this.formData.startTime}-${this.formData.endTime}`,
  460. introduction: this.formData.introduction
  461. }
  462. // 调用后端接口提交申请
  463. await api.matchmaker.submitApply(submitData)
  464. uni.hideLoading()
  465. uni.showModal({
  466. title: '申请成功',
  467. content: '您的申请已提交,我们会在1-3个工作日内完成审核,请耐心等待。审核结果将通过短信或邮件通知您。',
  468. showCancel: false,
  469. success: () => {
  470. // 清空表单
  471. this.formData = {
  472. name: '',
  473. phone: '',
  474. email: '',
  475. age: '',
  476. gender: 2,
  477. provinceId: null,
  478. cityId: null,
  479. areaId: null,
  480. experience: '',
  481. startTime: '',
  482. endTime: '',
  483. introduction: ''
  484. }
  485. this.multiAreaIndex = [0, 0, 0]
  486. this.areaDisplayText = ''
  487. this.timeSlotIndex = [0, 0]
  488. this.timeSlotDisplayText = ''
  489. }
  490. })
  491. } catch (error) {
  492. uni.hideLoading()
  493. console.error('提交申请失败:', error)
  494. uni.showToast({
  495. title: error.message || '提交失败,请稍后重试',
  496. icon: 'none',
  497. duration: 2000
  498. })
  499. }
  500. }
  501. }
  502. })
  503. }
  504. }
  505. }
  506. </script>
  507. <style lang="scss" scoped>
  508. * {
  509. box-sizing: border-box;
  510. }
  511. .matchmaker-page {
  512. min-height: 100vh;
  513. background: #F5F5F5;
  514. display: flex;
  515. flex-direction: column;
  516. }
  517. /* 顶部导航栏 */
  518. .header {
  519. display: flex;
  520. align-items: center;
  521. justify-content: space-between;
  522. padding: 25rpx 30rpx;
  523. padding-top: calc(25rpx + env(safe-area-inset-top));
  524. background: linear-gradient(135deg, #FF8A9B 0%, #FFB4C0 100%);
  525. .back-btn {
  526. width: 70rpx;
  527. height: 70rpx;
  528. display: flex;
  529. align-items: center;
  530. justify-content: center;
  531. background: rgba(255, 255, 255, 0.2);
  532. border-radius: 50%;
  533. .back-icon {
  534. font-size: 44rpx;
  535. color: #FFFFFF;
  536. font-weight: bold;
  537. }
  538. }
  539. .header-title {
  540. font-size: 38rpx;
  541. font-weight: bold;
  542. color: #FFFFFF;
  543. }
  544. .placeholder {
  545. width: 70rpx;
  546. }
  547. }
  548. .content {
  549. flex: 1;
  550. background: #F5F5F5;
  551. padding-bottom: calc(40rpx + env(safe-area-inset-bottom));
  552. }
  553. /* 顶部Banner */
  554. .top-banner {
  555. background: linear-gradient(135deg, #E688A1 0%, #D97890 100%);
  556. padding: 50rpx 40rpx;
  557. text-align: center;
  558. .banner-title {
  559. display: block;
  560. font-size: 40rpx;
  561. font-weight: bold;
  562. color: #FFFFFF;
  563. margin-bottom: 25rpx;
  564. }
  565. .banner-subtitle {
  566. display: block;
  567. font-size: 26rpx;
  568. color: #FFFFFF;
  569. line-height: 1.6;
  570. opacity: 0.95;
  571. }
  572. }
  573. /* 兼职红娘按钮 */
  574. .action-button {
  575. margin: 35rpx 40rpx;
  576. padding: 25rpx;
  577. background: #FFFFFF;
  578. border: 3rpx solid #FF6B8A;
  579. border-radius: 15rpx;
  580. text-align: center;
  581. .button-text {
  582. font-size: 30rpx;
  583. color: #FF6B8A;
  584. font-weight: bold;
  585. }
  586. }
  587. /* 特点列表 */
  588. .features-section {
  589. padding: 0 40rpx 25rpx;
  590. }
  591. .more-features {
  592. padding: 0 40rpx 40rpx;
  593. }
  594. .features-section,
  595. .more-features {
  596. .feature-card {
  597. background: #F0F0F0;
  598. border-radius: 15rpx;
  599. padding: 30rpx;
  600. margin-bottom: 20rpx;
  601. display: flex;
  602. align-items: flex-start;
  603. .feature-icon {
  604. font-size: 42rpx;
  605. margin-right: 20rpx;
  606. flex-shrink: 0;
  607. }
  608. .feature-content {
  609. flex: 1;
  610. }
  611. .feature-title {
  612. display: block;
  613. font-size: 30rpx;
  614. font-weight: bold;
  615. color: #333333;
  616. margin-bottom: 12rpx;
  617. }
  618. .feature-desc {
  619. display: block;
  620. font-size: 24rpx;
  621. color: #666666;
  622. line-height: 1.5;
  623. }
  624. }
  625. }
  626. /* 申请表单 */
  627. .form-section {
  628. background: #FFFFFF;
  629. margin: 25rpx 40rpx;
  630. padding: 35rpx;
  631. border-radius: 15rpx;
  632. box-shadow: 0 4rpx 15rpx rgba(0, 0, 0, 0.05);
  633. box-sizing: border-box;
  634. .form-title {
  635. font-size: 34rpx;
  636. font-weight: bold;
  637. color: #333333;
  638. margin-bottom: 35rpx;
  639. text-align: center;
  640. }
  641. .form-group {
  642. margin-bottom: 30rpx;
  643. box-sizing: border-box;
  644. .form-label {
  645. display: block;
  646. font-size: 26rpx;
  647. color: #333333;
  648. margin-bottom: 12rpx;
  649. font-weight: 500;
  650. }
  651. .form-input {
  652. width: 100%;
  653. height: 70rpx;
  654. padding: 0 20rpx;
  655. border: 1rpx solid #E0E0E0;
  656. border-radius: 10rpx;
  657. font-size: 26rpx;
  658. background: #FAFAFA;
  659. box-sizing: border-box;
  660. &:focus {
  661. border-color: #FF8A9B;
  662. background: #FFFFFF;
  663. }
  664. }
  665. .picker-input {
  666. display: flex;
  667. align-items: center;
  668. justify-content: space-between;
  669. cursor: pointer;
  670. .placeholder-text {
  671. color: #999999;
  672. }
  673. .picker-arrow {
  674. color: #CCCCCC;
  675. font-size: 24rpx;
  676. }
  677. }
  678. .form-textarea {
  679. width: 100%;
  680. min-height: 160rpx;
  681. padding: 15rpx 20rpx;
  682. border: 1rpx solid #E0E0E0;
  683. border-radius: 10rpx;
  684. font-size: 26rpx;
  685. line-height: 1.5;
  686. background: #FAFAFA;
  687. box-sizing: border-box;
  688. &:focus {
  689. border-color: #FF8A9B;
  690. background: #FFFFFF;
  691. }
  692. }
  693. .radio-group {
  694. display: flex;
  695. align-items: center;
  696. gap: 50rpx;
  697. .radio-item {
  698. display: flex;
  699. align-items: center;
  700. .radio {
  701. width: 36rpx;
  702. height: 36rpx;
  703. border: 3rpx solid #CCCCCC;
  704. border-radius: 50%;
  705. margin-right: 15rpx;
  706. position: relative;
  707. transition: all 0.3s;
  708. &.radio-checked {
  709. border-color: #FF6B8A;
  710. background: #FF6B8A;
  711. &::after {
  712. content: '';
  713. position: absolute;
  714. width: 16rpx;
  715. height: 16rpx;
  716. background: #FFFFFF;
  717. border-radius: 50%;
  718. top: 50%;
  719. left: 50%;
  720. transform: translate(-50%, -50%);
  721. }
  722. }
  723. }
  724. .radio-label {
  725. font-size: 28rpx;
  726. color: #333333;
  727. }
  728. }
  729. }
  730. }
  731. .submit-btn {
  732. width: 100%;
  733. height: 80rpx;
  734. background: linear-gradient(135deg, #FF8A9B 0%, #FF6B8A 100%);
  735. color: #FFFFFF;
  736. font-size: 30rpx;
  737. font-weight: bold;
  738. border: none;
  739. border-radius: 40rpx;
  740. margin-top: 30rpx;
  741. }
  742. }
  743. </style>