From 3dd561d16a8b00a6544fb337cd3ed5af04e8dde4 Mon Sep 17 00:00:00 2001 From: aihe <961836564@qq.com> Date: Wed, 13 Dec 2023 12:27:01 +0800 Subject: [PATCH] uu --- common/untool.js | 13 ++- pages.json | 30 +++-- pages/tabBar/sending/sending.vue | 2 +- pages/user/exclusiveCourier.vue | 182 +++++++++++++++++++++++++++++++ 4 files changed, 213 insertions(+), 14 deletions(-) create mode 100644 pages/user/exclusiveCourier.vue diff --git a/common/untool.js b/common/untool.js index d7927f6..e264ea8 100644 --- a/common/untool.js +++ b/common/untool.js @@ -61,6 +61,16 @@ const showLoading = ()=> { }); } +const scanCode = ()=> { + return new Promise((resolve, reject)=> { + uni.scanCode({ + onlyFromCamera: false, + success: resolve, + fail: reject + }) + }) +} + export { reLaunch, goto, @@ -68,5 +78,6 @@ export { setClipboardData, confirmModal, showLoading, - showToast + showToast, + scanCode } diff --git a/pages.json b/pages.json index f2109b6..909c640 100644 --- a/pages.json +++ b/pages.json @@ -92,18 +92,6 @@ "navigationBarTitleText": "实名认证" } }, - { - "path": "pages/bill/list", - "style": { - "navigationBarTitleText": "我的账单" - } - }, - { - "path": "pages/bill/detail", - "style": { - "navigationBarTitleText": "账单明细" - } - }, { "path": "pages/user/monthCardList", "style": { @@ -115,6 +103,24 @@ "style": { "navigationBarTitleText": "月结卡编辑" } + }, + { + "path": "pages/user/exclusiveCourier", + "style": { + "navigationBarTitleText": "专属快递员" + } + }, + { + "path": "pages/bill/list", + "style": { + "navigationBarTitleText": "我的账单" + } + }, + { + "path": "pages/bill/detail", + "style": { + "navigationBarTitleText": "账单明细" + } } ], diff --git a/pages/tabBar/sending/sending.vue b/pages/tabBar/sending/sending.vue index 26af21c..8439f88 100644 --- a/pages/tabBar/sending/sending.vue +++ b/pages/tabBar/sending/sending.vue @@ -66,7 +66,7 @@ return { mainBtnlist: [ { title: '下单寄件', subTitle: "上门揽件/寄仓库", icon: getCdnUrl(`sdg/btn-send.png`), url: 'post/post' }, - { title: '专属小哥', subTitle: "下单给专属业务员", icon: getCdnUrl(`sdg/btn-bindbr.png`), url: '' } + { title: '专属小哥', subTitle: "下单给专属业务员", icon: getCdnUrl(`sdg/btn-bindbr.png`), url: 'user/exclusiveCourier' } ], toolBtnlist: [ { title: '进仓单', subTitle: "这里是短语简介", icon: getCdnUrl(`sdg/t-jcd.png`), url: '' }, diff --git a/pages/user/exclusiveCourier.vue b/pages/user/exclusiveCourier.vue new file mode 100644 index 0000000..55c48bf --- /dev/null +++ b/pages/user/exclusiveCourier.vue @@ -0,0 +1,182 @@ + + + + + + \ No newline at end of file