diff --git a/manifest.json b/manifest.json
index 1df34a1b..37ed648e 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "智慧安全", //中建四局
"appid" : "__UNI__4AA4101",
"description" : "",
- "versionName" : "1.6.7",
- "versionCode" : 167,
+ "versionName" : "1.6.8",
+ "versionCode" : 168,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
diff --git a/pages.json b/pages.json
index bcdb2e5a..09d80a07 100644
--- a/pages.json
+++ b/pages.json
@@ -2764,6 +2764,13 @@
{
"navigationBarTitleText" : ""
}
+ },
+ {
+ "path" : "pages/projectEnd/materialsManage/materialsManage",
+ "style" :
+ {
+ "navigationBarTitleText" : ""
+ }
}
],
// "subPackages":[{
diff --git a/pages/login/compatibleLogin.vue b/pages/login/compatibleLogin.vue
index dfc4786c..03ec17e8 100644
--- a/pages/login/compatibleLogin.vue
+++ b/pages/login/compatibleLogin.vue
@@ -148,6 +148,30 @@
let {
accountType
} = res.result;
+ if(res.result.expire){
+ this.userInfo = {
+ userId: res.result.userId,
+ account: res.result.account,
+ token: res.result.token,
+ };
+ let that = this;
+
+ uni.showModal({
+ title: '提示',
+ content: '密码有效期已超过90天,为确保您的账号安全,请重新修改密码!',
+ success: function(res) {
+ if (res.confirm) {
+ uni.navigateTo({
+ url: `/pages/my/changePassword/changePassword?userInfo=${JSON.stringify(that.userInfo)}`,
+ });
+
+ } else if (res.cancel) {
+ console.log('用户点击取消');
+ }
+ }
+ });
+ return
+ }
if (accountType == 5 || accountType == 6 || accountType == 10) {
if (this.type == "user") {
diff --git a/pages/my/changePassword/changePassword.vue b/pages/my/changePassword/changePassword.vue
index 77ae42d1..9f1d4e20 100644
--- a/pages/my/changePassword/changePassword.vue
+++ b/pages/my/changePassword/changePassword.vue
@@ -119,8 +119,9 @@
}
};
},
- onLoad() {
- this.userInfo = JSON.parse(uni.getStorageSync('userInfo'));
+ onLoad(option) {
+ console.log(option)
+ this.userInfo = option.userInfo ? JSON.parse(option.userInfo) : JSON.parse(uni.getStorageSync('userInfo'));
},
onReady() {
this.$refs.uForm.setRules(this.rules);
@@ -133,6 +134,9 @@
// 修改密码
this.sendRequest({
url: "xmgl/systemUser/xz/updatePw",
+ header: {
+ Authorization: "Bearer " + this.userInfo.token
+ },
data: {
userId:this.userInfo.userId,
oldPassword:this.formData.pw,
@@ -146,7 +150,9 @@
uni.showToast({
title:'修改成功!'
})
- this.logout();
+ setTimeout(() => {
+ this.logout();
+ }, 1000)
}
}
})
diff --git a/pages/projectEnd/materialsManage/materialsManage.vue b/pages/projectEnd/materialsManage/materialsManage.vue
new file mode 100644
index 00000000..ea02c1c4
--- /dev/null
+++ b/pages/projectEnd/materialsManage/materialsManage.vue
@@ -0,0 +1,135 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/projectEnd/projectIndex/projectIndex.vue b/pages/projectEnd/projectIndex/projectIndex.vue
index fca35fb5..c05e48b8 100644
--- a/pages/projectEnd/projectIndex/projectIndex.vue
+++ b/pages/projectEnd/projectIndex/projectIndex.vue
@@ -135,7 +135,8 @@
巡检点位置:{{ qrCode.position }}
-
+
@@ -695,6 +696,11 @@
url: '../../fileManage/fileManage'
})
break
+ case 'materialsManage':
+ uni.navigateTo({
+ url: '../../projectEnd/materialsManage/materialsManage'
+ })
+ break
case 'ukashManage':
uni.navigateTo({
url: '../../projectEnd/ukashManage/ukashManage'
@@ -821,7 +827,7 @@
getAllModule(arr) {
console.log('获取的模块', arr)
const find = arr.find(item => item.plugin == "emergencyDisposal");
- if(find){
+ if (find) {
uni.setStorageSync('moduleInfo', JSON.stringify(find))
}
var that = this
diff --git a/static/ekashManage.png b/static/ekashManage.png
new file mode 100644
index 00000000..ca52050b
Binary files /dev/null and b/static/ekashManage.png differ
diff --git a/static/ukashManage.png b/static/ukashManage.png
new file mode 100644
index 00000000..b023cbbf
Binary files /dev/null and b/static/ukashManage.png differ