From c3cf671949d00de347d82bb29c61cb3bfec72c65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Fri, 3 May 2024 10:37:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miniprogram/api/login.js | 36 +- miniprogram/api/publics.js | 8 + miniprogram/app.js | 17 +- miniprogram/app.json | 1 + miniprogram/app.wxss | 4 + miniprogram/config.js | 3 +- .../pageage/flow_labour/check/index.wxml | 4 +- miniprogram/pageage/flow_labour/list/index.js | 30 +- .../pageage/flow_labour/list/index.wxml | 12 +- .../project_checkDetection/add/index.js | 497 ++++++----- .../project_checkDetection/add/index.wxml | 173 ++-- .../project_checkDetection/check/index.js | 708 ++++++++------- .../project_checkDetection/check/index.wxml | 23 +- .../project_checkDetection/edit/index.js | 722 +++++++++------ .../project_checkDetection/edit/index.wxml | 259 +++--- .../project_checkDetection/info/index.js | 59 +- .../project_checkDetection/info/index.wxml | 286 +++--- .../project_checkDetection/list/index.js | 17 +- .../project_checkDetection/list/index.wxml | 2 +- .../pageage/project_checking/add/index.js | 493 ++++++----- .../pageage/project_checking/add/index.wxml | 13 +- .../pageage/project_checking/edit/index.js | 640 ++++++++------ .../pageage/project_checking/edit/index.wxml | 10 +- .../pageage/project_checking/info/index.js | 39 +- .../pageage/project_checking/info/index.wxml | 17 +- .../pageage/project_checking/list/index.js | 11 +- .../pageage/project_checking/list/index.wxml | 2 +- .../pageage/project_insurance/add/index.wxml | 2 +- .../project_materialSeal/add/index.wxml | 6 +- .../project_materialSeal/edit/index.wxml | 6 +- .../project_materialSeal/list/index.js | 17 +- .../project_materialSeal/list/index.wxml | 2 +- .../pageage/project_measure/add/index.wxml | 4 +- .../pageage/project_measure/edit/index.wxml | 4 +- .../pageage/project_measure/list/index.js | 17 +- .../pageage/project_measure/list/index.wxml | 2 +- .../quality/add/index.wxml | 2 +- .../quality/list/index.js | 17 +- .../quality/list/index.wxml | 4 +- .../security/add/index.wxml | 2 +- .../security/list/index.js | 18 +- .../security/list/index.wxml | 4 +- .../pageage/project_schedule/add/index.wxml | 2 +- .../pageage/project_special/add/index.wxml | 2 +- .../pageage/project_standard/add/index.js | 305 ++++--- .../pageage/project_standard/add/index.json | 4 +- .../pageage/project_standard/add/index.wxml | 133 +-- .../pageage/project_standard/add/index.wxss | 94 +- .../pageage/project_standard/info/index.js | 371 ++++---- .../pageage/project_standard/info/index.wxml | 10 +- .../pageage/project_standard/list/index.js | 10 +- .../pageage/project_train/add/index.wxml | 6 +- .../addSafetyInspect/index.wxml | 6 +- miniprogram/pages/alter-ps/index.js | 218 +++++ miniprogram/pages/alter-ps/index.json | 4 + miniprogram/pages/alter-ps/index.wxml | 47 + miniprogram/pages/alter-ps/index.wxss | 139 +++ .../components/file-uploader-all/index.wxss | 2 +- .../pages/components/file-uploader/index.wxss | 2 +- .../pages/components/project-select/index.js | 8 + .../components/project-select/index.wxml | 2 +- .../pages/components/user-infos/index.js | 42 +- .../components/voucher-many-select/index.js | 3 +- .../components/voucher-many-select/index.wxml | 2 +- .../components/voucher-many-select/index.wxss | 2 +- miniprogram/pages/gengduogongneng/index.js | 5 +- miniprogram/pages/gongchengliebiao/index.js | 4 +- miniprogram/pages/login/index.js | 107 ++- miniprogram/pages/login/index.wxml | 13 +- miniprogram/pages/login/index.wxss | 63 +- miniprogram/pages/map/map.js | 4 +- .../approveCheckDetection/index.js | 57 +- .../approveCheckDetection/index.wxml | 23 +- .../project_approve/approveChecking/index.js | 14 +- .../approveChecking/index.wxml | 313 +++---- .../project_flowable/approveTask/index.js | 46 +- .../project_flowable/approveTask/index.wxml | 67 +- .../project_flowable/approveTask/index.wxss | 11 +- .../pages/project_flowable/await/index.js | 32 +- .../pages/project_flowable/await/index.json | 3 +- .../pages/project_flowable/await/index.wxml | 3 +- .../pages/project_flowable/await/index.wxss | 3 + .../project_flowable/detailTask/index.js | 47 +- .../project_flowable/detailTask/index.wxml | 69 +- .../project_flowable/detailTask/index.wxss | 11 +- .../project_flowable/editLeaveTask/index.wxml | 2 +- .../pages/project_flowable/editTask/index.js | 822 ++++++++++++------ .../project_flowable/editTask/index.json | 3 +- .../project_flowable/editTask/index.wxml | 57 ++ .../project_flowable/editTask/index.wxss | 3 + .../pages/project_flowable/initTask/index.js | 254 +++++- .../project_flowable/initTask/index.json | 3 +- .../project_flowable/initTask/index.wxml | 57 ++ .../project_flowable/initTask/index.wxss | 3 + .../myFlowDefinition/index.js | 6 +- .../myFlowDefinition/index.wxml | 2 +- .../project_flowable/myProcessIns/index.js | 10 +- .../project_flowable/myProcessIns/index.wxml | 3 +- miniprogram/pages/wx-auth/index.js | 3 +- miniprogram/pages/wx-auth/index.json | 3 +- miniprogram/utils/format.wxs | 6 + miniprogram/utils/json.js | 397 +++++++++ miniprogram/utils/request.js | 4 +- project.config.json | 2 +- project.private.config.json | 6 +- 105 files changed, 5442 insertions(+), 2706 deletions(-) create mode 100644 miniprogram/pages/alter-ps/index.js create mode 100644 miniprogram/pages/alter-ps/index.json create mode 100644 miniprogram/pages/alter-ps/index.wxml create mode 100644 miniprogram/pages/alter-ps/index.wxss create mode 100644 miniprogram/utils/json.js 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 @@ - 处理意见 [必填项] + 处理意见 [必填项]