back-status.vue 937 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <view class="slot">
  3. <view class="status"><text v-if="type == '0'">退款成功</text></view>
  4. <view class="desc">
  5. <text v-if="type == '0'">{{ ponitsDate }}</text>
  6. </view>
  7. <view class="operate"></view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. name: 'back-status',
  13. props: {
  14. // 数据源
  15. data: {
  16. type: Object,
  17. default: () => {
  18. return {};
  19. }
  20. },
  21. // 类型
  22. type: {
  23. type: [String, Number],
  24. default: '0'
  25. },
  26. // 当前节点日期
  27. ponitsDate: {
  28. type: String,
  29. default: '2022-01-11 14:19:56'
  30. }
  31. },
  32. data() {
  33. return {};
  34. }
  35. };
  36. </script>
  37. <style lang="scss" scoped>
  38. .slot {
  39. position: relative;
  40. padding: 30rpx;
  41. background-color: $app-theme-color;
  42. color: $app-theme-text-white-color;
  43. margin-bottom: 24rpx;
  44. .status {
  45. margin-bottom: 20rpx;
  46. font-size: 30rpx;
  47. }
  48. .desc {
  49. font-size: 26rpx;
  50. }
  51. .operate {
  52. position: absolute;
  53. top: 30rpx;
  54. right: 30rpx;
  55. }
  56. }
  57. </style>