Express.js 1011 Bytes
const { mockDeliveryInfoData } = require("./mock.js");

Component({
  properties: {
    orderInfo: {
      type: Object,
      value: {},
    },
    deliveryStatus: {
      type: Object,
      value: {},
    },
  },
  data: {
    timelineData: [
      {
        time: "2021-02-02 10:30:30",
        tips: ["这是主要内容部分"],
        title: "已发货",
        type: 'active',// 高亮显示
      },
      {
        time: "2021-02-02 10:30:30",
        tips: ["这是主要内容部分"],
        title:'运输中',
        type: 'small',// 小点显示
      },
      {
        time: "2021-02-02 10:30:30",
        tips: ["这是主要内容部分11111111111",
          "这是主要内容部分11111111111",
          "这是主要内容部分11111111111"
        ],
        title:'运输中',
        type: 'normal',
      },
      {
        title:'收货地址',
        tips: ["这是主要内容部分"],
        type: 'special'  // 地址节点,使用专门的样式
      }
    ],
  },
});