question.vue 20 KB

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