提交 72f161dd 作者: wk

一物一码页面优化

父级 7ab36055
...@@ -298,18 +298,19 @@ ...@@ -298,18 +298,19 @@
<style lang="scss"> <style lang="scss">
.content { .content {
display: flex; display: flex;
background-color: #F5F5F5;
flex-direction: column; flex-direction: column;
.search-content { .search-content {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
background-color: #F5F5F5;
padding: 20rpx 32rpx; padding: 20rpx 32rpx;
.search { .search {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
background-color: #FFFFFF;
border: 0.5px solid #656565; border: 0.5px solid #656565;
flex: 1; flex: 1;
padding: 0 30rpx; padding: 0 30rpx;
...@@ -343,7 +344,7 @@ ...@@ -343,7 +344,7 @@
.list-content { .list-content {
display: flex; display: flex;
background: rgba(0, 0, 0, 0.1); // background: rgba(0, 0, 0, 0.1);
flex-direction: column; flex-direction: column;
.list-item { .list-item {
...@@ -351,6 +352,7 @@ ...@@ -351,6 +352,7 @@
background-color: #FFFFFF; background-color: #FFFFFF;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
margin: 10rpx 30rpx;
border-radius: 30rpx; border-radius: 30rpx;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
padding: 32rpx; padding: 32rpx;
...@@ -359,7 +361,8 @@ ...@@ -359,7 +361,8 @@
.left-item { .left-item {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex: 0 0 80%; flex: 1;
max-width: 500rpx;
.item { .item {
padding: 10rpx 0; padding: 10rpx 0;
......
...@@ -92,7 +92,8 @@ ...@@ -92,7 +92,8 @@
this.$toast.showToast("获取手机号授权失败") this.$toast.showToast("获取手机号授权失败")
return return
} }
this.wxPhoneLogin(result.data.phoneNumber) this.checkBind(result.data.phoneNumber)
// this.wxPhoneLogin(result.data.phoneNumber)
} else { } else {
this.$toast.showToast(result.msg) this.$toast.showToast(result.msg)
} }
...@@ -152,8 +153,8 @@ ...@@ -152,8 +153,8 @@
}) })
}, },
}); });
} },
checkBind: function() { checkBind: function(phone) {
Api.checkBind({ Api.checkBind({
data: { data: {
unique_token: this.unique_token unique_token: this.unique_token
...@@ -163,7 +164,7 @@ ...@@ -163,7 +164,7 @@
if (code == 0) { //已绑定直接登录 if (code == 0) { //已绑定直接登录
this.directLogin() this.directLogin()
} else { //其他 } else { //其他
this.wxPhoneLogin() this.wxPhoneLogin(phone)
} }
}, (err) => { }, (err) => {
this.$toast.showToast(err.msg) this.$toast.showToast(err.msg)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
Please register or to comment