appointResult.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <template>
  2. <view>
  3. <view class="container">
  4. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall/weixin/appoint-success.png" class="success-img"></image>
  5. <view class="success-title">恭喜您,预约成功!</view>
  6. <view class="success-tips">服务人员上门前会与您联系 请注意接听电话</view>
  7. <view class="btn-wrapper">
  8. <view class="view-order" @tap="goOrder">查看订单</view>
  9. <view class="back-index" @tap="goIndex">返回首页</view>
  10. </view>
  11. </view>
  12. <!-- bind:click="onClickHide" -->
  13. <van-overlay :show="appointShow" @click="onClickHide">
  14. <view class="appoint-wrapper">
  15. <view class="appoint-block" @tap.stop.prevent="appointClick">
  16. <view class="pay-title">鲸致生活</view>
  17. <view class="appoint-tips">关注抖音号 获取惊喜福利</view>
  18. <view class="appoint-btn" @tap.stop.prevent="goAppoint">立即关注</view>
  19. </view>
  20. </view>
  21. </van-overlay>
  22. </view>
  23. </template>
  24. <script>
  25. var util = require('../../../utils/util.js');
  26. var api = require('../../../config/api.js');
  27. var app = getApp();
  28. export default {
  29. data() {
  30. return {
  31. appointShow: false,
  32. id: ''
  33. };
  34. },
  35. onLoad: function (options) {
  36. // 页面初始化 options为页面跳转所带来的参数
  37. if (options.id) {
  38. this.setData({
  39. id: options.id
  40. });
  41. }
  42. },
  43. onReady: function () {},
  44. onShow: function () {
  45. // 页面显示
  46. },
  47. onHide: function () {
  48. // 页面隐藏
  49. },
  50. onUnload: function () {
  51. // 页面关闭
  52. },
  53. methods: {
  54. goIndex() {
  55. uni.switchTab({
  56. url: '/pages/index/index'
  57. });
  58. },
  59. goOrder() {
  60. uni.navigateTo({
  61. url: '/pages/ucenter/serviceDetail/serviceDetail?orderId=' + this.id
  62. });
  63. },
  64. onClickHide() {
  65. this.setData({
  66. appointShow: false
  67. });
  68. },
  69. appointClick() {},
  70. goAppoint() {
  71. this.setData({
  72. appointShow: false
  73. });
  74. }
  75. }
  76. };
  77. </script>
  78. <style>
  79. page {
  80. min-height: 100%;
  81. width: 100%;
  82. background: #f5f5f5;
  83. }
  84. .container {
  85. padding: 96rpx 0 0;
  86. text-align: center;
  87. }
  88. .container .success-img {
  89. width: 186rpx;
  90. height: 154rpx;
  91. margin-bottom: 42rpx;
  92. }
  93. .success-title {
  94. color: #333333;
  95. font-size: 32rpx;
  96. height: 32rpx;
  97. line-height: 32rpx;
  98. }
  99. .success-tips {
  100. font-size: 24rpx;
  101. height: 32rpx;
  102. line-height: 32rpx;
  103. margin: 32rpx 0 68rpx;
  104. }
  105. .container .btn-wrapper {
  106. display: flex;
  107. justify-content: space-between;
  108. padding: 0 154rpx;
  109. }
  110. .view-order {
  111. width: 200rpx;
  112. height: 70rpx;
  113. border: 1rpx solid #999999;
  114. border-radius: 70rpx;
  115. line-height: 70rpx;
  116. font-size: 30rpx;
  117. color: #333;
  118. text-align: center;
  119. }
  120. .back-index {
  121. width: 200rpx;
  122. height: 70rpx;
  123. background: #00c0ff;
  124. border-radius: 70rpx;
  125. line-height: 70rpx;
  126. font-size: 30rpx;
  127. color: #fff;
  128. text-align: center;
  129. }
  130. /* 弹框 */
  131. .appoint-wrapper {
  132. height: 100%;
  133. display: flex;
  134. align-items: center;
  135. justify-content: center;
  136. }
  137. .appoint-block {
  138. background: url('https://jzmall.lifejingzhi.com/file/jzmall/weixin/appoint-dia.png') no-repeat center;
  139. background-size: 100% 100%;
  140. width: 576rpx;
  141. height: 524rpx;
  142. padding-top: 248rpx;
  143. display: flex;
  144. flex-direction: column;
  145. align-items: center;
  146. }
  147. .appoint-block .pay-title {
  148. height: 30rpx;
  149. font-size: 30rpx;
  150. line-height: 30rpx;
  151. color: #333;
  152. }
  153. .appoint-block .appoint-tips {
  154. height: 26rpx;
  155. font-size: 26rpx;
  156. line-height: 26rpx;
  157. margin: 32rpx 0 70rpx;
  158. }
  159. .appoint-btn {
  160. width: 458rpx;
  161. height: 80rpx;
  162. line-height: 80rpx;
  163. border-radius: 80rpx;
  164. text-align: center;
  165. color: #fff;
  166. background: #00c0ff;
  167. }
  168. </style>