index.vue 20 KB

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