From 79ced22480de3c05ed3e4f5dfcf7849ebdcbfbad Mon Sep 17 00:00:00 2001 From: "3075067877@qq.com" <3075067877@qq.com> Date: Mon, 19 Feb 2024 10:51:36 +0800 Subject: [PATCH] before test --- uniapp_project_code/readme.md | 2 + uniapp_project_code/src/App.vue | 8 ++ .../src/components/index/page_standby.vue | 31 +++++- .../src/components/index/view_footer.nvue | 7 +- .../src/components/index/view_header.nvue | 32 ++++++- uniapp_project_code/src/components/login/form.vue | 18 +++- uniapp_project_code/src/components/login/logo.vue | 2 +- .../src/components/login/pads_picker.vue | 58 ++++++++++- .../src/components/login/setting_mask.vue | 33 ++++++- uniapp_project_code/src/components/pay/paying.vue | 4 +- uniapp_project_code/src/pages.json | 7 +- uniapp_project_code/src/pages/index/-index.nvue | 4 +- uniapp_project_code/src/pages/index/index.vue | 15 +-- uniapp_project_code/src/pages/index/standby.nvue | 2 +- uniapp_project_code/src/pages/login/index.vue | 106 ++++++++++++++++++++- uniapp_project_code/src/pages/login/success.vue | 65 ++++++++++++- uniapp_project_code/src/pages/pay/index.vue | 9 +- uniapp_project_code/src/static/logo@2x.png | Bin 0 -> 20383 bytes uniapp_project_code/src/utils/server.js | 4 +- uniapp_project_code/src/utils/util.js | 2 +- 20 files changed, 372 insertions(+), 37 deletions(-) create mode 100644 uniapp_project_code/src/static/logo@2x.png diff --git a/uniapp_project_code/readme.md b/uniapp_project_code/readme.md index 56af1d6..49f14db 100644 --- a/uniapp_project_code/readme.md +++ b/uniapp_project_code/readme.md @@ -10,4 +10,6 @@ 6. 不能在 style 中引入字体文件 7. 不支持在 nvue 页面使用 typescript/ts。 +### vue注意事项 +1. vue版本3.2, 不支持defineModel 参考: https://uniapp.dcloud.net.cn/tutorial/page.html#nvue-%E5%BC%80%E5%8F%91%E4%B8%8E-vue-%E5%BC%80%E5%8F%91%E7%9A%84%E5%B8%B8%E8%A7%81%E5%8C%BA%E5%88%AB \ No newline at end of file diff --git a/uniapp_project_code/src/App.vue b/uniapp_project_code/src/App.vue index 7fac56a..9f682d2 100644 --- a/uniapp_project_code/src/App.vue +++ b/uniapp_project_code/src/App.vue @@ -14,6 +14,7 @@ export default { onLaunch() { console.log("App Launch default"); + this.globalData.autoLogin = true; }, onShow() { console.log("App Show default"); @@ -22,6 +23,7 @@ export default { console.log("App Hide default"); }, globalData: { + autoLogin: false, goodsList : [], shopList : [], accountInfo : { @@ -31,6 +33,12 @@ export default { password: "123456", assistant_client:"PC", token: "e6cabeae-0c1a-11ee-aa40-5254005df464", + role:"" + }, + stadiumInfo:{ + id: "", //stadium_id + brand_id: "", + venue_name:"", }, loginInfo : { phone: "", diff --git a/uniapp_project_code/src/components/index/page_standby.vue b/uniapp_project_code/src/components/index/page_standby.vue index 854ff16..0563863 100644 --- a/uniapp_project_code/src/components/index/page_standby.vue +++ b/uniapp_project_code/src/components/index/page_standby.vue @@ -1,7 +1,7 @@