app-result.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <view class="app-content">
  3. <view class="billing_box_bg">
  4. <view class="top-view"> </view>
  5. <view class="result-view">
  6. <view :class="['iconfont', icon]"></view>
  7. <slot name="title">
  8. <view class="result-title">{{ title }}</view>
  9. </slot>
  10. <slot></slot>
  11. </view>
  12. </view>
  13. <slot name="content"></slot>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. name: "AppResult",
  19. props:{
  20. title:{
  21. type:String,
  22. default: '开单成功'
  23. },
  24. icon:{
  25. type:String,
  26. default: 'iconchenggong'
  27. }
  28. }
  29. };
  30. </script>
  31. <style lang="scss" scoped>
  32. .billing_box_bg {
  33. position: relative;
  34. padding: 20upx 30upx;
  35. display: flex;
  36. background: white;
  37. flex-direction: column;
  38. background-color: #f5f5f5;
  39. .top-view {
  40. position: absolute;
  41. top: 0;
  42. left: 0;
  43. width: 100%;
  44. height: 299upx;
  45. background: #3385ff;
  46. border-radius: 0upx 0upx 83upx 83upx;
  47. }
  48. .result-view {
  49. position: relative;
  50. display: flex;
  51. flex-direction: column;
  52. align-items: center;
  53. padding: 30upx 70upx 70upx 70upx;
  54. width: 100%;
  55. background: #ffffff;
  56. border-radius: 20upx;
  57. z-index: 1;
  58. .iconchenggong {
  59. font-size: 120upx;
  60. color: $mainColor1;
  61. }
  62. .icondaizhifu {
  63. font-size: 150upx;
  64. color: #ffa92e;
  65. }
  66. .result-title {
  67. margin: 25upx 0 40upx;
  68. font-size: 30upx;
  69. }
  70. }
  71. }
  72. </style>