result.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <!-- 胎号查询成功页面 -->
  2. <template>
  3. <view>
  4. <view class="head">
  5. <view class="tips">
  6. <image src="../../../static/sailun/successful.png" mode=""></image>
  7. <view>查询成功</view>
  8. </view>
  9. <view class="stripe"></view>
  10. <view class="roll">
  11. <view>232654561651</view>
  12. <view>
  13. <view></view>
  14. <view></view>
  15. <u-line color="#f4f4f4" border-style="dashed" :hair-line="true" length="94%" style="margin: 0 auto;padding-top: 30rpx;" />
  16. </view>
  17. <view class="Exhibition">
  18. <view><text>轮胎胎号</text><text>232654561651</text></view>
  19. <view><text>轮胎类型</text><text>扫码出库</text></view>
  20. <view><text>轮胎品牌</text><text>赛轮轮胎</text></view>
  21. <view><text>轮胎规格</text><text>12R22.5</text></view>
  22. <view><text>创建时间</text><text>2020-02-22 10:22:23</text></view>
  23. </view>
  24. </view>
  25. <u-button type="primary" shape="circle" class="button">继续查询</u-button>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. data() {
  32. return {
  33. };
  34. },
  35. created() {
  36. this.add()
  37. },
  38. methods: {
  39. add(){
  40. uni.scanCode({
  41. success: function (res) {
  42. console.log('条码类型:' + res.scanType);
  43. console.log('条码内容:' + res.result);
  44. }
  45. })
  46. }
  47. }
  48. }
  49. </script>
  50. <style lang="scss" scoped>
  51. .button {
  52. width: 90%;
  53. margin-top: 200rpx;
  54. }
  55. .head {
  56. width: 750rpx;
  57. height: 440rpx;
  58. background-color: #0095FF;
  59. .stripe {
  60. width: 650rpx;
  61. height: 30rpx;
  62. background: rgba(0, 0, 0, 0.2);
  63. border-radius: 12rpx;
  64. margin: 0 auto;
  65. margin-top: 40rpx;
  66. }
  67. .roll>view:nth-child(1) {
  68. font-size: 42rpx;
  69. font-weight: bold;
  70. color: #0192FD;
  71. text-align: center;
  72. margin-bottom: 50rpx;
  73. }
  74. .roll {
  75. width: 600rpx;
  76. height: auto;
  77. background: #FFFFFF;
  78. margin: 0 auto;
  79. margin-top: -15rpx;
  80. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(101, 176, 249, 0.3);
  81. border-bottom-left-radius: 10rpx;
  82. border-bottom-right-radius: 10rpx;
  83. padding-top: 50rpx;
  84. padding-bottom: 40rpx;
  85. view:nth-child(2) {
  86. width: 100%;
  87. height: auto;
  88. view:nth-child(1),
  89. {
  90. width: 50rpx;
  91. height: 50rpx;
  92. background-color: #F4F4F4;
  93. border-radius: 100%;
  94. float: left;
  95. margin-left: -30rpx;
  96. }
  97. view:nth-child(2) {
  98. width: 50rpx;
  99. height: 50rpx;
  100. background-color: #F4F4F4;
  101. border-radius: 100%;
  102. float: right;
  103. margin-right: -30rpx;
  104. }
  105. }
  106. }
  107. .tips {
  108. text-align: center;
  109. image {
  110. margin-top: 60rpx;
  111. width: 106rpx;
  112. height: 112rpx;
  113. }
  114. view {
  115. margin-top: 50rpx;
  116. color: #FFFFFF;
  117. font-size: 32rpx;
  118. font-weight: bold;
  119. }
  120. }
  121. }
  122. .Exhibition {
  123. width: 94%;
  124. margin: 0 auto;
  125. margin-top: 25rpx;
  126. }
  127. .Exhibition>view{
  128. margin-bottom: 10rpx;
  129. }
  130. .Exhibition>view>text:nth-child(2) {
  131. float: right;
  132. }
  133. </style>