ems.vue 1.7 KB

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