diff --git a/app.wxss b/app.wxss index e14505f..7fd8ec2 100644 --- a/app.wxss +++ b/app.wxss @@ -5,12 +5,12 @@ height: 100%; } .custom{ - position: fixed; + position: absolute; width: 100%; top: 0; left: 0; height: 45px; - background: #fff; + background: transparent; z-index: 999; } .custom text{ diff --git a/assets/images/back-white.png b/assets/images/back-white.png new file mode 100644 index 0000000..0d47bfb Binary files /dev/null and b/assets/images/back-white.png differ diff --git a/assets/js/project.config.js b/assets/js/project.config.js index 7ca41ff..a9fc834 100644 --- a/assets/js/project.config.js +++ b/assets/js/project.config.js @@ -7,5 +7,5 @@ export const appName = 'zoey来款测试demo'// fcc export let baseUrl = 'https://bxxt.hzwlsoft.com' // 外网环境 // export let baseUrl = 'http://10.10.10.46:8055/' // 测试环境 // export const baseUrl = 'http://10.0.1.9:8080' // 本地环境 -export const URL_CONFIG = '/jero-boot/' +export const URL_CONFIG = '/jero-boot/' diff --git a/pages/login/login.js b/pages/login/login.js index 7d342a0..7258a7e 100644 --- a/pages/login/login.js +++ b/pages/login/login.js @@ -5,6 +5,7 @@ import { wxBind } from '../../assets/js/common' var countdown = 60; // 倒计时秒数 Page({ data: { + statusBarHeight: wx.getSystemInfoSync()['statusBarHeight'], phone: '', captcha: '', openId: '', @@ -87,6 +88,9 @@ Page({ url: '../phonePassword/phonePassword', }) }, + goBack(){ + wx.navigateBack() + }, // 微信登录 wxLogin(){ const that = this diff --git a/pages/login/login.wxml b/pages/login/login.wxml index 93437f0..88f504a 100644 --- a/pages/login/login.wxml +++ b/pages/login/login.wxml @@ -1,7 +1,13 @@ - - + + + + 登录 + + + + 您好,欢迎使用 标准所协同工作平台 diff --git a/pages/login/login.wxss b/pages/login/login.wxss index 7dab361..75093d6 100644 --- a/pages/login/login.wxss +++ b/pages/login/login.wxss @@ -11,14 +11,29 @@ page { transform: translateY(-50px) !important; } .home-bg{ + position: relative; height: 200pt; } +.home-bg .bg-image{ + position: absolute; + top: 0; + left: 0; +} +.back-none{ + background-color: none !important; +} +.back-none text{ + color: #fff !important; +} .bg-text{ - position: relative; - top: -100pt; + bottom: 50pt; + position: absolute; left: 34pt; color: #fff; } +.go-back{ + z-index: 9; +} .bg-text text:nth-child(1){ display: block; font-size: 15px; diff --git a/pages/mine/mine.js b/pages/mine/mine.js index 31db9d0..62b8049 100644 --- a/pages/mine/mine.js +++ b/pages/mine/mine.js @@ -136,7 +136,7 @@ Page({ wx.removeStorage({ key: 'avatarUrl' }) - wx.redirectTo({ + wx.navigateTo({ url: '../login/login', }) }) @@ -176,6 +176,11 @@ Page({ name: userInfo.name, phone: userInfo.phone.substr(0, 3) + '-' + userInfo.phone.substr(3, 4) + '-' + userInfo.phone.substr(7, 4) }) + }else{ + this.setData({ + name: '', + phone: '未知手机号' + }) } if (avatarUrl) { this.setData({ @@ -183,4 +188,4 @@ Page({ }) } } -}) \ No newline at end of file +}) diff --git a/pages/phonePassword/phonePassword.js b/pages/phonePassword/phonePassword.js index ea3fad9..9445a50 100644 --- a/pages/phonePassword/phonePassword.js +++ b/pages/phonePassword/phonePassword.js @@ -9,6 +9,7 @@ Page({ * 页面的初始数据 */ data: { + statusBarHeight: wx.getSystemInfoSync()['statusBarHeight'], show: true, // 默认显示的是闭眼睛 form: { currdatetime: '', @@ -25,10 +26,8 @@ Page({ show: !this.data.show }) }, - back(){ - wx.navigateBack({ - delta: 1 - }) + goBack(){ + wx.navigateBack() }, // 改变验证码 handleChangeCheckCode() { diff --git a/pages/phonePassword/phonePassword.wxml b/pages/phonePassword/phonePassword.wxml index 99981e5..9fc36ba 100644 --- a/pages/phonePassword/phonePassword.wxml +++ b/pages/phonePassword/phonePassword.wxml @@ -1,8 +1,14 @@ - - + + + + 登录 + + + + 您好,欢迎使用 标准所协同工作平台 @@ -39,7 +45,7 @@ - 手机验证码登录 + 手机验证码登录 diff --git a/pages/phonePassword/phonePassword.wxss b/pages/phonePassword/phonePassword.wxss index 1bb29ec..2a88574 100644 --- a/pages/phonePassword/phonePassword.wxss +++ b/pages/phonePassword/phonePassword.wxss @@ -10,11 +10,23 @@ page { transform: translateY(-50px) !important; } .home-bg{ + position: relative; height: 200pt; } +.home-bg .bg-image{ + position: absolute; + top: 0; + left: 0; +} +.back-none{ + background-color: none !important; +} +.back-none text{ + color: #fff !important; +} .bg-text{ - position: relative; - top: -100pt; + bottom: 50pt; + position: absolute; left: 34pt; color: #fff; } @@ -154,4 +166,4 @@ page { right: 10px; top: 58%; z-index: 9; -} \ No newline at end of file +}