erweima.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view class="content">
  3. <view class="flex fx">
  4. <image src="../../static/img/erweima.png" mode=""></image>
  5. <view class="" style="font-size: 32rpx;">
  6. 长按识别二维码,关注公众号
  7. </view>
  8. <view class="btn" @click="gohome">
  9. 返回首页
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {
  18. }
  19. },
  20. onLoad() {
  21. },
  22. onShow() {
  23. },
  24. onReachBottom() {
  25. },
  26. onReady() {
  27. },
  28. methods: {
  29. gohome() {
  30. uni.switchTab({
  31. url: '/pages/index/home'
  32. })
  33. }
  34. }
  35. }
  36. </script>
  37. <style lang="scss">
  38. page {
  39. background-color: #fff;
  40. height: auto;
  41. min-height: 100%;
  42. }
  43. .fx {
  44. width: 750rpx;
  45. flex-direction: column;
  46. justify-content: center;
  47. align-items: center;
  48. position: fixed;
  49. top: 0;
  50. bottom: 0;
  51. margin: auto;
  52. image {
  53. width: 400rpx;
  54. height: 400rpx;
  55. }
  56. }
  57. .btn {
  58. margin-top: 120rpx;
  59. width: 300rpx;
  60. line-height: 80rpx;
  61. color: #fff;
  62. background-color: #6786FB;
  63. text-align: center;
  64. border-radius: 15rpx;
  65. font-size: 36rpx;
  66. }
  67. </style>