ems.vue 1.3 KB

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