From 195bf810e4b2c68f423e946089c947de4b6972e6 Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Fri, 25 Oct 2024 16:49:38 +0800 Subject: [PATCH 01/28] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E8=AE=A2=E9=98=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pages.json b/pages.json index bb286e0..dc3b101 100644 --- a/pages.json +++ b/pages.json @@ -1092,6 +1092,17 @@ } } ] + }, + { + "root": "pageNotification", + "pages": [{ + "pageId": "PAGES_NOTIFICATION_INDEX", + "path": "index", + "style": { + "navigationBarTitleText": "订阅通知" + } + } + ] } ], "globalStyle": { From b8c603e6839e185c7079c7987179ee5ad75a0e36 Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Fri, 25 Oct 2024 16:49:50 +0800 Subject: [PATCH 02/28] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E8=AE=A2=E9=98=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/yskApi/pageNotification.js | 17 +++ pageNotification/index.vue | 197 ++++++++++++++++++++++++++ pages/index/index.vue | 5 + static/indexImg/icon-notification.svg | 1 + 4 files changed, 220 insertions(+) create mode 100644 http/yskApi/pageNotification.js create mode 100644 pageNotification/index.vue create mode 100644 static/indexImg/icon-notification.svg diff --git a/http/yskApi/pageNotification.js b/http/yskApi/pageNotification.js new file mode 100644 index 0000000..9597344 --- /dev/null +++ b/http/yskApi/pageNotification.js @@ -0,0 +1,17 @@ +import http from './http.js' +const request=http.request + + +/** + * 获取订阅二维码 + * @returns + */ +export function getSubQrCode(params) { + return request({ + url: `/api/msg/subQrCode`, + method: 'get', + params: { + shopId: uni.getStorageSync('shopId'), + } + }) +} diff --git a/pageNotification/index.vue b/pageNotification/index.vue new file mode 100644 index 0000000..f4214fe --- /dev/null +++ b/pageNotification/index.vue @@ -0,0 +1,197 @@ + + + + diff --git a/pages/index/index.vue b/pages/index/index.vue index bda58f3..75c681b 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -145,6 +145,11 @@ // icon: '/static/indexImg/icon-staff.svg', // pageUrl: 'PAGES_USER' // }, + { + title: '订阅通知', + icon: '/static/indexImg/icon-notification.svg', + pageUrl: 'PAGES_NOTIFICATION_INDEX', + }, { title: '设置中心', icon: '/static/indexImg/icon-cashier.svg', diff --git a/static/indexImg/icon-notification.svg b/static/indexImg/icon-notification.svg new file mode 100644 index 0000000..87c1ae5 --- /dev/null +++ b/static/indexImg/icon-notification.svg @@ -0,0 +1 @@ + \ No newline at end of file From 0108ce36b5a7cdc991e39a493aed626bab49b520 Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Tue, 29 Oct 2024 10:18:48 +0800 Subject: [PATCH 03/28] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageCoupon/index.vue | 165 +++++++++++++++++++++++-------------------- 1 file changed, 87 insertions(+), 78 deletions(-) diff --git a/pageCoupon/index.vue b/pageCoupon/index.vue index 033d62c..0a326e7 100644 --- a/pageCoupon/index.vue +++ b/pageCoupon/index.vue @@ -1,83 +1,86 @@ @@ -182,6 +185,9 @@ body{ background-color: #f9f9f9; } + .container{ + position: relative; + } .tagClass { width: 100%; white-space: nowrap; @@ -190,6 +196,9 @@ padding-top: 44rpx; padding: 32rpx 28rpx; background-color: #fff; + position: fixed; + top: 79rpx; + z-index: 999; .tag-item { display: inline-block; padding: 10rpx 24rpx; @@ -244,7 +253,7 @@ /* height: 544rpx; */ margin: 32rpx auto 0; margin-bottom: 32rpx; - padding: 0 28rpx 182rpx 28rpx; + padding: 122rpx 28rpx 182rpx 28rpx; } .couponContent { /* background-color: #f9f9f9; */ From 94c0fdfe05c26134e606b289d4570e8d8fd06bd1 Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Tue, 29 Oct 2024 10:31:52 +0800 Subject: [PATCH 04/28] =?UTF-8?q?=E8=AE=A2=E9=98=85=20=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageNotification/index.vue | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/pageNotification/index.vue b/pageNotification/index.vue index f4214fe..d463051 100644 --- a/pageNotification/index.vue +++ b/pageNotification/index.vue @@ -42,7 +42,6 @@ onShow(() => { const saveImage = () => { // #ifdef APP-PLUS - saveQrcodeImg() uni.downloadFile({ url: vdata.QrcodeUrl, success: (res) => { @@ -92,16 +91,7 @@ function downloadQR() { } //#endif -const saveQrcodeImg = () => { - saveHeadImgFile(vdata.QrcodeUrl, 80) - .then((success) => { - infoBox.showSuccessToast('保存成功') - }) - .catch((err) => { - console.log(err) - infoBox.showErrorToast('保存失败') - }) -} + const saveWxQrcodeImg = (data) => { const fileManager = wx.getFileSystemManager() From b6d79c93199057c6cbae9df0959c8b6a35476159 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Wed, 30 Oct 2024 14:54:23 +0800 Subject: [PATCH 05/28] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B0=B1=E9=A4=90?= =?UTF-8?q?=E4=BA=BA=E6=95=B0=E9=99=90=E5=88=B6=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../confirm-order/confirm-order.vue | 135 ++++++++++-------- 1 file changed, 77 insertions(+), 58 deletions(-) diff --git a/pagesCreateOrder/confirm-order/confirm-order.vue b/pagesCreateOrder/confirm-order/confirm-order.vue index 3dd0852..a4be9e4 100644 --- a/pagesCreateOrder/confirm-order/confirm-order.vue +++ b/pagesCreateOrder/confirm-order/confirm-order.vue @@ -40,7 +40,7 @@ - + @@ -46,12 +46,15 @@ hasPermission } from '@/commons/utils/hasPermission.js' uni.hideTabBar() + let shopName = ref() onLoad((options) => { + shopName.value = uni.getStorageSync('shopName'); }); let totalRevenuedata = ref() let totalRevenue= (d)=>{ totalRevenuedata.value=d } + // 导航列表 const navList = [ // { diff --git a/pages/login/index.vue b/pages/login/index.vue index 0c14671..968bfe6 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -280,7 +280,6 @@ // } // 获取商户信息,有就回显 let info = uni.getStorageSync('MerchantId') - // console.log(info.merchantName,'调试121') if (info.merchantName) { vdata.formData.merchantName = info.merchantName vdata.formData.username = info.username From 5d177fb7c8db85cb34ba836e3d69bcdc8bf78497 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Wed, 30 Oct 2024 16:50:47 +0800 Subject: [PATCH 08/28] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BB=A3=E5=AE=A2?= =?UTF-8?q?=E4=B8=8B=E5=8D=95=EF=BC=8C=E5=95=86=E5=93=81=E5=85=AC=E5=85=B1?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commons/utils/goodsUtil.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 commons/utils/goodsUtil.js diff --git a/commons/utils/goodsUtil.js b/commons/utils/goodsUtil.js new file mode 100644 index 0000000..7e7a267 --- /dev/null +++ b/commons/utils/goodsUtil.js @@ -0,0 +1,22 @@ +export function canComputedPackFee(v) { + return v => v.pack && v.status != 'return' && v.status != 'refund' && v.status != 'refunding' +} +export function returnCanComputedGoodsArr(arr) { + return arr.filter(v=>canComputedPackFee(v)) +} +export function returnPackFee(arr) { + return arr.reduce((prve, cur) => { + return prve + cur.packAmount + }, 0).toFixed(2) +} + +export function canTuicai(orderInfo,item){ + return orderInfo.status=='unpaid'&&orderInfo.useType!='dine-in-before' +} +export function canTuiKuan(orderInfo,item){ + + return orderInfo.status!='unpaid'&& item.status!='return'&&item.status!='refund'&&item.status!='refunding' +} +export function isTui(item){ + return item.status=='return'||item.status=='refund'||item.status=='refunding' +} \ No newline at end of file From a958a401b3df257e2533d0968d1e52a3e4e74a86 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Wed, 30 Oct 2024 16:54:56 +0800 Subject: [PATCH 09/28] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=85=AC=E5=85=B1=E6=96=B9=E6=B3=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commons/utils/goodsUtil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons/utils/goodsUtil.js b/commons/utils/goodsUtil.js index 7e7a267..57fbe26 100644 --- a/commons/utils/goodsUtil.js +++ b/commons/utils/goodsUtil.js @@ -1,5 +1,5 @@ export function canComputedPackFee(v) { - return v => v.pack && v.status != 'return' && v.status != 'refund' && v.status != 'refunding' + return v.pack && v.status != 'return' && v.status != 'refund' && v.status != 'refunding' } export function returnCanComputedGoodsArr(arr) { return arr.filter(v=>canComputedPackFee(v)) From b8977bd81ad1731530860526c4cf69db29e90cab Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Wed, 30 Oct 2024 16:59:05 +0800 Subject: [PATCH 10/28] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E9=83=A8=E5=88=86=E9=80=BB=E8=BE=91=E4=BB=A3=E7=A0=81=EF=BC=8C?= =?UTF-8?q?=E6=8F=90=E5=8F=96=E5=85=AC=E5=85=B1=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagesOrder/detail/components/extra.vue | 29 ++++++++++++++++------- pagesOrder/detail/components/list.vue | 19 +++++++-------- pagesOrder/index/compoents/order-item.vue | 6 +++-- 3 files changed, 33 insertions(+), 21 deletions(-) diff --git a/pagesOrder/detail/components/extra.vue b/pagesOrder/detail/components/extra.vue index 8cfe4c8..28da433 100644 --- a/pagesOrder/detail/components/extra.vue +++ b/pagesOrder/detail/components/extra.vue @@ -2,16 +2,16 @@ 附加费 -