need.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  1. <template>
  2. <view style="background-color: #f7f7f7;min-height: 100vh;">
  3. <tn-nav-bar fixed customBack>
  4. <view slot="back" class='tn-custom-nav-bar__back' @click="goBack">
  5. <text class='icon tn-icon-left'></text>
  6. </view>
  7. <view slot="default">
  8. <text :style="{fontSize:(wxFontSize)+'px'}">我的需求</text>
  9. </view>
  10. </tn-nav-bar>
  11. <view :style="{paddingTop: vuex_custom_bar_height + 'px'}">
  12. <uv-sticky :offsetTop="vuex_custom_bar_height + 'px'" bgColor="#f7f7f7">
  13. <tn-tabs-swiper :list="list" :isScroll="false" :current="current" name="tab-name" @change="tabChange"
  14. :fontSize="(wxFontSize+12)" :barWidth="wxFontSize+50" activeColor="#005DA6" inactiveColor="#333"></tn-tabs-swiper>
  15. </uv-sticky>
  16. <!-- 图文信息 -->
  17. <block v-for="(item,index) in content" :key="index">
  18. <view class="blogger__item" style="border-radius: 12px;margin: 12px 16px 12px 16px; background-color: #fff;position: relative;">
  19. <view class="blogger__author tn-flex tn-flex-row-between tn-flex-col-center">
  20. <view class="justify__author__info">
  21. <view class="tn-flex tn-flex-row-center">
  22. <view class="tn-flex tn-flex-row-center tn-flex-col-center">
  23. <view class="" style="width: 5px;height: 5px;background: #E18730;border-radius: 50%;margin-right: 4px;">
  24. </view>
  25. <view class="tn-padding-right">
  26. <view class="tn-padding-right tn-text-bold tn-text-lg" style="color:#333" :style="{fontSize:(wxFontSize)+'px'}">
  27. {{ item.company }}
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. <view v-if="item.status=='4'&&item.showFlag=='否'"
  34. class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
  35. <text class="" style="background: #e6e6e6;font-size: 12px;word-break: keep-all;
  36. padding: 8px;
  37. color: #999;
  38. border-radius: 10px;
  39. border-top-left-radius: 0;
  40. border-bottom-right-radius: 0;
  41. position: absolute;
  42. top: 0;
  43. right: 0;
  44. " :style="{fontSize:(wxFontSize-6)+'px'}">需求已结束</text>
  45. </view>
  46. <!-- 状态(1:暂存,2:待处理,3:审核中,4:已通过,9:已拒绝,10:已取消) -->
  47. <view v-if="item.status=='1'"
  48. class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
  49. <text class="" style="background: #e6e6e6;font-size: 12px;word-break: keep-all;
  50. padding: 8px;
  51. color: #999;
  52. border-radius: 10px;
  53. border-top-left-radius: 0;
  54. border-bottom-right-radius: 0;
  55. position: absolute;
  56. top: 0;
  57. right: 0;
  58. " :style="{fontSize:(wxFontSize-6)+'px'}">暂存</text>
  59. </view>
  60. <view v-if="item.status=='3'"
  61. class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
  62. <text class="" style="background: #fbf3ea;font-size: 12px;word-break: keep-all;
  63. padding: 8px;
  64. color: #E18730;
  65. border-radius: 10px;
  66. border-top-left-radius: 0;
  67. border-bottom-right-radius: 0;
  68. position: absolute;
  69. top: 0;
  70. right: 0;
  71. " :style="{fontSize:(wxFontSize-6)+'px'}">审核中</text>
  72. </view>
  73. <view v-if="item.status=='4'&&item.showFlag!='否'"
  74. class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
  75. <text class="" style="background: #ecf8e9;font-size: 12px;word-break: keep-all;
  76. padding: 8px;
  77. color: #2FB120;
  78. border-radius: 10px;
  79. border-top-left-radius: 0;
  80. border-bottom-right-radius: 0;
  81. position: absolute;
  82. top: 0;
  83. right: 0;
  84. " :style="{fontSize:(wxFontSize-6)+'px'}">已通过</text>
  85. </view>
  86. <view v-if="item.status=='9'"
  87. class="blogger__author__btn justify-content-item tn-flex-col-center tn-flex-row-center">
  88. <text class="" style="background: #fce9e9;font-size: 12px;word-break: keep-all;
  89. padding: 8px;
  90. color: #EF2121;
  91. border-radius: 10px;
  92. border-top-left-radius: 0;
  93. border-bottom-right-radius: 0;
  94. position: absolute;
  95. top: 0;
  96. right: 0;
  97. " @click="showTips(item)" :style="{fontSize:(wxFontSize-6)+'px'}">已拒绝</text>
  98. </view>
  99. </view>
  100. <view
  101. class="blogger__desc tn-margin-top-sm tn-margin-bottom-sm tn-text-justify tn-flex-col-center tn-flex-row-left"
  102. >
  103. <text
  104. class="blogger__desc__content tn-flex-1 tn-text-justify tn-text-df" style="color:#747E87" :style="{fontSize:(wxFontSize-2)+'px'}">{{ item.content }}</text>
  105. </view>
  106. <block v-if="item.imgList">
  107. <view v-if="[1,2,4].indexOf(item.imgList.length) != -1" class="tn-padding-top-xs"
  108. >
  109. <image v-for="(image_item,image_index) in item.imgList" :key="image_index"
  110. class="blogger__main-image" :class="{
  111. 'blogger__main-image--1 tn-margin-bottom-sm': item.imgList.length === 1,
  112. 'blogger__main-image--2 tn-margin-right-sm tn-margin-bottom-sm': item.imgList.length === 2 || item.imgList.length === 4
  113. }" :src="image_item.ftpUrl" mode="aspectFill" @click="showImg(item.imgList,image_index)"></image>
  114. </view>
  115. <view v-else class="tn-padding-top-xs">
  116. <tn-grid hoverClass="none" :col="3">
  117. <block v-for="(image_item,image_index) in item.imgList" :key="image_index">
  118. <!-- #ifndef MP-WEIXIN -->
  119. <tn-grid-item style="width: 30%;margin: 10rpx;">
  120. <image class="blogger__main-image blogger__main-image--3"
  121. @click="showImg(item.imgList,image_index)" :src="image_item.ftpUrl"
  122. mode="aspectFill"></image>
  123. </tn-grid-item>
  124. <!-- #endif-->
  125. <!-- #ifdef MP-WEIXIN -->
  126. <tn-grid-item style="width: 30%;margin: 10rpx;">
  127. <image class="blogger__main-image blogger__main-image--3"
  128. @click="showImg(item.imgList,image_index)" :src="image_item.ftpUrl"
  129. mode="aspectFill"></image>
  130. </tn-grid-item>
  131. <!-- #endif-->
  132. </block>
  133. </tn-grid>
  134. </view>
  135. </block>
  136. <view v-for="file in item.fileDetailList" style="background-color:#005da60d ;margin-bottom: 4px;padding: 4px 8px;border-radius: 4px;" :key="file.id" @click="clickLink(file.ftpUrl,file.fileName)" v-if="!isImage(file.fileName)">
  137. <view>
  138. <image src="../../static/tu/link.png" style="width: 18px;height: 18px;vertical-align: bottom;"></image>
  139. <view style="display: inline;margin-left:8px;color:#005DA6;" :style="{fontSize:(wxFontSize-3)+'px'}">
  140. {{file.fileName}}</view>
  141. </view>
  142. </view>
  143. <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin-top-xs">
  144. <view class="justify-content-item tn-color-gray">
  145. <view class="tn-padding-right tn-padding-top-xs tn-color-gray" style="display: flex;">
  146. <view style="white-space: nowrap;" :style="{fontSize:(wxFontSize-3)+'px'}">{{ item.createTime|formatDate }}</view>
  147. <view style="color: red;margin-left:8px;" v-if="item.status==9&&item.feedback" :style="{fontSize:(wxFontSize-3)+'px'}">
  148. 反馈意见:{{item.feedback||'--'}}
  149. </view>
  150. </view>
  151. </view>
  152. <view class="justify-content-item tn-flex tn-flex-col-center" v-if="item.status==4&&item.showFlag!='否'">
  153. <button type="warn" plain="true" size="mini" @click="finishItem(item)" style="color:#EF2121;border-color:#EF2121;" :style="{fontSize:(wxFontSize-4)+'px'}">结束需求</button>
  154. </view>
  155. <view class="justify-content-item tn-flex tn-flex-col-center" style="flex: none;" v-if="item.status==1||item.status==9||(item.status==4&&item.showFlag=='否')">
  156. <button type="warn" plain="true" size="mini" @click="editItem(item)" style="color:#E18730;border-color:#E18730;" :style="{fontSize:(wxFontSize-4)+'px'}">编辑</button>
  157. <button v-if="item.status==4&&item.showFlag=='否'" style="border-color: #2FB120;color:#2FB120;margin-left:12px" type="warn" plain="true" size="mini" @click="reOpen(item)" :style="{fontSize:(wxFontSize-4)+'px'}">恢复</button>
  158. </view>
  159. </view>
  160. </view>
  161. <!-- 边距间隔 -->
  162. <view class="tn-strip-bottom" v-if="index != content.length - 1"></view>
  163. </block>
  164. <view v-if="showEmpty" style="margin-top: 32vh;">
  165. <tn-empty mode="data"></tn-empty>
  166. </view>
  167. </view>
  168. <view class='tn-tabbar-height' :style="{marginTop: vuex_custom_bar_height + 'px'}"></view>
  169. </view>
  170. </template>
  171. <script>
  172. import request from '../../utils/request'
  173. import {
  174. uniShowModal
  175. } from '../../utils/uni_api'
  176. export default {
  177. data() {
  178. return {
  179. list: [{
  180. 'tab-name': '已通过'
  181. }, {
  182. 'tab-name': '审核中'
  183. }, {
  184. 'tab-name': '暂存'
  185. }, {
  186. 'tab-name': '已拒绝'
  187. }],
  188. current: 0,
  189. content: [],
  190. showEmpty: false,
  191. curItem: {},
  192. wxFontSize:17
  193. }
  194. },
  195. filters: {
  196. formatDate(value) {
  197. if (!value) return '';
  198. const date = new Date(value);
  199. const today = new Date();
  200. const yesterday = new Date(today); // 昨天的日期
  201. yesterday.setDate(yesterday.getDate() - 1); // 将昨天的日期设置为前一天
  202. if (date.getFullYear() == today.getFullYear() && date.getMonth() == today.getMonth() && date.getDate() ==
  203. today.getDate()) {
  204. return '今天 ' + (date.getHours() > 9 ? '' : '0') + date.getHours() + ':' + (date
  205. .getMinutes() > 9 ? '' : '0') + date.getMinutes(); // 根据需要格式化日期
  206. }
  207. if (date.getFullYear() == yesterday.getFullYear() && date.getMonth() == yesterday.getMonth() && date
  208. .getDate() == yesterday.getDate()) {
  209. return '昨天 ' + (date.getHours() > 9 ? '' : '0') + date.getHours() + ':' + (date
  210. .getMinutes() > 9 ? '' : '0') + date.getMinutes(); // 根据需要格式化日期
  211. }
  212. return date.toLocaleDateString() + ' ' + (date.getHours() > 9 ? '' : '0') + date.getHours() + ':' + (date
  213. .getMinutes() > 9 ? '' : '0') + date.getMinutes(); // 根据需要格式化日期
  214. },
  215. },
  216. onLoad(props){
  217. const appBaseInfo = wx.getAppBaseInfo();
  218. this.wxFontSize = uni.getStorageSync('fontSize')||appBaseInfo.fontSizeSetting||17;
  219. if(props.tab==1){
  220. this.current= 1;
  221. }
  222. if(props.tab==2){
  223. this.current= 2;
  224. }
  225. },
  226. onShow() {
  227. this.loadData();
  228. },
  229. methods: {
  230. showTips(item){
  231. uni.showToast({
  232. title: item.feedback?item.feedback:'已拒绝',
  233. icon: 'none',
  234. })
  235. },
  236. goBack() {
  237. const pages = getCurrentPages()
  238. // 有可返回的页面则直接返回,uni.navigateBack 默认返回失败之后会自动刷新页面 ,无法继续返回
  239. if (pages.length > 1) {
  240. uni.navigateBack()
  241. return;
  242. }else{
  243. uni.reLaunch({
  244. url: '/pages/index/index'
  245. })
  246. }
  247. },
  248. tabChange(index) {
  249. this.current = index;
  250. this.loadData();
  251. },
  252. isImage(fileName) {
  253. const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'ico']
  254. const extension = fileName.split('.').pop().toLowerCase();
  255. return imageExtensions.includes(extension);
  256. },
  257. loadData() {
  258. let that = this;
  259. that.content = [];
  260. request.post('/slbResourceDemand/show/my', {
  261. userNo: uni.getStorageSync('userNo'),
  262. // 状态(1:暂存,2:待处理,3:审核中,4:已通过,9:已拒绝,10:已取消)
  263. status: that.current == 1 ? '3' : that.current == 2 ? '1' : that.current == 3 ? '9' : '4',
  264. limit: 1000,
  265. index: 1
  266. }).then(res => {
  267. if (res && res.success) {
  268. let newList = res.list || [];
  269. for (let i = 0; i < newList.length; i++) {
  270. newList[i].imgList = [];
  271. for (let j = 0; j < newList[i].fileDetailList.length; j++) {
  272. if (that.isImage(newList[i].fileDetailList[j].fileName)) {
  273. newList[i].imgList.push(newList[i].fileDetailList[j]);
  274. }
  275. }
  276. }
  277. that.content = newList;
  278. if (newList.length == 0) {
  279. that.showEmpty = true;
  280. } else {
  281. that.showEmpty = false;
  282. }
  283. }else{
  284. if(res._redirect){
  285. uni.showToast({
  286. title: '操作过期,请登录后重试',
  287. duration: 2000,
  288. icon:'none'
  289. });
  290. that.goBack();
  291. }
  292. }
  293. console.warn(res);
  294. })
  295. },
  296. dialogConfirm() {
  297. let item = this.curItem;
  298. let that = this;
  299. request.post('/slbResourceDemand/offShelf', {
  300. id: item.id,
  301. userNo: uni.getStorageSync('userNo'),
  302. }).then(res => {
  303. if (res.success) {
  304. uni.showToast({
  305. title: '结束成功'
  306. })
  307. that.loadData();
  308. } else {
  309. uni.showToast({
  310. title: res.msg,
  311. icon: 'none'
  312. })
  313. }
  314. })
  315. },
  316. reOpen(item){
  317. this.curItem = item;
  318. let that = this;
  319. uniShowModal('确定恢复需求吗?', '', {
  320. showCancel: true,
  321. confirmText:'确定',
  322. success: (res) => {
  323. if(res.confirm){
  324. //update
  325. let params = {};
  326. params.slbResourceDemand = JSON.parse(JSON.stringify(item));
  327. params.slbResourceDemand.status = 4;
  328. params.slbResourceDemand.showFlag = '是';
  329. params.slbResourceDemand.fileDetailList = undefined;
  330. params.slbResourceDemand.companyEntity = {};
  331. params.slbResourceDemand.companyEntity.company = params.slbResourceDemand.company;
  332. params.slbResourceDemand.companyEntity.jobTitle = params.slbResourceDemand.jobTitle;
  333. params.slbResourceDemand.companyEntity.creditCode = params.slbResourceDemand.creditCode;
  334. params.slbResourceDemand.companyEntity.address = params.slbResourceDemand.base;
  335. params.slbResourceDemand.companyEntity.regStatus = params.slbResourceDemand.regStatus;
  336. params.slbResourceDemand.companyEntity.contactPerson = params.slbResourceDemand.contactPerson;
  337. params.slbResourceDemand.companyEntity.contactMethod = params.slbResourceDemand.contactMethod;
  338. params.slbResourceDemand.slbUserExt = {
  339. contactPerson:params.slbResourceDemand.contactPerson,
  340. contactMethod:params.slbResourceDemand.contactMethod,
  341. userNo:params.slbResourceDemand.userNo,
  342. };
  343. params.slbResourceDemand = JSON.stringify(params.slbResourceDemand);
  344. params.fileDetailList = JSON.stringify(item.fileDetailList);
  345. request.post('/slbResourceDemand/update', params).then(res => {
  346. if(res.success){
  347. uni.showToast({
  348. title: '恢复成功'
  349. })
  350. that.loadData();
  351. }else{
  352. uni.showToast({
  353. title:res.msg,
  354. icon:'none'
  355. })
  356. that.canSave = true;
  357. }
  358. })
  359. }
  360. }
  361. })
  362. },
  363. finishItem(item) {
  364. this.curItem = item;
  365. let that = this;
  366. uniShowModal('确定结束需求吗?', '', {
  367. showCancel: true,
  368. confirmText:'确定',
  369. success: (res) => {
  370. if(res.confirm){
  371. that.dialogConfirm();
  372. }
  373. }
  374. })
  375. },
  376. showImg(items, index) {
  377. let urls = [];
  378. for (let i = 0; i < items.length; i++) {
  379. urls.push(items[i].ftpUrl);
  380. }
  381. // 预览图片
  382. uni.previewImage({
  383. urls: urls,
  384. current: index,
  385. });
  386. },
  387. clickLink(url,fileName) {
  388. // uni.navigateTo({
  389. // url:'/pages/webview/web-view?url='+encodeURIComponent('https://slb-m.lx-device.com/webview?title='+fileName+'&url='+ url),
  390. // })
  391. uni.downloadFile({
  392. url: url,
  393. filePath: wx.env.USER_DATA_PATH + "/" + fileName,
  394. success: function (res) {
  395. const filePath = res.filePath
  396. uni.openDocument({
  397. filePath: filePath,
  398. showMenu: true,
  399. success: function (res) {
  400. console.log('打开文档成功')
  401. },
  402. fail: function(){
  403. uni.navigateTo({
  404. url:'/pages/webview/web-view?url='+encodeURIComponent('https://slb-m.lx-device.com/webview?title='+fileName+'&url='+ url),
  405. })
  406. }
  407. })
  408. }
  409. })
  410. },
  411. editItem(item){
  412. uni.setStorageSync(item.bisNo,JSON.stringify(item))
  413. uni.navigateTo({
  414. url: '/circlePages/circle?sid=' + item.bisNo,
  415. })
  416. }
  417. }
  418. }
  419. </script>
  420. <style lang="scss" scoped>
  421. /* 胶囊*/
  422. .tn-custom-nav-bar__back {
  423. width: 60%;
  424. height: 100%;
  425. position: relative;
  426. display: flex;
  427. justify-content: space-evenly;
  428. align-items: center;
  429. box-sizing: border-box;
  430. // background-color: rgba(0, 0, 0, 0.15);
  431. border-radius: 1000rpx;
  432. // border: 1rpx solid rgba(255, 255, 255, 0.5);
  433. // color: #FFFFFF;
  434. font-size: 18px;
  435. .icon {
  436. display: block;
  437. flex: 1;
  438. margin: auto;
  439. text-align: center;
  440. }
  441. &:before {
  442. content: " ";
  443. width: 1rpx;
  444. height: 110%;
  445. position: absolute;
  446. top: 22.5%;
  447. left: 0;
  448. right: 0;
  449. margin: auto;
  450. transform: scale(0.5);
  451. transform-origin: 0 0;
  452. pointer-events: none;
  453. box-sizing: border-box;
  454. opacity: 0.7;
  455. background-color: #FFFFFF;
  456. }
  457. }
  458. /* 文章内容 start*/
  459. .blogger {
  460. &__item {
  461. padding: 30rpx;
  462. }
  463. &__author {
  464. &__btn {
  465. margin-right: -12rpx;
  466. opacity: 0.5;
  467. }
  468. }
  469. &__desc {
  470. line-height: 30rpx;
  471. &__label {
  472. color: #1D2541;
  473. background-color: #F3F2F7;
  474. border-radius: 10rpx;
  475. font-size: 22rpx;
  476. padding: 5rpx 15rpx;
  477. margin: 5rpx 18rpx 0 0;
  478. &--prefix {
  479. font-size: 24rpx;
  480. color: #1D2541;
  481. padding-right: 10rpx;
  482. }
  483. }
  484. &__content {
  485. line-height: 50rpx;
  486. }
  487. }
  488. &__content {
  489. margin-top: 18rpx;
  490. padding-right: 18rpx;
  491. &__data {
  492. line-height: 46rpx;
  493. text-align: justify;
  494. overflow: hidden;
  495. transition: all 0.25s ease-in-out;
  496. }
  497. &__status {
  498. margin-top: 10rpx;
  499. font-size: 26rpx;
  500. color: #82B2FF;
  501. }
  502. }
  503. &__main-image {
  504. border: 1rpx solid #F8F7F8;
  505. border-radius: 16rpx;
  506. &--1 {
  507. max-width: 80%;
  508. max-height: 300rpx;
  509. }
  510. &--2 {
  511. max-width: 260rpx;
  512. max-height: 260rpx;
  513. }
  514. &--3 {
  515. height: 212rpx;
  516. width: 100%;
  517. }
  518. }
  519. &__count-icon {
  520. font-size: 40rpx;
  521. padding-right: 5rpx;
  522. }
  523. &__ad {
  524. width: 100%;
  525. height: 500rpx;
  526. transform: translate3d(0px, 0px, 0px) !important;
  527. ::v-deep .uni-swiper-slide-frame {
  528. transform: translate3d(0px, 0px, 0px) !important;
  529. }
  530. .uni-swiper-slide-frame {
  531. transform: translate3d(0px, 0px, 0px) !important;
  532. }
  533. &__item {
  534. position: absolute;
  535. width: 100%;
  536. height: 100%;
  537. transform-origin: left center;
  538. transform: translate3d(100%, 0px, 0px) scale(1) !important;
  539. transition: transform 0.25s ease-in-out;
  540. z-index: 1;
  541. &--0 {
  542. transform: translate3d(0%, 0px, 0px) scale(1) !important;
  543. z-index: 4;
  544. }
  545. &--1 {
  546. transform: translate3d(13%, 0px, 0px) scale(0.9) !important;
  547. z-index: 3;
  548. }
  549. &--2 {
  550. transform: translate3d(26%, 0px, 0px) scale(0.8) !important;
  551. z-index: 2;
  552. }
  553. }
  554. &__content {
  555. border-radius: 40rpx;
  556. width: 640rpx;
  557. height: 500rpx;
  558. overflow: hidden;
  559. }
  560. &__image {
  561. width: 100%;
  562. height: 100%;
  563. }
  564. }
  565. }
  566. /* 文章内容 end*/
  567. /* 间隔线 start*/
  568. .tn-strip-bottom {
  569. width: 100%;
  570. border-bottom: 20rpx solid rgba(241, 241, 241, 0.8);
  571. }
  572. /* 间隔线 end*/
  573. /* 底部安全边距 start*/
  574. .tn-tabbar-height {
  575. min-height: 120rpx;
  576. height: calc(140rpx + env(safe-area-inset-bottom) / 2);
  577. height: calc(140rpx + constant(safe-area-inset-bottom));
  578. }
  579. </style>