删除无用文件
This commit is contained in:
44
pages/my-index/collection/index.vue
Normal file
44
pages/my-index/collection/index.vue
Normal file
@@ -0,0 +1,44 @@
|
||||
<script setup>
|
||||
import { reactive } from 'vue'
|
||||
|
||||
const topNavOptions = [
|
||||
{ name: '全部', value: '0' },
|
||||
{ name: '笔记', value: '1' },
|
||||
{ name: '文件', value: '2' }
|
||||
]
|
||||
|
||||
const formData = reactive({
|
||||
name: '',
|
||||
type: '0'
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view class="collection-index">
|
||||
<view class="top-box">
|
||||
<cb-search v-model="formData.name"></cb-search>
|
||||
<view class="top-options">
|
||||
<view
|
||||
v-for="(item, index) in topNavOptions"
|
||||
:key="index"
|
||||
:class="{ active: item.value === formData.type }"
|
||||
class="text"
|
||||
@click="formData.type = item.value"
|
||||
>
|
||||
{{ item.name }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
我的收藏
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import '../styles/index.scss';
|
||||
@import '@/styles/top-selector.scss';
|
||||
|
||||
.top-box {
|
||||
padding: 24rpx;
|
||||
background: #ffffff;
|
||||
}
|
||||
</style>
|
||||
67
pages/my-index/customer-service/index.vue
Normal file
67
pages/my-index/customer-service/index.vue
Normal file
@@ -0,0 +1,67 @@
|
||||
<script setup></script>
|
||||
|
||||
<template>
|
||||
<view class="customer-service-index">
|
||||
<view class="item-box">
|
||||
<image
|
||||
src="/static/images/my-index/customer-img.png"
|
||||
mode="heightFix"
|
||||
class="avatar"
|
||||
></image>
|
||||
<text class="tisp">Hi~有什么可以帮到你?</text>
|
||||
<button>第三方客服</button>
|
||||
<button>APP客服</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.customer-service-index {
|
||||
height: 100%;
|
||||
padding: 0 24rpx;
|
||||
.item-box {
|
||||
margin-top: 10vh;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
text-transform: none;
|
||||
.avatar {
|
||||
height: 192rpx;
|
||||
}
|
||||
.tisp {
|
||||
margin: 32rpx 0 112rpx;
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #999999;
|
||||
}
|
||||
button + button {
|
||||
margin-top: 32rpx;
|
||||
}
|
||||
button {
|
||||
width: 100%;
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
font-weight: bold;
|
||||
font-size: 32rpx;
|
||||
color: #ffffff;
|
||||
background: linear-gradient(0deg, #00d993 0%, #00d9c5 100%);
|
||||
border-radius: 16rpx;
|
||||
box-sizing: border-box;
|
||||
&:last-child {
|
||||
background: #ffffff;
|
||||
color: #00d993;
|
||||
border: 2rpx solid #00d993;
|
||||
}
|
||||
|
||||
&::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -12,9 +12,21 @@
|
||||
{ name: '我的团队', icon: 'team', url: '/pages/my-index/my-team' },
|
||||
{ name: '会议记录', icon: 'meeting' },
|
||||
{ name: '我的朋友圈', icon: 'circle' },
|
||||
{ name: '我的收藏', icon: 'collection' },
|
||||
{ name: '在线客服', icon: 'customer' },
|
||||
{ name: '系统设置', icon: 'system' }
|
||||
{
|
||||
name: '我的收藏',
|
||||
icon: 'collection',
|
||||
url: '/pages/my-index/collection/index'
|
||||
},
|
||||
{
|
||||
name: '在线客服',
|
||||
icon: 'customer',
|
||||
url: '/pages/my-index/customer-service/index'
|
||||
},
|
||||
{
|
||||
name: '系统设置',
|
||||
icon: 'system',
|
||||
url: '/pages/my-index/set-up/index'
|
||||
}
|
||||
]
|
||||
const { userInfo } = useAuthUser()
|
||||
|
||||
|
||||
122
pages/my-index/set-up/index.vue
Normal file
122
pages/my-index/set-up/index.vue
Normal file
@@ -0,0 +1,122 @@
|
||||
<script setup>
|
||||
import { useUserStore } from '@/stores/user'
|
||||
|
||||
// 基础设置
|
||||
const basicSetting = [
|
||||
{ name: '字体大小', value: '', url: '' },
|
||||
{ name: '聊天背景', value: '', url: '' },
|
||||
{ name: '朋友圈设置', value: '', url: '' },
|
||||
{ name: '消息通知', value: '', url: '' },
|
||||
{ name: '安全设置', value: '', url: '' },
|
||||
{ name: '群发消息', value: '', url: '' },
|
||||
{ name: '登录设备', value: '', url: '' }
|
||||
]
|
||||
|
||||
// 系统设置
|
||||
const systemSetting = [
|
||||
{ name: '隐私设置', value: '', url: '' },
|
||||
{ name: '清除缓存', value: '', url: '' },
|
||||
{ name: '意见反馈', value: '', url: '' },
|
||||
{ name: '关于我们', value: '', url: '' }
|
||||
]
|
||||
|
||||
const { clearUserInfo } = useUserStore()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view class="set-up-index">
|
||||
<view class="card-box">
|
||||
<view
|
||||
v-for="(item, index) in basicSetting"
|
||||
:key="index"
|
||||
class="item"
|
||||
>
|
||||
<text class="left-title">{{ item.name }}</text>
|
||||
<view class="right-box">
|
||||
<!-- <text class="name">2112</text> -->
|
||||
<uni-icons type="right" size="16" color="#999999"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="card-box">
|
||||
<view
|
||||
v-for="(item, index) in systemSetting"
|
||||
:key="index"
|
||||
class="item"
|
||||
>
|
||||
<text class="left-title">{{ item.name }}</text>
|
||||
<view class="right-box">
|
||||
<!-- <text class="name">2112</text> -->
|
||||
<uni-icons type="right" size="16" color="#999999"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="bottom-btn">
|
||||
<button @click="clearUserInfo()">退出登录</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import '../styles/index.scss';
|
||||
|
||||
.set-up-index {
|
||||
padding: 32rpx 24rpx;
|
||||
|
||||
.card-box + .card-box {
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
|
||||
.card-box {
|
||||
background: #fff;
|
||||
border-radius: 16rpx;
|
||||
padding: 0 32rpx;
|
||||
.item {
|
||||
padding: 20rpx 0;
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
text-transform: none;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.left-title {
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.right-box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.name {
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #999999;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bottom-btn {
|
||||
margin-top: 46rpx;
|
||||
button {
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
background: #fff;
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #eb1c26;
|
||||
font-style: normal;
|
||||
text-transform: none;
|
||||
border-radius: 16rpx;
|
||||
&::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user