information.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876
  1. <template>
  2. <view class="content">
  3. <view class="top-fixed">
  4. <view class="date-box">
  5. <view class="text">体检日期</view>
  6. <!-- <picker class="birth-picker" mode="date">
  7. <view class="right-box"> -->
  8. <view class="input-box">
  9. <input type="text" :value="form.examDate" placeholder="请选择日期" placeholder-class="form-input" disabled="disabled" />
  10. </view>
  11. <!-- <image class="w48 h48" src="@/static/images/health/right_arrow_right_icon24.png"></image> -->
  12. <!-- </view> -->
  13. </picker>
  14. </view>
  15. <!-- tab切换 -->
  16. <view class="pub-tab-box">
  17. <!-- <scroll-view scroll-x="true" >
  18. <view class="inner">
  19. <view v-for="(item,index) in cateOptions" :key="index" :class="cateId == item.dictValue?'item active':'item'" @click="choseCate(item)">
  20. {{ item.dictLabel }}
  21. </view>
  22. </view>
  23. </scroll-view> -->
  24. <scroll-view scroll-x="true" >
  25. <view class="tab-inner" v-if="type=='edit'">
  26. <view v-for="(item,index) in orderStatus" :key="item.cateId"
  27. :class="item.cateId == showType?'item active':'item'" @click="choseCate(item)">
  28. <view class="text">
  29. {{item.cateName}}
  30. </view>
  31. </view>
  32. </view>
  33. <view class="tab-inner" v-else>
  34. <text class="fs32rpx ml30">身体信息</text>
  35. </view>
  36. </scroll-view>
  37. </view>
  38. </view>
  39. <view class="m-list" v-if="showType==10000">
  40. <view class="form-box">
  41. <view class="form-item">
  42. <text class="label">身高</text>
  43. <input maxlength="10" class="input-width" type="digit" v-model="form.height" placeholder="请输入身高"
  44. placeholder-class="form-input" />
  45. <text class="unit">厘米 (CM)</text>
  46. </view>
  47. <view class="form-item">
  48. <text class="label">体重</text>
  49. <input maxlength="10" class="input-width" type="digit" v-model="form.weight" placeholder="请输入体重"
  50. placeholder-class="form-input" />
  51. <text class="unit">千克 (KG)</text>
  52. </view>
  53. <view class="form-item justify-between">
  54. <view class="align-start">
  55. <text class="label">BMI</text>
  56. <input maxlength="10" class="input-width" type="digit" v-model="form.bmi"
  57. placeholder="请输入BMI" placeholder-class="form-input" />
  58. </view>
  59. <image src="/static/images/user/help_icon24.png" class="w32 h32"></image>
  60. </view>
  61. <view class="form-item">
  62. <text class="label">臀围</text>
  63. <input maxlength="10" class="input-width" type="digit" v-model="form.chestCircumference" placeholder="请输入臀围"
  64. placeholder-class="form-input" />
  65. <text class="unit">厘米 (CM)</text>
  66. </view>
  67. <view class="form-item">
  68. <text class="label">腰围</text>
  69. <input maxlength="10" class="input-width" type="digit" v-model="form.waistCircumference" placeholder="请输入腰围"
  70. placeholder-class="form-input" />
  71. <text class="unit">厘米 (CM)</text>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="index-body" v-if="showType!==10000">
  76. <mescroll-body top="196upx" ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback" :down="downOption" :up="upOption">
  77. <view class="search-cont">
  78. <view class="inner2">
  79. <image class="icon-search" src="/static/images/search.png" mode=""></image>
  80. <input type="text" v-model="keyword" placeholder="请输入想要搜索的指标" confirm-type="search" @confirm="doSearch" placeholder-style="font-size:28rpx;color:#BBBBBB;font-family: PingFang SC;" />
  81. </view>
  82. </view>
  83. <view class="title-box">
  84. <view class="left-title">指标信息({{num}}项)</view>
  85. <view class="right align-center" @click="pageTo()">
  86. <image class="w24 h24" src="@/static/images/company/edit_add_icon.png"></image>
  87. <text>编辑指标项</text>
  88. </view>
  89. </view>
  90. <view class="sms-list">
  91. <u-swipe-action>
  92. <view class="form-swipe" v-for="(item,index) in dataList" :key="index">
  93. <u-swipe-action-item :options="options" @click="cancel(item,index)" :name="index"
  94. :ref="'swipeAction' + index">
  95. <view class="item" @click.stop="showDetail(item)">
  96. <view class="item-box">
  97. <view class="left">
  98. <view class="align-center">
  99. <view class="title">{{item.indicatorName}}</view>
  100. <!-- <view class="unit" v-if="item.unitName!==null">({{item.unitName}})</view> -->
  101. </view>
  102. <view class="align-center">
  103. <view class="num">{{item.testValue||''}}</view>
  104. <view v-if="item.testValue!==null">
  105. <view :class="item.isAbnormal==0?'tag2':'tag'">{{item.isAbnormal==0?'正常':'异常'}}</view>
  106. </view>
  107. </view>
  108. <view class="reference">
  109. 参考值范围:{{item.refRange||''}} 单位:{{item.unitName||''}}
  110. </view>
  111. </view>
  112. <image src="/static/images/health/right_arrow_right_icon24.png" class="w48 h48"></image>
  113. </view>
  114. </view>
  115. </u-swipe-action-item>
  116. </view>
  117. </u-swipe-action>
  118. </view>
  119. <view class="h150"></view>
  120. </mescroll-body>
  121. </view>
  122. <!-- </mescroll-body> -->
  123. <view class="btn-box2">
  124. <view v-if="showType==10000" class="sub-btn" @click="submit()">
  125. <!-- <image src="/static/images/company/make_phone_call_icon.png" class="w48 h48"></image> -->
  126. <text>保存</text>
  127. </view>
  128. <view v-if="showType!==10000" class="sub-btn" @click="navgetTo()">
  129. <!-- <image src="/static/images/company/send_SMS_icon.png" class="w48 h48"></image> -->
  130. <text>批量编辑</text>
  131. </view>
  132. </view>
  133. </view>
  134. </template>
  135. <script>
  136. import {getByUserAndDate,addReport,updateReport,getReportById,
  137. listByIndicator,getResult,deleteResult,getAllCateByReportId, listByReport
  138. } from '@/api/companyUser.js'
  139. import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
  140. export default {
  141. mixins: [MescrollMixin],
  142. data() {
  143. return {
  144. examDate:this.utils.timeFormat(new Date(),'yyyy-mm-dd'),
  145. num:null,
  146. type:null,
  147. keyword:'',
  148. orderStatus: [
  149. // {
  150. // cateName: "身体信息",
  151. // cateId: 10000
  152. // },
  153. // {
  154. // cateName: "指标检查",
  155. // cateId: 10001
  156. // },
  157. // {
  158. // name: "查体",
  159. // val: 2
  160. // },
  161. // {
  162. // name: "肝脏功能",
  163. // val: 3
  164. // },
  165. ],
  166. options: [{
  167. text: '删除',
  168. style: {
  169. backgroundColor: '#FF5030'
  170. }
  171. }],
  172. showType: 10000,
  173. userId:null,
  174. mescroll:null,
  175. // 上拉加载的配置
  176. upOption: {
  177. onScroll:true,
  178. use: true, // 是否启用上拉加载; 默认true
  179. page: {
  180. num: 0, // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始
  181. size: 10 // 每页数据的数量,默认10
  182. },
  183. noMoreSize: 10, // 配置列表的总数量要大于等于5条才显示'-- END --'的提示
  184. empty: {
  185. icon:'https://user.test.ylrztop.com/images/empty_icon.png',
  186. tip: '暂无数据'
  187. }
  188. },
  189. indicatorCateId:'',
  190. form:{
  191. "bmi": null,
  192. "chestCircumference":null,
  193. "examDate":null,
  194. "height": null,
  195. // "reportId": 0,
  196. "reportStatus": 1,
  197. "userId": null,
  198. "waistCircumference":null,
  199. "weight": null,
  200. },
  201. // 列表数据
  202. dataList: [],
  203. }
  204. },
  205. onLoad(options) {
  206. this.type=options.type === 'edit' ? 'edit' : 'add';
  207. this.reportId=options.id;
  208. if(this.type=='edit'){
  209. this.getReportById();
  210. this.getAllCateByReportId()
  211. // this.getResult()
  212. }
  213. uni.$on('refreshInformation', () => {
  214. this.showType=10001
  215. this.indicatorCateId=''
  216. this.getAllCateByReportId()
  217. this.mescroll.resetUpScroll()
  218. })
  219. // var user=JSON.parse(uni.getStorageSync('userInfo'))
  220. // this.form.userId=user.userId
  221. this.form.userId=options.userId
  222. this.form.companyUserId=options.companyUserId
  223. this.form.examDate=this.examDate
  224. // this.getByUserAndDate()
  225. },
  226. methods: {
  227. pay(item) {
  228. uni.navigateTo({
  229. url: '/pages_/doctor/paymentOrder?orderId=' + item.orderId
  230. })
  231. },
  232. navgetTo(url) {
  233. uni.navigateTo({
  234. url: '/pages_user/user/batchRecord?id='+this.reportId+'&date='+this.form.examDate
  235. })
  236. },
  237. pageTo(url) {
  238. uni.navigateTo({
  239. url: '/pages_user/user/editIndicator?id='+this.reportId
  240. })
  241. },
  242. bindDateChange: function(e) {
  243. this.form.examDate = e.target.value
  244. },
  245. // tab切换
  246. choseCate(item) {
  247. this.showType = item.cateId
  248. // console.log(this.showType,item.cateId,'---')
  249. if(item.cateId!==10000&&item.cateId!==10001){
  250. this.indicatorCateId=item.cateId
  251. // this.mescroll.resetUpScroll()
  252. }else{
  253. this.indicatorCateId=''
  254. // this.mescroll.resetUpScroll()
  255. }
  256. // 关键修复:仅当 mescroll-body 渲染(showType!==10000)且 mescroll 已初始化时,才重置滚动
  257. if (this.showType!== 10000) {
  258. // 延迟 100ms 执行,等 tab 切换渲染完成
  259. setTimeout(() => {
  260. this.$nextTick(() => {
  261. if (this.mescroll && this.$refs.mescrollRef) {
  262. this.mescroll.resetUpScroll();
  263. }
  264. });
  265. }, 100);
  266. }
  267. },
  268. getAllCateByReportId(){
  269. var data={
  270. reportId:this.reportId,
  271. }
  272. var list=[{
  273. cateName: "身体信息",
  274. cateId: 10000
  275. },
  276. {
  277. cateName: "指标检查",
  278. cateId: 10001
  279. }]
  280. getAllCateByReportId(data).then(
  281. res => {
  282. if(res.code==200){
  283. this.orderStatus.splice(0, this.orderStatus.length, ...list.concat(res.data));
  284. }else{
  285. uni.showToast({
  286. title: res.msg,
  287. });
  288. }
  289. },
  290. rej => {}
  291. );
  292. },
  293. doSearch(){
  294. this.mescroll.resetUpScroll()
  295. },
  296. mescrollInit(mescroll) {
  297. this.mescroll = mescroll;
  298. // this.mescroll.resetUpScroll()
  299. },
  300. /*下拉刷新的回调 */
  301. downCallback(mescroll) {
  302. mescroll.resetUpScroll()
  303. },
  304. upCallback(page) {
  305. //联网加载数据
  306. var that = this;
  307. var data = {
  308. indicatorName:this.keyword,
  309. indicatorCateId:this.indicatorCateId,
  310. // indicatorId:this.showType,
  311. reportId:this.reportId ||'',
  312. pageNum: page.num,
  313. pageSize: page.size
  314. };
  315. getResult(data).then(res => {
  316. if (res.code == 200) {
  317. //设置列表数据
  318. if (page.num == 1) {
  319. that.dataList = res.data.list;
  320. this.num=res.data.total||0
  321. } else {
  322. that.dataList = that.dataList.concat(res.data.list);
  323. }
  324. that.mescroll.endBySize(res.data.list.length,res.data.total);
  325. } else {
  326. uni.showToast({
  327. icon: 'none',
  328. title: "请求失败",
  329. });
  330. that.dataList = null;
  331. that.mescroll.endErr();
  332. }
  333. });
  334. },
  335. listByReport(){
  336. listByReport(this.reportId).then(
  337. res => {
  338. if(res.code==200){
  339. this.dataList=res.data;
  340. this.num=res.data.length;
  341. // this.form.examDate=this.form.examDate.slice(0,5)
  342. }else{
  343. uni.showToast({
  344. title: res.msg,
  345. });
  346. }
  347. },
  348. rej => {}
  349. );
  350. },
  351. getReportById(){
  352. getReportById(this.reportId).then(
  353. res => {
  354. if(res.code==200){
  355. this.form=res.data;
  356. // this.form.examDate=this.form.examDate.slice(0,5)
  357. }else{
  358. uni.showToast({
  359. title: res.msg,
  360. });
  361. }
  362. },
  363. rej => {}
  364. );
  365. },
  366. cancel(item, index) {
  367. var that = this;
  368. let test = 'swipeAction' + index
  369. uni.showModal({
  370. title: '提示',
  371. content: '确定删除检查结果吗',
  372. success: function(res) {
  373. if (res.confirm) {
  374. // var data = {
  375. // orderId:item.orderId
  376. // };
  377. deleteResult(item.resultId).then(res => {
  378. if (res.code == 200) {
  379. uni.showToast({
  380. icon: 'success',
  381. title: '删除成功',
  382. });
  383. that.$refs[test][0].closeHandler()
  384. that.mescroll.resetUpScroll()
  385. } else {
  386. uni.showToast({
  387. icon: 'none',
  388. title: res.msg,
  389. });
  390. }
  391. });
  392. } else if (res.cancel) {
  393. that.$refs[test][0].closeHandler()
  394. }
  395. }
  396. });
  397. },
  398. submit(){
  399. // if(this.form.recordDate==null){
  400. // uni.showToast({
  401. // icon:'none',
  402. // title: "日期不能为空",
  403. // });
  404. // return;
  405. // }
  406. // if(this.form.recordTime==null){
  407. // uni.showToast({
  408. // icon:'none',
  409. // title: "记录时间不能为空",
  410. // });
  411. // return;
  412. // }
  413. // if(this.form.mealDescription==null){
  414. // uni.showToast({
  415. // icon:'none',
  416. // title: "用餐情况不能为空",
  417. // });
  418. // return;
  419. // }
  420. if(this.type=="add"){
  421. this.addReport()
  422. }
  423. else if(this.type=="edit"){
  424. this.updateReport()
  425. }
  426. },
  427. updateReport(){
  428. updateReport(this.form).then(
  429. res => {
  430. if(res.code==200){
  431. uni.showToast({
  432. icon:'success',
  433. title: "更新成功",
  434. });
  435. setTimeout(function() {
  436. uni.$emit('refreshReportList');
  437. uni.navigateBack({
  438. delta: 1
  439. })
  440. }, 500);
  441. }else{
  442. uni.showToast({
  443. icon:'none',
  444. title: res.msg,
  445. });
  446. }
  447. },
  448. rej => {}
  449. );
  450. },
  451. addReport(){
  452. addReport(this.form).then(
  453. res => {
  454. if(res.code==200){
  455. uni.showToast({
  456. icon:'success',
  457. title: "操作成功",
  458. });
  459. setTimeout(function() {
  460. uni.$emit('refreshReportList');
  461. uni.navigateBack({
  462. delta: 1
  463. })
  464. }, 500);
  465. }else{
  466. uni.showToast({
  467. icon:'none',
  468. title: res.msg,
  469. });
  470. }
  471. },
  472. rej => {}
  473. );
  474. },
  475. showDetail(item) {
  476. uni.navigateTo({
  477. url: '/pages_user/user/addResult?type=edit&resultId=' + item.resultId+'&reportId='+item.reportId
  478. })
  479. }
  480. }
  481. }
  482. </script>
  483. <style lang="scss">
  484. .content {
  485. padding: 20upx;
  486. .top-fixed {
  487. width: 100%;
  488. position: fixed;
  489. top: 0;
  490. left: 0;
  491. z-index: 999;
  492. }
  493. .date-box {
  494. background: #fff;
  495. padding: 30rpx;
  496. border-bottom: 1rpx solid #ECECEC;
  497. display: flex;
  498. align-items: center;
  499. justify-content: space-between;
  500. .text {
  501. font-family: PingFang SC, PingFang SC;
  502. font-weight: 500;
  503. font-size: 32rpx;
  504. color: #222426;
  505. line-height: 34rpx;
  506. text-align: left;
  507. }
  508. .time {
  509. font-weight: 400;
  510. font-size: 32rpx;
  511. color: #222426;
  512. line-height: 34rpx;
  513. text-align: right;
  514. }
  515. .input-box{
  516. text-align: right;
  517. }
  518. }
  519. .search-cont{
  520. // padding: 16upx 30upx;
  521. .inner2{
  522. box-sizing: border-box;
  523. width: 100%;
  524. height: 72upx;
  525. background: #fff;
  526. border-radius: 36upx;
  527. display: flex;
  528. align-items: center;
  529. padding: 0 30upx;
  530. .icon-search{
  531. width: 28upx;
  532. height: 28upx;
  533. margin-right: 20upx;
  534. }
  535. input{
  536. height: 60upx;
  537. line-height: 60upx;
  538. flex: 1;
  539. }
  540. }
  541. }
  542. .m-list{
  543. margin-top: 196upx;
  544. }
  545. .pub-tab-box {
  546. box-sizing: border-box;
  547. width: 100%;
  548. // padding: 0 40upx;
  549. background-color: #FFFFFF;
  550. .tab-inner {
  551. height: 88upx;
  552. line-height: 88upx;
  553. display: flex;
  554. align-items: center;
  555. // justify-content: space-between;
  556. // overflow-x: auto;
  557. position: relative;
  558. }
  559. .item {
  560. // flex: 1;
  561. /* 添加过渡动画 */
  562. transition: all 0.2s ease; /* 状态变化时平滑过渡 */
  563. font-size: 28upx;
  564. white-space: nowrap;
  565. line-height: 1;
  566. font-family: PingFang SC;
  567. font-weight: 500;
  568. color: #626468;
  569. // margin-right: 60upx;
  570. display: flex;
  571. align-items: center;
  572. justify-content: center;
  573. padding: 0 30rpx;
  574. &:last-child {
  575. margin-right: 0;
  576. }
  577. &.active {
  578. font-weight: bold;
  579. color: #222426;
  580. &::after {
  581. content: "";
  582. width: 48rpx;
  583. height: 8rpx;
  584. background: linear-gradient(120deg, #31A1FE 0%, #008FD3 100%);
  585. position: absolute;
  586. bottom: 0;
  587. border-radius: 6upx 6upx 0upx 0;
  588. }
  589. }
  590. .text {
  591. position: relative;
  592. z-index: 1;
  593. }
  594. .tab-bg {
  595. width: 72upx;
  596. height: 28upx;
  597. position: absolute;
  598. top: 17upx;
  599. left: 50%;
  600. transform: translateX(-36upx);
  601. z-index: -1;
  602. }
  603. }
  604. }
  605. .btn-box2 {
  606. z-index: 9999;
  607. width: 100%;
  608. padding: 30upx;
  609. position: fixed;
  610. bottom: 0;
  611. left: 0;
  612. box-sizing: border-box;
  613. background: #FFFFFF;
  614. .sub-btn {
  615. width: 100%;
  616. height: 88upx;
  617. line-height: 88upx;
  618. text-align: center;
  619. font-size: 30upx;
  620. font-family: PingFang SC;
  621. font-weight: bold;
  622. color: #FFFFFF;
  623. background: #008FD3;
  624. border-radius: 44upx;
  625. display: flex;
  626. align-items: center;
  627. justify-content: center;
  628. image {
  629. margin-right: 16rpx;
  630. }
  631. }
  632. }
  633. .form-box {
  634. padding: 0 30upx;
  635. background: #FFFFFF;
  636. border-radius: 16upx;
  637. margin-bottom: 20upx;
  638. .form-title {
  639. font-family: PingFang SC;
  640. font-weight: 600;
  641. font-size: 40rpx;
  642. color: #222426;
  643. text-align: left;
  644. padding: 30rpx 0;
  645. display: block;
  646. }
  647. .form-item {
  648. padding: 30upx 0;
  649. display: flex;
  650. align-items: flex-start;
  651. border-bottom: 1px solid #F1F1F1;
  652. &:last-child {
  653. border-bottom: none;
  654. }
  655. .label {
  656. width: 150upx;
  657. text-align: left;
  658. font-size: 32upx;
  659. line-height: 44upx;
  660. font-family: PingFang SC;
  661. font-weight: 500;
  662. color: #222222;
  663. flex-shrink: 0;
  664. }
  665. input {
  666. text-align: left;
  667. }
  668. .unit {
  669. width: 150upx;
  670. text-align: right;
  671. font-size: 32upx;
  672. line-height: 44upx;
  673. font-family: PingFang SC;
  674. font-weight: 500;
  675. color: #222222;
  676. flex-shrink: 0;
  677. }
  678. .form-input {
  679. font-size: 30upx;
  680. font-family: PingFang SC;
  681. font-weight: 500;
  682. color: #999999;
  683. text-align: left;
  684. }
  685. .form-item-tag {
  686. margin-right: 16rpx;
  687. .tag {
  688. border-radius: 8rpx 8rpx 8rpx 8rpx;
  689. border: 2rpx solid #ECECEC;
  690. display: flex;
  691. align-items: center;
  692. padding: 24rpx;
  693. font-family: PingFang SC;
  694. font-weight: 400;
  695. font-size: 24rpx;
  696. &.active {
  697. background: #F0FAFF;
  698. border: 2rpx solid #008FD3;
  699. color: #008FD3;
  700. }
  701. }
  702. }
  703. }
  704. }
  705. .index-body{
  706. .title-box {
  707. display: flex;
  708. align-items: center;
  709. justify-content: space-between;
  710. padding: 30rpx 0;
  711. .left-title {
  712. font-family: PingFang SC, PingFang SC;
  713. font-weight: 600;
  714. font-size: 32rpx;
  715. color: #222426;
  716. text-align: left;
  717. }
  718. .right {
  719. width: 216rpx;
  720. height: 64rpx;
  721. font-weight: 400;
  722. font-size: 24rpx;
  723. color: #626468;
  724. justify-content: center;
  725. background: #FFFFFF;
  726. border-radius: 32rpx 32rpx 32rpx 32rpx;
  727. text{
  728. margin-left:5rpx ;
  729. }
  730. }
  731. }
  732. }
  733. .sms-list {
  734. border-radius: 16rpx 16rpx 16rpx 16rpx;
  735. overflow: hidden;
  736. .item {
  737. padding: 0rpx 20rpx;
  738. background: #FFFFFF;
  739. border-bottom: 1rpx solid #ECECEC;
  740. .item-box {
  741. display: flex;
  742. align-items: flex-start;
  743. justify-content: space-between;
  744. height: 150rpx;
  745. padding: 30rpx 0;
  746. .left {
  747. flex: 1;
  748. display: flex;
  749. flex-direction: column;
  750. align-items: flex-start;
  751. justify-content: space-between;
  752. height: 100%;
  753. .title {
  754. font-family: PingFang SC, PingFang SC;
  755. font-weight: 600;
  756. font-size: 32rpx;
  757. color: #222426;
  758. text-align: left;
  759. }
  760. .unit {
  761. font-weight: 400;
  762. font-size: 28rpx;
  763. color: #898E91;
  764. text-align: left;
  765. }
  766. .num {
  767. font-family: PingFang SC, PingFang SC;
  768. font-weight: 600;
  769. font-size: 32rpx;
  770. color: #FF5030;
  771. text-align: left;
  772. margin-right: 16rpx;
  773. }
  774. .tag2 {
  775. width: 58rpx;
  776. height: 30rpx;
  777. line-height: 30rpx;
  778. font-family: PingFang SC, PingFang SC;
  779. font-weight: 400;
  780. font-size: 21rpx;
  781. color: #52D087;
  782. text-align: center;
  783. border-radius: 4rpx 4rpx 4rpx 4rpx;
  784. border: 1rpx solid #B0EAC9;
  785. }
  786. .tag {
  787. width: 58rpx;
  788. height: 30rpx;
  789. line-height: 30rpx;
  790. font-family: PingFang SC, PingFang SC;
  791. font-weight: 400;
  792. font-size: 21rpx;
  793. color: #FF4B33;
  794. text-align: center;
  795. border-radius: 4rpx 4rpx 4rpx 4rpx;
  796. border: 1rpx solid #FFA599;
  797. }
  798. .reference {
  799. font-family: PingFang SC, PingFang SC;
  800. font-weight: 400;
  801. font-size: 24rpx;
  802. color: #898E91;
  803. text-align: left;
  804. }
  805. }
  806. }
  807. &:last-child .item-box{
  808. border-bottom: 0;
  809. }
  810. }
  811. }
  812. }
  813. </style>