order.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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.requestSubscribeMessage({
  75. // tmplIds: ['3F_-_C-y0g8cdKhhf-3vR7eid_4cbTd9h6QKVW4EG3Q'],
  76. // success: (res) => {
  77. // console.log(res)
  78. // }
  79. // })
  80. uni.redirectTo({
  81. url: "../service_box/box_details"
  82. })
  83. }
  84. },
  85. onShow() {
  86. }
  87. }
  88. </script>
  89. <style lang="scss">
  90. .card {
  91. height: 35%;
  92. width: 100%;
  93. border-radius: 20rpx;
  94. box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);
  95. .card_img {
  96. height: 40%;
  97. width: 100%;
  98. display: flex; //
  99. justify-content: center;
  100. align-items: flex-end;
  101. .img {
  102. height: 100rpx;
  103. width: 100rpx;
  104. }
  105. }
  106. .card_text {
  107. height: 25%;
  108. width: 100%;
  109. display: flex;
  110. justify-content: center;
  111. align-items: center;
  112. text {
  113. font-size: 36rpx;
  114. font-weight: bold;
  115. color: #333333;
  116. }
  117. }
  118. .describe {
  119. height: 35%;
  120. width: 100%;
  121. display: block;
  122. text-align: center;
  123. view {
  124. padding-top: 5rpx;
  125. font-size: 28rpx;
  126. color: #999999;
  127. }
  128. }
  129. }
  130. .button {
  131. height: 15%;
  132. width: 100%;
  133. display: block;
  134. align-items: flex-end;
  135. .b {
  136. padding: 10rpx 0;
  137. width: 100%;
  138. }
  139. }
  140. </style>