ems.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. onlyFromCamera: true,
  22. success: (res) => {
  23. console.log('扫描二维码成功,结果:' + res.result);
  24. uni.navigateTo({
  25. url: "/pagesHouse/Verification/detailsewm?list=" + res.result
  26. })
  27. // this.$api.post('/api/merchant/food/scenic/merchant/order/verifyOrderQrCode?writeOffCode',res.result)
  28. // .then(res => {
  29. // if (res.data.code == 0) {
  30. // uni.navigateTo({
  31. // url: "/pagesHouse/Verification/detailsewm?list=" + JSON.stringify({
  32. // ...res.result
  33. // })
  34. // })
  35. // } else {
  36. // this.$showToast(res.data.msg)
  37. // }
  38. // })
  39. },
  40. error: (res) => {
  41. console.log('扫描二维码出现错误')
  42. }
  43. })
  44. }
  45. }
  46. }
  47. </script>
  48. <style scoped lang="less">
  49. .page{
  50. text-align: center;
  51. box-sizing: border-box;
  52. }
  53. image{
  54. width: 345rpx;
  55. height: 345rpx;
  56. margin: 80rpx 0 24rpx;
  57. }
  58. .tip{
  59. font-size: 32rpx;
  60. color: #111;
  61. text{
  62. margin-right:12rpx;
  63. }
  64. }
  65. .price{
  66. margin: 28rpx 0 110rpx;
  67. text{
  68. &:first-child{
  69. font-size: 36rpx;
  70. }
  71. &:last-child{
  72. font-size: 48rpx;
  73. font-weight: bold;
  74. }
  75. }
  76. }
  77. .btn{
  78. width: 610rpx;
  79. height: 88rpx;
  80. line-height: 88rpx;
  81. background-color: #007A69;
  82. color: #fff;
  83. font-size: 32rpx;
  84. border-radius: 46rpx;
  85. margin: 0 auto;
  86. }
  87. </style>