diff --git a/assets/images/wx.png b/assets/images/wx.png index 20dc292..30dd079 100644 Binary files a/assets/images/wx.png and b/assets/images/wx.png differ diff --git a/assets/js/http/userApi.js b/assets/js/http/userApi.js index 6c4e6ae..2dae09b 100644 --- a/assets/js/http/userApi.js +++ b/assets/js/http/userApi.js @@ -43,7 +43,7 @@ const UserApi = { // 退出 logout: (params) => http.post(`${URL_CONFIG}sys/logout`, params), // 个人信息 - mineInfo: (params) => http.get(`${URL_CONFIG}company/payContactsManagement/queryByIdMeeting`, params), + mineInfo: (params) => http.get(`${URL_CONFIG}company/payContactsManagement/queryByIdGetContract`, params), // 编辑个人信息提交 editMineInfo: (params) => http.post(`${URL_CONFIG}company/payContactsManagement/companyEdit`, params), // 我的资料 diff --git a/pages/forgetPassword/forgetPassword.js b/pages/forgetPassword/forgetPassword.js index e6c3bfe..2d3d9c2 100644 --- a/pages/forgetPassword/forgetPassword.js +++ b/pages/forgetPassword/forgetPassword.js @@ -88,11 +88,6 @@ Page({ }, clearrepeatval(){ this.data.vals = [] - wx.showToast({ - title: '禁止复制粘贴请手动输入', - icon: 'none', - duration: 2000 - }) this.setData({ password: '' }) @@ -100,11 +95,6 @@ Page({ }, clearrepeatvalVerify(){ this.data.valsVerify = [] - wx.showToast({ - title: '禁止复制粘贴请手动输入', - icon: 'none', - duration: 2000 - }) this.setData({ verifyPassword: '' }) diff --git a/pages/forgetPassword/forgetPassword.wxml b/pages/forgetPassword/forgetPassword.wxml index 710d629..c65aa0c 100644 --- a/pages/forgetPassword/forgetPassword.wxml +++ b/pages/forgetPassword/forgetPassword.wxml @@ -1,30 +1,30 @@
- - 手机号 - + + 手机号 + - - 验证码 - + + 验证码 + 获取验证码 {{count}} - - 新密码 - + + 新密码 + - - 确认密码 - + + 确认密码 + diff --git a/pages/forgetPassword/forgetPassword.wxss b/pages/forgetPassword/forgetPassword.wxss index e6de5cf..38199fe 100644 --- a/pages/forgetPassword/forgetPassword.wxss +++ b/pages/forgetPassword/forgetPassword.wxss @@ -3,20 +3,132 @@ page { width: 100%; color: #333; } +.container-box{ + overflow-x: hidden; +} + .form-box{ - transform: translateY(50%); + display: block; + box-sizing: border-box; + width: 100%; + height: auto; + background-color: #fff; + border-top-left-radius: 15px; + border-top-right-radius: 15px; + padding: 30px 20px; } -.text-value{ +.form-box .item { position: relative; + display: block !important; + width: 100%; + margin-bottom: 25px; } -.text-password input{ - padding-right: 30px; +.form-box .label{ + width: 100%; + color: #A4A4A4; + font-size: 12px; + margin-bottom: 10px; +} +.form-box .value{ + width: 100%; +} +.form-box .value input{ + width: 100%; + box-sizing: border-box; + background-color: #F2F2F4; + border-radius: 8px; + color: #333; + font-size: 15px; + height: 50px; + padding: 0 90px 0 20px; +} +.form-box .captcha{ + color: #069F99; + position: absolute; + right: 10px; + font-size: 13px; + top: 55%; + z-index: 9; +} +.form-box .view-flex{ + width: 100%; + display: flex; + justify-content: space-between; + align-items: center; + height: 50px; +} +.form .view-flex .value{ + flex: 1; +} +.form-box .captchaImage{ + width: 140px; + height: 50px; + flex-shrink: 0; + margin-left: 20px; +} +.form-box .captchaImage image{ + width: 100%; + height: 50px; + border-radius: 10px; +} +.form-box .count { + color: #999; +} +.btn-area button{ + background-color: #069F99 !important; + height: 50px; + display: flex; + justify-content: center; + align-items: center; + border-radius: 10px; +} +.other-way{ + color: #A4A4A4; + font-size: 12px; + display: block; + width: 100%; + text-align: center; + margin-top: 70px; + letter-spacing: 1px; +} +.weixin{ + margin-top: 30px !important; + width: 55px !important; + height: 55px !important; + background-color: #F2F2F4; + border-radius: 10px; + margin: auto; + display: flex; + justify-content: center; + align-items: center; +} +.weixin image{ + width: 32px !important; + height: 26px !important; +} +.forget{ + color: #999; + font-size: 14px; + display: flex; + justify-content: space-between; + align-items: center; + margin-top: 20px; +} +.weixin{ + width: 100%; + display: flex; + justify-content: center; + margin-top: 70px; +} +.weixin image{ + width: 50px; + height: 50px; } .show{ width: 15px; height: 15px; position: absolute; right: 10px; - top: 8px; + top: 58%; z-index: 9; -} +} \ No newline at end of file diff --git a/pages/login/login.js b/pages/login/login.js index 7d342a0..d530ecd 100644 --- a/pages/login/login.js +++ b/pages/login/login.js @@ -93,6 +93,7 @@ Page({ wx.getStorage({ key: 'authorize', success(result){ + console.log(result) // 做过查看微信用户信息 if(result.data){ // 做过用户信息获取 wx.showToast({ diff --git a/pages/login/login.json b/pages/login/login.json index e301e43..965b8e8 100644 --- a/pages/login/login.json +++ b/pages/login/login.json @@ -1,4 +1,4 @@ { - "navigationBarTitleText": "登录", - "usingComponents": {} + "usingComponents": {}, + "navigationStyle": "custom" } \ No newline at end of file diff --git a/pages/login/login.wxml b/pages/login/login.wxml index 62bd907..32e5d60 100644 --- a/pages/login/login.wxml +++ b/pages/login/login.wxml @@ -1,14 +1,22 @@ + + + + + 您好,欢迎使用 + 标准所协同工作平台 + + - - 手机号 - + + 手机号 + - - 验证码 - + + 验证码 + 获取验证码 @@ -21,6 +29,7 @@ 手机密码登录 忘记密码? + 或用以下方式登录 diff --git a/pages/login/login.wxss b/pages/login/login.wxss index 11fbe39..7dab361 100644 --- a/pages/login/login.wxss +++ b/pages/login/login.wxss @@ -2,9 +2,112 @@ page { overflow-x: hidden; width: 100%; color: #333; + box-sizing: border-box; +} +.container-box{ + overflow-x: hidden; } .form-box{ - transform: translateY(20%); + transform: translateY(-50px) !important; +} +.home-bg{ + height: 200pt; +} +.bg-text{ + position: relative; + top: -100pt; + left: 34pt; + color: #fff; +} +.bg-text text:nth-child(1){ + display: block; + font-size: 15px; + margin-bottom: 8px; +} +.bg-text text:nth-child(2){ + display: block; + font-size: 18px; + font-weight: 600; + letter-spacing: 1px; +} +.form-box{ + display: block; + box-sizing: border-box; + width: 100%; + height: auto; + background-color: #fff; + border-top-left-radius: 15px; + border-top-right-radius: 15px; + transform: translateY(-10%); + padding: 30px 20px; +} +.form-box .item { + position: relative; + display: block !important; + width: 100%; + margin-bottom: 25px; +} +.form-box .label{ + width: 100%; + color: #A4A4A4; + font-size: 12px; + margin-bottom: 10px; +} +.form-box .value{ + width: 100%; +} +.form-box .value input{ + width: 100%; + box-sizing: border-box; + background-color: #F2F2F4; + border-radius: 8px; + color: #333; + font-size: 15px; + height: 50px; + padding: 0 90px 0 20px; +} +.form-box .captcha{ + color: #069F99; + position: absolute; + right: 10px; + font-size: 13px; + top: 55%; + z-index: 9; +} +.form-box .count { + color: #999; +} +.btn-area button{ + background-color: #069F99 !important; + height: 50px; + display: flex; + justify-content: center; + align-items: center; + border-radius: 10px; +} +.other-way{ + color: #A4A4A4; + font-size: 12px; + display: block; + width: 100%; + text-align: center; + margin-top: 70px; + letter-spacing: 1px; +} +.weixin{ + margin-top: 30px !important; + width: 55px !important; + height: 55px !important; + background-color: #F2F2F4; + border-radius: 10px; + margin: auto; + display: flex; + justify-content: center; + align-items: center; +} +.weixin image{ + width: 32px !important; + height: 26px !important; } .forget{ color: #999; diff --git a/pages/mineInfo/mineInfo.js b/pages/mineInfo/mineInfo.js index dfe29e6..bf54e4c 100644 --- a/pages/mineInfo/mineInfo.js +++ b/pages/mineInfo/mineInfo.js @@ -12,7 +12,7 @@ Page({ name: '', companyName: '', post: '', - gender: '1', + gender: null, phone: '', contactAddress: '', email: '', diff --git a/pages/mineInfo/mineInfo.wxml b/pages/mineInfo/mineInfo.wxml index 9a5304a..f4f3b6d 100644 --- a/pages/mineInfo/mineInfo.wxml +++ b/pages/mineInfo/mineInfo.wxml @@ -23,7 +23,7 @@ 性别 - + @@ -32,7 +32,7 @@ diff --git a/pages/phonePassword/phonePassword.js b/pages/phonePassword/phonePassword.js index cf4bb7f..ea3fad9 100644 --- a/pages/phonePassword/phonePassword.js +++ b/pages/phonePassword/phonePassword.js @@ -52,11 +52,6 @@ Page({ }, clearrepeatval(){ this.data.vals = [] - wx.showToast({ - title: '禁止复制粘贴请手动输入', - icon: 'none', - duration: 2000 - }) this.setData({ password: '' }) diff --git a/pages/phonePassword/phonePassword.json b/pages/phonePassword/phonePassword.json index e301e43..7bc51df 100644 --- a/pages/phonePassword/phonePassword.json +++ b/pages/phonePassword/phonePassword.json @@ -1,4 +1,5 @@ { "navigationBarTitleText": "登录", - "usingComponents": {} + "usingComponents": {}, + "navigationStyle": "custom" } \ No newline at end of file diff --git a/pages/phonePassword/phonePassword.wxml b/pages/phonePassword/phonePassword.wxml index 0e6a5e0..99981e5 100644 --- a/pages/phonePassword/phonePassword.wxml +++ b/pages/phonePassword/phonePassword.wxml @@ -1,27 +1,37 @@ - + + + + + + 您好,欢迎使用 + 标准所协同工作平台 + + - - 手机号 - + + 手机号 + - - 密码 - + + 密码 + - - 验证码 - - - - - + + 验证码 + + + + + + + 重新获取 diff --git a/pages/phonePassword/phonePassword.wxss b/pages/phonePassword/phonePassword.wxss index 9c3871e..1bb29ec 100644 --- a/pages/phonePassword/phonePassword.wxss +++ b/pages/phonePassword/phonePassword.wxss @@ -1,16 +1,133 @@ -/* pages/meeting/meeting.wxss */ +page { + overflow-x: hidden; + width: 100%; + color: #333; +} +.container-box{ + overflow-x: hidden; +} .form-box{ - transform: translateY(25%); + transform: translateY(-50px) !important; } - -.text-label { - width: 60px !important; +.home-bg{ + height: 200pt; } -.text-value{ +.bg-text{ position: relative; + top: -100pt; + left: 34pt; + color: #fff; } -.text-password input{ - padding-right: 30px; +.bg-text text:nth-child(1){ + display: block; + font-size: 15px; + margin-bottom: 8px; +} +.bg-text text:nth-child(2){ + display: block; + font-size: 18px; + font-weight: 600; + letter-spacing: 1px; +} +.form-box{ + display: block; + box-sizing: border-box; + width: 100%; + height: auto; + background-color: #fff; + border-top-left-radius: 15px; + border-top-right-radius: 15px; + transform: translateY(-10%); + padding: 30px 20px; +} +.form-box .item { + position: relative; + display: block !important; + width: 100%; + margin-bottom: 25px; +} +.form-box .label{ + width: 100%; + color: #A4A4A4; + font-size: 12px; + margin-bottom: 10px; +} +.form-box .value{ + width: 100%; +} +.form-box .value input{ + width: 100%; + box-sizing: border-box; + background-color: #F2F2F4; + border-radius: 8px; + color: #333; + font-size: 15px; + height: 50px; + padding: 0 90px 0 20px; +} +.form-box .captcha{ + color: #069F99; + position: absolute; + right: 10px; + font-size: 13px; + top: 55%; + z-index: 9; +} +.form-box .view-flex{ + width: 100%; + display: flex; + justify-content: space-between; + align-items: center; + height: 50px; +} +.form .view-flex .value{ + flex: 1; +} +.form-box .captchaImage{ + width: 140px; + height: 50px; + flex-shrink: 0; + margin-left: 20px; +} +.form-box .captchaImage image{ + width: 100%; + height: 50px; + border-radius: 10px; +} +.form-box .count { + color: #999; +} +.btn-area button{ + background-color: #069F99 !important; + height: 50px; + display: flex; + justify-content: center; + align-items: center; + border-radius: 10px; +} +.other-way{ + color: #A4A4A4; + font-size: 12px; + display: block; + width: 100%; + text-align: center; + margin-top: 70px; + letter-spacing: 1px; +} +.weixin{ + margin-top: 30px !important; + width: 55px !important; + height: 55px !important; + background-color: #F2F2F4; + border-radius: 10px; + margin: auto; + display: flex; + justify-content: center; + align-items: center; +} +.weixin image{ + width: 32px !important; + height: 26px !important; } .forget{ color: #999; @@ -20,25 +137,21 @@ align-items: center; margin-top: 20px; } -.captcha{ - padding: 0 !important; - background-color: #fff !important; -} -.count{ - background-color: #f5f5f5 !important; - color: #999 !important; -} -.captcha image{ - display: block; +.weixin{ width: 100%; - height: 90%; - border-radius: 5px; + display: flex; + justify-content: center; + margin-top: 70px; +} +.weixin image{ + width: 50px; + height: 50px; } .show{ width: 15px; height: 15px; position: absolute; right: 10px; - top: 8px; + top: 58%; z-index: 9; -} +} \ No newline at end of file diff --git a/pages/setPassword/setPassword.js b/pages/setPassword/setPassword.js index e98d0ae..0e8b2c8 100644 --- a/pages/setPassword/setPassword.js +++ b/pages/setPassword/setPassword.js @@ -29,11 +29,6 @@ Page({ }, clearrepeatval(){ this.data.valsNew = [] - wx.showToast({ - title: '禁止复制粘贴请手动输入', - icon: 'none', - duration: 2000 - }) this.setData({ newPassword: '' }) @@ -41,11 +36,6 @@ Page({ }, clearrepeatvalVerify(){ this.data.valsVerify = [] - wx.showToast({ - title: '禁止复制粘贴请手动输入', - icon: 'none', - duration: 2000 - }) this.setData({ verifyPassword: '' }) @@ -155,13 +145,14 @@ Page({ verifyPassword: encrypt(this.data.rsaPublicKey, e.detail.value.verifyPassword), // 确认密码 rsaPublicKey: this.data.rsaPublicKey } - // 请求短信登录start + // 请求登录start UserApi.setPassword(params).then(res => { + console.log(res) if (res.success) { // 成功设置密码,跳转首页 wx.setStorage({ key: 'X-Access-Token', - data: that.data.password + data: this.data.password }) wx.setStorage({ key: 'userInfo', @@ -195,7 +186,7 @@ Page({ }) }, onLoad(options){ - // this.data.userInfo = JSON.parse(options.userInfo) + this.data.userInfo = JSON.parse(options.userInfo) }, /** * 生命周期函数--监听页面显示 diff --git a/pages/setPassword/setPassword.wxml b/pages/setPassword/setPassword.wxml index 924b9b0..be8925b 100644 --- a/pages/setPassword/setPassword.wxml +++ b/pages/setPassword/setPassword.wxml @@ -2,17 +2,17 @@ 初次登录请设置密码 - - 密码 - + + 密码 + - - 确认密码 - + + 确认密码 + diff --git a/pages/setPassword/setPassword.wxss b/pages/setPassword/setPassword.wxss index 43e4115..ba852b2 100644 --- a/pages/setPassword/setPassword.wxss +++ b/pages/setPassword/setPassword.wxss @@ -1,32 +1,69 @@ -/* pages/meeting/meeting.wxss */ page { - overflow: hidden; + overflow-x: hidden; width: 100%; color: #333; } +.container-box{ + overflow-x: hidden; +} + .form-box{ - transform: translateY(20%); -} -.text-value{ - position: relative; -} -.text-password input{ - padding-right: 30px; + display: block; + box-sizing: border-box; + width: 100%; + height: auto; + background-color: #fff; + border-top-left-radius: 15px; + border-top-right-radius: 15px; + padding: 30px 20px; } .set-password{ - display: block; - font-size: 16px; - color: #333; - width: 100%; text-align: center; - margin-bottom: 20px; - letter-spacing: 0.5px; + display: block; + width: 100%; } +.form-box .item { + position: relative; + display: block !important; + width: 100%; + margin-bottom: 25px; +} +.form-box .label{ + width: 100%; + color: #A4A4A4; + font-size: 12px; + margin-bottom: 10px; +} +.form-box .value{ + width: 100%; +} +.form-box .value input{ + width: 100%; + box-sizing: border-box; + background-color: #F2F2F4; + border-radius: 8px; + color: #333; + font-size: 15px; + height: 50px; + padding: 0 90px 0 20px; +} + + +.btn-area button{ + background-color: #069F99 !important; + height: 50px; + display: flex; + justify-content: center; + align-items: center; + border-radius: 10px; +} + + .show{ width: 15px; height: 15px; position: absolute; right: 10px; - top: 8px; + top: 58%; z-index: 9; -} +} \ No newline at end of file diff --git a/pages/upDateInfo/upDateInfo.js b/pages/upDateInfo/upDateInfo.js index 7284753..3dccc40 100644 --- a/pages/upDateInfo/upDateInfo.js +++ b/pages/upDateInfo/upDateInfo.js @@ -37,11 +37,6 @@ Page({ }, clearrepeatvalOld(){ this.data.valsOld = [] - wx.showToast({ - title: '禁止复制粘贴请手动输入', - icon: 'none', - duration: 2000 - }) this.setData({ oldpassword: '' }) @@ -49,11 +44,6 @@ Page({ }, clearrepeatval(){ this.data.valsNew = [] - wx.showToast({ - title: '禁止复制粘贴请手动输入', - icon: 'none', - duration: 2000 - }) this.setData({ password: '' }) @@ -61,11 +51,6 @@ Page({ }, clearrepeatvalVerify(){ this.data.valsVerify = [] - wx.showToast({ - title: '禁止复制粘贴请手动输入', - icon: 'none', - duration: 2000 - }) this.setData({ confirmpassword: '' }) diff --git a/pages/upDateInfo/upDateInfo.wxml b/pages/upDateInfo/upDateInfo.wxml index 1bdb7c8..818ad2a 100644 --- a/pages/upDateInfo/upDateInfo.wxml +++ b/pages/upDateInfo/upDateInfo.wxml @@ -1,25 +1,25 @@ - - 旧密码 - + + 旧密码 + - - 新密码 - + + 新密码 + - - 确认新密码 - + + 确认新密码 + diff --git a/pages/upDateInfo/upDateInfo.wxss b/pages/upDateInfo/upDateInfo.wxss index cd0ca0c..38199fe 100644 --- a/pages/upDateInfo/upDateInfo.wxss +++ b/pages/upDateInfo/upDateInfo.wxss @@ -1,21 +1,134 @@ -/* pages/meeting/meeting.wxss */ +page { + overflow-x: hidden; + width: 100%; + color: #333; +} +.container-box{ + overflow-x: hidden; +} + .form-box{ - transform: translateY(20%); + display: block; + box-sizing: border-box; + width: 100%; + height: auto; + background-color: #fff; + border-top-left-radius: 15px; + border-top-right-radius: 15px; + padding: 30px 20px; } -.text-label { - width: 80px !important; -} -.text-value{ +.form-box .item { position: relative; + display: block !important; + width: 100%; + margin-bottom: 25px; } -.text-password input{ - padding-right: 30px; +.form-box .label{ + width: 100%; + color: #A4A4A4; + font-size: 12px; + margin-bottom: 10px; +} +.form-box .value{ + width: 100%; +} +.form-box .value input{ + width: 100%; + box-sizing: border-box; + background-color: #F2F2F4; + border-radius: 8px; + color: #333; + font-size: 15px; + height: 50px; + padding: 0 90px 0 20px; +} +.form-box .captcha{ + color: #069F99; + position: absolute; + right: 10px; + font-size: 13px; + top: 55%; + z-index: 9; +} +.form-box .view-flex{ + width: 100%; + display: flex; + justify-content: space-between; + align-items: center; + height: 50px; +} +.form .view-flex .value{ + flex: 1; +} +.form-box .captchaImage{ + width: 140px; + height: 50px; + flex-shrink: 0; + margin-left: 20px; +} +.form-box .captchaImage image{ + width: 100%; + height: 50px; + border-radius: 10px; +} +.form-box .count { + color: #999; +} +.btn-area button{ + background-color: #069F99 !important; + height: 50px; + display: flex; + justify-content: center; + align-items: center; + border-radius: 10px; +} +.other-way{ + color: #A4A4A4; + font-size: 12px; + display: block; + width: 100%; + text-align: center; + margin-top: 70px; + letter-spacing: 1px; +} +.weixin{ + margin-top: 30px !important; + width: 55px !important; + height: 55px !important; + background-color: #F2F2F4; + border-radius: 10px; + margin: auto; + display: flex; + justify-content: center; + align-items: center; +} +.weixin image{ + width: 32px !important; + height: 26px !important; +} +.forget{ + color: #999; + font-size: 14px; + display: flex; + justify-content: space-between; + align-items: center; + margin-top: 20px; +} +.weixin{ + width: 100%; + display: flex; + justify-content: center; + margin-top: 70px; +} +.weixin image{ + width: 50px; + height: 50px; } .show{ width: 15px; height: 15px; position: absolute; right: 10px; - top: 8px; + top: 58%; z-index: 9; -} +} \ No newline at end of file