index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733
  1. <template>
  2. <view>
  3. <Navbar :textLeft="false" title="我的聊天" />
  4. <view class="box defaultBgc MiSans-Normal" :style="{'padding-top': navbarHeight + 'px', height: 'calc(100vh - ' + navbarHeight + 'px)'}">
  5. <view class="commonBackground"></view>
  6. <view class="box-top">
  7. <image class="box-top-image" :src="getUserAvatar(info.avatar, info.sex, info.channelID === 'system' ? true : false)" ></image>
  8. <view class="box-top-right MiSans-Normal">
  9. <view class="box-top-right-title">{{ info.name }}</view>
  10. </view>
  11. </view>
  12. <!-- newsId 需要和聊天列表里面的id对应 永远取最后列表中的最后一个就可以做到发送消息即时滚动到底部 -->
  13. <scroll-view ref="chatRef" :scroll-with-animation="scrollAnimation" :scroll-into-view="newsId" class="box-main" scroll-y="true">
  14. <view class="box-main-more" v-if="hasMore">
  15. <text @click="handleMore">查看更多</text>
  16. </view>
  17. <view v-for="(val, index) in items" :key="val.id" :id="'s'+val.id+index">
  18. <view class="box-main-time">{{ timesTampChange(+(val.timestamp.padEnd(13, '0'))) }}</view>
  19. <template v-if="val.payload?.type === 102">
  20. <view class="jobCard">
  21. <view class="jobCard-title"> {{ formatName(val.payload?.content?.positionInfo?.name) }}</view>
  22. <view
  23. v-if="!val.payload?.content?.positionInfo?.payFrom && !val.payload?.content?.positionInfo?.payTo"
  24. class="jobCard-subtitle">
  25. 薪酬待遇: 面议
  26. </view>
  27. <view
  28. v-else
  29. class="jobCard-subtitle"
  30. >
  31. 薪酬待遇:
  32. {{ val.payload?.content?.positionInfo?.payFrom ? val.payload?.content?.positionInfo?.payFrom + ' - ' : '' }}
  33. {{ val.payload?.content?.positionInfo?.payTo }}
  34. </view>
  35. <view class="jobCard-tag">
  36. <view
  37. v-for="(v, i) in (val.payload?.content?.positionInfo?.enterprise?.welfareList || [])"
  38. :key="val.message_id + v + i"
  39. style="margin: 10rpx"
  40. >
  41. <uni-tag
  42. :text="v"
  43. type="success"
  44. />
  45. </view>
  46. </view>
  47. <view class="jobCard-divider"></view>
  48. <view class="jobCard-subtitle text-right">
  49. <v-avatar size="24">
  50. <v-img :src="val.payload?.content?.positionInfo?.contact?.avatar"></v-img>
  51. </v-avatar>
  52. {{ val.payload?.content?.positionInfo?.contact?.name }}
  53. {{ val.payload?.content?.positionInfo?.contact?.postNameCn }}
  54. <!-- {{ formatName(val.payload?.content?.positionInfo?.enterprise?.anotherName || val.payload?.content?.positionInfo?.enterprise?.name) }} -->
  55. </view>
  56. <div class="jobCard-subtitle text-right">
  57. 地址:{{ val.payload?.content?.positionInfo?.address }}
  58. </div>
  59. </view>
  60. </template>
  61. <!-- 面试邀请 -->
  62. <template v-if="val.payload?.type === 101">
  63. <view class="jobCard">
  64. <view class="font-size-15 ss-m-b-20">面试邀请</view>
  65. <view class="jobCard-title"> {{ formatName(val.payload?.content?.positionInfo?.data?.name) }}</view>
  66. <view
  67. v-if="!val.payload?.content?.positionInfo?.data?.payFrom && !val.payload?.content?.positionInfo?.data?.payTo"
  68. class="jobCard-subtitle">
  69. 薪酬待遇: 面议
  70. </view>
  71. <view v-else class="jobCard-subtitle">
  72. 薪酬待遇:
  73. {{ val.payload?.content?.positionInfo?.data?.payFrom ? val.payload?.content?.positionInfo?.data?.payFrom + ' - ' : '' }}
  74. {{ val.payload?.content?.positionInfo?.data?.payTo }}
  75. </view>
  76. <view class="font-size-15">面试时间: {{ timesTampChange(val.payload?.content?.time) }}</view>
  77. <view class="font-size-15">面试地点: {{ val.payload?.content?.address }}</view>
  78. <view class="font-size-15">联系电话: {{ val.payload?.content?.invitePhone }}</view>
  79. </view>
  80. </template>
  81. <view :class="['message-view_item', val.from_uid === IM.uid ? 'is-self' : 'is-other']">
  82. <view class="image">
  83. <image
  84. :data-target="getUserAvatar(info.avatar, info.sex, info.channelID === 'system' ? true : false)"
  85. class="header"
  86. :src="(
  87. val.from_uid === IM.uid ?
  88. getUserAvatar(useUserStore.userInfo?.avatar, useUserStore.userInfo?.sex) :
  89. getUserAvatar(info.avatar, info.sex, info.channelID === 'system' ? true : false)
  90. )"
  91. ></image>
  92. </view>
  93. <!-- 显示沟通职位 -->
  94. <template v-if="val.payload?.type === 102">
  95. <view
  96. class="message-text"
  97. :class="val.from_uid === IM.uid ? 'active' : ''"
  98. :style="{'border-radius': val.from_uid === IM.uid ? '20rpx 20rpx 9rpx 20rpx' : '20rpx 20rpx 20rpx 9rpx'}"
  99. >
  100. {{ val.payload?.content.text }}
  101. </view>
  102. </template>
  103. <!-- 发起面试邀请 -->
  104. <view class="message-text none" v-else-if="val.payload?.type === 101">
  105. <uni-tag text="发起了面试邀请" custom-style="background-color: #00B760; border-color: #00B760; color: #fff;" />
  106. </view>
  107. <view class="message-text none" v-else-if="val.payload?.type === 103">
  108. <uni-tag text="拒绝了面试邀请" type="error" />
  109. </view>
  110. <view class="message-text none" v-else-if="val.payload?.type === 104">
  111. <uni-tag text="接受了面试邀请" custom-style="background-color: #00B760; border-color: #00B760; color: #fff;" />
  112. </view>
  113. <view v-else-if="val.payload.type === 105" class="text-end">
  114. <uni-tag
  115. v-if="val.from_uid === IM.uid"
  116. :text="val.payload.content?.type === 1 ? '附件简历已发送' : '简历请求已发送'"
  117. custom-style="background-color: #00B760; border-color: #00B760; color: #fff;"
  118. />
  119. <view
  120. v-if="val.payload.content?.type !== 2 || val.from_uid !== IM.uid"
  121. class="message-text card"
  122. >
  123. <view class="text-left">
  124. <text v-if="val.payload.content?.type === 1">{{
  125. val.payload.content?.query?.title || '附件简历' }}
  126. </text>
  127. <text v-if="val.payload.content?.type === 2">
  128. 我想要一份您的简历,您是否同意
  129. </text>
  130. </view>
  131. <view class="btn-actions">
  132. <text class="btn" v-if="val.payload.content?.type === 1" @tap="handlePreview(val.payload)">点击预览附件简历</text>
  133. </view>
  134. </view>
  135. </view>
  136. <view v-else-if="val.payload.type === -1" class="message-text" :class="{ active: val.from_uid === IM.uid}">
  137. {{ val.payload?.content?.text }}
  138. </view>
  139. <view
  140. v-else
  141. class="message-text"
  142. :class="{ active: val.from_uid === IM.uid}"
  143. :style="{'border-radius': val.from_uid === IM.uid ? '20rpx 20rpx 9rpx 20rpx' : '20rpx 20rpx 20rpx 9rpx'}">
  144. {{ val.payload?.content }}
  145. </view>
  146. </view>
  147. </view>
  148. </scroll-view>
  149. <view class="box-bottom" v-if="channelItem?.channelID !== 'system'">
  150. <view class="box-bottom-tool" style="display: flex; justify-content: start;">
  151. <text class="toolBtn" @tap="handleFindResume">求简历</text>
  152. <text class="toolBtn ss-m-l-30" @tap="handleInviteInterview">面试邀约</text>
  153. </view>
  154. <view class="d-flex align-end textBox" v-if="channelItem?.channelID !== 'system'">
  155. <textarea
  156. v-model="inputValue"
  157. :cursor-spacing="25"
  158. :show-confirm-bar="false"
  159. :disable-default-padding="true"
  160. confirm-type="send"
  161. auto-height
  162. @confirm="handleSend"
  163. />
  164. <text class="submitBtn" @tap="handleSend">发 送</text>
  165. </view>
  166. </view>
  167. <!-- 求简历 -->
  168. <uni-popup ref="requestPopup" background-color="#fff" type="bottom">
  169. <view style="background-color: #fff; height: 50vh; padding: 30px 20px;">
  170. <uni-forms ref="requestFormRef" :modelValue="formData" :rules="formRules" validateTrigger="bind" label-width="80px" label-align="right" label-position="left">
  171. <uni-forms-item name="jobId" label="招聘职位" required>
  172. <view style="max-width: calc(100vw - 120px);">
  173. <uni-data-select v-model="formData.jobId" :localdata="jobList" @change="handleChangeJob" placeholder="请选择要求简历的职位"></uni-data-select>
  174. </view>
  175. </uni-forms-item>
  176. </uni-forms>
  177. <view style="margin-top: 50px;"></view>
  178. <button class="send-button" @tap="handleRequestSubmit">提 交</button>
  179. </view>
  180. </uni-popup>
  181. </view>
  182. </view>
  183. </template>
  184. <script setup>
  185. import { ref, watch, onMounted, computed, unref } from 'vue'
  186. import { onLoad } from '@dcloudio/uni-app'
  187. import { useIMStore } from '@/store/im'
  188. import { userStore } from '@/store/user'
  189. import { initConnect, send, initChart, getMoreMessages, toChannel } from '@/hooks/useIM'
  190. import { timesTampChange } from '@/utils/date'
  191. import { getUserAvatar } from '@/utils/avatar'
  192. import { formatName } from '@/utils/getText'
  193. import { preview } from '@/utils/preview'
  194. import { getAccessToken } from '@/utils/request'
  195. import { showAuthModal } from '@/hooks/useModal'
  196. import { getJobAdvertisedList } from '@/api/new/position'
  197. import Navbar from '@/components/Navbar'
  198. const navbarHeight = ref(uni.getStorageSync('navbarHeight'))
  199. const useUserStore = userStore()
  200. const userInfo = computed(() => useUserStore?.userInfo)
  201. const IM = useIMStore()
  202. const info = ref({})
  203. const chatRef = ref()
  204. const items = ref([])
  205. const channelItem = ref(null)
  206. const hasMore = ref(false)
  207. const pageSize = ref(1)
  208. const inputValue = ref('')
  209. const newsId = ref('') // newsId 需要和聊天列表里面的id对应 永远取最后列表中的最后一个就可以做到发送消息即时滚动到底部
  210. const scrollAnimation = ref(false)
  211. const isEmployment = ref('-1')
  212. onMounted(() => {
  213. setTimeout(() => {
  214. scrollAnimation.value = true
  215. }, 1500)
  216. })
  217. const {
  218. conversationList,
  219. updateUnreadCount,
  220. resetUnread
  221. } = initConnect(async (successful) => {
  222. if (!successful) {
  223. uni.showToast({
  224. title: '发送失败',
  225. icon: 'none',
  226. mask: true,
  227. })
  228. return
  229. }
  230. inputValue.value = ''
  231. // // 发送成功
  232. const { list } = await getMoreMessages(1, channelItem.value)
  233. items.value = list.value
  234. })
  235. watch(
  236. () => conversationList.value,
  237. async (val) => {
  238. if (!channelItem.value) {
  239. return
  240. }
  241. const { list } = await getMoreMessages(1, channelItem.value)
  242. items.value = list.value
  243. setScrollBottom()
  244. // 清除未读消息
  245. resetUnread(channelItem.value, userInfo.value?.enterpriseId)
  246. },
  247. {
  248. deep: true,
  249. immediate: true
  250. }
  251. )
  252. async function init(userId, enterpriseId) {
  253. const { channel, list, more } = await initChart(userId, enterpriseId)
  254. hasMore.value = more
  255. channelItem.value = channel.value
  256. items.value = list.value
  257. setScrollBottom()
  258. }
  259. const setScrollBottom = () => {
  260. if (items.value?.length) {
  261. const lastOne = items.value[items.value.length-1]
  262. const index = items.value.length-1
  263. newsId.value = 's' + lastOne.id + index // newsId 需要和聊天列表里面的id对应 永远取最后列表中的最后一个就可以做到发送消息即时滚动到底部
  264. }
  265. }
  266. function handleSend () {
  267. if (!inputValue.value) {
  268. uni.showToast({ title: '不能发送空白信息', icon: 'none' })
  269. return
  270. }
  271. send(inputValue.value, channelItem.value)
  272. }
  273. // 职位列表
  274. const jobNum = ref(0)
  275. const jobList = ref([])
  276. const getJobList = async () => {
  277. const { data } = await getJobAdvertisedList({ pageNo: 1, pageSize: 10, hasExpiredData: false, status: 0 })
  278. jobNum.value = data?.total || 0
  279. jobList.value = data?.list ? data?.list.map(e => {
  280. return { text: formatName(e.name), value: e.id, ...e }
  281. }) : []
  282. }
  283. // 求简历
  284. const requestPopup = ref()
  285. const requestFormRef = ref()
  286. const formData = ref({
  287. jobId: null
  288. })
  289. const formRules = {
  290. jobId: {
  291. rules: [{ required: true, errorMessage: '请选择要求简历的职位' }]
  292. }
  293. }
  294. const handleFindResume = async () => {
  295. if (!getAccessToken()) {
  296. showAuthModal()
  297. return
  298. }
  299. // 企业必须有招聘中的职位才能发起面试邀请
  300. if (jobNum.value === 0) {
  301. uni.showToast({
  302. title: '请先发布招聘职位',
  303. icon: 'none',
  304. duration: 2000
  305. })
  306. return
  307. }
  308. requestPopup.value.open()
  309. }
  310. const handleChangeJob = (e) => {
  311. const job = jobList.value.find(item => item.value === e)
  312. if (!job) return
  313. formData.value.positionInfo = job
  314. }
  315. const handleRequestSubmit = async () => {
  316. const valid = await unref(requestFormRef).validate()
  317. if (!valid) return
  318. const text = {
  319. remark: '求简历',
  320. query: {
  321. src: '',
  322. title: '',
  323. id: '',
  324. positionInfo: formData.value.positionInfo
  325. },
  326. type: 2
  327. }
  328. send (JSON.stringify(text), channelItem.value, 105)
  329. formData.value = { jobId: null }
  330. requestPopup.value.close()
  331. }
  332. // 邀约面试
  333. const handleInviteInterview = () => {
  334. if (!getAccessToken()) {
  335. showAuthModal()
  336. return
  337. }
  338. // 企业必须有招聘中的职位才能发起面试邀请
  339. if (jobNum.value === 0) {
  340. uni.showToast({
  341. title: '请先发布招聘职位',
  342. icon: 'none',
  343. duration: 2000
  344. })
  345. return
  346. }
  347. const chartData = {
  348. ...channelItem.value,
  349. id: info.value.id
  350. }
  351. uni.navigateTo({
  352. url: `/pagesB/InviteInterview/index?chartData=${encodeURIComponent(JSON.stringify(chartData))}`
  353. })
  354. }
  355. // 预览简历
  356. function handlePreview (payload) {
  357. if (!payload?.content?.query?.src) {
  358. uni.showToast({ title: '简历地址不存在', icon: 'none' })
  359. return
  360. }
  361. preview(payload.content.query.src)
  362. }
  363. // 查看更多
  364. async function handleMore () {
  365. try {
  366. uni.showLoading({
  367. title: '加载中...'
  368. })
  369. pageSize.value++
  370. const { list, more } = await getMoreMessages(pageSize.value, channelItem.value)
  371. items.value.unshift(...list.value)
  372. hasMore.value = more
  373. } finally {
  374. uni.hideLoading()
  375. }
  376. }
  377. onLoad(async (options) => {
  378. info.value = Object.keys(options).reduce((r, k) => {
  379. r[k] = decodeURIComponent(options[k])
  380. return r
  381. }, {})
  382. isEmployment.value = info.value.isEmployment
  383. channelItem.value = toChannel(info.value.channelID, info.value.channelType)
  384. if (channelItem.value.channelID === 'system') {
  385. const { list, more } = await getMoreMessages(1, channelItem.value)
  386. hasMore.value = more
  387. items.value = list.value
  388. setScrollBottom()
  389. // 清除未读消息
  390. resetUnread(channelItem.value, userInfo.value?.enterpriseId)
  391. // 更新未读消息
  392. updateUnreadCount()
  393. return
  394. }
  395. await init(info.value.id, info.value.enterpriseId)
  396. await getJobList() // 获取招聘中的职位
  397. // 清除未读消息
  398. resetUnread(channelItem.value, userInfo.value?.enterpriseId)
  399. // 更新未读消息
  400. updateUnreadCount()
  401. })
  402. </script>
  403. <style lang="scss" scoped>
  404. .text-left {
  405. text-align: left !important;
  406. }
  407. .text-right {
  408. text-align: right !important;
  409. }
  410. .box {
  411. width: 100%;
  412. display: flex;
  413. flex-direction: column;
  414. &-top {
  415. z-index: 1;
  416. padding: 30rpx 30rpx 0 30rpx;
  417. display: flex;
  418. justify-content: center;
  419. &-image {
  420. width: 80rpx;
  421. height: 80rpx;
  422. border-radius: 50%;
  423. margin-right: 30rpx;
  424. }
  425. &-right {
  426. flex: 1;
  427. display: flex;
  428. align-items: center;
  429. &-title {
  430. box-sizing: border-box;
  431. width: 100%;
  432. overflow: hidden;
  433. white-space: nowrap;
  434. text-overflow: ellipsis;
  435. margin-bottom: 10rpx;
  436. }
  437. &-subText {
  438. font-size: .85em;
  439. color: #999;
  440. .gun {
  441. padding: 0 10rpx;
  442. }
  443. }
  444. }
  445. &-content {
  446. padding: 20rpx 50rpx;
  447. padding-bottom: 20rpx;
  448. border-bottom: 2rpx solid #eee;
  449. .color-666 {
  450. color: #666;
  451. }
  452. .font-weight-bold {
  453. font-weight: bold;
  454. }
  455. .color-primary {
  456. color: #00B760;
  457. }
  458. .ml-3 {
  459. margin-left: 40rpx;
  460. }
  461. .mt-1 {
  462. margin-top: 12rpx;
  463. }
  464. .font-size-14 {
  465. font-size: 24rpx;
  466. }
  467. .py-1 {
  468. padding: 4rpx 0;
  469. }
  470. .tipsText {
  471. font-size: .75em;
  472. color: #999;
  473. }
  474. &-t {
  475. display: flex;
  476. justify-content: space-between;
  477. }
  478. .btnBox {
  479. display: flex;
  480. padding: 20rpx 60rpx;
  481. justify-content: space-around;
  482. }
  483. }
  484. }
  485. &-main {
  486. flex: 1;
  487. height: 0;
  488. padding: 40rpx;
  489. // overflow-y: auto;
  490. box-sizing: border-box;
  491. &-more {
  492. display: flex;
  493. justify-content: center;
  494. align-items: center;
  495. color: #24bc3e;
  496. font-size: .9em;
  497. padding: 20rpx 0;
  498. }
  499. &-time {
  500. user-select: none;
  501. position: relative;
  502. top: 16rpx;
  503. margin: 40rpx 0;
  504. text-align: center;
  505. max-height: 40rpx;
  506. text-align: center;
  507. font-weight: 400;
  508. font-size: .85em;
  509. color: #999;
  510. }
  511. .jobCard {
  512. padding: 30rpx;
  513. background: #fbfbfb;
  514. margin: 20rpx 5px;
  515. max-width: unset;
  516. border-radius: 20rpx;
  517. box-shadow: 1px 2px 12px rgba(0, 0, 0, 0.1);
  518. &-title {
  519. font-weight: 600;
  520. font-size: 36rpx;
  521. margin-bottom: 30rpx;
  522. }
  523. &-subtitle {
  524. padding: 10rpx 0;
  525. }
  526. &-tag {
  527. display: flex;
  528. flex-wrap: wrap;
  529. }
  530. }
  531. .message-view_item {
  532. display: flex;
  533. flex-direction: row;
  534. align-items: flex-start;
  535. margin: 16rpx 0;
  536. position: relative;
  537. .image {
  538. width: 60rpx;
  539. height: 60rpx;
  540. border-radius: 180rpx;
  541. overflow: hidden;
  542. .header {
  543. width: 60rpx;
  544. height: 60rpx;
  545. }
  546. }
  547. .text-end {
  548. text-align: right !important;
  549. width: 400rpx;
  550. margin-right: 20rpx;
  551. }
  552. .message-text {
  553. overflow-wrap: break-word;
  554. background-color: #00B760;
  555. color: #fff;
  556. border-radius: 12rpx;
  557. max-width: 75%;
  558. padding: 20rpx;
  559. font-family: MiSans-Normal;
  560. &.active {
  561. color: #fff;
  562. background: #00B760;
  563. }
  564. &.card {
  565. // background: #E2F2F0;
  566. background: #fff;
  567. color: #00B760 ;
  568. margin-top: 20rpx;
  569. max-width: unset;
  570. margin-right: 0;
  571. box-shadow: 1px 2px 12px rgba(0, 0, 0, 0.1);
  572. .btn-actions {
  573. margin: 40rpx auto 20rpx auto ;
  574. text-align: center;
  575. .btn {
  576. padding: 10rpx 30rpx;
  577. background: #C8E7D8;
  578. color: #43AC57;
  579. font-size: .75em;
  580. border-radius: 10rpx;
  581. }
  582. }
  583. }
  584. &.none {
  585. padding: 10rpx 0;
  586. background-color: unset;
  587. }
  588. &.active {
  589. background: #00B760;
  590. color: #fff;
  591. }
  592. }
  593. }
  594. .is-self {
  595. flex-direction: row-reverse;
  596. display: flex;
  597. .message-text {
  598. margin-right: 20rpx;
  599. }
  600. }
  601. .is-other {
  602. .message-text {
  603. margin-left: 20rpx;
  604. }
  605. }
  606. }
  607. &-bottom {
  608. max-height: 300rpx;
  609. border-top: 2rpx solid #EEE;
  610. background: #fff;
  611. padding: 20rpx 40rpx 40rpx;
  612. box-sizing: border-box;
  613. &-tool {
  614. margin-bottom: 30rpx;
  615. .toolBtn {
  616. padding: 12rpx 20rpx;
  617. font-size: 24rpx;
  618. background: #00B760;
  619. color: #FFF;
  620. border-radius: 10rpx;
  621. }
  622. }
  623. .textBox {
  624. align-items: flex-end;
  625. }
  626. textarea {
  627. border-radius: 10rpx;
  628. width: 100%;
  629. min-height: 80rpx;
  630. max-height: 180rpx;
  631. padding: 20rpx;
  632. box-sizing: border-box;
  633. background: #f5f5f5;
  634. }
  635. .submitBtn {
  636. width: 140rpx;
  637. line-height: 80rpx;
  638. height: 80rpx;
  639. font-size: 28rpx;
  640. background: #00B760;
  641. color: #FFF;
  642. margin-left: 20rpx;
  643. text-align: center;
  644. border-radius: 10rpx;
  645. }
  646. }
  647. .popup-title {
  648. padding: 30rpx 20rpx;
  649. display: flex;
  650. justify-content: space-between;
  651. border-bottom: 2rpx solid #DDD;
  652. }
  653. .popup-content {
  654. padding: 20rpx 40rpx;
  655. color: #999;
  656. display: flex;
  657. align-content: center;
  658. justify-items: center;
  659. .iconBox {
  660. width: 40rpx;
  661. }
  662. .text {
  663. margin-left: 20rpx;
  664. &.active {
  665. color: #00B760;
  666. }
  667. }
  668. }
  669. .popup-upload {
  670. // display: flex;
  671. // align-items: center;
  672. // justify-content: center;
  673. // flex-direction: column;
  674. // width: 70%;
  675. width: 80vw;
  676. font-size: .75em;
  677. color: #999;
  678. padding: 40rpx;
  679. &-box {
  680. width: 200rpx;
  681. height: 200rpx;
  682. text-align: center;
  683. line-height: 200rpx;
  684. border: 4rpx solid #ddd;
  685. border-radius: 8rpx;
  686. margin: 0 auto;
  687. }
  688. }
  689. .popup-actions {
  690. padding: 60rpx;
  691. .default {
  692. background: #00B760;
  693. color: #DDD;
  694. font-size: .9em;
  695. }
  696. }
  697. }
  698. </style>