diff --git a/jiuyi2/App.vue b/jiuyi2/App.vue index 6553fd87..c7cfd3bc 100644 --- a/jiuyi2/App.vue +++ b/jiuyi2/App.vue @@ -1,122 +1,124 @@ \ No newline at end of file diff --git a/jiuyi2/api/mine.js b/jiuyi2/api/mine.js index 6eac9571..aa487d3f 100644 --- a/jiuyi2/api/mine.js +++ b/jiuyi2/api/mine.js @@ -404,7 +404,7 @@ const mine = { method: 'POST', }) }, - + /** * 解锁他人评论 * @param {Object} param @@ -416,6 +416,45 @@ const mine = { method: 'POST', }) }, + + /** + * 修改账号 + * @param {Object} param + */ + updateAccount(param) { + return util.request({ + url: `/user/home/update/account`, + data: param.data, + method: 'POST', + load: true, + }) + }, + + /** + * 修改手机号 + * @param {Object} param + */ + updatePhone(param) { + return util.request({ + url: `/user/login/updatePhone`, + data: param.data, + method: 'POST', + load: true, + }) + }, + + /** + * 修改登录密码 + * @param {Object} param + */ + updatePassword(param) { + return util.request({ + url: `/user/login/updatePassword`, + data: param.data, + method: 'POST', + load: true, + }) + }, } export default mine \ No newline at end of file diff --git a/jiuyi2/components/footerMenu/footerMenu.vue b/jiuyi2/components/footerMenu/footerMenu.vue index 98132eb0..5e20aafa 100644 --- a/jiuyi2/components/footerMenu/footerMenu.vue +++ b/jiuyi2/components/footerMenu/footerMenu.vue @@ -224,20 +224,21 @@ function handleAlert(ev) { // 获取未读消息数量 function getNoReadNum() { - // 验证sdk是否准备完毕 - let isReady = uni.$chat.isReady(); - if (!isReady) { - setTimeout(function () { - getNoReadNum(); - }, 800); - return + if (userinfo.value.isRealName) { + // 验证sdk是否准备完毕 + let isReady = uni.$chat.isReady(); + if (!isReady) { + setTimeout(function () { + getNoReadNum(); + }, 800); + return + } + + // #ifdef APP + const unreadCount = uni.$chat.getTotalUnreadMessageCount(); + noReadNum.value = +unreadCount > 99 ? '99+' : unreadCount; + // #endif } - - // #ifdef APP - const unreadCount = uni.$chat.getTotalUnreadMessageCount(); - noReadNum.value = +unreadCount > 99 ? '99+' : unreadCount; - // #endif - } diff --git a/jiuyi2/pages.json b/jiuyi2/pages.json index 3c9dd4a8..8b9561a8 100644 --- a/jiuyi2/pages.json +++ b/jiuyi2/pages.json @@ -746,6 +746,24 @@ { "navigationBarTitleText" : "账号解冻" } + }, + { + "path": "pages/mine/setting/updateAccount", + "style": { + "navigationBarTitleText": "修改账号" + } + }, + { + "path": "pages/mine/setting/updatePhoneNum", + "style": { + "navigationBarTitleText": "修改手机号" + } + }, + { + "path": "pages/mine/setting/loginPassword", + "style": { + "navigationBarTitleText": "登录密码" + } } ], "subPackages": [ diff --git a/jiuyi2/pages/mine/setting/loginPassword.vue b/jiuyi2/pages/mine/setting/loginPassword.vue new file mode 100644 index 00000000..b8c08263 --- /dev/null +++ b/jiuyi2/pages/mine/setting/loginPassword.vue @@ -0,0 +1,118 @@ + + + + + \ No newline at end of file diff --git a/jiuyi2/pages/mine/setting/setting.vue b/jiuyi2/pages/mine/setting/setting.vue index 65c297cd..bca429d6 100644 --- a/jiuyi2/pages/mine/setting/setting.vue +++ b/jiuyi2/pages/mine/setting/setting.vue @@ -1,139 +1,139 @@ \ No newline at end of file diff --git a/jiuyi2/pages/mine/setting/updateAccount.vue b/jiuyi2/pages/mine/setting/updateAccount.vue new file mode 100644 index 00000000..16e85d3b --- /dev/null +++ b/jiuyi2/pages/mine/setting/updateAccount.vue @@ -0,0 +1,93 @@ + + + + + \ No newline at end of file diff --git a/jiuyi2/pages/mine/setting/updatePhoneNum.vue b/jiuyi2/pages/mine/setting/updatePhoneNum.vue new file mode 100644 index 00000000..27ab5390 --- /dev/null +++ b/jiuyi2/pages/mine/setting/updatePhoneNum.vue @@ -0,0 +1,118 @@ + + + + + \ No newline at end of file diff --git a/jiuyi2/pages/mine/userinfo.vue b/jiuyi2/pages/mine/userinfo.vue index 77950510..b442422f 100644 --- a/jiuyi2/pages/mine/userinfo.vue +++ b/jiuyi2/pages/mine/userinfo.vue @@ -1,132 +1,144 @@ \ No newline at end of file diff --git a/jiuyi2/pages/news/group-chat/index.vue b/jiuyi2/pages/news/group-chat/index.vue index 73632f91..e692657e 100644 --- a/jiuyi2/pages/news/group-chat/index.vue +++ b/jiuyi2/pages/news/group-chat/index.vue @@ -1,141 +1,151 @@ \ No newline at end of file