gradeApplication.vue 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043
  1. <template>
  2. <view class="container">
  3. <scroll-view class="content" scroll-y>
  4. <!-- 驳回意见提示 -->
  5. <view class="rejection-banner" v-if="rejectionInfo">
  6. <view class="rejection-icon">✕</view>
  7. <view class="rejection-text">驳回意见: {{ rejectionInfo }}</view>
  8. </view>
  9. <!-- 基本信息 -->
  10. <view class="form-section">
  11. <view class="form-item">
  12. <view class="form-label">
  13. <text class="required">*</text>
  14. <text>学术头衔</text>
  15. </view>
  16. <view class="form-input picker-input" :class="{ placeholder: !formData.academicTitle }"
  17. @click="showPicker('学术头衔', 'doctor_academic_title')">
  18. {{ formData.academicTitle || '请选择' }}
  19. <image class="icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_more.png"></image>
  20. </view>
  21. </view>
  22. <view class="form-item">
  23. <view class="form-label">
  24. <text class="required">*</text>
  25. <text>学术任职(多选)</text>
  26. </view>
  27. <view class="form-input picker-input" :class="{ placeholder: !formData.academicPositions }"
  28. @click="showPicker('学术任职', 'doctor_academic_position')">
  29. {{ formData.academicPositions || '请选择' }}
  30. <image class="icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_more.png"></image>
  31. </view>
  32. </view>
  33. <view class="form-item">
  34. <view class="form-label">
  35. <text class="required">*</text>
  36. <text>国际性期刊论文/著作数</text>
  37. </view>
  38. <input type="number" class="input" v-model="formData.internationalPapers"></input>
  39. </view>
  40. <view class="form-item">
  41. <view class="form-label">
  42. <text class="required">*</text>
  43. <text>全国性期刊论文/著作数</text>
  44. </view>
  45. <input type="number" class="input" v-model="formData.nationalPapers"></input>
  46. </view>
  47. <view class="form-item">
  48. <view class="form-label">
  49. <text class="required">*</text>
  50. <text>学术研究(多选)</text>
  51. </view>
  52. <view class="form-input picker-input" :class="{ placeholder: !formData.researchAreas }"
  53. @click="showPicker('学术研究', 'doctor_research_area')">
  54. {{ formData.researchAreas || '请选择' }}
  55. <image class="icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_more.png"></image>
  56. </view>
  57. </view>
  58. <view class="form-item">
  59. <view class="form-label">
  60. <text class="required">*</text>
  61. <text>临床工作经验年数</text>
  62. </view>
  63. <input type="number" class="input" v-model="formData.clinicalExperience"></input>
  64. </view>
  65. <view class="form-item">
  66. <view class="form-label">
  67. <text class="required">*</text>
  68. <text>学位</text>
  69. </view>
  70. <view class="form-input picker-input" :class="{ placeholder: !formData.degree }"
  71. @click="showPicker('学位', 'doctor_degree')">
  72. {{ formData.degree || '请选择' }}
  73. <image class="icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_more.png"></image>
  74. </view>
  75. </view>
  76. <view class="form-item">
  77. <view class="form-label">
  78. <text class="required">*</text>
  79. <text>申请级别</text>
  80. </view>
  81. <view class="form-input picker-input" :class="{ placeholder: !formData.applicationLevel }"
  82. @click="showPicker('申请级别', 'doctor_apply_level')">
  83. {{ formData.applicationLevel || '请选择' }}
  84. <image class="icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_more.png"></image>
  85. </view>
  86. </view>
  87. <view class="form-item column">
  88. <view class="form-label">
  89. <text class="required">*</text>
  90. <text>证明材料</text>
  91. </view>
  92. <view class="form-tips">如医院官网简介、论文截图、聘书等</view>
  93. <view class="upload-proof" @click="chooseProofImages">
  94. <view v-if="formData.proofImages && formData.proofImages.length > 0" class="uploaded-images">
  95. <view v-for="(image, index) in formData.proofImages" :key="index"
  96. class="uploaded-image-item">
  97. <image :src="image" mode="aspectFill"></image>
  98. <view class="image-delete" @click.stop="deleteProofImage(index)">×</view>
  99. </view>
  100. <view class="upload-placeholder">
  101. <image src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_camera.png" mode="aspectFill"></image>
  102. </view>
  103. </view>
  104. <view v-else class="upload-placeholder">
  105. <image src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/icon_camera.png" mode="aspectFill"></image>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. </scroll-view>
  111. <view class="next-button" @click="submitForm">提交</view>
  112. <u-picker v-if="showPickerVisible" :title='pickerTitle' :show="true" confirmColor='#576B95' ref="uPicker"
  113. :columns="pickerData" @confirm="confirm" @cancel="cancel">
  114. </u-picker>
  115. <!-- 多选弹窗 -->
  116. <u-popup :show="showMultiSelectPopup" mode="bottom" round="20rpx" :closeable="false">
  117. <view class="u-popup-content">
  118. <view class="popup-header">
  119. <text class="popup-title">{{ multiSelectTitle }}</text>
  120. <text class="popup-close" @click="closeMultiSelectPopup">×</text>
  121. </view>
  122. <view class="popup-body">
  123. <view class="tag-group">
  124. <view v-for="(item, index) in multiSelectData" :key="index" class="tag-item"
  125. :class="{ active: selectedItems.includes(item) }" @click="toggleItem(item)">
  126. {{ item }}
  127. </view>
  128. </view>
  129. </view>
  130. <view class="popup-footer">
  131. <view class="popup-btn cancel-btn" @click="closeMultiSelectPopup">取消</view>
  132. <view class="popup-btn confirm-btn" @click="confirmMultiSelect">确定</view>
  133. </view>
  134. </view>
  135. </u-popup>
  136. </view>
  137. </template>
  138. <script>
  139. import utils from '@/utils/common.js'
  140. import {
  141. apply,
  142. getCompanyDoctorLevelApplyQuestionnaire
  143. } from '@/api/speaker';
  144. export default {
  145. data() {
  146. return {
  147. academicTitle: [], //学术头衔
  148. academicPosition: [], //学术任职
  149. academicResearch: [], //学术研究
  150. degree: [], //学位
  151. applyLevel: [], //申请级别
  152. showPickerVisible: false,
  153. pickerData: [],
  154. pickerTitle: '',
  155. // 多选相关
  156. showMultiSelectPopup: false,
  157. multiSelectTitle: '',
  158. multiSelectData: [],
  159. selectedItems: [],
  160. currentMultiSelectType: '',
  161. // 申请级别选项
  162. applicationLevelColumns: [
  163. ['一级', '二级', '三级', '四级']
  164. ],
  165. rejectionInfo: '',
  166. formData: {
  167. // 学术信息
  168. academicTitle: '', // 学术头衔
  169. academicPositions: '', // 学术任职
  170. internationalPapers: 0, // 国际性期刊论文/著作数
  171. nationalPapers: 0, // 全国性期刊论文/著作数
  172. researchAreas: '', // 学术研究
  173. clinicalExperience: 0, // 临床工作经验年数
  174. degree: '', // 学位
  175. applicationLevel: '', // 申请级别
  176. proofImages: [] // 证明材料图片
  177. },
  178. pickerTitle: '默认标题',
  179. pickerData: [],
  180. userInfo: {},
  181. doctorId: null
  182. }
  183. },
  184. onLoad: async function(options) {
  185. try {
  186. console.log("options", options)
  187. this.doctorId = options.doctorId;
  188. this.academicTitle = await utils.getDicts("doctor_academic_title"); //学术头衔
  189. this.academicPosition = await utils.getDicts("doctor_academic_position"); //学术任职
  190. this.academicResearch = await utils.getDicts("doctor_academic_research"); //学术研究
  191. this.degree = await utils.getDicts("doctor_degree"); //学位
  192. this.applyLevel = await utils.getDicts("doctor_apply_level"); //申请级别
  193. } catch (e) {
  194. console.log('获取字典数据失败:', e)
  195. }
  196. if (options.rejectionInfo) {
  197. this.rejectionInfo = decodeURIComponent(options.rejectionInfo)
  198. }
  199. // 获取用户信息
  200. this.userInfo = uni.getStorageSync('userInfo') || '{}'
  201. await this.getCompanyDoctorLevelApplyQuestionnaire()
  202. },
  203. // onShow: async function() {
  204. // await this.getCompanyDoctorLevelApplyQuestionnaire()
  205. // },
  206. methods: {
  207. async getCompanyDoctorLevelApplyQuestionnaire() {
  208. try {
  209. console.log('获取公司医生等级申请问卷')
  210. const res = await getCompanyDoctorLevelApplyQuestionnaire({
  211. companyId: this.userInfo.companyId
  212. })
  213. if (res.code === 200) {
  214. this.formData.questionnaireId = res.data.questionnaireId
  215. }
  216. } catch (e) {
  217. console.log('获取公司医生等级申请问卷失败:', e)
  218. }
  219. },
  220. // 选择证明材料图片
  221. chooseProofImages() {
  222. uni.chooseImage({
  223. count: 9, // 最多选择9张
  224. sizeType: ['compressed'],
  225. sourceType: ['album', 'camera'],
  226. success: (res) => {
  227. // 上传图片
  228. this.uploadImages(res.tempFilePaths)
  229. }
  230. })
  231. },
  232. // 上传图片
  233. async uploadImages(tempFilePaths) {
  234. try {
  235. uni.showLoading({
  236. title: '上传中...'
  237. })
  238. const uploadedImages = []
  239. // 从storage获取动态域名
  240. const baseUrl = uni.getStorageSync('requestPath')
  241. // 逐个上传图片
  242. for (const tempFilePath of tempFilePaths) {
  243. // 使用uni.uploadFile上传图片
  244. const uploadRes = await new Promise((resolve, reject) => {
  245. uni.uploadFile({
  246. url: `${baseUrl}/system/file/upload`,
  247. filePath: tempFilePath,
  248. name: 'file',
  249. formData: {
  250. bizType: 'DOCTOR_APPLY'
  251. },
  252. header: {
  253. 'AppToken': uni.getStorageSync('AppToken')
  254. },
  255. success: (res) => {
  256. // 解析上传结果
  257. const data = JSON.parse(res.data)
  258. if (data.code === 200) {
  259. console.log('上传成功:', data.data)
  260. resolve(data.data)
  261. } else {
  262. reject(new Error(data.message || '上传失败'))
  263. }
  264. },
  265. fail: (err) => {
  266. reject(err)
  267. }
  268. })
  269. })
  270. // 将上传成功的图片路径添加到数组
  271. uploadedImages.push(uploadRes.fileUrl)
  272. }
  273. // 更新表单数据
  274. this.formData.proofImages = [...this.formData.proofImages, ...uploadedImages]
  275. uni.hideLoading()
  276. uni.showToast({
  277. icon: 'success',
  278. title: '上传成功'
  279. })
  280. } catch (e) {
  281. uni.hideLoading()
  282. uni.showToast({
  283. icon: 'none',
  284. title: '上传失败'
  285. })
  286. }
  287. },
  288. // 删除证明材料图片
  289. deleteProofImage(index) {
  290. this.formData.proofImages.splice(index, 1)
  291. },
  292. // 显示选择器
  293. showPicker(title, type) {
  294. // 处理多选情况
  295. if (type === 'doctor_academic_position' || type === 'doctor_research_area') {
  296. // 获取数据
  297. let dictData = []
  298. if (type === 'doctor_academic_position') {
  299. dictData = this.academicPosition.map(item => item.dictLabel)
  300. } else if (type === 'doctor_research_area') {
  301. dictData = this.academicResearch.map(item => item.dictLabel)
  302. }
  303. // 设置多选数据
  304. this.multiSelectData = dictData
  305. this.multiSelectTitle = title
  306. this.currentMultiSelectType = type
  307. // 初始化已选项
  308. if (type === 'doctor_academic_position') {
  309. this.selectedItems = this.formData.academicPositions ? this.formData.academicPositions.split(',') :
  310. []
  311. } else if (type === 'doctor_research_area') {
  312. this.selectedItems = this.formData.researchAreas ? this.formData.researchAreas.split(',') : []
  313. }
  314. // 显示多选弹窗
  315. this.showMultiSelectPopup = true
  316. } else {
  317. // 单选情况,保持原有逻辑
  318. // 先隐藏选择器,确保下次显示时重新创建
  319. this.showPickerVisible = false
  320. // 根据字典类型获取对应的数据
  321. let dictData = []
  322. if (type === 'doctor_academic_title') {
  323. dictData = this.academicTitle.map(item => item.dictLabel)
  324. } else if (type === 'doctor_degree') {
  325. dictData = this.degree.map(item => item.dictLabel)
  326. } else if (type === 'doctor_apply_level') {
  327. dictData = this.applyLevel.map(item => item.dictLabel)
  328. }
  329. // 设置数据
  330. this.pickerData = [dictData]
  331. this.pickerTitle = title
  332. // 延迟显示选择器,确保数据已更新
  333. setTimeout(() => {
  334. this.showPickerVisible = true
  335. }, 50)
  336. }
  337. },
  338. // 选择器确认
  339. confirm(e) {
  340. if (e.value && e.value.length > 0) {
  341. if (this.pickerTitle === '学术头衔') {
  342. this.formData.academicTitle = e.value[0]
  343. } else if (this.pickerTitle === '学术任职') {
  344. this.formData.academicPositions = e.value[0]
  345. } else if (this.pickerTitle === '学术研究') {
  346. this.formData.researchAreas = e.value[0]
  347. } else if (this.pickerTitle === '学位') {
  348. this.formData.degree = e.value[0]
  349. } else if (this.pickerTitle === '申请级别') {
  350. this.formData.applicationLevel = e.value[0]
  351. }
  352. }
  353. // 关闭选择器
  354. this.showPickerVisible = false
  355. },
  356. // 选择器取消
  357. cancel() {
  358. // 关闭选择器
  359. this.showPickerVisible = false
  360. },
  361. // 多选相关方法
  362. // 切换选项
  363. toggleItem(item) {
  364. const index = this.selectedItems.indexOf(item)
  365. if (index > -1) {
  366. // 取消选择
  367. this.selectedItems.splice(index, 1)
  368. } else {
  369. // 添加选择
  370. this.selectedItems.push(item)
  371. }
  372. },
  373. // 关闭多选弹窗
  374. closeMultiSelectPopup() {
  375. this.showMultiSelectPopup = false
  376. },
  377. // 确认多选结果
  378. confirmMultiSelect() {
  379. const selectedValues = this.selectedItems.join(',')
  380. if (this.currentMultiSelectType === 'doctor_academic_position') {
  381. this.formData.academicPositions = selectedValues
  382. } else if (this.currentMultiSelectType === 'doctor_research_area') {
  383. this.formData.researchAreas = selectedValues
  384. }
  385. this.showMultiSelectPopup = false
  386. },
  387. // 提交表单
  388. submitForm() {
  389. // 验证表单数据
  390. if (!this.formData.academicTitle) {
  391. uni.showToast({
  392. icon: 'none',
  393. title: '请选择学术头衔'
  394. })
  395. return
  396. }
  397. if (!this.formData.degree) {
  398. uni.showToast({
  399. icon: 'none',
  400. title: '请选择学位'
  401. })
  402. return
  403. }
  404. if (!this.formData.applicationLevel) {
  405. uni.showToast({
  406. icon: 'none',
  407. title: '请选择申请级别'
  408. })
  409. return
  410. }
  411. if (this.formData.proofImages.length === 0) {
  412. uni.showToast({
  413. icon: 'none',
  414. title: '请上传证明材料'
  415. })
  416. return
  417. }
  418. // 构建表单数据
  419. const formData = {
  420. // 基础字段
  421. id: 0,
  422. doctorId: this.doctorId || '',
  423. companyId: this.userInfo.companyId || 0,
  424. companyName: this.userInfo.companyName || '',
  425. // 学术信息
  426. academicTitle: this.formData.academicTitle,
  427. academicPosition: this.formData.academicPositions,
  428. internationalPapers: parseInt(this.formData.internationalPapers) || 0,
  429. nationalPapers: parseInt(this.formData.nationalPapers) || 0,
  430. academicResearch: this.formData.researchAreas,
  431. clinicalExperienceYears: parseInt(this.formData.clinicalExperience) || 0,
  432. degree: this.formData.degree,
  433. applyLevel: this.formData.applicationLevel,
  434. // 状态字段
  435. status: 0,
  436. deleted: 0,
  437. auditInstanceId: 0,
  438. // 证明材料
  439. materials: this.formData.proofImages.map((url, index) => {
  440. return {
  441. id: 0,
  442. companyId: this.userInfo.companyId || 0,
  443. applyId: 0,
  444. fileUrl: url,
  445. fileName: `proof_${index + 1}.jpg`,
  446. fileSize: 0,
  447. fileType: 'image/jpeg',
  448. sortOrder: index + 1,
  449. deleted: 0
  450. }
  451. })
  452. }
  453. // 调用apply接口提交表单
  454. uni.showLoading({
  455. title: '提交中...'
  456. })
  457. apply(formData).then(res => {
  458. uni.hideLoading()
  459. if (res.code === 200) {
  460. uni.showToast({
  461. icon: 'success',
  462. title: '提交成功'
  463. })
  464. uni.redirectTo({
  465. url: '/pages_task/success'
  466. })
  467. // 提交成功后返回上一页
  468. // setTimeout(() => {
  469. // uni.navigateBack()
  470. // }, 1500)
  471. } else {
  472. uni.showToast({
  473. icon: 'none',
  474. title: res.message || '提交失败'
  475. })
  476. }
  477. }).catch(err => {
  478. uni.hideLoading()
  479. uni.showToast({
  480. icon: 'none',
  481. title: '网络错误,请重试'
  482. })
  483. })
  484. }
  485. }
  486. }
  487. </script>
  488. <style lang="scss" scoped>
  489. .container {
  490. min-height: 100vh;
  491. background: #ffffff;
  492. display: flex;
  493. flex-direction: column;
  494. position: relative;
  495. .content {
  496. flex: 1;
  497. box-sizing: border-box;
  498. .rejection-banner {
  499. display: flex;
  500. align-items: center;
  501. padding: 24rpx;
  502. background: #FF5030;
  503. color: #fff;
  504. margin: 24rpx;
  505. border-radius: 8rpx;
  506. .rejection-icon {
  507. width: 40rpx;
  508. height: 40rpx;
  509. border-radius: 50%;
  510. background: rgba(255, 255, 255, 0.3);
  511. display: flex;
  512. align-items: center;
  513. justify-content: center;
  514. font-size: 24rpx;
  515. margin-right: 16rpx;
  516. }
  517. .rejection-text {
  518. flex: 1;
  519. font-size: 28rpx;
  520. line-height: 1.5;
  521. }
  522. }
  523. .form-section {
  524. background: #fff;
  525. margin: 20rpx;
  526. border-radius: 16rpx;
  527. padding: 32rpx;
  528. .form-item {
  529. display: flex;
  530. justify-content: space-between;
  531. align-items: center;
  532. border-bottom: 1px solid #EBEDF0;
  533. padding: 30rpx 0;
  534. &:last-child {
  535. border-bottom: 0;
  536. }
  537. &.column {
  538. display: flex;
  539. flex-direction: column;
  540. justify-content: baseline;
  541. align-items: baseline;
  542. }
  543. .input {
  544. text-align: end;
  545. font-size: 28rpx;
  546. color: #C8C9CC;
  547. }
  548. .form-label {
  549. display: flex;
  550. align-items: center;
  551. font-size: 28rpx;
  552. color: #333;
  553. .required {
  554. color: #CF3546;
  555. margin-right: 4rpx;
  556. }
  557. }
  558. .form-tips {
  559. font-size: 24rpx;
  560. color: #999999;
  561. margin: 12rpx 0 24rpx;
  562. }
  563. .upload-proof {
  564. margin-top: 16rpx;
  565. .uploaded-images {
  566. display: flex;
  567. flex-wrap: wrap;
  568. gap: 20rpx;
  569. .uploaded-image-item {
  570. width: 160rpx;
  571. height: 160rpx;
  572. border-radius: 16rpx;
  573. position: relative;
  574. image {
  575. width: 100%;
  576. height: 100%;
  577. border-radius: 12rpx;
  578. }
  579. .image-delete {
  580. position: absolute;
  581. top: -12rpx;
  582. right: -12rpx;
  583. width: 40rpx;
  584. height: 40rpx;
  585. background: rgba(0, 0, 0, 0.6);
  586. color: #FFFFFF;
  587. border-radius: 50%;
  588. display: flex;
  589. align-items: center;
  590. justify-content: center;
  591. font-size: 32rpx;
  592. font-weight: bold;
  593. z-index: 1;
  594. }
  595. }
  596. }
  597. .upload-placeholder {
  598. width: 160rpx;
  599. height: 160rpx;
  600. background: #F7F8FA;
  601. border-radius: 16rpx;
  602. display: flex;
  603. flex-direction: column;
  604. align-items: center;
  605. justify-content: center;
  606. image {
  607. width: 48rpx;
  608. height: 48rpx;
  609. }
  610. .camera-icon {
  611. font-size: 48rpx;
  612. color: #CCCCCC;
  613. margin-bottom: 16rpx;
  614. }
  615. .upload-text {
  616. font-size: 24rpx;
  617. color: #999999;
  618. }
  619. }
  620. }
  621. .txt {
  622. font-size: 28rpx;
  623. color: #333333;
  624. }
  625. .form-input {
  626. flex: 1;
  627. font-size: 28rpx;
  628. color: #C8C9CC;
  629. &.placeholder {
  630. color: #C8C9CC;
  631. }
  632. &.picker-input {
  633. display: flex;
  634. align-items: center;
  635. justify-content: flex-end;
  636. }
  637. .icon {
  638. width: 36rpx;
  639. height: 36rpx;
  640. }
  641. }
  642. }
  643. }
  644. }
  645. .next-button {
  646. text-align: center;
  647. font-size: 32rpx;
  648. color: #FFFFFF;
  649. height: 88rpx;
  650. line-height: 88rpx;
  651. background: #388BFF;
  652. border-radius: 200rpx;
  653. margin: 32rpx;
  654. }
  655. /* 多选弹窗样式 */
  656. .u-popup-content {
  657. background: #fff;
  658. border-radius: 20rpx 20rpx 0 0;
  659. max-height: 80vh;
  660. display: flex;
  661. flex-direction: column;
  662. width: 100%;
  663. }
  664. .popup-header {
  665. display: flex;
  666. justify-content: space-between;
  667. align-items: center;
  668. padding: 32rpx;
  669. border-bottom: 1px solid #EBEDF0;
  670. }
  671. .popup-title {
  672. font-size: 32rpx;
  673. font-weight: bold;
  674. color: #333;
  675. }
  676. .popup-close {
  677. font-size: 40rpx;
  678. color: #999;
  679. cursor: pointer;
  680. }
  681. .popup-body {
  682. padding: 32rpx;
  683. flex: 1;
  684. overflow-y: auto;
  685. }
  686. .tag-group {
  687. display: flex;
  688. flex-wrap: wrap;
  689. gap: 16rpx;
  690. }
  691. .tag-item {
  692. padding: 16rpx 32rpx;
  693. border: 2rpx solid #DCDFE6;
  694. border-radius: 40rpx;
  695. font-size: 28rpx;
  696. color: #666;
  697. cursor: pointer;
  698. transition: all 0.3s;
  699. white-space: nowrap;
  700. }
  701. .tag-item.active {
  702. background: #388BFF;
  703. border-color: #388BFF;
  704. color: #fff;
  705. }
  706. .popup-footer {
  707. display: flex;
  708. }
  709. .popup-btn {
  710. flex: 1;
  711. gap: 20rpx;
  712. text-align: center;
  713. height: 88rpx;
  714. line-height: 88rpx;
  715. border: none;
  716. font-size: 28rpx;
  717. cursor: pointer;
  718. border-radius: 40rpx;
  719. }
  720. .cancel-btn {
  721. background: #fff;
  722. color: #666;
  723. border: 2rpx solid #DCDFE6;
  724. }
  725. .confirm-btn {
  726. background: #388BFF;
  727. color: #fff;
  728. }
  729. }
  730. ::v-deep .u-popup__content {
  731. border-radius: 40rpx 40rpx 0 0 !important;
  732. }
  733. .popup-content {
  734. border-radius: 40rpx 40rpx 0rpx 0rpx;
  735. height: 70vh;
  736. background-color: #fff;
  737. .popup-header {
  738. padding: 40rpx 30rpx 20rpx;
  739. text-align: center;
  740. .close-icon {
  741. width: 44rpx;
  742. height: 44rpx;
  743. position: absolute;
  744. right: 32rpx;
  745. }
  746. flex-shrink: 0;
  747. .title {
  748. font-size: 32rpx;
  749. font-weight: 600;
  750. color: #333;
  751. }
  752. .popup-title {
  753. font-size: 32rpx;
  754. font-weight: 600;
  755. color: #333;
  756. }
  757. }
  758. .search-box {
  759. display: flex;
  760. align-items: center;
  761. background: #F7F8FA;
  762. border-radius: 38rpx;
  763. padding: 16rpx 28rpx;
  764. margin-bottom: 24rpx;
  765. .icon {
  766. width: 26rpx;
  767. height: 26rpx;
  768. margin-right: 10rpx;
  769. }
  770. }
  771. .project-list {
  772. height: calc(100% - 200rpx);
  773. .project-item {
  774. display: flex;
  775. justify-content: space-between;
  776. align-items: center;
  777. padding: 28rpx 0;
  778. font-size: 28rpx;
  779. border-bottom: 1rpx solid #eee;
  780. &:active {
  781. background-color: #f9f9f9;
  782. }
  783. &.active {
  784. .project-name {
  785. font-weight: 500;
  786. color: #388BFF;
  787. }
  788. .icon {
  789. opacity: 1;
  790. }
  791. }
  792. .project-name {
  793. color: #333;
  794. transition: all 0.2s ease;
  795. }
  796. .icon {
  797. width: 36rpx;
  798. height: 36rpx;
  799. opacity: 0;
  800. transition: opacity 0.2s ease;
  801. }
  802. }
  803. }
  804. .two-level-container {
  805. display: flex;
  806. flex: 1;
  807. border-top: 1rpx solid #f5f5f5;
  808. .primary-list {
  809. width: 40%;
  810. background-color: #f8f9fa;
  811. .primary-item {
  812. padding: 28rpx 20rpx;
  813. background: #F2F3F5;
  814. &:active {
  815. background: #FFFFFF;
  816. }
  817. &.primary-active {
  818. position: relative;
  819. background-color: #fff;
  820. &::before {
  821. content: '';
  822. position: absolute;
  823. top: 50%;
  824. left: 0;
  825. transform: translateY(-50%);
  826. width: 8rpx;
  827. height: 32rpx;
  828. background: #388BFF;
  829. }
  830. .primary-text {
  831. font-weight: 500;
  832. }
  833. }
  834. .primary-text {
  835. font-size: 28rpx;
  836. color: #666;
  837. }
  838. }
  839. }
  840. .secondary-list {
  841. width: 60%;
  842. padding: 0 20rpx;
  843. .secondary-item {
  844. display: flex;
  845. justify-content: space-between;
  846. align-items: center;
  847. padding: 28rpx 10rpx;
  848. font-size: 28rpx;
  849. color: #333;
  850. &.secondary-active {
  851. font-weight: 500;
  852. color: #388BFF;
  853. }
  854. }
  855. }
  856. }
  857. .popup-footer {
  858. padding: 20rpx 30rpx 40rpx;
  859. background-color: #fff;
  860. border-top: 1rpx solid #f5f5f5;
  861. flex-shrink: 0;
  862. .confirm-btn {
  863. width: 100%;
  864. height: 88rpx;
  865. line-height: 88rpx;
  866. background-color: #2979ff;
  867. color: #fff;
  868. font-size: 32rpx;
  869. border-radius: 200rpx 200rpx 200rpx 200rpx;
  870. &:active {
  871. opacity: 0.8;
  872. }
  873. }
  874. }
  875. }
  876. @media (prefers-color-scheme: dark) {
  877. .popup-content {
  878. background-color: #1e1e1e;
  879. .popup-header {
  880. .title,
  881. .popup-title {
  882. color: #fff;
  883. }
  884. }
  885. .two-level-container {
  886. .primary-list {
  887. background-color: #2d2d2d;
  888. border-right-color: #3d3d3d;
  889. .primary-item {
  890. border-bottom-color: #3d3d3d;
  891. &:active {
  892. background-color: #3d3d3d;
  893. }
  894. &.primary-active {
  895. background-color: #3d3d3d;
  896. .primary-text {
  897. color: #2979ff;
  898. }
  899. }
  900. .primary-text {
  901. color: #ccc;
  902. }
  903. }
  904. }
  905. .secondary-list {
  906. .secondary-item {
  907. border-bottom-color: #3d3d3d;
  908. &:active {
  909. background-color: #3d3d3d;
  910. }
  911. &.secondary-active {
  912. background-color: #2d2d2d;
  913. }
  914. .secondary-text {
  915. color: #fff;
  916. }
  917. }
  918. }
  919. }
  920. .popup-footer {
  921. background-color: #1e1e1e;
  922. border-top-color: #3d3d3d;
  923. }
  924. }
  925. }
  926. </style>