index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743
  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}" style="border-radius: 20rpx 20rpx 20rpx 9rpx;">
  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. :deep {
  411. .uni-select__selector-item {
  412. display: block !important;
  413. text-align: left !important;
  414. max-width: 100% !important;
  415. white-space: nowrap !important;
  416. text-overflow: ellipsis !important;
  417. overflow: hidden !important;
  418. }
  419. }
  420. .box {
  421. width: 100%;
  422. display: flex;
  423. flex-direction: column;
  424. &-top {
  425. z-index: 1;
  426. padding: 30rpx 30rpx 0 30rpx;
  427. display: flex;
  428. justify-content: center;
  429. &-image {
  430. width: 80rpx;
  431. height: 80rpx;
  432. border-radius: 50%;
  433. margin-right: 30rpx;
  434. }
  435. &-right {
  436. flex: 1;
  437. display: flex;
  438. align-items: center;
  439. &-title {
  440. box-sizing: border-box;
  441. width: 100%;
  442. overflow: hidden;
  443. white-space: nowrap;
  444. text-overflow: ellipsis;
  445. margin-bottom: 10rpx;
  446. }
  447. &-subText {
  448. font-size: .85em;
  449. color: #999;
  450. .gun {
  451. padding: 0 10rpx;
  452. }
  453. }
  454. }
  455. &-content {
  456. padding: 20rpx 50rpx;
  457. padding-bottom: 20rpx;
  458. border-bottom: 2rpx solid #eee;
  459. .color-666 {
  460. color: #666;
  461. }
  462. .font-weight-bold {
  463. font-weight: bold;
  464. }
  465. .color-primary {
  466. color: #00B760;
  467. }
  468. .ml-3 {
  469. margin-left: 40rpx;
  470. }
  471. .mt-1 {
  472. margin-top: 12rpx;
  473. }
  474. .font-size-14 {
  475. font-size: 24rpx;
  476. }
  477. .py-1 {
  478. padding: 4rpx 0;
  479. }
  480. .tipsText {
  481. font-size: .75em;
  482. color: #999;
  483. }
  484. &-t {
  485. display: flex;
  486. justify-content: space-between;
  487. }
  488. .btnBox {
  489. display: flex;
  490. padding: 20rpx 60rpx;
  491. justify-content: space-around;
  492. }
  493. }
  494. }
  495. &-main {
  496. flex: 1;
  497. height: 0;
  498. padding: 40rpx;
  499. // overflow-y: auto;
  500. box-sizing: border-box;
  501. &-more {
  502. display: flex;
  503. justify-content: center;
  504. align-items: center;
  505. color: #24bc3e;
  506. font-size: .9em;
  507. padding: 20rpx 0;
  508. }
  509. &-time {
  510. user-select: none;
  511. position: relative;
  512. top: 16rpx;
  513. margin: 40rpx 0;
  514. text-align: center;
  515. max-height: 40rpx;
  516. text-align: center;
  517. font-weight: 400;
  518. font-size: .85em;
  519. color: #999;
  520. }
  521. .jobCard {
  522. padding: 30rpx;
  523. background: #fbfbfb;
  524. margin: 20rpx 5px;
  525. max-width: unset;
  526. border-radius: 20rpx;
  527. box-shadow: 1px 2px 12px rgba(0, 0, 0, 0.1);
  528. &-title {
  529. font-weight: 600;
  530. font-size: 36rpx;
  531. margin-bottom: 30rpx;
  532. }
  533. &-subtitle {
  534. padding: 10rpx 0;
  535. }
  536. &-tag {
  537. display: flex;
  538. flex-wrap: wrap;
  539. }
  540. }
  541. .message-view_item {
  542. display: flex;
  543. flex-direction: row;
  544. align-items: flex-end;
  545. margin: 16rpx 0;
  546. position: relative;
  547. .image {
  548. width: 60rpx;
  549. height: 60rpx;
  550. border-radius: 180rpx;
  551. overflow: hidden;
  552. .header {
  553. width: 60rpx;
  554. height: 60rpx;
  555. }
  556. }
  557. .text-end {
  558. text-align: right !important;
  559. width: 400rpx;
  560. margin-right: 20rpx;
  561. }
  562. .message-text {
  563. overflow-wrap: break-word;
  564. background-color: #00B760;
  565. color: #fff;
  566. border-radius: 20rpx 20rpx 20rpx 9rpx;
  567. max-width: 75%;
  568. padding: 20rpx;
  569. font-family: MiSans-Normal;
  570. &.active {
  571. color: #fff;
  572. background: #00B760;
  573. }
  574. &.card {
  575. // background: #E2F2F0;
  576. background: #fff;
  577. color: #00B760 ;
  578. margin-top: 20rpx;
  579. max-width: unset;
  580. margin-right: 0;
  581. box-shadow: 1px 2px 12px rgba(0, 0, 0, 0.1);
  582. .btn-actions {
  583. margin: 40rpx auto 20rpx auto ;
  584. text-align: center;
  585. .btn {
  586. padding: 10rpx 30rpx;
  587. background: #C8E7D8;
  588. color: #43AC57;
  589. font-size: .75em;
  590. border-radius: 10rpx;
  591. }
  592. }
  593. }
  594. &.none {
  595. padding: 10rpx 0;
  596. background-color: unset;
  597. }
  598. &.active {
  599. background: #00B760;
  600. color: #fff;
  601. }
  602. }
  603. }
  604. .is-self {
  605. flex-direction: row-reverse;
  606. display: flex;
  607. .message-text {
  608. margin-right: 20rpx;
  609. }
  610. }
  611. .is-other {
  612. .message-text {
  613. margin-left: 20rpx;
  614. }
  615. }
  616. }
  617. &-bottom {
  618. max-height: 300rpx;
  619. border-top: 2rpx solid #EEE;
  620. background: #fff;
  621. padding: 20rpx 40rpx 40rpx;
  622. box-sizing: border-box;
  623. &-tool {
  624. margin-bottom: 30rpx;
  625. .toolBtn {
  626. padding: 12rpx 20rpx;
  627. font-size: 24rpx;
  628. background: #00B760;
  629. color: #FFF;
  630. border-radius: 10rpx;
  631. }
  632. }
  633. .textBox {
  634. align-items: flex-end;
  635. }
  636. textarea {
  637. border-radius: 10rpx;
  638. width: 100%;
  639. min-height: 80rpx;
  640. max-height: 180rpx;
  641. padding: 20rpx;
  642. box-sizing: border-box;
  643. background: #f5f5f5;
  644. }
  645. .submitBtn {
  646. width: 140rpx;
  647. line-height: 80rpx;
  648. height: 80rpx;
  649. font-size: 28rpx;
  650. background: #00B760;
  651. color: #FFF;
  652. margin-left: 20rpx;
  653. text-align: center;
  654. border-radius: 10rpx;
  655. }
  656. }
  657. .popup-title {
  658. padding: 30rpx 20rpx;
  659. display: flex;
  660. justify-content: space-between;
  661. border-bottom: 2rpx solid #DDD;
  662. }
  663. .popup-content {
  664. padding: 20rpx 40rpx;
  665. color: #999;
  666. display: flex;
  667. align-content: center;
  668. justify-items: center;
  669. .iconBox {
  670. width: 40rpx;
  671. }
  672. .text {
  673. margin-left: 20rpx;
  674. &.active {
  675. color: #00B760;
  676. }
  677. }
  678. }
  679. .popup-upload {
  680. // display: flex;
  681. // align-items: center;
  682. // justify-content: center;
  683. // flex-direction: column;
  684. // width: 70%;
  685. width: 80vw;
  686. font-size: .75em;
  687. color: #999;
  688. padding: 40rpx;
  689. &-box {
  690. width: 200rpx;
  691. height: 200rpx;
  692. text-align: center;
  693. line-height: 200rpx;
  694. border: 4rpx solid #ddd;
  695. border-radius: 8rpx;
  696. margin: 0 auto;
  697. }
  698. }
  699. .popup-actions {
  700. padding: 60rpx;
  701. .default {
  702. background: #00B760;
  703. color: #DDD;
  704. font-size: .9em;
  705. }
  706. }
  707. }
  708. </style>