index.vue 21 KB

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