Commit 9b474810 by 陈超

T

parent 2a0ea527
...@@ -149,6 +149,11 @@ div::-webkit-scrollbar { ...@@ -149,6 +149,11 @@ div::-webkit-scrollbar {
font-weight: 600; font-weight: 600;
} }
.text_apple {
font-size: 1.25rem;
color: #007AFF;
}
.divider { .divider {
height: 0.0625rem; height: 0.0625rem;
background: #E6E6E6; background: #E6E6E6;
...@@ -376,6 +381,42 @@ div::-webkit-scrollbar { ...@@ -376,6 +381,42 @@ div::-webkit-scrollbar {
color:rgba(101,192,0,1); color:rgba(101,192,0,1);
} }
.popup_top_button {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
background:rgba(248,248,248,0.82);
border-radius:14px 14px 0px 0px;
margin-left: 0.625rem;
margin-right: 0.625rem;
margin-bottom: 0.0625rem;
height:3.5625rem;
}
.popup_bottom_button {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
background:rgba(248,248,248,0.82);
border-radius:14px 14px 0px 0px;
height:3.5625rem;
margin-left: 0.625rem;
margin-right: 0.625rem;
}
.popup_cancel {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
height:3.5rem;
background:rgba(255,255,255,1);
border-radius:0.875rem;
margin: 0.625rem;
}
/* /*
* Home * Home
*/ */
......
...@@ -112,6 +112,20 @@ ...@@ -112,6 +112,20 @@
</div> </div>
</div> </div>
</van-overlay> </van-overlay>
<van-popup
v-model="innerShow"
round
@close="onPopupClose"
position="bottom">
<div class="layout_v">
<div @click="onChooseGender(1)" class="text_apple popup_top_button"></div>
<div @click="onChooseGender(0)" class="text_apple popup_top_button"></div>
<div @click="onGenderCancel" class="text_apple popup_cancel">取消</div>
</div>
</van-popup>
</div> </div>
...@@ -268,6 +282,7 @@ ...@@ -268,6 +282,7 @@
data: function() { data: function() {
return { return {
show: false, show: false,
innerShow: false,
value: "", value: "",
currentAvatar: "{:getUserFace($user['uid'],'b')}", currentAvatar: "{:getUserFace($user['uid'],'b')}",
currentNickName: "{:getUserName($user['uid'])}", currentNickName: "{:getUserName($user['uid'])}",
...@@ -324,8 +339,14 @@ ...@@ -324,8 +339,14 @@
this.value = this.currentNickName this.value = this.currentNickName
this.show = true this.show = true
}, },
onGender: function() { onGender: function() {
this.innerShow = true
},
onChooseGender: function(id) {
this.currentGender = id == 1 ? '男' : '女'
},
onGenderCancel: function() {
this.innerShow = false
}, },
onAddress: function() { onAddress: function() {
...@@ -336,6 +357,9 @@ ...@@ -336,6 +357,9 @@
onEditConfirm: function() { onEditConfirm: function() {
this.currentNickName = this.value this.currentNickName = this.value
this.show = false this.show = false
},
onPopupClose: function() {
} }
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment