scanning_B.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template>
  2. <view class="Scanning_B">
  3. <view class="Scanning_top" v-if="res.status==200">
  4. <view class="Scanning_top_icon">
  5. <text class="cubeic-ok icon_transport transport-duigou"></text>
  6. </view>
  7. <view class="Scanning_top_text">
  8. <view class="text1">扫描成功</view>
  9. </view>
  10. </view>
  11. <view class="Scanning_top" v-if="res.status!=200">
  12. <view class="Scanning_top_icon">
  13. <text class="cubeic-close icon_transport transport-shibai"></text>
  14. </view>
  15. <view class="Scanning_top_text">
  16. <view class="text1">扫描失败</view>
  17. </view>
  18. </view>
  19. <view class="Scanning_cont" v-if="res.status==200">
  20. <view>标本类型 : {{infoDATA.stype.name||'-'}}</view>
  21. <view>标本编码 : {{infoDATA.scode||'-'}}</view>
  22. <view>患者床号 : {{infoDATA.bedNum||'-'}}</view>
  23. <view>申请科室 : {{infoDATA.sickRoom||'-'}}</view>
  24. <view>检查科室 : {{infoDATA.checkDept||'-'}}</view>
  25. </view>
  26. <view class="Scanning_cont" v-if="res.status!=200">
  27. <view>{{res.msg}}</view>
  28. </view>
  29. <view class="foot_btn">
  30. <view class="btn3" @click="showAlert()">知道了</view>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. import {
  36. webHandle
  37. } from '../../http/http.js'
  38. export default {
  39. data() {
  40. return {
  41. infoDATA: {},
  42. res: {}
  43. };
  44. },
  45. methods: {
  46. // 知道了
  47. showAlert() {
  48. uni.navigateTo({
  49. url: '../receiptpage/receiptpage'
  50. });
  51. }
  52. },
  53. onLoad(options) {
  54. this.infoDATA = JSON.parse(options.infoDATA); //详细信息
  55. console.log(this.infoDATA)
  56. this.res["status"] = options.status; //状态码
  57. this.res["msg"] = options.msg; //返回的信息
  58. // #ifdef APP-PLUS
  59. webHandle('no', 'app')
  60. // #endif
  61. // #ifdef H5
  62. webHandle('no', 'wx')
  63. // #endif
  64. }
  65. };
  66. </script>
  67. <style lang="less">
  68. .Scanning_B {
  69. padding: 0px 74rpx;
  70. .Scanning_top {
  71. height: 270rpx;
  72. .Scanning_top_icon {
  73. width: 140rpx;
  74. height: 140rpx;
  75. margin: 0 auto;
  76. margin-top: 116rpx;
  77. border-radius: 50%;
  78. line-height: 140rpx;
  79. text-align: center;
  80. .cubeic-ok {
  81. font-size: 140rpx;
  82. color: #35b34a
  83. }
  84. .cubeic-close {
  85. font-size: 140rpx;
  86. color: #ff3b53;
  87. }
  88. }
  89. .Scanning_top_text {
  90. .text1 {
  91. margin-top: 40rpx;
  92. font-size: 48rpx;
  93. text-align: center;
  94. }
  95. }
  96. }
  97. .Scanning_cont {
  98. font-size: 32rpx;
  99. view {
  100. margin-bottom: 16rpx;
  101. text-align: center;
  102. }
  103. .text {
  104. margin-top: 24rpx;
  105. color: #35b34a;
  106. }
  107. .text1 {
  108. margin-top: 24rpx;
  109. color: #ff3b53;
  110. }
  111. }
  112. .foot_btn {
  113. line-height: 88rpx;
  114. height: 100rpx;
  115. margin-top: 40rpx;
  116. .btn3 {
  117. height: 88rpx;
  118. width: 45%;
  119. background-image: linear-gradient(to right, #72c172, #3bb197);
  120. color: #fff;
  121. border-radius: 8rpx;
  122. font-size: 32rpx;
  123. margin-top: 16rpx;
  124. text-align: center;
  125. }
  126. .btn3 {
  127. margin: 0 auto;
  128. }
  129. }
  130. }
  131. </style>