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 @@ - + + + +