百富门答题小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

203 lines
4.0 KiB

11 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
8 months ago
11 months ago
11 months ago
8 months ago
8 months ago
11 months ago
8 months ago
8 months ago
8 months ago
11 months ago
8 months ago
8 months ago
8 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
8 months ago
  1. <template>
  2. <view class="page">
  3. <image :src="configList.img_13"
  4. class="page-bg"
  5. mode="aspectFill"></image>
  6. <image :src="configList.img_7"
  7. class="logo"
  8. mode="widthFix"></image>
  9. <view class="service">
  10. <image :src="configList[mapKey[key].icon]"
  11. class="img_2"
  12. mode="widthFix"></image>
  13. <view class="title">
  14. {{ mapKey[key].title }}
  15. </view>
  16. <!-- // this.date = new Date(`${res.result.yearValue}-${res.result.monthDay} ${res.result.dayTime}:00`).getTime() -->
  17. <view class="stext" v-if="mapKey[key].stext">
  18. <uv-parse :content="mapKey[key].stext"></uv-parse>
  19. </view>
  20. <view class="stext" v-else-if="key == 'reservationSuccessful'">
  21. {{ form.name }}先生/小姐
  22. <br />
  23. 我们已成功安排了您的上门威士忌品鉴服务
  24. <br />
  25. 我们的专员将在{{ form.yearValue }}{{ form.monthDay }} {{ form.dayTime }} 到达
  26. <br />
  27. {{ form.province || '' }}
  28. {{ form.city || '' }}
  29. {{ form.area || '' }}
  30. {{ form.address || '' }}
  31. <view class=""
  32. style="margin: 0 auto;margin-top: 40rpx;width: 500rpx;">
  33. 为您带来精致的品鉴体验期待与您共享这段美妙的威士忌之旅
  34. </view>
  35. </view>
  36. <view class="stext" v-else-if="key == 'reservationError'">
  37. {{ form.remarks || '' }} 您可以点击下方按钮重新预约上门品鉴时间
  38. </view>
  39. </view>
  40. <view class="btn-list">
  41. <view class="next-btn-2"
  42. v-if="mapKey[key].next"
  43. @click="next(mapKey[key])">
  44. 重新预约
  45. </view>
  46. <view class="next-btn"
  47. v-if="mapKey[key].rep"
  48. @click="rep(mapKey[key])">
  49. 返回
  50. </view>
  51. </view>
  52. <view class="second-color">{{ configList.bg_title }}</view>
  53. </view>
  54. </template>
  55. <script>
  56. export default {
  57. data() {
  58. return {
  59. mapKey : {
  60. success_text : {
  61. rep : '/pages/index/end',
  62. icon : 'img_3',
  63. title : '提交成功',
  64. stext : `
  65. 后台正在为您匹配合适的品鉴资源, <br>
  66. 我们会在匹配结束后 <br>
  67. 发送微信推送及电话联系您确认!
  68. `,
  69. },
  70. reservationSuccessful : {
  71. icon : 'img_3',
  72. title : '预约成功',
  73. },
  74. reservationError : {
  75. next : true,
  76. icon : 'img_10',
  77. title : '预约失败!',
  78. },
  79. },
  80. key : '',
  81. id : '',
  82. form : {
  83. name : '',
  84. },
  85. date : 0,
  86. }
  87. },
  88. onLoad({key, id}) {
  89. this.key = key
  90. this.id = id
  91. },
  92. onShow() {
  93. if(this.id){
  94. this.getDetail()
  95. }
  96. },
  97. methods: {
  98. rep(map){
  99. uni.reLaunch({
  100. url: map.rep
  101. })
  102. },
  103. getDetail(){
  104. this.$api('queryReservationDetail',{
  105. id : this.id
  106. }, res => {
  107. if(res.code == 200){
  108. // this.date = new Date(`${res.result.yearValue}-${res.result.monthDay} ${res.result.dayTime}:00`).getTime()
  109. this.form = res.result
  110. }
  111. })
  112. },
  113. next(map){
  114. uni.navigateTo({
  115. url: '/pages_order/info/appoint'
  116. // url: '/pages/index/preAppoint'//'/pages/index/preAppoint'
  117. })
  118. },
  119. }
  120. }
  121. </script>
  122. <style scoped lang="scss">
  123. .page{
  124. .logo{
  125. width: 600rpx;
  126. margin: 150rpx 75rpx;
  127. }
  128. .service{
  129. display: flex;
  130. flex-direction: column;
  131. align-items: center;
  132. .img_2{
  133. margin: 0 auto;
  134. width: 100rpx;
  135. }
  136. .title{
  137. font-weight: 900;
  138. margin: 30rpx 0;
  139. }
  140. .stext{
  141. width: 600rpx;
  142. margin-bottom: 150rpx;
  143. line-height: 50rpx;
  144. font-size: 26rpx;
  145. color: #777;
  146. text-align: center;
  147. }
  148. }
  149. .btn-list{
  150. display: flex;
  151. flex-direction: column;
  152. gap: 40rpx;
  153. width: 100%;
  154. justify-content: center;
  155. align-items: center;
  156. }
  157. .next-btn{
  158. width: 400rpx;
  159. display: flex;
  160. align-items: center;
  161. justify-content: center;
  162. color: white;
  163. padding: 22rpx 90rpx;
  164. background-color: $uni-color;
  165. border-radius: 40rpx;
  166. }
  167. .next-btn-2{
  168. width: 400rpx;
  169. display: flex;
  170. align-items: center;
  171. justify-content: center;
  172. color: white;
  173. padding: 22rpx 90rpx;
  174. background-color: $uni-color-primary;
  175. border-radius: 40rpx;
  176. }
  177. .second-color{
  178. width: 100%;
  179. text-align: center;
  180. margin-top: 40rpx;
  181. }
  182. }
  183. </style>