diff --git a/miniprogram/api/login.js b/miniprogram/api/login.js index 14ec30a..5398245 100644 --- a/miniprogram/api/login.js +++ b/miniprogram/api/login.js @@ -1,4 +1,6 @@ -import {request} from '../utils/request' +import { + request +} from '../utils/request' // 获取验证码 export function getCodeImg() { @@ -8,19 +10,28 @@ export function getCodeImg() { }) } -// 登录方法 +// 用户登录 export function login(data) { return request({ - url: '/wxApi/login', + url: '/wechat/login', method: 'post', data: data, }) } -// 登录方法 +// 修改密码 export function updatePwd(data) { return request({ - url: '/wxApi/updatePwd', + url: '/wechat/v1/updatePassword', + method: 'post', + data: data, + }) +} + +// 修改密码 +export function codeUpdatePwd(data) { + return request({ + url: '/wechat/v1/codeUpdatePwd', method: 'post', data: data, }) @@ -34,10 +45,21 @@ export function loginOut() { }) } +// 发送短信验证码 +export function sendPhoneMessage(phoneNumber) { + return request({ + url: '/wechat/v1/sendPhoneMessage', + method: 'post', + data: { + 'phoneNumber': phoneNumber + } + }) +} + // 查询公众号消息授权 export function findOpenUserMsgId(openId) { return request({ - 'url': '/wechat/findOpenUserMsgId/'+openId, + 'url': '/wechat/findOpenUserMsgId/' + openId, 'method': 'get' }) } @@ -45,7 +67,7 @@ export function findOpenUserMsgId(openId) { // 删除公众号消息授权 export function delOpenUserMsgId(openId) { return request({ - 'url': '/wechat/delOpenUserMsgId/'+openId, + 'url': '/wechat/delOpenUserMsgId/' + openId, 'method': 'get' }) } \ No newline at end of file diff --git a/miniprogram/api/publics.js b/miniprogram/api/publics.js index ba00d99..a58078d 100644 --- a/miniprogram/api/publics.js +++ b/miniprogram/api/publics.js @@ -56,4 +56,12 @@ export function findProjectApplyData(id){ url: '/wxApi/publics/projectApply/'+id, method: 'get' }) +} + +// 获取系统字典信息 +export function getDictCache(type){ + return request({ + url: '/wechat/publics/v1/getDictCache/'+type, + method: 'get' + }) } \ No newline at end of file diff --git a/miniprogram/app.js b/miniprogram/app.js index 5c72ef6..b47fde9 100644 --- a/miniprogram/app.js +++ b/miniprogram/app.js @@ -1,4 +1,6 @@ -//app.js +import { + getToken +} from '/utils/auth' //全局分享 !function(){ @@ -78,11 +80,18 @@ App({ }) } this.autoUpdate(); + if(!getToken()){ + setTimeout(() => { + this.toast("请使用手机号码登录",1500); + }, 1000); + wx.redirectTo({ + url: '/pages/login/index', + }); + return false; + } }, - onLoad(){ - - }, + onLoad(){}, //页面弹窗 toast: function (msg) { diff --git a/miniprogram/app.json b/miniprogram/app.json index a66a2d1..3f737fc 100644 --- a/miniprogram/app.json +++ b/miniprogram/app.json @@ -1,6 +1,7 @@ { "pages": [ "pages/login/index", + "pages/alter-ps/index", "pages/wx-auth/index", "pages/gongchengliebiao/index", "pages/gengduogongneng/index", diff --git a/miniprogram/app.wxss b/miniprogram/app.wxss index 01559e0..c18b197 100644 --- a/miniprogram/app.wxss +++ b/miniprogram/app.wxss @@ -1867,4 +1867,8 @@ swiper-item video { } .van-steps--horizontal{ padding: 10px 20px !important; +} + +.files_parent{ + margin-bottom: 20rpx; } \ No newline at end of file diff --git a/miniprogram/config.js b/miniprogram/config.js index 1091789..5e6756d 100644 --- a/miniprogram/config.js +++ b/miniprogram/config.js @@ -4,6 +4,5 @@ module.exports = { appId: "wx9997d071b4996f23", //baseUrl: 'http://127.0.0.1:8091', baseUrl: 'https://szgcwx.jhncidg.com', - manageUrl: 'https://szgc.jhncidg.com', - noSecuritys:['/wechat/captchaImage','/wxApi/login'] + noSecuritys:['/wechat/captchaImage','/wechat/login','/wechat/v1/sendPhoneMessage','/wechat/v1/codeUpdatePwd'] }; \ No newline at end of file diff --git a/miniprogram/pageage/flow_labour/check/index.wxml b/miniprogram/pageage/flow_labour/check/index.wxml index eab6e8a..04cdd66 100644 --- a/miniprogram/pageage/flow_labour/check/index.wxml +++ b/miniprogram/pageage/flow_labour/check/index.wxml @@ -151,14 +151,14 @@ - 处理意见 [必填项] + 处理意见 [必填项]