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