连云港陪玩陪聊
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chunwan/pages/users/site/index.vue

238 lines
4.9 KiB

<template>
<view class="site">
<view class="site-hd">
<view class="item">
<view class="a">隐私设置</view>
<view class="b">
<image src="@/static/icon-arrow.png"></image>
</view>
</view>
<view class="item">
<view class="a">新消息通知</view>
<view class="b">
<image src="@/static/icon-arrow.png"></image>
</view>
</view>
<view class="item">
<view class="a">青少年模式</view>
<view class="b">未开启
<image src="@/static/icon-arrow.png"></image>
</view>
</view>
<view class="item">
<view class="a">修改密码</view>
<view class="b">
<image src="@/static/icon-arrow.png"></image>
</view>
</view>
<view class="item">
<view class="a">搭讪语设置</view>
<view class="b">
<image src="@/static/icon-arrow.png"></image>
</view>
</view>
</view>
<view class="site-hd">
<view class="item">
<view class="a">黑名单</view>
<view class="b">
<image src="@/static/icon-arrow.png"></image>
</view>
</view>
</view>
<view class="site-hd">
<view class="item">
<view class="a">关于我们</view>
<view class="b">
<image src="@/static/icon-arrow.png"></image>
</view>
</view>
<view class="item">
<view class="a">隐私协议</view>
<view class="b">
<image src="@/static/icon-arrow.png"></image>
</view>
</view>
<view class="item">
<view class="a">用户协议</view>
<view class="b">
<image src="@/static/icon-arrow.png"></image>
</view>
</view>
<view class="item">
<view class="a">注销账号</view>
<view class="b">
<image src="@/static/icon-arrow.png"></image>
</view>
</view>
</view>
<view class="site-fd">
<view class="btn" @click="openPage(1)">退出登录</view>
</view>
<u-popup v-model="isPopup" mode="center" border-radius="20" :mask-close-able="false">
<view class="qingshaonian">
<view class="title">输入密码<image src="@/static/cha.png"></image></view>
<view class="content">
<view class="p">解除青少年模式密码</view>
<view class="box">
<u-icon name="lock-fill"></u-icon>
<input type="password" placeholder="输入密码" />
</view>
</view>
<view class="fd">
<view class="btn">确定关闭</view>
</view>
</view>
</u-popup>
</view>
</template>
<script>
export default {
data() {
return {
isPopup: false
};
},
methods: {
openPage(index) {
if(index == 1){
uni.showModal({
title: "温馨提示",
content: "是否确认推出登录?",
success(res){
if(res.confirm){
uni.navigateBack({
delta: 1
})
}
}
})
}
}
}
}
</script>
<style lang="scss">
.site{
padding: 0 25rpx;
overflow: hidden;
padding-bottom: 110rpx;
.qingshaonian{
overflow: hidden;
width: 670rpx;
height: 520rpx;
background: #FFFFFF;
box-sizing: border-box;
.title{
text-align: center;
font-weight: 500;
font-size: 36rpx;
color: #222222;
padding: 40rpx 0;
border-bottom: 1px solid #EAEAEA;
image{
width: 45rpx;
height: 45rpx;
float: right;
margin-right: 20rpx;
}
}
.content{
padding: 30rpx;
.p{
font-weight: 500;
font-size: 30rpx;
color: #222222;
}
.box{
font-weight: 500;
display: flex;
padding: 30rpx 0;
align-items: center;
border-bottom: 1px solid #EAEAEA;
margin-top: 20rpx;
input{
margin-left: 30rpx;
font-size: 30rpx;
color: #222222;
}
}
}
.btn{
width: 400rpx;
line-height: 80rpx;
background: linear-gradient(0deg, #000000, #3D3B38);
box-shadow: 0px 4rpx 18rpx 0px rgba(42,41,39,0.34);
border-radius: 80rpx;
text-align: center;
font-weight: 500;
font-size: 26rpx;
color: #FFFFFF;
margin: 0 auto;
margin-top: 50rpx;
}
}
&-hd{
width: 100%;
background: #FFFFFF;
border-radius: 20rpx;
margin-top: 20rpx;
padding: 0 30rpx;
box-sizing: border-box;
.item{
padding: 40rpx 0;
border-top: 1px solid #EAEAEA;
display: flex;
align-items: center;
justify-content: space-between;
&:first-child{
border-top-color: #FFFFFF;
}
.a{
font-weight: 500;
font-size: 30rpx;
color: #333333;
}
.b{
flex: 1;
text-align: right;
font-weight: 500;
font-size: 30rpx;
color: #999999;
display: flex;
align-items: center;
justify-content: flex-end;
image{
margin-left: 20rpx;
width: 30rpx;
height: 30rpx;
}
}
}
}
&-fd{
background-color: #F3F4F5;
width: 100%;
padding: 30rpx 25rpx;
box-sizing: border-box;
position: fixed;
left: 0;
bottom: 0;
z-index: 22;
.btn{
width: 100%;
line-height: 98rpx;
background: linear-gradient(0deg, #000000, #3D3B38);
box-shadow: 0px 4rpx 18rpx 0px rgba(42,41,39,0.34);
border-radius: 98rpx;
text-align: center;
font-weight: 400;
font-size: 30rpx;
color: #FFFFFF;
letter-spacing: 5rpx;
}
}
}
</style>