更新记录

1.0.0(2021-03-22) 下载此版本

当前实用HbuilderX/cli最低兼容版本3.1.4


平台兼容性

Vue2 Vue3
×
App 快应用 微信小程序 支付宝小程序 百度小程序 字节小程序 QQ小程序
HBuilderX 3.1.4 × × × × ×
钉钉小程序 快手小程序 飞书小程序 京东小程序
× × × ×
H5-Safari Android Browser 微信浏览器(Android) QQ浏览器(Android) Chrome IE Edge Firefox PC-Safari

logistics-template

一个简易实用物流信息跟踪页面模板,套上即可使用,可支持个人实际情况需求修改!!

vue使用代码示例

template结构模块:

<view class="logistics-template">
        <common-logistics :logisticsData="logisticsData"></common-logistics>
</view>

引入插件模块引入组件模块函数方法

import {
        setAttribute,
        changeAttribute
} from '../components/init-logistics.js';
import CommonLogistics from '../components/common-logistics.vue';
components: {
    CommonLogistics
},

data函数模块:

data() {
            return {
                // 快递100已知物流状态  快递100技术文档地址: https://api.kuaidi100.com/document/5f0ffa8f2977d50a94e1023c.html#title_1
                testStrList: ['在途', '揽收', '疑难', '签收', '退签', '派件', '退回', '转单', '待清关', '清关中', '已清关', '清关异常', '收件人拒签'],
                logisticsData: [{
                        "context": "客户签收人: 已签收 感谢使用圆通速递,期待再次为您服务 如有疑问请联系:xxxxxxxxx,投诉电话:020-xxxxxxxx。疫情期间圆通每天对网点多次消毒,快递小哥每天测量体温,佩戴口罩",
                        "time": "2021-02-28 10:04:59",
                        "ftime": "2021-02-28 10:04:59",
                        "status": "签收",
                        "areaCode": null,
                        "areaName": null,
                        "monthDay": "02-28",
                        "hourMinute": "10:04"
                    },
                    {
                        "context": "【广东省广州市海珠区工业大道公司】 派件中 派件人: 吴晓贤 电话 xxxxxxxxx 。 圆通快递小哥每天已测体温,请放心收寄快递 如有疑问,请联系:020-xxxxxxxx",
                        "time": "2021-02-28 08:25:15",
                        "ftime": "2021-02-28 08:25:15",
                        "status": "派件",
                        "areaCode": "CNxxxxxxxxxxx",
                        "areaName": "广东,广州市,海珠区",
                        "monthDay": "02-28",
                        "hourMinute": "08:25"
                    },
                    {
                        "context": "【广东省广州市海珠区工业大道】 已发出",
                        "time": "2021-02-28 06:56:54",
                        "ftime": "2021-02-28 06:56:54",
                        "status": "在途",
                        "areaCode": null,
                        "areaName": null,
                        "monthDay": "02-28",
                        "hourMinute": "06:56"
                    },
                    {
                        "context": "【广东省广州市海珠区工业大道公司】 已收入",
                        "time": "2021-02-28 06:06:54",
                        "ftime": "2021-02-28 06:06:54",
                        "status": "在途",
                        "areaCode": "CNxxxxxxxxxxx",
                        "areaName": "广东,广州市,海珠区",
                        "monthDay": "02-28",
                        "hourMinute": "06:06"
                    },
                    {
                        "context": "【广州转运中心】 已发出 下一站 【广东省广州市海珠区工业大道公司】",
                        "time": "2021-02-28 00:58:47",
                        "ftime": "2021-02-28 00:58:47",
                        "status": "在途",
                        "areaCode": "CNxxxxxxxxxxxxx",
                        "areaName": "广东,广州市",
                        "monthDay": "02-28",
                        "hourMinute": "00:58"
                    },
                    {
                        "context": "【广州转运中心公司】 已收入",
                        "time": "2021-02-28 00:19:02",
                        "ftime": "2021-02-28 00:19:02",
                        "status": "在途",
                        "areaCode": "CNxxxxxxxxxxxxx",
                        "areaName": "广东,广州市",
                        "monthDay": "02-28",
                        "hourMinute": "00:19"
                    },
                    {
                        "context": "【佛山转运中心】 已发出 下一站 【广州转运中心公司】",
                        "time": "2021-02-27 21:09:35",
                        "ftime": "2021-02-27 21:09:35",
                        "status": "在途",
                        "areaCode": "CN440600000000",
                        "areaName": "广东,佛山市",
                        "monthDay": "02-27",
                        "hourMinute": "21:09"
                    },
                    {
                        "context": "【佛山转运中心公司】 已收入",
                        "time": "2021-02-27 21:06:51",
                        "ftime": "2021-02-27 21:06:51",
                        "status": "在途",
                        "areaCode": "CN440600000000",
                        "areaName": "广东,佛山市",
                        "monthDay": "02-27",
                        "hourMinute": "21:06"
                    },
                    {
                        "context": "【广东省佛山市禅城】 已发出 下一站 【佛山转运中心公司】",
                        "time": "2021-02-27 19:42:05",
                        "ftime": "2021-02-27 19:42:05",
                        "status": "在途",
                        "areaCode": "CN440604000000",
                        "areaName": "广东,佛山市,禅城区",
                        "monthDay": "02-27",
                        "hourMinute": "19:42"
                    },
                    {
                        "context": "【广东省佛山市南海市场部一部公司】 已收件 取件人: 陈xx (xxxxxxxxxxx)",
                        "time": "2021-02-27 19:38:46",
                        "ftime": "2021-02-27 19:38:46",
                        "status": "揽收",
                        "areaCode": null,
                        "areaName": null,
                        "monthDay": "02-27",
                        "hourMinute": "19:38"
                    },
                    {
                        "context": "【广东省佛山市禅城公司】 已收件 取件人: 吴xx (xxxxxxxxxxx)",
                        "time": "2021-02-27 14:36:42",
                        "ftime": "2021-02-27 14:36:42",
                        "status": "揽收",
                        "areaCode": null,
                        "areaName": null,
                        "monthDay": "02-27",
                        "hourMinute": "14:36"
                    }
                ]
            }

onload生命周期加载:

this.logisticsData = changeAttribute(this.testStrList, setAttribute(this.logisticsData));

示例小程序码:

gh_dcb9233fba71_344

隐私、权限声明

1. 本插件需要申请的系统权限列表:

暂无

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

暂无

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

暂无

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问