order.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <template>
  2. <view style="padding: 40rpx 30rpx; background-color: #f6f6f6;height: 100vh;width: 100vw;">
  3. <!-- 卡片 -->
  4. <view class="card">
  5. <!-- 图片 -->
  6. <view class="card_img">
  7. <image v-if="product_type=='1'" class="img" src="../../static/order/1.png"></image>
  8. <image v-else-if="product_type=='2'" class="img" src="../../static/order/2.png"></image>
  9. <image v-else-if="product_type=='3'" class="img" src="../../static/order/3.png"></image>
  10. <image v-else-if="product_type=='4'" class="img" src="../../static/order/4.png"></image>
  11. <image v-else-if="product_type=='5'" class="img" src="../../static/order/5.png"></image>
  12. <image v-else-if="product_type=='6'" class="img" src="../../static/order/6.png"></image>
  13. <image v-else-if="product_type=='7'" class="img" src="../../static/order/7.png"></image>
  14. </view>
  15. <!-- 黑字 -->
  16. <view class="card_text">
  17. <text v-if="product_type=='1'">您已发起电话咨询</text>
  18. <text v-else-if="product_type=='2' || product_type=='3'">您已提交预约申请</text>
  19. <text v-else-if="product_type=='5'">您已发起儿保医生图文咨询请求</text>
  20. <text v-else-if="product_type=='4'">您已发起疫苗接种医生图文咨询请求</text>
  21. <text v-else-if="product_type=='7'">您已充值成功</text>
  22. <text v-else>您已成功购买服务包</text>
  23. </view>
  24. <!-- 灰字 -->
  25. <view class="describe" v-if="product_type=='1' || product_type=='6'">
  26. <view>我们会在预约成功后以短信的方式通知您</view>
  27. <view>请注意查收</view>
  28. </view>
  29. </view>
  30. <view style="height: 50%;"></view>
  31. <!-- 按钮 -->
  32. <view class="button">
  33. <view class="b"><u-button type="primary">查看服务包</u-button></view>
  34. <view class="b"><u-button :hair-line="false" style="color: #0B73B9;box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);">返回首页</u-button></view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. data() {
  41. return {
  42. // 产品类型
  43. product_type: '6'
  44. }
  45. },
  46. methods: {
  47. },
  48. onShow() {
  49. }
  50. }
  51. </script>
  52. <style lang="scss">
  53. .card {
  54. height: 35%;
  55. width: 100%;
  56. border-radius: 20rpx;
  57. box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);
  58. .card_img {
  59. height: 40%;
  60. width: 100%;
  61. display: flex;//
  62. justify-content: center;
  63. align-items: flex-end;
  64. .img {
  65. height: 100rpx;
  66. width: 100rpx;
  67. }
  68. }
  69. .card_text {
  70. height: 25%;
  71. width: 100%;
  72. display: flex;
  73. justify-content: center;
  74. align-items: center;
  75. text {
  76. font-size: 36rpx;
  77. font-weight: bold;
  78. color: #333333;
  79. }
  80. }
  81. .describe {
  82. height: 35%;
  83. width: 100%;
  84. display: block;
  85. text-align: center;
  86. view {
  87. padding-top: 5rpx;
  88. font-size: 28rpx;
  89. color: #999999;
  90. }
  91. }
  92. }
  93. .button{
  94. height: 15%;
  95. width: 100%;
  96. display: block;
  97. align-items: flex-end;
  98. .b{
  99. padding: 10rpx 0;
  100. width: 100%;
  101. }
  102. }
  103. </style>