order.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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=='7'">您已充值成功</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" @click="gotoinfo">查看咨询</u-button>
  35. <u-button v-else-if="product_type==3||product_type==4||product_type==5" type="primary" @click="yuyueinfo">查看预约</u-button>
  36. <u-button v-else type="primary" @click="gotoservice">查看服务包</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. mounted() {
  56. },
  57. methods: {
  58. gotoindex() {
  59. uni.switchTab({
  60. url: "../index/index"
  61. })
  62. },
  63. gotoinfo() {
  64. uni.navigateTo({
  65. url: "../common_tools/my_consulting/my_consulting"
  66. })
  67. },
  68. yuyueinfo() {
  69. uni.navigateTo({
  70. url: "../common_tools/my_consulting/my_appointment"
  71. })
  72. },
  73. gotoservice() {
  74. uni.redirectTo({
  75. url: "../service_box/box_details"
  76. })
  77. },
  78. },
  79. onShow() {
  80. }
  81. }
  82. </script>
  83. <style lang="scss">
  84. .card {
  85. height: 35%;
  86. width: 100%;
  87. border-radius: 20rpx;
  88. box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);
  89. .card_img {
  90. height: 40%;
  91. width: 100%;
  92. display: flex; //
  93. justify-content: center;
  94. align-items: flex-end;
  95. .img {
  96. height: 100rpx;
  97. width: 100rpx;
  98. }
  99. }
  100. .card_text {
  101. height: 25%;
  102. width: 100%;
  103. display: flex;
  104. justify-content: center;
  105. align-items: center;
  106. text {
  107. font-size: 36rpx;
  108. font-weight: bold;
  109. color: #333333;
  110. }
  111. }
  112. .describe {
  113. height: 35%;
  114. width: 100%;
  115. display: block;
  116. text-align: center;
  117. view {
  118. padding-top: 5rpx;
  119. font-size: 28rpx;
  120. color: #999999;
  121. }
  122. }
  123. }
  124. .button {
  125. height: 15%;
  126. width: 100%;
  127. display: block;
  128. align-items: flex-end;
  129. .b {
  130. padding: 10rpx 0;
  131. width: 100%;
  132. }
  133. }
  134. </style>