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/23] =?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/23] =?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 94c0fdfe05c26134e606b289d4570e8d8fd06bd1 Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Tue, 29 Oct 2024 10:31:52 +0800 Subject: [PATCH 03/23] =?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 1791d5f3d811032b7ce0153e7ac7ef7d3fbaefdc Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Tue, 29 Oct 2024 15:57:49 +0800 Subject: [PATCH 04/23] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E6=AD=A3?= =?UTF-8?q?=E5=BC=8F=E6=9C=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/yskApi/http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http/yskApi/http.js b/http/yskApi/http.js index abded03..b3305c5 100644 --- a/http/yskApi/http.js +++ b/http/yskApi/http.js @@ -17,13 +17,13 @@ import infoBox from "@/commons/utils/infoBox.js" import go from '@/commons/utils/go.js'; import { reject } from 'lodash'; // 测试服 -let baseUrl = 'https://admintestpapi.sxczgkj.cn' +// let baseUrl = 'https://admintestpapi.sxczgkj.cn' //预发布 // let baseUrl = 'https://pre-cashieradmin.sxczgkj.cn' //正式 -// let baseUrl = 'https://cashieradmin.sxczgkj.cn' +let baseUrl = 'https://cashieradmin.sxczgkj.cn' // 王伟本地测 // let baseUrl = '/ww' From 1f099e2174a6c39a6215735b05707c388720ec02 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Wed, 30 Oct 2024 13:55:32 +0800 Subject: [PATCH 05/23] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=B8=8A=E7=A9=BA=E5=80=BC=E6=98=AF?= =?UTF-8?q?undefined=E5=AF=BC=E8=87=B4=E7=9A=84=E5=8F=B0=E6=A1=8C=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=8A=A5=E9=94=99=E5=92=8C=E7=A1=AE=E8=AE=A4=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=95=86=E5=93=81=E4=B8=8D=E5=B1=95=E7=A4=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagesCreateOrder/choose-table/choose-table.vue | 2 +- .../confirm-order/confirm-order.vue | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pagesCreateOrder/choose-table/choose-table.vue b/pagesCreateOrder/choose-table/choose-table.vue index 2aeaba7..fbee499 100644 --- a/pagesCreateOrder/choose-table/choose-table.vue +++ b/pagesCreateOrder/choose-table/choose-table.vue @@ -166,7 +166,7 @@ async function getTable() { // let state=status.list[status.active].key // state=state?(state=='all'?'':state):'' - const areaId=area.list[area.defaultCateIndex].id + const areaId=area.list[area.defaultCateIndex].id||'' let { content,total } = await $table.get({...query,areaId,name:searchValue.value,state:'idle'}) diff --git a/pagesCreateOrder/confirm-order/confirm-order.vue b/pagesCreateOrder/confirm-order/confirm-order.vue index 9da9aa8..3dd0852 100644 --- a/pagesCreateOrder/confirm-order/confirm-order.vue +++ b/pagesCreateOrder/confirm-order/confirm-order.vue @@ -340,7 +340,7 @@ //不免餐位费 const res = await Api.$choseCount({ masterId: option.masterId, - tableId: table.value.tableId, + tableId: table.value.tableId||'', num: userNumbers.defaultCateIndex+1, }) Object.assign($seatFee, res) @@ -369,7 +369,7 @@ isPack, isGift, masterId: option.masterId, - tableId: table.value.tableId, + tableId: table.value.tableId||'', productId, num: number, skuId @@ -427,7 +427,7 @@ console.log(option); const submitPar = { masterId: option.masterId, - tableId: table.value.tableId, + tableId: table.value.tableId||"", vipUserId: user.value.id ? user.value.id : '', type: user.value.id ? 0 : 1 //0 设置 1 取消 } @@ -510,7 +510,7 @@ page: 0, size: 300, masterId: option.masterId, - tableId: table.value.tableId + tableId: table.value.tableId||'' }) { const { records, @@ -550,13 +550,13 @@ note: note.value, postPay: true, orderId: '', - tableId: table.value.tableId + tableId: table.value.tableId||'' }) { if (!$shop.value.isTableFee) { //不免餐位费 await Api.$choseCount({ masterId: option.masterId, - tableId: table.value.tableId, + tableId: table.value.tableId||"", num: userNumbers.defaultCateIndex+1, }) } @@ -616,7 +616,7 @@ cartId: cart.id, productId: cart.productId, skuId: cart.skuId, - tableId: option.tableId, + tableId: option.tableId||"", note: e.remark, num: cart.number // 0会删除此商品 }) @@ -637,7 +637,7 @@ console.log(option,); if (opt) { table.value = { - tableId: opt.tableId, + tableId: opt.tableId||'', name: opt.name } } @@ -673,7 +673,7 @@ } const res = await Api.$changeUseType({ useType, - tableId, + tableId:tableId||'', cartIds: goods.list.map((v) => v.id), }) getCart() 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 06/23] =?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 @@ - + 退菜 -