ems.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <view class="page" :style="{'min-height':(h)+'px','padding-top':mt+'px'}">
  3. <c-nav-bar title="核销"></c-nav-bar>
  4. <image @click="hexiao" src="https://i.ringzle.com/file/20240317/d5f047e986a04bff9cfbfef2c5dab095.png"></image>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. boatNo:'',
  12. price:''
  13. //merchantType:uni.getStorageSync('merchantType');
  14. }
  15. },
  16. onLoad(opt) {
  17. },
  18. methods: {
  19. hexiao() {
  20. console.log('21321321',)
  21. uni.scanCode({
  22. onlyFromCamera: true,
  23. success: (res) => {
  24. console.log('扫描二维码成功,结果:' + res.result);
  25. uni.navigateTo({
  26. url: "/pagesHouse/Verification/detailsewm?list=" + res.result
  27. })
  28. },
  29. error: (res) => {
  30. console.log('扫描二维码出现错误')
  31. }
  32. })
  33. }
  34. }
  35. }
  36. </script>
  37. <style scoped lang="less">
  38. .page{
  39. text-align: center;
  40. box-sizing: border-box;
  41. }
  42. image{
  43. width: 345rpx;
  44. height: 345rpx;
  45. margin: 80rpx 0 24rpx;
  46. }
  47. .tip{
  48. font-size: 32rpx;
  49. color: #111;
  50. text{
  51. margin-right:12rpx;
  52. }
  53. }
  54. .price{
  55. margin: 28rpx 0 110rpx;
  56. text{
  57. &:first-child{
  58. font-size: 36rpx;
  59. }
  60. &:last-child{
  61. font-size: 48rpx;
  62. font-weight: bold;
  63. }
  64. }
  65. }
  66. .btn{
  67. width: 610rpx;
  68. height: 88rpx;
  69. line-height: 88rpx;
  70. background-color: #007A69;
  71. color: #fff;
  72. font-size: 32rpx;
  73. border-radius: 46rpx;
  74. margin: 0 auto;
  75. }
  76. </style>