question.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795
  1. <template>
  2. <view class="question-wrap">
  3. <template v-if="hasAuth">
  4. <view class="question-top" :class="{'noAuth':!(isUserResearcher||userInfo.status&&userAuth)}">
  5. <view @click="showPopup" v-if="isUserResearcher||userInfo.status&&userAuth"
  6. style="display:flex;align-items: center;margin-left:30rpx;">
  7. <image src="../../static/question/select.png" mode="widthFix" class="menu-icon"/>
  8. <text style="color:#E3B377;font-size:28rpx;">筛选</text>
  9. </view>
  10. <van-popup :show="isPopupShow" position="left" :close-on-click-overlay="true"
  11. @close="isPopupShow = false"
  12. custom-style="height: 100%;width:50%;"
  13. @touchmove.stop.prevent>
  14. <view class="pop-wrap">
  15. <view class="pop-option-list">
  16. <van-collapse :value="activeName" @change="changeSelecOption" accordion :border="false">
  17. <van-collapse-item :border="false" :title="item.research_group_name" :name="index" v-for="(item, index) in optionList"
  18. :key="index">
  19. <view class="option-btn-wrap">
  20. <view class="option-btn"
  21. v-for=" i in item.children" :key="i.research_group_id"
  22. @click="handleOptionClick(i)"
  23. :class="{'active':selectName===i.research_group_name,'full':i.research_group_name.length>4}"
  24. >
  25. {{ i.research_group_name }}
  26. </view>
  27. </view>
  28. </van-collapse-item>
  29. </van-collapse>
  30. </view>
  31. </view>
  32. </van-popup>
  33. </view>
  34. <view class="report-empty-box" v-if="questionList.length==0">
  35. <image :src="globalImgUrls.activityNoAuth" mode="widthFix" style="width:100%;"/>
  36. <view>暂无提问<text v-if="userInfo.is_inner!==1">,快试试提问功能吧</text></view>
  37. </view>
  38. <view class="question-list" :class="showAudioPop?showAudioBigPop?'list-bot3':'list-bot2':'list-bot1'">
  39. <view class="question-item" v-for="item in questionList" :key="item.community_question_id">
  40. <text class="item-time">提问时间:{{ item.create_time }}</text>
  41. <view class="question-info">
  42. <view style="flex:1;" class="question-title">
  43. <text class="item-label">{{item.variety_tag_name}}</text>
  44. <!-- <text class="item-title"> -->{{ item.question_content }}<!-- </text> -->
  45. </view>
  46. <view class="item-answer">
  47. <!-- 改为背景音频播放 -->
  48. <view class="answer" @click.stop="handlePlayAudioByBg(item)">
  49. <image class="music-img" :src="item.community_question_id==curVoiceId&&!curAudioPaused?playImgSrc:pauseImgSrc" mode="widthFix"/>
  50. <text>{{ formatAudioTime(item.answer.audioTime) }}</text>
  51. </view>
  52. <!-- <view class="answer" @click.stop="handleAudio(item)">
  53. <template v-if="!item.loading">
  54. <image class="music-img" :src="item.answer.isplay?playImgSrc:pauseImgSrc" mode="widthFix"/>
  55. <template v-if="item.answer.isplay || item.answer.ispause">
  56. <text>{{
  57. item.answer.audioTime - currentAudioMsg.audioCurrentTime>0?
  58. dayjs(item.answer.audioTime - currentAudioMsg.audioCurrentTime).format('mm:ss')
  59. :'00:00'}}
  60. </text>
  61. </template>
  62. <template v-else>
  63. <text>{{ dayjs(item.answer.audioTime).format('mm:ss') }}</text>
  64. </template>
  65. </template>
  66. <template v-else>
  67. <image class="load-img" src="../../static/loading.png" mode="aspectFill" />
  68. <text>{{ dayjs(item.answer.audioTime).format('mm:ss') }}</text>
  69. </template>
  70. </view> -->
  71. </view>
  72. </view>
  73. <!-- 评论区域 -->
  74. <questionComment :item="item" @show_comment="showCommentHandle"/>
  75. </view>
  76. </view>
  77. <template v-if="isUserResearcher">
  78. <view class="btn-wrap" :class="showAudioPop?showAudioBigPop?'btn-bot3':'btn-bot2':'btn-bot1'">
  79. <view class="btn topage-button" @click="toPage('question')" v-if="userInfo.status&&userAuth">
  80. <image
  81. src="../../static/question/askquestion.png"
  82. mode="scaleToFill"
  83. style="width:34rpx;height:34rpx;"
  84. />
  85. <text>我要提问</text>
  86. </view>
  87. <view class="btn topage-button" @click="toPage('ask')" v-if="userInfo.status&&userAuth">
  88. <view>待回答<text v-if="isUserResearcher" style="margin-left:5rpx;">{{'('+distributeNum+')'}}</text></view>
  89. </view>
  90. </view>
  91. </template>
  92. <template v-else>
  93. <view class="topage-btn topage-button" :class="showAudioPop?showAudioBigPop?'btn-bot3':'btn-bot2':'btn-bot1'" @click="toPage('question')" v-if="userInfo.status&&userAuth">
  94. <image
  95. src="../../static/question/askquestion.png"
  96. mode="scaleToFill"
  97. style="width:34rpx;height:34rpx;"
  98. />
  99. <text>我要提问</text>
  100. </view>
  101. </template>
  102. <!-- <view class="topage-btn" @click="toPage" v-if="isUserResearcher||userInfo.status&&userAuth">
  103. <image
  104. v-if="!isUserResearcher"
  105. src="../../static/question/askquestion.png"
  106. mode="scaleToFill"
  107. style="width:34rpx;height:34rpx;"
  108. />
  109. {{ isUserResearcher ? '待回答' : '我要提问' }} <text v-if="isUserResearcher" style="margin-left:5rpx;">{{'('+distributeNum+')'}}</text>
  110. </view> -->
  111. </template>
  112. <!-- 没有权限 -->
  113. <template v-else>
  114. <view class="noAuth-wrap">
  115. <image class="img" :src="globalImgUrls.activityNoAuth" mode="widthFix"></image>
  116. <view class="auth-text">您暂无权限查看问答社区</view>
  117. <view class="auth-text" v-if="noAuthInfo.type==='contact'">若想查看可以联系对口销售</view>
  118. <view class="auth-text" v-else>若想查看可以申请开通</view>
  119. <view class="auth-text" v-if="noAuthInfo.type==='contact'">
  120. {{noAuthInfo.name||''}}:<text @click="handleCallPhone(noAuthInfo.mobile+'')">{{noAuthInfo.mobile||''}}</text>
  121. </view>
  122. <view class="global-btn-yellow-change btn" @click="handleGoApply" v-else>立即申请</view>
  123. </view>
  124. </template>
  125. <!-- 弹窗 -->
  126. <van-popup :show="pupData.show" round @close="pupData.show = false" closeable :close-on-click-overlay="false">
  127. <view class="global-pup">
  128. <view class="content">
  129. <rich-text style="flex:none;margin-bottom:20rpx;" :nodes="pupData.content"></rich-text>
  130. <view class="contact" v-if="pupData.type == 'contact'">
  131. {{pupData.saleName||''}}:<text @click="handleCallPhone(pupData.mobile)">{{pupData.mobile||''}}</text>
  132. </view>
  133. <view class="apply" v-else-if="pupData.type == 'apply'">
  134. <view @click="handleApply">立即申请</view>
  135. </view>
  136. </view>
  137. </view>
  138. </van-popup>
  139. <!-- 音频悬浮 -->
  140. <view v-if="showPage">
  141. <audioBox v-if="showAudioPop"/>
  142. </view>
  143. <!-- 评论弹窗 -->
  144. <van-action-sheet
  145. :show="isShowComment"
  146. title="问答评论"
  147. @close="closeCommentHandle"
  148. @clickOverlay="isShowComment=false"
  149. z-index="99999"
  150. >
  151. <view class="comment-cont" @touchmove.stop>
  152. <view class="commment-top">
  153. <text class="title">{{comment_obj.title}} {{comment_obj.total}}</text>
  154. <view class="comment-top-right">
  155. <text :class="select_comment_type === 1 && 'act'" @click="changeCommentTypeHandle(1)">全部</text>
  156. <text :class="select_comment_type === 2 && 'act'" @click="changeCommentTypeHandle(2)">我的</text>
  157. </view>
  158. </view>
  159. <scroll-view class="comment-list-cont" v-if="comment_obj.total" scroll-y>
  160. <view class="comment-list-item" v-for="(item,index) in commentList" :key="item.community_question_comment_id">
  161. <view class="flex comment">
  162. <image class="avatar" :src="item.qa_avatar_url" mode="aspectFill" lazy-load="true"/>
  163. <view style="display:flex;align-items:center">{{item.content}}</view>
  164. <!-- <text style="color: #333;">{{item.user_name}}:</text>
  165. {{item.content}} -->
  166. </view>
  167. <view class="del" v-if="select_comment_type === 2" @click="delCommentHandle(item,index)">删除该评论</view>
  168. </view>
  169. </scroll-view>
  170. <view class="nodata" v-else>
  171. <image src="@/static/nodata.png"></image>
  172. <view>暂无评论</view>
  173. </view>
  174. <view class="write-wrap" :style="{bottom: writeBottom+'px'}">
  175. <textarea
  176. v-model="comment_cont"
  177. placeholder="发布一条友善的评论"
  178. auto-height
  179. :adjust-position="false"
  180. :show-confirm-bar="false"
  181. :cursor-spacing="20"
  182. class="write-ipt"
  183. @blur="setWritePosition(0)"
  184. @focus="checkNickHandle"
  185. />
  186. <view class="confirm-btn" @click="publishMessageHandle">发布</view>
  187. </view>
  188. </view>
  189. </van-action-sheet>
  190. </view>
  191. </template>
  192. <script>
  193. import mixin from "../../mixin/questionMixin";
  194. import {apiGetTagTree} from '@/api/common'
  195. import {
  196. apiOptionGroupList,
  197. apiBarTotal,
  198. apiHotComment,
  199. apiMyComment,
  200. apiCheckNick,
  201. apiCanelNickTip,
  202. apiDelComment,
  203. apiPublishComment,
  204. apiCountAudioClick
  205. } from '@/api/question'
  206. import questionComment from '@/components/questionComment/questionComment.vue'
  207. import audioBox from '@/components/audioBox/audioBox.vue'
  208. import { debounce } from '@/utils/common.js';
  209. export default {
  210. mixins: [mixin],
  211. components:{
  212. audioBox,
  213. questionComment
  214. },
  215. data() {
  216. return {
  217. questionList: [],
  218. isPopupShow: false,//弹出层是否展示
  219. optionList: [],
  220. activeNames: [],//collapse
  221. activeName:'',
  222. selectName:'',
  223. pauseImgSrc:'../../static/question/recordplay.png',
  224. playImgSrc:'../../static/question/recordpause.png',
  225. distributeNum:0,
  226. /* userInfo:{
  227. is_inner:1,//0:外部客户;1内部员工
  228. status:'试用',
  229. is_suspend:0,
  230. is_researcher:0,
  231. //seal_name:'梁娜',
  232. //seal_mobile:123456,
  233. },//mock用户信息 */
  234. showPage:false,
  235. waitNum:0,
  236. isShowComment: false,
  237. comment_cont: '',
  238. writeBottom: 0,
  239. select_comment_type:1,//默认全部
  240. select_question_item: {},
  241. comment_obj: {
  242. title: '全部评论',
  243. total: 0
  244. },
  245. comment_total: 0,
  246. commentList: []
  247. }
  248. },
  249. watch:{
  250. selectName(){
  251. this.getQuestionList(3)
  252. }
  253. },
  254. computed:{
  255. showAudioPop(){//是否显示音频弹窗
  256. return this.$store.state.audio.show
  257. },
  258. showAudioBigPop(){
  259. return this.$store.state.audio.showBig
  260. },
  261. curVoiceId(){//当前正在播放的音频id
  262. return this.$store.state.audio.questionId
  263. },
  264. curAudioPaused(){//当前音频是否暂停状态
  265. return this.$store.state.audio.paused
  266. },
  267. },
  268. onLoad() {
  269. /* this.getVistor()
  270. this.getOptionList()
  271. this.getQuestionList(3) */
  272. },
  273. onShow() {
  274. this.getdistributeNum()
  275. this.getOptionList()
  276. this.getQuestionList(3)
  277. this.showPage=true
  278. },
  279. onHide(){
  280. this.showPage=false
  281. },
  282. onReachBottom() {
  283. if(this.finished) return
  284. this.page++
  285. this.getQuestionList(3)
  286. },
  287. onPullDownRefresh() {
  288. this.resetAudio()
  289. this.refreshPage()
  290. setTimeout(() => {
  291. uni.stopPullDownRefresh()
  292. }, 1500);
  293. },
  294. //转发分享
  295. onShareAppMessage(){
  296. return{
  297. title:'问答社区',
  298. path:'/pages/question/question'
  299. }
  300. },
  301. methods: {
  302. //获取研究员问答列表数量统计
  303. getdistributeNum() {
  304. if(this.userInfo.is_inner!==1) return
  305. //如果是研究员,则请求问答列表数量统计
  306. apiBarTotal().then(res=>{
  307. if(res.code===200){
  308. this.distributeNum = res.data.distribute
  309. }
  310. })
  311. },
  312. //获取筛选列表
  313. async getOptionList(){
  314. /* const res = await apiOptionGroupList()
  315. if(res.code===200){
  316. this.optionList = res.data
  317. } */
  318. const res = await apiGetTagTree()
  319. if(res.code===200){
  320. const result = res.data
  321. this.optionList = result.map((item)=>{
  322. let obj = {}
  323. obj.research_group_name = item.classify_name
  324. obj.children = item.tags.map((i)=>{
  325. return {research_group_id:i.tag_id,research_group_name:i.tag_name}
  326. })
  327. return obj
  328. })
  329. }
  330. },
  331. //点击筛选
  332. showPopup() {
  333. this.isPopupShow = true
  334. },
  335. //点击一级分类
  336. changeSelecOption(e) {
  337. this.activeName = e.detail
  338. },
  339. //点击二级分类
  340. handleOptionClick(item){
  341. //重复点击代表取消
  342. if(this.selectId===item.research_group_id){
  343. this.selectId=-1
  344. this.selectName=''
  345. }else{
  346. this.selectId = item.research_group_id
  347. this.selectName = item.research_group_name
  348. }
  349. this.page = 1
  350. this.isPopupShow = false
  351. },
  352. //点击'我要提问' or '待回答'
  353. toPage(type) {
  354. if(type==='question'){
  355. uni.navigateTo({ url: '/pages-question/hasQuestion' })
  356. }else{
  357. uni.navigateTo({ url: '/pages-question/answerList' })
  358. }
  359. },
  360. refreshPage() {
  361. this.page = 1
  362. this.selectId = -1
  363. this.questionList = []
  364. this.finished = false
  365. this.getQuestionList(3)
  366. },
  367. //跳转详情
  368. handleGoDetail(item){
  369. uni.navigateTo({ url: `/pages-question/answerDetail?id=${item.community_question_id}` })
  370. },
  371. /* 打开评论弹窗 */
  372. showCommentHandle(item) {
  373. this.select_question_item = item;
  374. this.getComment();
  375. this.isShowComment = true;
  376. },
  377. /* 关闭评论弹窗 */
  378. closeCommentHandle() {
  379. this.isShowComment = false;
  380. this.select_question_item = {};
  381. this.comment_cont = '';
  382. this.select_comment_type = 1;//默认全部
  383. },
  384. /* 切换评论类型*/
  385. changeCommentTypeHandle(type) {
  386. if(type === this.select_comment_type) return
  387. this.commentList = [];
  388. this.select_comment_type = type;
  389. this.getComment();
  390. },
  391. /* 获取评论 */
  392. async getComment() {
  393. const params = {
  394. community_question_id: this.select_question_item.community_question_id,
  395. curr_page: 1,
  396. page_size: 10000
  397. }
  398. const { code,data } = this.select_comment_type===1 ? await apiHotComment(params) : await apiMyComment(params);
  399. if(code !== 200) return
  400. this.commentList = data.list || [];
  401. this.comment_obj = {
  402. title: this.select_comment_type === 1 ? '全部评论' : '我的评论',
  403. total: data.paging.totals
  404. }
  405. },
  406. /* 删除留言*/
  407. delCommentHandle({community_question_comment_id},index) {
  408. wx.showModal({
  409. title: "",
  410. content: "评论删除后不可恢复,确认删除吗?",
  411. confirmColor: "#EE3636",
  412. cancelColor: '#333',
  413. success: async(res) => {
  414. if( res.cancel) return
  415. const { code } = await apiDelComment({ community_question_comment_id });
  416. if( code !== 200 ) return
  417. this.commentList.splice(index,1)
  418. this.comment_obj.total--
  419. wx.showToast({title: '删除成功'});
  420. this.refreshPage()
  421. }
  422. })
  423. },
  424. setWritePosition(val=50) {
  425. console.log(val)
  426. this.writeBottom = val < 50 ? 0 : val;
  427. },
  428. /* 校验昵称状态*/
  429. /**
  430. * 此方法不在调用(但是还是留着吧 万一哪天又要用呢)
  431. * 改版不用再校验是否设置过昵称,老板说要和报告不一样并且要好玩,所以改成随机生成的头像昵称(当然是后端去生成)
  432. */
  433. async checkNickHandle(e) {
  434. this.setWritePosition(e.detail.height);
  435. // const { data,code } = await apiCheckNick();
  436. // if(code !== 200) return
  437. // !data && wx.showModal({
  438. // title: '',
  439. // content: '检测到您还未设置头像和昵称,您的留言将发布为匿名,是否立即去设置?',
  440. // confirmText: '去设置',
  441. // confirmColor: '#E3B377',
  442. // cancelText : '暂时不用',
  443. // cancelColor: '#666',
  444. // success: (res)=> {
  445. // res.confirm && wx.navigateTo({ url:'/pages-user/mysetting' });
  446. // res.cancel && this.setCancelNickHandle();
  447. // }
  448. // })
  449. },
  450. /* 不在提醒弹窗 */
  451. async setCancelNickHandle() {
  452. await apiCanelNickTip()
  453. },
  454. /* 发布留言*/
  455. publishMessageHandle: debounce( async function() {
  456. if(!this.comment_cont) return wx.showToast({title: '请输入留言内容',icon: 'none'});
  457. const { code } = await apiPublishComment({
  458. content: this.comment_cont,
  459. community_question_id: this.select_question_item.community_question_id
  460. })
  461. if(code !== 200) return
  462. wx.showToast({title: '发布成功'});
  463. this.comment_cont = '';
  464. // this.select_comment_type === 2 && this.getComment();
  465. this.getComment()
  466. this.refreshPage()//刷新列表
  467. }),
  468. }
  469. }
  470. </script>
  471. <style lang="scss">
  472. .question-wrap {
  473. .van-popup--bottom{
  474. padding-bottom: 0 !important;
  475. }
  476. /deep/ .van-cell__title,
  477. .van-cell__value {
  478. flex: none !important;
  479. }
  480. .van-collapse-item{
  481. &.van-hairline--top{
  482. &::after{
  483. border: none !important;
  484. }
  485. }
  486. .van-cell{
  487. padding-left:0 !important;
  488. }
  489. }
  490. .van-collapse-item__content{
  491. padding:0;
  492. }
  493. }
  494. page {
  495. padding-bottom: env(safe-area-inset-bottom);
  496. }
  497. </style>
  498. <style lang="scss" scoped>
  499. .question-wrap {
  500. padding: 0 30rpx 80rpx 30rpx;
  501. background-color: #FFFFFF;
  502. .question-top {
  503. display: flex;
  504. flex: auto;
  505. align-items: center;
  506. height: 100rpx;
  507. background-color: white;
  508. position: sticky;
  509. top: 0;
  510. left: 0;
  511. margin:0 -30rpx;
  512. z-index: 99;
  513. &.noAuth{
  514. height:20rpx;
  515. }
  516. /* border-top: 1rpx solid rgba(0, 0, 0, 0.1); */
  517. .text{
  518. width:240rpx;
  519. height:70rpx;
  520. line-height: 70rpx;
  521. background-color: #F5F5F5;
  522. border-radius: 4rpx;
  523. color:#666666;
  524. text-align: center;
  525. &.active{
  526. color:#E3B377;
  527. background-color: #FDF8F2;
  528. }
  529. }
  530. .auth-box {
  531. flex: 1;
  532. }
  533. .menu-icon {
  534. width: 34rpx;
  535. height:34rpx;
  536. }
  537. .pop-wrap{
  538. height: 100%;
  539. padding: 50rpx 34rpx;
  540. .pop-option-list {
  541. .option-btn-wrap {
  542. display: flex;
  543. justify-content: space-between;
  544. flex-wrap: wrap;
  545. margin-bottom: 20rpx;
  546. .option-btn {
  547. min-width: 145rpx;
  548. height:76rpx;
  549. line-height: 76rpx;
  550. text-align: center;
  551. color: black;
  552. background-color: #F6F6F6;
  553. border-radius: 4rpx;
  554. margin-top: 10rpx;
  555. &.active{
  556. background-color: #FAEEDE;
  557. }
  558. &.full{
  559. width:100%;
  560. }
  561. }
  562. }
  563. }
  564. .pop-btn{
  565. height:80rpx;
  566. margin:0 -34rpx;
  567. text-align: center;
  568. line-height: 80rpx;
  569. color:#FFFFFF;
  570. background-color: #E6B77D;
  571. }
  572. }
  573. }
  574. .question-list {
  575. padding-bottom: 34rpx;
  576. &.last{
  577. padding-bottom: 260rpx;
  578. }
  579. }
  580. .list-bot1{
  581. padding-bottom: 200rpx;
  582. }
  583. .list-bot2{
  584. padding-bottom: 340rpx;
  585. }
  586. .list-bot3{
  587. padding-bottom: 440rpx;
  588. }
  589. .topage-btn {
  590. position: fixed;
  591. left:50%;
  592. margin-left: -257rpx;
  593. bottom: 215rpx;
  594. width:514rpx;
  595. }
  596. .topage-button{
  597. height: 80rpx;
  598. text-align: center;
  599. line-height: 80rpx;
  600. border-radius: 40rpx;
  601. background-color: #333333;
  602. box-shadow: 0px 4px 20px 1px rgba(160, 126, 84, 0.25);
  603. color: #E3B377;
  604. display: flex;
  605. justify-content: center;
  606. align-items: center;
  607. image{
  608. margin-right: 10rpx;
  609. margin-top: -2rpx;
  610. }
  611. }
  612. .btn-wrap{
  613. position: fixed;
  614. width:100%;
  615. margin-left: -30rpx;
  616. display: flex;
  617. justify-content: center;
  618. bottom: calc(120rpx + constant(safe-area-inset-bottom));
  619. bottom: calc(120rpx + env(safe-area-inset-bottom));
  620. .btn{
  621. width:300rpx;
  622. height:80rpx;
  623. &:first-child{
  624. margin-right: 30rpx;
  625. }
  626. }
  627. }
  628. .btn-bot1{
  629. bottom: calc(120rpx + constant(safe-area-inset-bottom));
  630. bottom: calc(120rpx + env(safe-area-inset-bottom));
  631. }
  632. .btn-bot2{
  633. bottom: calc(260rpx + constant(safe-area-inset-bottom));
  634. bottom: calc(260rpx + env(safe-area-inset-bottom));
  635. }
  636. .btn-bot3{
  637. bottom: calc(355rpx + constant(safe-area-inset-bottom));
  638. bottom: calc(355rpx + env(safe-area-inset-bottom));
  639. }
  640. .global-pup{
  641. .content{
  642. padding:90rpx 34rpx;
  643. flex-direction: column;
  644. .contact{
  645. text{
  646. margin-left: 15rpx;
  647. color:#E6B77D;
  648. }
  649. }
  650. .apply{
  651. margin-top: 40rpx;
  652. width:390rpx;
  653. height:80rpx;
  654. background-color: #E6B77D;
  655. color: #FFFFFF;
  656. text-align: center;
  657. line-height: 80rpx;
  658. border-radius: 40rpx;
  659. }
  660. }
  661. }
  662. }
  663. .comment-cont {
  664. height: calc(100vh - 250rpx);
  665. border-top: 4rpx solid #F4F4F4;
  666. position: relative;
  667. padding: 24rpx 0;
  668. overflow: hidden;
  669. .commment-top {
  670. display: flex;
  671. justify-content: space-between;
  672. align-items: center;
  673. padding: 0 24rpx;
  674. .title {
  675. font-weight: bold;
  676. font-size: 30rpx;
  677. color: #000;
  678. }
  679. .comment-top-right {
  680. display: flex;
  681. align-items: center;
  682. background-color: #F6F6F6;
  683. border: 1px solid #F6F6F6;
  684. color: #666;
  685. border-radius: 48rpx;
  686. text {
  687. padding: 0 12rpx;
  688. height: 48rpx;
  689. line-height: 48rpx;
  690. &.act {
  691. background-color: #FFFFFF;
  692. color: #000;
  693. border-radius: 48rpx;
  694. }
  695. }
  696. }
  697. }
  698. .comment-list-cont {
  699. height: calc(100vh - 550rpx);
  700. overflow-y: auto;
  701. position: relative;
  702. padding: 30rpx 0;
  703. .comment-list-item {
  704. margin-bottom: 30rpx;
  705. padding: 0 24rpx;
  706. .comment {
  707. color: #666;
  708. .avatar{
  709. width: 56rpx;
  710. height: 56rpx;
  711. border-radius: 50%;
  712. flex-shrink: 0;
  713. margin-right: 20rpx;
  714. }
  715. view{
  716. flex: 1;
  717. }
  718. }
  719. .del {
  720. color: #D80000;
  721. margin-top: 10rpx;
  722. margin-left: 76rpx;
  723. width: 200rpx;
  724. }
  725. }
  726. }
  727. .write-wrap {
  728. padding: 0 24rpx;
  729. border-top: 4rpx solid #F4F4F4;
  730. position: absolute;
  731. // bottom: 50px;
  732. left: 0;
  733. right: 0;
  734. display: flex;
  735. align-items: center;
  736. z-index: 99;
  737. background-color: #fff;
  738. padding-bottom: calc(5px + constant(safe-area-inset-bottom));
  739. padding-bottom: calc(5px + env(safe-area-inset-bottom));
  740. ::-webkit-scrollbar {
  741. display: none;
  742. }
  743. .write-ipt {
  744. padding: 30rpx 0;
  745. flex: 1;
  746. }
  747. .confirm-btn {
  748. width: 100rpx;
  749. margin-left: 20rpx;
  750. text-align: center;
  751. padding: 20rpx 0;
  752. color: #E3B377;
  753. }
  754. }
  755. }
  756. .nodata {
  757. text-align: center;
  758. color: #999;
  759. }
  760. </style>