guide.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view class="app-container">
  3. <u-navbar
  4. title=""
  5. bgColor="#fff"
  6. :fixed="true"
  7. :autoBack="false"
  8. leftIconColor="#333333"
  9. leftIconSize="28"
  10. @leftClick="handleLeftClick"
  11. >
  12. </u-navbar>
  13. <view class="app-container-item flex-column-center">
  14. <view style="color: #333333;font-size: 18px;font-weight: bold;height: 40px;line-height: 40px;margin-bottom: 5px">预订须知</view>
  15. <div v-html="content"></div>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. components: {},
  22. data() {
  23. return {
  24. userInfo: {},
  25. loading: true,
  26. isLogin: true,
  27. picUrl: this.$require,
  28. content: `<p>1、票型有效期:仅限游玩当日有效。</p> <p>2、检票方式:刷脸(开通快速入园后)、刷 身份证(原件)、刷二维码或现场手输身份证号入园。</p> <p>3、退改规则:一经检票,不得退票。</p> <p>4、实名制一证一票。门票仅限入园1次,不可重复入园。</p> <p>5、禁止携带宠物入园。</p>`
  29. };
  30. },
  31. onLoad() {
  32. console.log('onLoad')
  33. },
  34. onShow() {
  35. this.userInfo = uni.getStorageSync('userInfo')
  36. this.userInfo = {
  37. ...this.userInfo,
  38. phone: '18322568765'
  39. };
  40. // this.isLogin = this.userInfo.username ? true : false;
  41. },
  42. methods: {
  43. handleLeftClick() {
  44. //获取页面栈的长度
  45. const canNavBack = getCurrentPages()
  46. //判断是否刷新了浏览器,刷新了浏览器,页面栈只有当前一个
  47. if (canNavBack && canNavBack.length > 1) {
  48. uni.navigateBack({
  49. delta: 1
  50. })
  51. } else {
  52. history.back()
  53. }
  54. },
  55. getGuideInfo() {
  56. // this.isLogin = true;
  57. },
  58. }
  59. };
  60. </script>
  61. <style lang="scss" scoped>
  62. .app-container {
  63. width: 100vw;
  64. background: #fff;
  65. position: relative;
  66. height: 100vh;
  67. &-item {
  68. position: absolute;
  69. top: 44px;
  70. padding: 10px 20px;
  71. }
  72. }
  73. </style>