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/api/shop.js b/jiuyi2/api/shop.js index 3170fbde..80c4d1a7 100644 --- a/jiuyi2/api/shop.js +++ b/jiuyi2/api/shop.js @@ -240,9 +240,9 @@ const shop = { */ merchant(param) { return util.request({ - url: `/shopify/merchant`, + url: `/shopify/appMerInfoApi/getMerDetail`, method: 'GET', - path: param.path, + query: param.query, load: true, }) }, 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/components/shop/detail/footerMenu.vue b/jiuyi2/components/shop/detail/footerMenu.vue index 3b92574e..6be67cd5 100644 --- a/jiuyi2/components/shop/detail/footerMenu.vue +++ b/jiuyi2/components/shop/detail/footerMenu.vue @@ -89,23 +89,26 @@ function handleBuy() { // 客服 function toCustomer() { - api.shop.getCustomerService({ merchantId: props.detail.merId }).then(rs => { - if (rs.code == 200) { - let param = {}; - param.type = 'C2C' - param.name = `${props.detail.merName}` - param.msgId = `${rs.data.serviceId}` - param.isCustomer = true - - util.toChat(param) - - uni.navigateTo({ - url: util.setUrl('/pages/news/chat/chat', param) - }) - } else { - util.alert(rs.msg) - } + uni.navigateTo({ + url: util.setUrl('/pages/mine/setting/feedback') }) + // api.shop.getCustomerService({ merchantId: props.detail.merId }).then(rs => { + // if (rs.code == 200) { + // let param = {}; + // param.type = 'C2C' + // param.name = `${props.detail.merName}` + // param.msgId = `${rs.data.serviceId}` + // param.isCustomer = true + + // util.toChat(param) + + // uni.navigateTo({ + // url: util.setUrl('/pages/news/chat/chat', param) + // }) + // } else { + // util.alert(rs.msg) + // } + // }) } @@ -116,7 +119,7 @@ function toCustomer() { - 店铺 + 店铺 diff --git a/jiuyi2/pages.json b/jiuyi2/pages.json index 31b40411..c08891ba 100644 --- a/jiuyi2/pages.json +++ b/jiuyi2/pages.json @@ -753,8 +753,27 @@ { "navigationBarTitleText" : "隐私设置" } + }, + { + "path": "pages/mine/setting/updateAccount", + "style": { + "navigationBarTitleText": "修改账号" + } + }, + { + "path": "pages/mine/setting/updatePhoneNum", + "style": { + "navigationBarTitleText": "修改手机号" + } + }, + { + "path": "pages/mine/setting/loginPassword", + "style": { + "navigationBarTitleText": "登录密码" + } } ], + "subPackages": [ { "root": "TUIKit", diff --git a/jiuyi2/pages/mine/mine.vue b/jiuyi2/pages/mine/mine.vue index 0cc760eb..cb4be092 100644 --- a/jiuyi2/pages/mine/mine.vue +++ b/jiuyi2/pages/mine/mine.vue @@ -57,8 +57,7 @@ function toCustomer() { param.isCustomer = true util.toChat(param) - - + uni.navigateTo({ url: util.setUrl('/pages/news/chat/chat', param) }) 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 d33d2818..7190a10a 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 diff --git a/jiuyi2/pages/shop/store/index.vue b/jiuyi2/pages/shop/store/index.vue index 3e80c3d6..bb9d5819 100644 --- a/jiuyi2/pages/shop/store/index.vue +++ b/jiuyi2/pages/shop/store/index.vue @@ -1,68 +1,198 @@ \ No newline at end of file