index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769
  1. <template>
  2. <view class="box">
  3. <view class="box-top">
  4. <view class="box-top-title">
  5. {{ info.name }}
  6. <text class="subText">
  7. {{ info.postName }}
  8. <text v-if="info.postName && info.enterpriseName" class="gun">|</text>
  9. {{ info.enterpriseName }}
  10. </text>
  11. </view>
  12. <view class="box-top-content" v-if="interview.length">
  13. <view v-for="val in interview" :key="val.id" class="color-666">
  14. <view class="box-top-content-t">
  15. <view class="font-weight-bold color-primary">
  16. <text>{{ val.job.name }}</text>
  17. <text v-if="!val.job.payFrom && !val.job.payTo" class="ml-3">面议</text>
  18. <text v-else class="ml-3">{{ val.job.payFrom ? val.job.payFrom + '-' : '' }}{{ val.job.payTo }}</text>
  19. </view>
  20. <view :style="`color: ${val.statusColor};`" >
  21. {{ val.statusText }}
  22. </view>
  23. </view>
  24. <view class="mt-1 font-size-14 ellipsis" style="max-width: 100%;">
  25. <view class="py-1">面试时间:{{ timesTampChange(val.time, 'Y-M-D h:m') }}</view>
  26. <view class="py-1">面试地点:{{ val.address }}</view>
  27. <view class="py-1">联系电话:{{ val.invitePhone }}</view>
  28. </view>
  29. <view class="bottom">
  30. <view class="tipsText" @click="handleToCenter">在“个人中心-面试”中管理我的面试</view>
  31. <view v-if="val.status === '0'" class="btnBox">
  32. <button size="mini" type="warn" @click="handleRefuse(val)">拒绝邀请</button>
  33. <button size="mini" type="primary" @click="handleAgree(val)">接受邀请</button>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <!-- <view class="box-main" ref="chatRef"> -->
  40. <scroll-view class="box-main" ref="chatRef" scroll-y="true" :scroll-top="scrollInto" >
  41. <view class="box-main-more" v-if="hasMore">
  42. <text @click="handleMore">查看更多</text>
  43. </view>
  44. <view v-for="val in items" :key="val.id" :id="'s'+val.id+index">
  45. <view class="box-main-time">{{ timesTampChange(+(val.timestamp.padEnd(13, '0'))) }}</view>
  46. <template v-if="val.payload?.type === 102">
  47. <view class="jobCard">
  48. <view class="jobCard-title"> {{ val.payload?.content?.positionInfo?.name }}</view>
  49. <view
  50. v-if="!val.payload?.content?.positionInfo?.payFrom && !val.payload?.content?.positionInfo?.payTo"
  51. class="jobCard-subtitle">
  52. 薪酬待遇: 面议
  53. </view>
  54. <view
  55. v-else
  56. class="jobCard-subtitle"
  57. >
  58. 薪酬待遇:
  59. {{ val.payload?.content?.positionInfo?.payFrom ? val.payload?.content?.positionInfo?.payFrom + ' - ' : '' }}
  60. {{ val.payload?.content?.positionInfo?.payTo }}
  61. </view>
  62. <view class="jobCard-tag">
  63. <view
  64. v-for="(v, i) in (val.payload?.content?.positionInfo?.enterprise?.welfareList || [])"
  65. :key="val.message_id + v + i"
  66. style="margin: 10rpx"
  67. >
  68. <uni-tag
  69. :text="v"
  70. type="success"
  71. />
  72. </view>
  73. </view>
  74. <view class="jobCard-divider"></view>
  75. <view class="jobCard-subtitle text-right">
  76. <v-avatar size="24">
  77. <v-img :src="val.payload?.content?.positionInfo?.contact?.avatar"></v-img>
  78. </v-avatar>
  79. {{ val.payload?.content?.positionInfo?.contact?.name }}
  80. {{ val.payload?.content?.positionInfo?.contact?.postNameCn }}
  81. {{ val.payload?.content?.positionInfo?.enterprise?.name }}
  82. </view>
  83. <div class="jobCard-subtitle text-right">
  84. 地址:{{ val.payload?.content?.positionInfo?.address }}
  85. </div>
  86. </view>
  87. </template>
  88. <view :class="['message-view_item', val.from_uid === IM.uid ? 'is-self' : 'is-other']">
  89. <view class="image">
  90. <image
  91. :data-target="getUserAvatar(info.avatar, info.sex)"
  92. class="header"
  93. :src="(
  94. val.from_uid === IM.uid ?
  95. getUserAvatar(useUserStore.baseInfo?.avatar, useUserStore.baseInfo?.sex) :
  96. getUserAvatar(info.avatar, info.sex)
  97. )"
  98. ></image>
  99. </view>
  100. <!-- 显示沟通职位 -->
  101. <template v-if="val.payload?.type === 102">
  102. <view class="message-text" :class="val.from_uid === IM.uid ? 'active' : ''">
  103. {{ val.payload?.content.text }}
  104. </view>
  105. </template>
  106. <!-- 发起面试邀请 -->
  107. <view class="message-text none" v-else-if="val.payload?.type === 101">
  108. <uni-tag text="发起了面试邀请" type="primary" />
  109. </view>
  110. <view class="message-text none" v-else-if="val.payload?.type === 103">
  111. <uni-tag text="拒绝了面试邀请" type="error" />
  112. </view>
  113. <view class="message-text none" v-else-if="val.payload?.type === 104">
  114. <uni-tag text="接受了面试邀请" type="success" />
  115. </view>
  116. <view v-else-if="val.payload.type === 105" class="text-end">
  117. <uni-tag
  118. v-if="val.from_uid === IM.uid"
  119. :text="val.payload.content?.type === 1 ? '附件简历已发送' : '简历请求已发送'"
  120. type="success"
  121. />
  122. <view
  123. v-if="val.payload.content?.type !== 2 || val.from_uid !== IM.uid"
  124. class="message-text card"
  125. >
  126. <view class="text-left">
  127. <text v-if="val.payload.content?.type === 1">{{
  128. val.payload.content?.query?.title || '附件简历' }}
  129. </text>
  130. <text v-if="val.payload.content?.type === 2">
  131. 我想要一份您的简历,您是否同意
  132. </text>
  133. </view>
  134. <view class="btn-actions">
  135. <text class="btn" v-if="val.payload.content?.type === 1" @tap="handlePreview(val.payload)">点击预览附件简历</text>
  136. <text class="btn" v-if="val.payload.content?.type === 2" @tap="handleFindResume">点击发送附件简历</text>
  137. </view>
  138. </view>
  139. </view>
  140. <view v-else class="message-text" :class="{ active: val.from_uid === IM.uid}">
  141. {{ val.payload?.content }}
  142. </view>
  143. </view>
  144. </view>
  145. </scroll-view>
  146. <!-- </view> -->
  147. <view class="box-bottom">
  148. <view class="box-bottom-tool">
  149. <uni-tag text="发送简历" type="success" @tap="handleFindResume"/>
  150. </view>
  151. <textarea
  152. v-model="inputValue"
  153. auto-height
  154. confirm-type="send"
  155. @confirm="handleSend"
  156. />
  157. </view>
  158. <uni-popup ref="popup" background-color="#fff">
  159. <view class="popup-title">
  160. <text>请选择简历</text>
  161. <uni-icons type="closeempty" size="20" @tap="handleClose"></uni-icons>
  162. </view>
  163. <view v-for="resume in resumeList" :key="resume.id" class="popup-content" @tap="resumeCheck = resume">
  164. <view class="iconBox">
  165. <uni-icons
  166. v-show="resumeCheck.id === resume.id"
  167. type="checkmarkempty"
  168. size="20"
  169. :color="resumeCheck.id === resume.id ? '#43AC57' : '#999'"></uni-icons>
  170. </view>
  171. <text class="text" :class="resumeCheck.id === resume.id ? 'active' : ''">{{ resume.title }}</text>
  172. </view>
  173. <view v-if="!resumeList.length" class="popup-upload" @click="handleUploadResume">
  174. <view class="popup-upload-box">
  175. <uni-icons type="plusempty" size="50" color="#f1f1f1"></uni-icons>
  176. </view>
  177. <text>请先上传简历</text>
  178. </view>
  179. <view v-if="resumeList.length" class="popup-actions">
  180. <button class="default" type="default" @click="handleSendResume">发送简历</button>
  181. </view>
  182. </uni-popup>
  183. <uni-popup ref="confirm" type="dialog">
  184. <uni-popup-dialog
  185. :type="isAgree ? 'success' : 'warn'"
  186. cancelText="取消"
  187. confirmText="确认"
  188. title="系统提示"
  189. :content="isAgree ? '确认接受面试吗?' : '确认拒绝面试吗?'"
  190. @confirm="handleConfirm"
  191. @close="handleCloseConfirm"
  192. ></uni-popup-dialog>
  193. </uni-popup>
  194. </view>
  195. </template>
  196. <script setup>
  197. import { ref, nextTick, watch, computed } from 'vue'
  198. import { onLoad } from '@dcloudio/uni-app'
  199. import { useIMStore } from '@/store/im'
  200. import { userStore } from '@/store/user'
  201. import { initConnect, send, initChart, getMoreMessages } from '@/hooks/useIM'
  202. import { getDict } from '@/hooks/useDictionaries'
  203. import { timesTampChange } from '@/utils/date'
  204. import { getUserAvatar } from '@/utils/avatar'
  205. import { preview } from '@/utils/preview'
  206. import { getPersonResumeCv, saveResume } from '@/api/user'
  207. import { getInterviewInviteListByInviteUserId } from '@/api/common'
  208. import { userInterviewInviteReject, userInterviewInviteConsent } from '@/api/personalCenter'
  209. const useUserStore = userStore()
  210. const IM = useIMStore()
  211. const info = ref({})
  212. const chatRef = ref()
  213. const items = ref([])
  214. const channelItem = ref(null)
  215. const hasMore = ref(false)
  216. const popup = ref()
  217. const resumeCheck = ref({})
  218. const resumeList = ref([]) // 简历列表
  219. const pageSize = ref(1)
  220. // 求职者面试列表
  221. const interview = ref([])
  222. // 求职端-获取求职者与当前邀请人的面试记录
  223. const statusList = ref([])
  224. const inputValue = ref('')
  225. const isAgree = ref(false)
  226. const confirm = ref()
  227. const chooseInvite = ref(null)
  228. const scrollInto = ref(0)
  229. const {
  230. conversationList,
  231. // updateConversation,
  232. updateUnreadCount,
  233. // deleteConversations,
  234. resetUnread
  235. } = initConnect(async (successful) => {
  236. if (!successful) {
  237. uni.showToast({
  238. title: '发送失败',
  239. icon: 'none',
  240. mask: true,
  241. })
  242. return
  243. }
  244. inputValue.value = ''
  245. // chatRef.value.reset()
  246. // // 发送成功
  247. const { list } = await getMoreMessages(1, channelItem.value)
  248. // updateConversation()
  249. items.value = list.value
  250. // chatRef.value.scrollBottom()
  251. })
  252. watch(
  253. () => conversationList.value,
  254. async (val) => {
  255. if (!channelItem.value) {
  256. return
  257. }
  258. const { list } = await getMoreMessages(1, channelItem.value)
  259. if (list.value.length) {
  260. const item = list.value[list.value.length - 1]
  261. const arr = [101, 103, 104]
  262. if (arr.includes(item.payload?.type)) {
  263. getInterviewInviteList()
  264. }
  265. }
  266. items.value = list.value
  267. setScrollBottom()
  268. // 清除未读消息
  269. resetUnread(channelItem.value)
  270. },
  271. {
  272. deep: true,
  273. immediate: true
  274. }
  275. )
  276. async function init(userId, enterpriseId) {
  277. const { channel, list, more } = await initChart(userId, enterpriseId)
  278. hasMore.value = more
  279. channelItem.value = channel.value
  280. items.value = list.value
  281. setScrollBottom()
  282. }
  283. // 滑动到底部
  284. function setScrollBottom () {
  285. // scrollInto.value = 200
  286. }
  287. async function getInterviewInviteList () {
  288. if (!info.value.id) return
  289. const { data } = await getInterviewInviteListByInviteUserId(info.value.id)
  290. interview.value = data.slice(0, 1).map(e => {
  291. const statusItem = statusList.value.find(_e => _e.value === e.status)
  292. const statusText = statusItem?.label || ''
  293. const statusColor = ['5', '98', '99'].includes(e.status)
  294. return {
  295. ...e,
  296. statusColor: statusColor ? '#FE574A' : '#0E8E80',
  297. statusText
  298. }
  299. })
  300. }
  301. const getStatusList = async () => {
  302. try {
  303. const { data } = await getDict('menduner_interview_invite_status')
  304. if (data.data.length) {
  305. statusList.value = data.data
  306. }
  307. } catch (error) {
  308. }
  309. }
  310. function handleSend () {
  311. send(inputValue.value, channelItem.value)
  312. }
  313. // 预览简历
  314. function handlePreview (payload) {
  315. if (!payload?.content?.query?.src) {
  316. uni.showToast({ title: '简历地址不存在', icon: 'none' })
  317. return
  318. }
  319. preview(payload.content.query.src)
  320. }
  321. // 获取简历
  322. async function handleFindResume () {
  323. uni.showLoading({
  324. title: '真正查找简历'
  325. })
  326. try {
  327. // 获取简历列表
  328. const { data } = await getPersonResumeCv()
  329. if (data.length === 0) {
  330. uni.showToast({
  331. title: '您还未上传过简历,请先上传简历后再投递',
  332. icon: 'none',
  333. mask: true,
  334. })
  335. return
  336. }
  337. resumeList.value = data
  338. resumeCheck.value = data[0]
  339. popup.value.open('center')
  340. } finally {
  341. uni.hideLoading()
  342. }
  343. }
  344. // 关闭简历窗口
  345. function handleClose () {
  346. popup.value.close()
  347. }
  348. // 发送简历
  349. function handleSendResume () {
  350. if (!Object.keys(resumeCheck.value).length) {
  351. uni.showToast({ title: '请选择要投递的简历', icon: 'none' })
  352. return
  353. }
  354. const text = {
  355. remark: '发送简历',
  356. query: {
  357. src: resumeCheck.url,
  358. title: resumeCheck.title,
  359. id: resumeCheck.id,
  360. },
  361. type: 1
  362. }
  363. send (JSON.stringify(text), channelItem.value, 105)
  364. // 提交简历
  365. // {jobId, title, type, url}
  366. popup.value.close()
  367. }
  368. // 拒绝邀请
  369. function handleRefuse (val) {
  370. isAgree.value = false
  371. chooseInvite.value = val
  372. confirm.value.open()
  373. }
  374. // 接受邀请
  375. function handleAgree (val) {
  376. isAgree.value = true
  377. chooseInvite.value = val
  378. confirm.value.open()
  379. }
  380. // 确认
  381. async function handleConfirm () {
  382. // 拒绝
  383. if (!isAgree.value) {
  384. await userInterviewInviteReject(chooseInvite.value.id)
  385. } else {
  386. await userInterviewInviteReject(chooseInvite.value.id)
  387. }
  388. uni.showToast({ title: '操作成功', icon: 'none' })
  389. send(JSON.stringify({ id: chooseInvite.value.id }), channelItem.value, isAgree.value ? 104 : 103)
  390. }
  391. // 关闭
  392. function handleCloseConfirm () {
  393. confirm.value.close()
  394. }
  395. // 查看更多
  396. async function handleMore () {
  397. try {
  398. uni.showLoading({
  399. title: '加载中...'
  400. })
  401. pageSize.value++
  402. const { list, more } = await getMoreMessages(pageSize.value, channelItem.value)
  403. items.value.unshift(...list.value)
  404. hasMore.value = more
  405. } finally {
  406. uni.hideLoading()
  407. }
  408. }
  409. // 上传简历
  410. function handleUploadResume () {
  411. wx.chooseMessageFile({
  412. count: 1,
  413. type: 'file',
  414. success (res) {
  415. const title = res.tempFiles[0].name
  416. const path = res.tempFiles[0].path
  417. const test = /\.(pdf|docx|doc)$/.test(title)
  418. if (!test) {
  419. uni.showToast({
  420. icon: 'none',
  421. title: '请上传pdf、word类型的文件',
  422. duration: 2000
  423. })
  424. return
  425. }
  426. //效验是否为支持的文件格式
  427. uploadFile(path).then(async (res) => {
  428. if (!res.data) {
  429. uni.showToast({
  430. title: '上传失败',
  431. icon: 'none'
  432. })
  433. return
  434. }
  435. await saveResume({ title, url: res.data })
  436. uni.showToast({
  437. title: '上传成功',
  438. icon: 'success'
  439. })
  440. handleFindResume()
  441. })
  442. }
  443. })
  444. }
  445. // 根据id检测是否有发过简历
  446. async function checkResume (jobId) {
  447. try {
  448. const { data } = await getJobFavoriteCheck({ jobId })
  449. console.log(data)
  450. } catch (error) {
  451. }
  452. }
  453. onLoad(async (options) => {
  454. info.value = Object.keys(options).reduce((r, k) => {
  455. r[k] = decodeURIComponent(options[k])
  456. return r
  457. }, {})
  458. // console.log(info.value)
  459. // await checkResume(info.value.enterpriseId)
  460. await init(options.id, options.enterpriseId)
  461. await getStatusList()
  462. getInterviewInviteList()
  463. // 清除未读消息
  464. resetUnread(channelItem.value)
  465. // 更新未读消息
  466. updateUnreadCount()
  467. })
  468. </script>
  469. <style lang="scss" scoped>
  470. .white {
  471. color: #FFF !important;
  472. }
  473. .text-left {
  474. text-align: left !important;
  475. }
  476. .text-right {
  477. text-align: right !important;
  478. }
  479. .box {
  480. width: 100%;
  481. height: 100vh;
  482. display: flex;
  483. flex-direction: column;
  484. &-top {
  485. &-title {
  486. padding: 0 60rpx;
  487. box-sizing: border-box;
  488. width: 100%;
  489. height: 80rpx;
  490. line-height: 80rpx;
  491. // text-align: center;
  492. border-bottom: 2rpx solid #EEE;
  493. overflow: hidden;
  494. white-space: nowrap;
  495. text-overflow: ellipsis;
  496. .subText {
  497. font-size: .85em;
  498. color: #999;
  499. .gun {
  500. padding: 0 10rpx;
  501. }
  502. }
  503. }
  504. &-content {
  505. padding: 20rpx 50rpx;
  506. padding-bottom: 20rpx;
  507. border-bottom: 2rpx solid #eee;
  508. .color-666 {
  509. color: #666;
  510. }
  511. .font-weight-bold {
  512. font-weight: bold;
  513. }
  514. .color-primary {
  515. color: #009688;
  516. }
  517. .ml-3 {
  518. margin-left: 40rpx;
  519. }
  520. .mt-1 {
  521. margin-top: 12rpx;
  522. }
  523. .font-size-14 {
  524. font-size: 24rpx;
  525. }
  526. .py-1 {
  527. padding: 4rpx 0;
  528. }
  529. .tipsText {
  530. font-size: .75em;
  531. color: #999;
  532. }
  533. &-t {
  534. display: flex;
  535. justify-content: space-between;
  536. }
  537. .btnBox {
  538. display: flex;
  539. padding: 20rpx 60rpx;
  540. justify-content: space-around;
  541. }
  542. }
  543. }
  544. &-main {
  545. flex: 1;
  546. height: 0;
  547. padding: 40rpx;
  548. // overflow-y: auto;
  549. box-sizing: border-box;
  550. &-more {
  551. display: flex;
  552. justify-content: center;
  553. align-items: center;
  554. color: #24bc3e;
  555. font-size: .9em;
  556. padding: 20rpx 0;
  557. }
  558. &-time {
  559. user-select: none;
  560. position: relative;
  561. top: 16rpx;
  562. margin: 40rpx 0;
  563. text-align: center;
  564. max-height: 40rpx;
  565. text-align: center;
  566. font-weight: 400;
  567. font-size: .85em;
  568. color: #999;
  569. }
  570. .jobCard {
  571. padding: 30rpx;
  572. background: #E2F2F0;
  573. color: #009688 ;
  574. margin-top: 20rpx;
  575. max-width: unset;
  576. margin-right: 0;
  577. &-title {
  578. font-size: 1.2em;
  579. }
  580. &-subtitle {
  581. padding: 10rpx 0;
  582. // font-size: .5em;
  583. }
  584. &-divider {
  585. width: 100%;
  586. height: 2rpx;
  587. margin: 20rpx 0;
  588. background: #ddd;
  589. }
  590. &-tag {
  591. display: flex;
  592. flex-wrap: wrap;
  593. }
  594. }
  595. .message-view_item {
  596. display: flex;
  597. flex-direction: row;
  598. align-items: flex-start;
  599. margin: 16rpx 0;
  600. position: relative;
  601. .image {
  602. width: 60rpx;
  603. height: 60rpx;
  604. border-radius: 180rpx;
  605. // flex-grow: 1;
  606. // flex-shrink: 0;
  607. overflow: hidden;
  608. .header {
  609. width: 60rpx;
  610. height: 60rpx;
  611. }
  612. }
  613. .text-end {
  614. text-align: right !important;
  615. width: 400rpx;
  616. margin-right: 20rpx;
  617. }
  618. .message-text {
  619. overflow-wrap: break-word;
  620. background-color: #f0f2f5;
  621. border-radius: 12rpx;
  622. max-width: 75%;
  623. padding: 20rpx;
  624. &.active {
  625. background: #d5e6e8;
  626. }
  627. &.card {
  628. background: #E2F2F0;
  629. color: #009688 ;
  630. margin-top: 20rpx;
  631. max-width: unset;
  632. margin-right: 0;
  633. .btn-actions {
  634. margin: 40rpx auto 20rpx auto ;
  635. text-align: center;
  636. .btn {
  637. padding: 10rpx 30rpx;
  638. background: #C8E7D8;
  639. color: #43AC57;
  640. font-size: .75em;
  641. border-radius: 10rpx;
  642. }
  643. }
  644. }
  645. &.none {
  646. padding: 10rpx 0;
  647. background-color: unset;
  648. }
  649. &.active {
  650. background: #d5e6e8;
  651. }
  652. }
  653. }
  654. .is-self {
  655. flex-direction: row-reverse;
  656. display: flex;
  657. .message-text {
  658. margin-right: 20rpx;
  659. }
  660. }
  661. .is-other {
  662. .message-text {
  663. margin-left: 20rpx;
  664. }
  665. }
  666. }
  667. &-bottom {
  668. max-height: 300rpx;
  669. border-top: 2rpx solid #EEE;
  670. background: rgba(230, 230, 230, 0.5);
  671. padding: 20rpx 40rpx;
  672. box-sizing: border-box;
  673. &-tool {
  674. margin-bottom: 40rpx;
  675. }
  676. textarea {
  677. border-radius: 10rpx;
  678. width: 100%;
  679. min-height: 80rpx;
  680. max-height: 180rpx;
  681. padding: 20rpx;
  682. box-sizing: border-box;
  683. background: #FFF;
  684. }
  685. }
  686. .popup-title {
  687. padding: 30rpx 20rpx;
  688. display: flex;
  689. justify-content: space-between;
  690. border-bottom: 2rpx solid #DDD;
  691. }
  692. .popup-content {
  693. padding: 20rpx 40rpx;
  694. color: #999;
  695. display: flex;
  696. align-content: center;
  697. justify-items: center;
  698. .iconBox {
  699. width: 40rpx;
  700. }
  701. .text {
  702. margin-left: 20rpx;
  703. &.active {
  704. color: #00897b;
  705. }
  706. }
  707. }
  708. .popup-upload {
  709. display: flex;
  710. align-items: center;
  711. justify-content: center;
  712. flex-direction: column;
  713. width: 400rpx;
  714. font-size: .75em;
  715. color: #999;
  716. padding-bottom: 40rpx;
  717. &-box {
  718. margin-top: 20rpx;
  719. width: 200rpx;
  720. height: 200rpx;
  721. text-align: center;
  722. line-height: 200rpx;
  723. border: 4rpx solid #ddd;
  724. border-radius: 8rpx;
  725. }
  726. }
  727. .popup-actions {
  728. padding: 60rpx;
  729. .default {
  730. background: #00897b;
  731. color: #DDD;
  732. font-size: .9em;
  733. }
  734. }
  735. }
  736. </style>