app-result.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <view>
  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. .app-content{
  33. min-height: 40wh;
  34. }
  35. .billing_box_bg {
  36. position: relative;
  37. padding: 60upx 30upx 30upx;
  38. display: flex;
  39. flex-direction: column;
  40. background-color: #f5f5f5;
  41. .top-view {
  42. position: absolute;
  43. top: 0;
  44. left: 0;
  45. width: 100%;
  46. height: 299upx;
  47. background: #3385ff;
  48. border-radius: 0upx 0upx 83upx 83upx;
  49. }
  50. .result-view {
  51. position: relative;
  52. display: flex;
  53. flex-direction: column;
  54. align-items: center;
  55. padding: 70upx;
  56. width: 100%;
  57. background: #ffffff;
  58. border-radius: 20upx;
  59. z-index: 1;
  60. .iconchenggong {
  61. font-size: 170upx;
  62. color: $mainColor1;
  63. }
  64. .icondaizhifu {
  65. font-size: 170upx;
  66. color: #ffa92e;
  67. }
  68. .result-title {
  69. margin: 50upx 0 70upx;
  70. font-size: 32upx;
  71. }
  72. }
  73. }
  74. </style>