This commit is contained in:
2020-06-08 15:23:23 +08:00
parent e8c74df8a0
commit 233cb82ee4
44 changed files with 2461 additions and 82 deletions

107
pageE/setting/Index.vue Normal file
View File

@@ -0,0 +1,107 @@
<template>
<view class="setting">
<view class="list-item">
<view>消息提醒</view>
<view>
<u-switch v-model="checked" active-color="#FF770F" inactive-color="#A9A7A7" size="35"></u-switch>
</view>
</view>
<view v-for="(item, index) in settingList" :key="index" class="list-item" @click="toNextPage(item.link)">
<view>{{ item.title }}</view>
<image src="../static/mine/21.png"></image>
</view>
<view class="list-item" @click="sheetStatus=true">
<view>退出登录</view>
<image src="../static/mine/21.png"></image>
</view>
<u-action-sheet
v-model="sheetStatus"
:list="list"
:tips="tips"
:border-radius="20"
@click="choiceOption">
</u-action-sheet>
</view>
</template>
<script>
export default {
data() {
return {
checked: false,
tips: {
text: '您可选择以下操作',
color: '#999999',
fontSize: 24
},
sheetStatus: false,
list: [
{
text: '换个账号登录',
color: '#FF780F',
fontSize: 28
},
{
text: '退出登录',
color: '#FF780F',
fontSize: 28
}
],
settingList: [
{
title: '个人信息',
link: '../mine/MineInfo'
},
{
title: '收货地址',
link: '../more/Address'
},
{
title: '证件中心',
link: '../mine/ArticleDetails?title=证件照中心'
},
{
title: '关于我们',
link: '../mine/ArticleDetails?title=关于我们'
},
{
title: '帮助与反馈',
link: './feedback'
}
]
}
},
methods: {
choiceOption(index) {
console.log(index);
// console.log(`点击了第${index + 1}项,内容为:${this.list[index].text}`)
},
toNextPage(url, ...params) {
uni.navigateTo({
url: url
});
}
},
};
</script>
<style lang="scss" scoped>
.setting {
min-height: calc(100vh - var(--window-top));
background-color: #ECECEC;
.list-item {
display: flex;
align-items: center;
justify-content: space-between;
height: 98rpx;
border-top: 2rpx solid #EBEBEB;
background-color: #ffffff;
padding: 0 30rpx;
font-size: 30rpx;
color: rgba(51,51,51,1);
> image {
width: 14rpx;
height: 24rpx;
}
}
}
</style>

View File

@@ -0,0 +1,99 @@
<template>
<view class="feedback">
<view class="feedback-box">
<view class="feedback-title">人工服务</view>
<view class="feedback-itme">
<view class="manual">
<view class="service-phone">拨打官方客服电话400-100-100</view>
<view class="manual-time">周一至周五08:0-18:00</view>
</view>
<view class="suggestions">意见反馈</view>
</view>
</view>
<view class="feedback-box">
<view class="feedback-title">常见服务</view>
<view class="feedback-itme">
<view class="u-line-2">账号问题登录时需要验证码手机号使用不了怎么办</view>
<view class="u-line-2">账号问题登录时需提示您的密码不安全请重置</view>
<view class="u-line-2">账号问题登录密码忘记了怎么办</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {}
}
};
</script>
<style lang="scss" scoped>
.feedback {
min-height: calc(100vh - var(--window-top));
background: #ECECEC;
padding: 20rpx 30rpx;
.feedback-box {
width: 689rpx;
background: rgba(255,255,255,1);
border-radius: 10rpx;
margin-bottom: 20rpx;
padding: 30rpx;
.feedback-title {
position: relative;
font-size: 30rpx;
font-weight: 500;
color: rgba(51,51,51,1);
// margin-bottom: 30rpx;
padding-left: 20rpx;
&::after {
position: absolute;
content: '';
width: 6rpx;
height: 30rpx;
background: rgba(255,120,15,1);
top: 50%;
left: 0;
transform: translate(0, -50%);
}
}
.feedback-itme {
> view {
position: relative;
font-size: 26rpx;
color: rgba(51,51,51,1);
line-height: 42rpx;
&:not(:last-child) {
padding: 20rpx 0;
&::after {
position: absolute;
content: '';
width: 630rpx;
height: 2rpx;
background: rgba(236,236,236,1);
bottom: 0;
left: 50%;
transform: translate(-50%, 0);
}
}
&:last-child {
padding-top: 20rpx;
}
}
.manual {
.service-phone {
}
.manual-time {
font-size: 22rpx;
color: rgba(153,153,153,1);
}
}
.suggestions {
font-size: 26rpx;
font-weight: 500;
color: rgba(102,102,102,1);
}
}
}
}
</style>