order.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/order/1.png"></image>
  8. <image v-else-if="product_type=='2'" class="img" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/order/2.png"></image>
  9. <image v-else-if="product_type=='3'" class="img" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/order/3.png"></image>
  10. <image v-else-if="product_type=='4'" class="img" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/order/4.png"></image>
  11. <image v-else-if="product_type=='5'" class="img" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/order/5.png"></image>
  12. <image v-else-if="product_type=='6'" class="img" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/order/6.png"></image>
  13. <image v-else-if="product_type=='7'" class="img" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/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'">您已发起图文咨询</text>
  19. <text v-else-if="product_type=='3'">您已发起门诊预约</text>
  20. <text v-else-if="product_type=='4'||product_type=='5'">您已提交预约申请!</text>
  21. <text v-else-if="product_type=='6'">您已充值成功</text>
  22. <text v-else>您已成功购买服务包</text>
  23. </view>
  24. <!-- 灰字 -->
  25. <view class="describe" v-if="product_type=='3' || product_type=='4'||product_type=='5'">
  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">
  34. <u-button v-if="product_type==1||product_type==2" type="primary">查看咨询</u-button>
  35. <u-button v-else-if="product_type==3||product_type==4||product_type==5" type="primary">查看预约</u-button>
  36. <u-button v-else type="primary">查看服务包</u-button>
  37. </view>
  38. <view class="b">
  39. <u-button :hair-line="false" @click="gotoindex" style="color: #0B73B9;box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);">返回首页</u-button>
  40. </view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. export default {
  46. onLoad(op) {
  47. this.product_type = op.type
  48. },
  49. data() {
  50. return {
  51. // 产品类型
  52. product_type: ''
  53. }
  54. },
  55. methods: {
  56. gotoindex() {
  57. uni.switchTab({
  58. url: "../index/index"
  59. })
  60. }
  61. },
  62. onShow() {
  63. }
  64. }
  65. </script>
  66. <style lang="scss">
  67. .card {
  68. height: 35%;
  69. width: 100%;
  70. border-radius: 20rpx;
  71. box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);
  72. .card_img {
  73. height: 40%;
  74. width: 100%;
  75. display: flex; //
  76. justify-content: center;
  77. align-items: flex-end;
  78. .img {
  79. height: 100rpx;
  80. width: 100rpx;
  81. }
  82. }
  83. .card_text {
  84. height: 25%;
  85. width: 100%;
  86. display: flex;
  87. justify-content: center;
  88. align-items: center;
  89. text {
  90. font-size: 36rpx;
  91. font-weight: bold;
  92. color: #333333;
  93. }
  94. }
  95. .describe {
  96. height: 35%;
  97. width: 100%;
  98. display: block;
  99. text-align: center;
  100. view {
  101. padding-top: 5rpx;
  102. font-size: 28rpx;
  103. color: #999999;
  104. }
  105. }
  106. }
  107. .button {
  108. height: 15%;
  109. width: 100%;
  110. display: block;
  111. align-items: flex-end;
  112. .b {
  113. padding: 10rpx 0;
  114. width: 100%;
  115. }
  116. }
  117. </style>