From f499eaa37c88150513ed99a5e19e4e82f095fdfc Mon Sep 17 00:00:00 2001 From: "Mr.jiang" <714156421@qq.com> Date: Wed, 21 Aug 2024 14:57:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E4=BB=8E=E5=85=AC=E4=BC=97?= =?UTF-8?q?=E5=8F=B7=E7=99=BB=E9=99=86=E5=BA=94=E8=81=98=E6=8A=80=E5=B8=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 75 ++++ pages/publicThree/bind.vue | 191 +++++++++ pages/publicThree/css/main.css | 93 +++++ pages/publicThree/forgetPwd.vue | 201 +++++++++ pages/publicThree/login.vue | 694 +++++++++++++++++++++++++++++++ pages/publicThree/loginmsg.vue | 234 +++++++++++ pages/publicThree/loginphone.vue | 194 +++++++++ pages/publicThree/pwd.vue | 188 +++++++++ pages/publicThree/register.vue | 377 +++++++++++++++++ pages/publicTwo/bind.vue | 24 +- pages/publicTwo/login.vue | 7 +- 11 files changed, 2268 insertions(+), 10 deletions(-) create mode 100644 pages/publicThree/bind.vue create mode 100644 pages/publicThree/css/main.css create mode 100644 pages/publicThree/forgetPwd.vue create mode 100644 pages/publicThree/login.vue create mode 100644 pages/publicThree/loginmsg.vue create mode 100644 pages/publicThree/loginphone.vue create mode 100644 pages/publicThree/pwd.vue create mode 100644 pages/publicThree/register.vue diff --git a/pages.json b/pages.json index c49dd46..fe1b3fa 100644 --- a/pages.json +++ b/pages.json @@ -710,6 +710,81 @@ } }, // #ifdef H5 + { + "path": "pages/publicThree/login", + "style": { + "navigationBarTitleText": "登录", + "app-plus": { + "titleNView": false + } + } + }, + // #endif + // #ifndef H5 + { + "path": "pages/publicThree/login", + "style": { + "navigationBarTitleText": "登录", + "app-plus": { + "titleNView": false + } + } + }, + // #endif + { + "path": "pages/publicThree/bind", + "style": { + "navigationBarTitleText": "绑定手机号", + "app-plus": { + "titleNView": false + } + } + }, + { + "path": "pages/publicThree/forgetPwd", + "style": { + "navigationBarTitleText": "重置密码", + "app-plus": { + "titleNView": false + } + } + }, + + { + "path": "pages/publicThree/loginphone", + "style": { + "navigationBarTitleText": "登录", + "app-plus": { + "titleNView": false + } + } + }, + { + "path": "pages/publicThree/loginmsg", + "style": { + "navigationBarTitleText": "登录", + "app-plus": { + "titleNView": false + } + } + }, + { + "path": "pages/publicThree/pwd", + "style": { + "navigationBarTitleText": "修改密码", + "navigationStyle": "custom", + "app-plus": { + "titleNView": false + } + } + }, + { + "path": "pages/publicThree/register", + "style": { + "navigationBarTitleText": "注册" + } + }, + // #ifdef H5 { "path": "pages/publicTwo/login", "style": { diff --git a/pages/publicThree/bind.vue b/pages/publicThree/bind.vue new file mode 100644 index 0000000..bda871d --- /dev/null +++ b/pages/publicThree/bind.vue @@ -0,0 +1,191 @@ + + + + + diff --git a/pages/publicThree/css/main.css b/pages/publicThree/css/main.css new file mode 100644 index 0000000..3474926 --- /dev/null +++ b/pages/publicThree/css/main.css @@ -0,0 +1,93 @@ +.content { + display: flex; + flex-direction: column; + justify-content:center; + /* margin-top: 128upx; */ +} + +/* 头部 logo */ +.header { + text-align: center; + + width:161upx; + height:161upx; + box-shadow:0upx 0upx 60upx 0upx rgba(0,0,0,0.1); + border-radius:50%; + background: -moz-linear-gradient(left, #F15B6C, #e10a07 100%); + background: -webkit-gradient(linear, left top, left right, color-stop(0, #F15B6C), color-stop(100%, #e10a07)); + background: -webkit-linear-gradient(left, #F15B6C 0, #e10a07 100%); + background: -o-linear-gradient(left, #F15B6C 0, #e10a07 100%); + background: -ms-linear-gradient(left, #F15B6C 0, #e10a07 100%); + background: linear-gradient(to left, #F15B6C 0, #e10a07 100%); + margin-top: 180upx; + margin-bottom: 72upx; + font-size: 60upx; + color: white; + font-weight: bold; + padding-top: 32upx; + margin-left: auto; + margin-right: auto; +} +.header image{ + width:161upx; + height:161upx; + border-radius:50%; +} + +/* 主体 */ +.main { + display: flex; + flex-direction: column; + padding-left: 70upx; + padding-right: 70upx; +} +.tips { + color: #999999; + font-size: 28upx; + margin-top: 64upx; + margin-left: 48upx; +} + +/* 其他登录方式 */ +.other_login{ + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + margin-top: 256upx; + text-align: center; +} +.login_icon{ + border: none; + font-size: 64upx; + margin: 0 64upx 0 64upx; + color: rgba(0,0,0,0.7) +} +.wechat_color{ + color: #83DC42; +} +.weibo_color{ + color: #F9221D; +} +.github_color{ + color: #24292E; +} + +/* 底部 */ +.footer{ + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + font-size: 28upx; + margin-top: 64upx; + color: rgba(0,0,0,0.7); + text-align: center; + height: 40upx; + line-height: 40upx; +} +.footer text{ + font-size: 24upx; + margin-left: 15upx; + margin-right: 15upx; +} \ No newline at end of file diff --git a/pages/publicThree/forgetPwd.vue b/pages/publicThree/forgetPwd.vue new file mode 100644 index 0000000..9f72b82 --- /dev/null +++ b/pages/publicThree/forgetPwd.vue @@ -0,0 +1,201 @@ + + + + + diff --git a/pages/publicThree/login.vue b/pages/publicThree/login.vue new file mode 100644 index 0000000..756f85d --- /dev/null +++ b/pages/publicThree/login.vue @@ -0,0 +1,694 @@ + + + + diff --git a/pages/publicThree/loginmsg.vue b/pages/publicThree/loginmsg.vue new file mode 100644 index 0000000..733af23 --- /dev/null +++ b/pages/publicThree/loginmsg.vue @@ -0,0 +1,234 @@ + + + + + diff --git a/pages/publicThree/loginphone.vue b/pages/publicThree/loginphone.vue new file mode 100644 index 0000000..f096c9b --- /dev/null +++ b/pages/publicThree/loginphone.vue @@ -0,0 +1,194 @@ + + + + + diff --git a/pages/publicThree/pwd.vue b/pages/publicThree/pwd.vue new file mode 100644 index 0000000..781054b --- /dev/null +++ b/pages/publicThree/pwd.vue @@ -0,0 +1,188 @@ + + + + + diff --git a/pages/publicThree/register.vue b/pages/publicThree/register.vue new file mode 100644 index 0000000..e708290 --- /dev/null +++ b/pages/publicThree/register.vue @@ -0,0 +1,377 @@ + + + + + \ No newline at end of file diff --git a/pages/publicTwo/bind.vue b/pages/publicTwo/bind.vue index 287241f..47b7e21 100644 --- a/pages/publicTwo/bind.vue +++ b/pages/publicTwo/bind.vue @@ -35,7 +35,6 @@ count: 60, } }, - methods: { inputChange(e) { const key = e.currentTarget.dataset.key; @@ -120,11 +119,24 @@ this.$queue.setData('avatar', res.user.avatar ? res.user.avatar : '../../static/logo.png'); this.$queue.showToast('绑定成功'); - setTimeout(function() { - uni.switchTab({ - url: '/pages/index/index' - }) - }, 1000) + let data = { + userId: res.user.userId, + focusedUserId: '0', + } + this.$Request.postJson('/app/chat/insertChatConversation', data).then(res => { + if (res.data) { + let id = this.ordersId == res.data.userId ? res.data.focusedUserId : this.ordersId + uni.navigateTo({ + url: '/pages/msg/im?chatConversationId=' + res.data.chatConversationId + + '&byUserId=' + res.data.userId + }) + } + }) + // setTimeout(function() { + // uni.switchTab({ + // url: '/pages/index/index' + // }) + // }, 1000) } else { uni.showModal({ showCancel: false, diff --git a/pages/publicTwo/login.vue b/pages/publicTwo/login.vue index 9deaa45..bd212f0 100644 --- a/pages/publicTwo/login.vue +++ b/pages/publicTwo/login.vue @@ -171,9 +171,7 @@ let data = { userId: res.user.userId, focusedUserId: '0', - // userName:this.order.userName } - // app/chat/insertChatConversation this.$Request.postJson('/app/chat/insertChatConversation', data).then(res => { if (res.data) { let id = this.ordersId == res.data.userId ? res.data.focusedUserId : this.ordersId @@ -183,6 +181,7 @@ }) } }) + // uni.switchTab({ // url: '/pages/index/index' // }) @@ -495,7 +494,7 @@ } else { uni.hideLoading(); uni.navigateTo({ - url: '/pages/publicTwo/wxmobile' + url: '/pages/publicTwo/wxmobile?text='+this.textName }); } }); @@ -558,7 +557,7 @@ this.$queue.setData('isInvitation', res.data.isInvitation); this.$queue.setData('nickName', res.data.nickName ? res.data.nickName : res.data.phone); let data = { - userId: userId, + userId: res.user.userId, focusedUserId: '0', } this.$Request.postJson('/app/chat/insertChatConversation', data).then(res => {