Browse Source

样式调整

master
mk 1 year ago
parent
commit
9c4999fa89
  1. 4
      src/views/login/index.vue
  2. 83
      src/views/mine/index.vue

4
src/views/login/index.vue

@ -12,7 +12,7 @@
<van-button type="info" round block style="margin-top: 35px;" native-type="submit">登录</van-button> <van-button type="info" round block style="margin-top: 35px;" native-type="submit">登录</van-button>
</van-form> </van-form>
<div class="flex flex-end flex-center1 m-top12"> <div class="flex flex-end flex-center1 m-top12">
<van-checkbox v-model="checked" shape="square">下次自动登录</van-checkbox> <van-checkbox v-model="autoLogin" shape="square">下次自动登录</van-checkbox>
<span class="text-blue">忘记密码?</span> <span class="text-blue">忘记密码?</span>
</div> </div>
</div> </div>
@ -26,7 +26,7 @@ export default {
return { return {
phone: null, phone: null,
password: null, password: null,
checked: false, autoLogin: false,
pubKey: null,// pubKey: null,//
customerId: null,//id customerId: null,//id
}; };

83
src/views/mine/index.vue

@ -1,7 +1,6 @@
<template> <template>
<div class='pages'> <div class='pages'>
<div class="heard"> <div class="heard">
<div class="my_top"></div>
<div class="my_info"> <div class="my_info">
<div class="my_left"> <div class="my_left">
<img src="@/assets/images/logo.png" class="my_img"> <img src="@/assets/images/logo.png" class="my_img">
@ -20,29 +19,45 @@
<div class="z_right"><img src="@/assets/images/icon/right.png" class="z_img"></div> <div class="z_right"><img src="@/assets/images/icon/right.png" class="z_img"></div>
</div> </div>
</div> </div>
</div>
<div style="position: fixed; bottom:41px;width: 100%;margin: 0 auto;">
<van-button type="info" round block style="width: calc(100% - 60px);margin: 0 auto;"
@click="hadnelClicklogOut">退出登录</van-button>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { getUserInfo } from '@/api/user' import { getUserInfo } from '@/api/user'
import { Dialog } from 'vant';
export default { export default {
data() { data() {
return { return {
show:false,
}; };
}, },
created() { created() {
this.getUserInfo() this.getUserInfo()
}, },
methods: { methods: {
async getUserInfo(){ async getUserInfo() {
let {data,code,msg} = await getUserInfo() let { data, code, msg } = await getUserInfo()
if(code == 0){ if (code == 0) {
console.log(data); console.log(data);
} }
} },
hadnelClicklogOut() {
Dialog.confirm({
title: '标题',
message: '弹窗内容',
}).then(() => {
localStorage.removeItem('token')
this.$router.replace('/')
}).catch(()=>{
});
},
}, },
components: {}, components: {},
computed: {}, computed: {},
@ -55,66 +70,73 @@ export default {
width: 100%; width: 100%;
height: 100vh; height: 100vh;
background-color: #f7f7f7; background-color: #f7f7f7;
}.heard { }
.heard {
width: 100%; width: 100%;
height: 35vh; height:20vh;
background: linear-gradient(to bottom, background: linear-gradient(to bottom,
#87BBFF 0%, #87BBFF 0%,
rgb(255, 255, 255) 100%); #fffffb 100%);
padding-top: 35px;
} }
.my_top { .my_img {
display: flex; width: 60px;
justify-content: center;
align-items: center;
padding-top: 30px;
}
.my_img{
width:60px;
border-radius: 50%; border-radius: 50%;
} }
.my_info{
.my_info {
display: flex; display: flex;
margin: 20px 10px 0; margin: 0 10px;
} }
.my_right{
.my_right {
margin-left: 10px; margin-left: 10px;
} }
.mmm{
.mmm {
display: flex; display: flex;
} }
.my_name{
.my_name {
font-size: 18px; font-size: 18px;
margin-right: 5px; margin-right: 5px;
} }
.intro{
.intro {
opacity: 80%; opacity: 80%;
// margin-top: 14px; // margin-top: 14px;
} }
.details{
.details {
margin-top: 13px; margin-top: 13px;
font-size: 13px; font-size: 13px;
opacity: 50%; opacity: 50%;
} }
.my_card{ .my_card {
background: #ffffff; background: #ffffff;
width:calc(100% - 20px); width: calc(100% - 20px);
height: 50px; height: 50px;
border-radius: 10px; border-radius: 10px;
margin: 23px 10px 0; margin: 23px 10px 0;
box-shadow: 0px 2px 13px 0px rgba(227,227,227,0.47);
} }
.my_zzz{
.my_zzz {
display: flex; display: flex;
height: 100%; height: 100%;
align-items: center; align-items: center;
} }
.z_img{
.z_img {
width: 20px; width: 20px;
margin-right: 10px; margin-right: 10px;
} }
.z_left { .z_left {
display: flex; display: flex;
height: 100%; height: 100%;
@ -122,7 +144,8 @@ export default {
margin-left: 10px; margin-left: 10px;
} }
.z_right{
.z_right {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;

Loading…
Cancel
Save