index.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <!-- 信息 -->
  3. <view class="card_information">
  4. <view v-if="list.length > 0">
  5. <view class="card_dinay" v-for="(item,index) in list" :key="index">
  6. <view class="item_title_dge">
  7. <view class="item_dinay_title">{{item.title}}</view>
  8. <u-badge bgColor="#f56c6c" :isDot="true" type="success"></u-badge>
  9. </view>
  10. <view class="item_title1">{{item.title1}}</view>
  11. <view class="card_line">
  12. <u-line color="#d7d7d7"></u-line>
  13. </view>
  14. <view class="space_between">
  15. <view class="item_title1">订单编号:{{item.code}}</view>
  16. <u-icon name="arrow-right"></u-icon>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="empty_information" v-else>
  21. <u-empty mode="message"></u-empty>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {
  29. list: [],
  30. }
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .card_information {
  36. padding-top: var(--status-bar-height);
  37. margin: 0rpx 20rpx;
  38. display: flex;
  39. flex-direction: column;
  40. align-items: center;
  41. }
  42. .card_dinay {
  43. width: calc(100% - 40rpx);
  44. margin-top: 20rpx;
  45. border: 1rpx solid #d7d7d7;
  46. border-radius: 8rpx;
  47. padding: 30rpx 20rpx;
  48. }
  49. .item_title_dge {
  50. position: relative;
  51. display: flex;
  52. }
  53. .item_dinay_title {
  54. font-size: 40rpx;
  55. font-weight: 500;
  56. margin-bottom: 20rpx;
  57. }
  58. .item_title1 {
  59. font-size: 26rpx;
  60. color: #7f7f7f;
  61. }
  62. .card_line {
  63. margin: 20rpx 0rpx;
  64. }
  65. .empty_information {
  66. padding-top: 40%;
  67. }
  68. </style>