wujingjing
2024-06-27 06c58d2907ec76267ba71432331c094b4b4aab05
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<template>
    <div class="w100 h100">
        <div class="aisde-title">
            <div
                class="flex items-center set-li"
                v-for="(item, index) in state.asideTitleList"
                :key="index"
                @click="handleClick(item.id)"
                :class="{ 'set-li-active': state.currentActive === item.id }"
            >
                <img :src="item.icon" alt="" class="pl-2.5 pr-2.5 w-4 h-4" style="box-sizing: content-box" />
                <span class="font-medium text-sm text-white tracking-wide">{{ item.title }}</span>
            </div>
        </div>
        <div class="user_login">
            <p class="text-white font-medium text-sm text-center">您更好的AI助手!</p>
            <div class="set-login">
                <span class="text-stone-100 font-medium text-sm text-center">登录 / 注册</span>
            </div>
        </div>
        <div class="offices">
            <div class="officeText">
                <img :src="'/static/images/wave/Waveform.png'" alt="" class="pl-2.5 pr-2.5 w-4 h-4" style="box-sizing: content-box" />
                <span class="font-medium text-sm text-white tracking-wide">Office 智能助手</span>
            </div>
        </div>
    </div>
</template>
 
<script setup lang="ts">
import { reactive } from 'vue';
import { gotoRoute } from '/@/utils/route';
let state = reactive({
    asideTitleList: [
        {
            id: 1,
            icon: '/static/images/wave/AsideIcon.png',
            title: '应用场景',
        },
        {
            id: 2,
            icon: '/static/images/wave/AsideIcon.png',
            title: '帮助中心',
        },
        {
            id: 3,
            icon: '/static/images/wave/AsideIcon.png',
            title: '个人设置',
        },
        {
            id: 4,
            icon: '/static/images/wave/AsideIcon.png',
            title: '关于水务AI',
        },
    ],
    currentActive: 0,
});
const handleClick = (id) => {
    state.currentActive = id;
    if (id == 1) {
        gotoRoute({ name: 'Scenario' });
    }
};
</script>
<style scoped lang="scss">
.aisde-title {
    padding-top: 18px;
    margin-left: 16px;
    margin-right: 22px;
    border-top: 1px solid #383838;
    margin-bottom: 22px;
}
.set-li {
    height: 30px;
    margin-bottom: 4px;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
}
.set-li-active {
    width: 214px;
    height: 30px;
    background-color: #3b3d40;
 
    border-radius: 6px;
    span {
        background: linear-gradient(90deg, #84fdd4 0, #2a82e4);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}
.user_login {
    box-sizing: border-box;
    width: 100%;
    padding: 0 20px 10px;
    position: relative;
}
.set-login {
    margin-top: 14px;
    width: 100%;
    height: 36px;
    background: #1c86ff;
    -webkit-box-shadow: 0 2px 6px 0 rgba(8, 101, 207, 0.2), inset 0 0 7px 0 hsla(0, 0%, 100%, 0.5);
    box-shadow: 0 2px 6px 0 rgba(8, 101, 207, 0.2), inset 0 0 7px 0 hsla(0, 0%, 100%, 0.5);
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #eee;
    border-radius: 8px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}
.offices {
    padding: 0 20px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}
.officeText {
    width: 100%;
    height: 36px;
    background: #1c2d57;
    border-radius: 8px;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
</style>