index.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <view class="flex-common-css">
  3. <Nav :leftShow='false' :customNav='true' title="" bgckgroundBox='#EF1F0C'></Nav>
  4. <view class="flex-1 flex-direction iPhone-bottom box-border-box">
  5. <image class="qd-bg" src="@/static/img/order-food/qd-bg.png" mode=""></image>
  6. <view class="order-food-box p-0-32 box-border-box">
  7. <view class="order-food p-32 box-border-box bgc-f b-rad-24" @click="goToUrl()">
  8. <view
  9. class="b-FFD7CC bc-FFEDE9-FFF1EE b-rad-24 p-20-32 box-border-box align-items-center flex-justify-space">
  10. <view class="flex-direction">
  11. <view class="align-items-center mb-8">
  12. <view class="fs-36 fc-3 fw-600">
  13. 堂食扫码点餐
  14. </view>
  15. <image class="right-h" src="@/static/img/order-food/right-h.png" mode=""></image>
  16. </view>
  17. <view class="fs-28 fc-9">
  18. 自助下单方便快捷
  19. </view>
  20. </view>
  21. <image class="zh-img" src="@/static/img/order-food/zh-img.png" mode=""></image>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. import {
  30. appletLogin
  31. } from "@/api/member";
  32. import tools from "@/service/tools";
  33. export default {
  34. components: {},
  35. data() {
  36. return {}
  37. },
  38. onLoad(data) {
  39. // if (data) {
  40. // uni.setStorageSync('shop_id', data.shop_id)
  41. // }
  42. },
  43. onShow() {
  44. // uni.setStorageSync('shop_id', 111)
  45. // uni.setStorageSync('table_number', 1)
  46. // this.login()
  47. },
  48. mounted() {},
  49. methods: {
  50. // login() {
  51. // uni.login({
  52. // provider: "weixin",
  53. // success: (loginRes) => {
  54. // this.appletLogin(loginRes.code);
  55. // },
  56. // fail: (loginRes) => {
  57. // this.isAjax = false;
  58. // tools.error("获取授权信息失败");
  59. // },
  60. // });
  61. // },
  62. // appletLogin(code) {
  63. // appletLogin({
  64. // 'code': code
  65. // }).then(res => {
  66. // if (res.code === 1) {
  67. // uni.setStorageSync('token', res.data.token)
  68. // uni.setStorageSync('m_id', res.data.m_id)
  69. // // this.goToUrl()
  70. // }
  71. // })
  72. // },
  73. goToUrl(shop_id) {
  74. uni.reLaunch({
  75. url: '/pages-takeout/new-shop?shop_id=' + shop_id
  76. });
  77. }
  78. }
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. .qd-bg {
  83. width: 100%;
  84. height: 696rpx;
  85. }
  86. .order-food-box {
  87. position: relative;
  88. }
  89. .order-food {
  90. width: calc(100% - 64rpx);
  91. position: absolute;
  92. left: 32rpx;
  93. top: -90rpx;
  94. }
  95. .bc-FFEDE9-FFF1EE {
  96. background: linear-gradient(90deg, #FFEDE9 0%, #FFF1EE 100%);
  97. }
  98. .zh-img {
  99. width: 148rpx;
  100. height: 148rpx;
  101. }
  102. .right-h {
  103. width: 40rpx;
  104. height: 40rpx;
  105. }
  106. </style>