From 22b9726de6c7a930dc407f7ffc3c1bf5fd7173cf Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Tue, 27 Aug 2024 14:43:15 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E6=9C=AA=E6=8B=BF=E5=88=B0=E5=A4=84?= =?UTF-8?q?=E7=90=86=202=E3=80=81=E9=A6=96=E9=A1=B5/=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0=E4=BA=86=E5=B9=BF=E5=91=8A?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=203=E3=80=81=E4=BC=9A=E5=91=98=E5=85=85?= =?UTF-8?q?=E5=80=BC=E6=96=B0=E5=A2=9E=E8=B5=A0=E9=80=81=E8=8F=9C=E5=93=81?= =?UTF-8?q?=EF=BC=8C=204=E3=80=81=E4=BC=9A=E5=91=98=E8=8F=9C=E5=93=81?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9C=80=E5=A4=A7=E6=B7=BB=E5=8A=A0=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E9=99=90=E5=88=B6=205=E3=80=81=E9=A6=96=E9=A1=B5/?= =?UTF-8?q?=E6=88=91=E7=9A=84/=E4=BC=9A=E5=91=98=E5=8D=A1/=E8=8F=9C?= =?UTF-8?q?=E5=93=81=E9=A1=B5=E9=9D=A2=E7=9A=84=E5=9B=BE=E7=89=87=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=206=E3=80=81=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=BD=99?= =?UTF-8?q?=E9=A2=9D=E6=94=AF=E4=BB=98=EF=BC=8C=E4=BC=9A=E5=91=98=E5=8D=A1?= =?UTF-8?q?=E5=85=85=E5=80=BC=E6=88=90=E5=8A=9F=E5=90=8E=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=20=E4=BC=9A=E5=91=98=E4=BD=99=E9=A2=9D=E5=8F=98=E5=8A=A8?= =?UTF-8?q?=E8=AE=A2=E9=98=85=EF=BC=88=E5=90=8E=E7=AB=AF=E8=BF=98=E6=9C=AA?= =?UTF-8?q?=E5=81=9A=E5=A4=84=E7=90=86=EF=BC=8C=E7=9B=AE=E5=89=8D=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E8=AE=A2=E9=98=85=E4=B8=8D=E4=BC=9A=E6=8E=A8=E9=80=81?= =?UTF-8?q?=EF=BC=89=207=E3=80=81=E5=A4=9A=E8=A7=84=E6=A0=BC=E5=95=86?= =?UTF-8?q?=E5=93=81=E9=83=A8=E5=88=86=E8=A7=84=E6=A0=BC=E5=94=AE=E7=BD=84?= =?UTF-8?q?/=E4=B8=8B=E6=9E=B6=E5=A2=9E=E5=8A=A0=E8=A7=92=E6=A0=87?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/api.js | 12 + components/popupad.vue | 252 +++++++++++++++++++++ framework/0-conf.js | 8 +- package-lock.json | 7 + package.json | 3 +- pages/index/index.vue | 37 ++- pages/index/indexs.vue | 15 +- pages/member/billDetails.vue | 20 +- pages/member/components/registermember.vue | 86 +++++-- pages/member/index.vue | 167 +++++++++----- pages/member/memberdetails.vue | 62 +++-- pages/member/setPassword.vue | 68 +++++- pages/member/storedManage.vue | 8 +- pages/order_food/confirm_order.vue | 3 +- pages/order_food/order_food.vue | 227 +++++++++++++------ pages/order_food/order_food_search.vue | 188 +++++++++++---- pages/user/my_info.vue | 2 + pages/user/user.vue | 18 +- store/index.js | 2 +- 19 files changed, 933 insertions(+), 252 deletions(-) create mode 100644 components/popupad.vue diff --git a/common/js/api.js b/common/js/api.js index 87e4744..c4618c4 100644 --- a/common/js/api.js +++ b/common/js/api.js @@ -8,6 +8,9 @@ export default { loginapplogin(data) { //APP登录(登录即注册) return uni.api.post("/login/app/login", data); }, + getShopExtend(data) { //获取图片 通过shopId和autokey + return uni.api.post("/common/shopExtend", data,false); + }, productqueryShop(data) { //通过桌码获取店铺信息 return uni.api.get("/product/queryShop", data); }, @@ -90,6 +93,15 @@ export default { openMember(data) { return uni.api.post("/user/openMember", data); }, + // 会员填充手机号 + upVipPhont(data) { + return uni.api.post("/user/upVipPhont", data); + }, + // 获取弹窗广告列表 + getPopUpAd(data) { + return uni.api.get("/tbShopAd/list", data); + }, + // 优惠券数量 userCoupon(data) { return uni.api.get("/user/userCoupon", data); diff --git a/components/popupad.vue b/components/popupad.vue new file mode 100644 index 0000000..c2fc7f0 --- /dev/null +++ b/components/popupad.vue @@ -0,0 +1,252 @@ + + + + + \ No newline at end of file diff --git a/framework/0-conf.js b/framework/0-conf.js index a9b4c7d..ab5aecc 100644 --- a/framework/0-conf.js +++ b/framework/0-conf.js @@ -16,11 +16,11 @@ const baseUrlwws = 'ws://cashier.sxczgkj.cn/cashierService' // #endif // #ifdef APP || MP-WEIXIN -const baseUrl = debug ? proxyApi : 'https://cashier.sxczgkj.cn/cashierService' // 线上 -const baseUrlwws = debug ? proxyApiwws : 'wss://cashier.sxczgkj.cn/netty' // 线上 +// const baseUrl = debug ? proxyApi : 'https://cashier.sxczgkj.cn/cashierService' // 线上 +// const baseUrlwws = debug ? proxyApiwws : 'wss://cashier.sxczgkj.cn/netty' // 线上 -// const baseUrl = 'https://cashier.sxczgkj.cn/cashierService' // 线上 -// const baseUrlwws = 'wss://cashier.sxczgkj.cn/netty' // 线上/ +const baseUrl = 'https://cashier.sxczgkj.cn/cashierService' // 线上 +const baseUrlwws = 'wss://cashier.sxczgkj.cn/netty' // 线上/ // #endif // import VConsole from "./vConsole.js" diff --git a/package-lock.json b/package-lock.json index 40ac4d7..34915b8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,6 +5,7 @@ "packages": { "": { "dependencies": { + "dayjs": "^1.11.12", "lodash": "^4.17.21" }, "devDependencies": { @@ -527,6 +528,12 @@ "license": "MIT", "peer": true }, + "node_modules/dayjs": { + "version": "1.11.12", + "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.12.tgz", + "integrity": "sha512-Rt2g+nTbLlDWZTwwrIXjy9MeiZmSDI375FvZs72ngxx8PDC6YXOeR3q5LAuPzjZQxhiWdRKac7RKV+YyQYfYIg==", + "license": "MIT" + }, "node_modules/electron-to-chromium": { "version": "1.5.4", "resolved": "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.5.4.tgz", diff --git a/package.json b/package.json index 98d5ac3..df1db70 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "sass-loader": "^13.3.2" }, "dependencies": { + "dayjs": "^1.11.12", "lodash": "^4.17.21" } -} \ No newline at end of file +} diff --git a/pages/index/index.vue b/pages/index/index.vue index 31b964b..447c437 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -226,11 +226,15 @@ - + + + +