Blame view

member-miniapp/pages/booking-success/booking-success.vue 3.08 KB
5c34676a   “wangming”   对会员端进行了设计
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
  <template>
    <view class="page-shell booking-success-page">
      <view class="page-blur"></view>
      <view class="page-blur-secondary"></view>
      <view class="page-blur-tertiary"></view>
  
      <view class="page-content subpage-content">
        <view class="subpage-nav">
          <view class="subpage-back" @tap="goHome">‹</view>
          <view class="subpage-title-wrap">
            <text class="subpage-title">预约提交成功</text>
            <text class="subpage-subtitle">门店已收到你的预约,稍后会电话联系你确认到店安排</text>
          </view>
        </view>
  
        <view class="subpage-hero glass-card success-hero">
          <text class="hero-kicker">BOOKING SUBMITTED</text>
          <text class="hero-title">预约需求已进入门店确认流程</text>
          <text class="hero-desc">{{ summary.date }} · {{ summary.time }} · {{ summary.store }}</text>
        </view>
  
        <view class="subpage-card">
          <view class="info-list">
            <view class="info-row">
              <text class="info-label">到店日期</text>
              <text class="info-value">{{ summary.date }}</text>
            </view>
            <view class="info-row">
              <text class="info-label">到店时间</text>
              <text class="info-value">{{ summary.time }}</text>
            </view>
            <view class="info-row">
              <text class="info-label">预约门店</text>
              <text class="info-value">{{ summary.store }}</text>
            </view>
            <view class="info-row">
              <text class="info-label">当前状态</text>
              <text class="info-value">待门店电话确认</text>
            </view>
            <view class="info-row">
              <text class="info-label">后续流程</text>
              <text class="info-value">确认后会补充本次护理安排,房间与健康师也会按沟通结果为你留好</text>
            </view>
          </view>
        </view>
  
        <view class="cta-row">
          <view class="secondary-button" @tap="viewProgress">查看确认进度</view>
          <view class="primary-button" @tap="goHome">返回首页</view>
        </view>
      </view>
    </view>
  </template>
  
  <script>
  export default {
    data() {
      return {
        summary: {
          date: '今天 03/19',
          time: '14:00',
          store: '绿纤大源店'
        }
      }
    },
    onLoad(options) {
      this.summary.date = options.date ? decodeURIComponent(options.date) : this.summary.date
      this.summary.time = options.time ? decodeURIComponent(options.time) : this.summary.time
      this.summary.store = options.store ? decodeURIComponent(options.store) : this.summary.store
    },
    methods: {
      goHome() {
        uni.reLaunch({ url: '/pages/home/home' })
      },
      viewProgress() {
        uni.navigateTo({
          url: `/pages/booking-consume-detail/booking-consume-detail?date=${encodeURIComponent(this.summary.date)}&time=${encodeURIComponent(this.summary.time)}&store=${encodeURIComponent(this.summary.store)}`
        })
      }
    }
  }
  </script>
  
  <style lang="scss" scoped>
  @import '@/styles/mixins.scss';
  @import '@/styles/subpage.scss';
  
  .success-hero {
    min-height: 260rpx;
  }
  </style>