index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756
  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. console.log(data, statusList)
  291. interview.value = data.slice(0, 1).map(e => {
  292. const statusItem = statusList.value.find(_e => _e.value === e.status)
  293. const statusText = statusItem?.label || ''
  294. const statusColor = ['5', '98', '99'].includes(e.status)
  295. return {
  296. ...e,
  297. statusColor: statusColor ? '#FE574A' : '#0E8E80',
  298. statusText
  299. }
  300. })
  301. }
  302. const getStatusList = async () => {
  303. try {
  304. const { data } = await getDict('menduner_interview_invite_status')
  305. if (data.data.length) {
  306. statusList.value = data.data
  307. }
  308. } catch (error) {
  309. }
  310. }
  311. function handleSend () {
  312. send(inputValue.value, channelItem.value)
  313. }
  314. // 预览简历
  315. function handlePreview (payload) {
  316. if (!payload?.content?.query?.src) {
  317. uni.showToast({ title: '简历地址不存在', icon: 'none' })
  318. return
  319. }
  320. preview(payload.content.query.src)
  321. }
  322. // 获取简历
  323. async function handleFindResume () {
  324. uni.showLoading({
  325. title: '真正查找简历'
  326. })
  327. try {
  328. // 获取简历列表
  329. const { data } = await getPersonResumeCv()
  330. if (data.length === 0) {
  331. uni.showToast({
  332. title: '您还未上传过简历,请先上传简历后再投递',
  333. icon: 'none',
  334. mask: true,
  335. })
  336. return
  337. }
  338. resumeList.value = data
  339. resumeCheck.value = data[0]
  340. popup.value.open('center')
  341. } finally {
  342. uni.hideLoading()
  343. }
  344. }
  345. // 关闭简历窗口
  346. function handleClose () {
  347. popup.value.close()
  348. }
  349. // 发送简历
  350. function handleSendResume () {
  351. if (!Object.keys(resumeCheck.value).length) {
  352. uni.showToast({ title: '请选择要投递的简历', icon: 'none' })
  353. return
  354. }
  355. const text = {
  356. remark: '发送简历',
  357. query: {
  358. src: resumeCheck.url,
  359. title: resumeCheck.title,
  360. id: resumeCheck.id,
  361. },
  362. type: 1
  363. }
  364. send (JSON.stringify(text), channelItem.value, 105)
  365. popup.value.close()
  366. }
  367. // 拒绝邀请
  368. function handleRefuse (val) {
  369. isAgree.value = false
  370. chooseInvite.value = val
  371. confirm.value.open()
  372. }
  373. // 接受邀请
  374. function handleAgree (val) {
  375. isAgree.value = true
  376. chooseInvite.value = val
  377. confirm.value.open()
  378. }
  379. // 确认
  380. async function handleConfirm () {
  381. // 拒绝
  382. if (!isAgree.value) {
  383. await userInterviewInviteReject(chooseInvite.value.id)
  384. } else {
  385. await userInterviewInviteReject(chooseInvite.value.id)
  386. }
  387. uni.showToast({ title: '操作成功', icon: 'none' })
  388. send(JSON.stringify({ id: chooseInvite.value.id }), channelItem.value, isAgree.value ? 104 : 103)
  389. }
  390. // 关闭
  391. function handleCloseConfirm () {
  392. confirm.value.close()
  393. }
  394. // 查看更多
  395. async function handleMore () {
  396. try {
  397. uni.showLoading({
  398. title: '加载中...'
  399. })
  400. pageSize.value++
  401. const { list, more } = await getMoreMessages(pageSize.value, channelItem.value)
  402. items.value.unshift(...list.value)
  403. hasMore.value = more
  404. } finally {
  405. uni.hideLoading()
  406. }
  407. }
  408. // 上传简历
  409. function handleUploadResume () {
  410. wx.chooseMessageFile({
  411. count: 1,
  412. type: 'file',
  413. success (res) {
  414. const title = res.tempFiles[0].name
  415. const path = res.tempFiles[0].path
  416. const test = /\.(pdf|docx|doc)$/.test(title)
  417. if (!test) {
  418. uni.showToast({
  419. icon: 'none',
  420. title: '请上传pdf、word类型的文件',
  421. duration: 2000
  422. })
  423. return
  424. }
  425. //效验是否为支持的文件格式
  426. uploadFile(path).then(async (res) => {
  427. if (!res.data) {
  428. uni.showToast({
  429. title: '上传失败',
  430. icon: 'none'
  431. })
  432. return
  433. }
  434. await saveResume({ title, url: res.data })
  435. uni.showToast({
  436. title: '上传成功',
  437. icon: 'success'
  438. })
  439. handleFindResume()
  440. })
  441. }
  442. })
  443. }
  444. onLoad(async (options) => {
  445. info.value = Object.keys(options).reduce((r, k) => {
  446. r[k] = decodeURIComponent(options[k])
  447. return r
  448. }, {})
  449. await init(options.id, options.enterpriseId)
  450. await getStatusList()
  451. getInterviewInviteList()
  452. // 清除未读消息
  453. resetUnread(channelItem.value)
  454. // 更新未读消息
  455. updateUnreadCount()
  456. })
  457. </script>
  458. <style lang="scss" scoped>
  459. .white {
  460. color: #FFF !important;
  461. }
  462. .text-left {
  463. text-align: left !important;
  464. }
  465. .text-right {
  466. text-align: right !important;
  467. }
  468. .box {
  469. width: 100%;
  470. height: 100vh;
  471. display: flex;
  472. flex-direction: column;
  473. &-top {
  474. &-title {
  475. padding: 0 60rpx;
  476. box-sizing: border-box;
  477. width: 100%;
  478. height: 80rpx;
  479. line-height: 80rpx;
  480. // text-align: center;
  481. border-bottom: 2rpx solid #EEE;
  482. overflow: hidden;
  483. white-space: nowrap;
  484. text-overflow: ellipsis;
  485. .subText {
  486. font-size: .85em;
  487. color: #999;
  488. .gun {
  489. padding: 0 10rpx;
  490. }
  491. }
  492. }
  493. &-content {
  494. padding: 20rpx 50rpx;
  495. padding-bottom: 20rpx;
  496. border-bottom: 2rpx solid #eee;
  497. .color-666 {
  498. color: #666;
  499. }
  500. .font-weight-bold {
  501. font-weight: bold;
  502. }
  503. .color-primary {
  504. color: #009688;
  505. }
  506. .ml-3 {
  507. margin-left: 40rpx;
  508. }
  509. .mt-1 {
  510. margin-top: 12rpx;
  511. }
  512. .font-size-14 {
  513. font-size: 24rpx;
  514. }
  515. .py-1 {
  516. padding: 4rpx 0;
  517. }
  518. .tipsText {
  519. font-size: .75em;
  520. color: #999;
  521. }
  522. &-t {
  523. display: flex;
  524. justify-content: space-between;
  525. }
  526. .btnBox {
  527. display: flex;
  528. padding: 20rpx 60rpx;
  529. justify-content: space-around;
  530. }
  531. }
  532. }
  533. &-main {
  534. flex: 1;
  535. height: 0;
  536. padding: 40rpx;
  537. // overflow-y: auto;
  538. box-sizing: border-box;
  539. &-more {
  540. display: flex;
  541. justify-content: center;
  542. align-items: center;
  543. color: #24bc3e;
  544. font-size: .9em;
  545. padding: 20rpx 0;
  546. }
  547. &-time {
  548. user-select: none;
  549. position: relative;
  550. top: 16rpx;
  551. margin: 40rpx 0;
  552. text-align: center;
  553. max-height: 40rpx;
  554. text-align: center;
  555. font-weight: 400;
  556. font-size: .85em;
  557. color: #999;
  558. }
  559. .jobCard {
  560. padding: 30rpx;
  561. background: #E2F2F0;
  562. color: #009688 ;
  563. margin-top: 20rpx;
  564. max-width: unset;
  565. margin-right: 0;
  566. &-title {
  567. font-size: 1.2em;
  568. }
  569. &-subtitle {
  570. padding: 10rpx 0;
  571. // font-size: .5em;
  572. }
  573. &-divider {
  574. width: 100%;
  575. height: 2rpx;
  576. margin: 20rpx 0;
  577. background: #ddd;
  578. }
  579. &-tag {
  580. display: flex;
  581. flex-wrap: wrap;
  582. }
  583. }
  584. .message-view_item {
  585. display: flex;
  586. flex-direction: row;
  587. align-items: flex-start;
  588. margin: 16rpx 0;
  589. position: relative;
  590. .image {
  591. width: 60rpx;
  592. height: 60rpx;
  593. border-radius: 180rpx;
  594. // flex-grow: 1;
  595. // flex-shrink: 0;
  596. overflow: hidden;
  597. .header {
  598. width: 60rpx;
  599. height: 60rpx;
  600. }
  601. }
  602. .text-end {
  603. text-align: right !important;
  604. width: 400rpx;
  605. margin-right: 20rpx;
  606. }
  607. .message-text {
  608. overflow-wrap: break-word;
  609. background-color: #f0f2f5;
  610. border-radius: 12rpx;
  611. max-width: 75%;
  612. padding: 20rpx;
  613. &.active {
  614. background: #d5e6e8;
  615. }
  616. &.card {
  617. background: #E2F2F0;
  618. color: #009688 ;
  619. margin-top: 20rpx;
  620. max-width: unset;
  621. margin-right: 0;
  622. .btn-actions {
  623. margin: 40rpx auto 20rpx auto ;
  624. text-align: center;
  625. .btn {
  626. padding: 10rpx 30rpx;
  627. background: #C8E7D8;
  628. color: #43AC57;
  629. font-size: .75em;
  630. border-radius: 10rpx;
  631. }
  632. }
  633. }
  634. &.none {
  635. padding: 10rpx 0;
  636. background-color: unset;
  637. }
  638. &.active {
  639. background: #d5e6e8;
  640. }
  641. }
  642. }
  643. .is-self {
  644. flex-direction: row-reverse;
  645. display: flex;
  646. .message-text {
  647. margin-right: 20rpx;
  648. }
  649. }
  650. .is-other {
  651. .message-text {
  652. margin-left: 20rpx;
  653. }
  654. }
  655. }
  656. &-bottom {
  657. max-height: 300rpx;
  658. border-top: 2rpx solid #EEE;
  659. background: rgba(230, 230, 230, 0.5);
  660. padding: 20rpx 40rpx;
  661. box-sizing: border-box;
  662. &-tool {
  663. margin-bottom: 40rpx;
  664. }
  665. textarea {
  666. border-radius: 10rpx;
  667. width: 100%;
  668. min-height: 80rpx;
  669. max-height: 180rpx;
  670. padding: 20rpx;
  671. box-sizing: border-box;
  672. background: #FFF;
  673. }
  674. }
  675. .popup-title {
  676. padding: 30rpx 20rpx;
  677. display: flex;
  678. justify-content: space-between;
  679. border-bottom: 2rpx solid #DDD;
  680. }
  681. .popup-content {
  682. padding: 20rpx 40rpx;
  683. color: #999;
  684. display: flex;
  685. align-content: center;
  686. justify-items: center;
  687. .iconBox {
  688. width: 40rpx;
  689. }
  690. .text {
  691. margin-left: 20rpx;
  692. &.active {
  693. color: #00897b;
  694. }
  695. }
  696. }
  697. .popup-upload {
  698. display: flex;
  699. align-items: center;
  700. justify-content: center;
  701. flex-direction: column;
  702. width: 400rpx;
  703. font-size: .75em;
  704. color: #999;
  705. padding-bottom: 40rpx;
  706. &-box {
  707. margin-top: 20rpx;
  708. width: 200rpx;
  709. height: 200rpx;
  710. text-align: center;
  711. line-height: 200rpx;
  712. border: 4rpx solid #ddd;
  713. border-radius: 8rpx;
  714. }
  715. }
  716. .popup-actions {
  717. padding: 60rpx;
  718. .default {
  719. background: #00897b;
  720. color: #DDD;
  721. font-size: .9em;
  722. }
  723. }
  724. }
  725. </style>