diff --git a/api/login/index.js b/api/login/index.js new file mode 100644 index 0000000..8ef4958 --- /dev/null +++ b/api/login/index.js @@ -0,0 +1,16 @@ +import request from "../request.js" + +//密码 +export function appLoginpwd(account, password) { + return request({ + url: `/nurseApp/login/appLogin?account=${account}&password=${password}`, + method: 'POST' + }) +} +//验证码 +export function appLoginvfn(account, verification) { + return request({ + url: `/nurseApp/login/appLogin?account=${account}&verification=${verification}`, + method: 'POST' + }) +} diff --git a/api/register/index.js b/api/register/index.js index 1b806be..08b454c 100644 --- a/api/register/index.js +++ b/api/register/index.js @@ -1,9 +1,8 @@ import request from "../request.js" -export function appRegister(data) { +export function appRegister(phone, password) { return request({ - url: `/nurseApp/login/appRegister`, - method: 'POST', - data + url: `/nurseApp/login/appRegister?phone=${phone}&password=${password}`, + method: 'POST' }) } diff --git a/manifest.json b/manifest.json index c11fdf5..6d00163 100644 --- a/manifest.json +++ b/manifest.json @@ -17,33 +17,49 @@ "delay" : 0 }, /* 模块配置 */ - "modules" : {}, + "modules" : { + "Geolocation" : {} + }, /* 应用发布信息 */ "distribute" : { /* android打包配置 */ "android" : { "permissions" : [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", "", - "" + "", + "", + "", + "", + "", + "", + "" ] }, /* ios打包配置 */ "ios" : {}, /* SDK配置 */ - "sdkConfigs" : {} + "sdkConfigs" : { + "maps" : { + "amap" : { + "appkey_ios" : "", + "appkey_android" : "" + } + }, + "geolocation" : { + "system" : { + "__platform__" : [ "ios", "android" ] + } + } + }, + "splashscreen" : { + "androidStyle" : "default", + "android" : { + "xxhdpi" : "static/启动页.png", + "hdpi" : "static/启动页.png", + "xhdpi" : "static/启动页.png" + }, + "useOriginalMsgbox" : true + } } }, /* 快应用特有相关 */ diff --git a/pages.json b/pages.json index a51d0b0..2c76f6d 100644 --- a/pages.json +++ b/pages.json @@ -3,7 +3,41 @@ "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" }, "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - + { + "path": "pages/login/login", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom" + // "enablePullDownRefresh": false + } + }, { + "path": "pages/register/register", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom" + } + }, { + "path": "pages/site/site", + "style": { + "navigationBarTitleText": "附近护理站", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#ffffff" //背景颜色 + } + }, { + "path": "pages/homepage/homepage", + "style": { + "navigationBarTitleText": "泉医到家", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#ffffff" + } + }, { + "path": "pages/CommodityDetails/CommodityDetails", + "style": { + "navigationBarTitleText": "商品详情", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#ffffff" + } + }, { "path": "pages/detail/detail", "style": { @@ -11,15 +45,7 @@ "enablePullDownRefresh": false, "navigationBarBackgroundColor": "#ffffff" //背景颜色 } - },{ - "path": "pages/site/site", - "style": { - "navigationBarTitleText": "附近护理站", - "enablePullDownRefresh": false, - "navigationBarBackgroundColor": "#ffffff" //背景颜色 - } }, - { "path": "pages/homepage/homepage", "style": { @@ -40,13 +66,6 @@ "enablePullDownRefresh": false, "navigationBarBackgroundColor": "#ffffff" } - }, { - "path": "pages/login/login", - "style": { - "navigationBarTitleText": "", - "navigationStyle": "custom" - // "enablePullDownRefresh": false - } }, { "path": "pages/shopping/shopping", "style": { @@ -61,13 +80,6 @@ "enablePullDownRefresh": false, "navigationBarBackgroundColor": "#ffffff" } - }, { - "path": "pages/homepage/homepage", - "style": { - "navigationBarTitleText": "泉医到家", - "enablePullDownRefresh": false, - "navigationBarBackgroundColor": "#ffffff" - } }, { "path": "pages/startup/startup", "style": { diff --git a/pages/login/login.vue b/pages/login/login.vue index 8412823..a9ef3b2 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -4,19 +4,22 @@ 账号登录 - + - + - + {{getCodeText}} - + + 登录 + + 登录 @@ -25,16 +28,20 @@ 没有账号,请先注册 +