1
PC-20250623MANY\Administrator
2025-07-13 f7a99184725f7ea0884cf478f169aad4e5b6583c
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
<template>
    <div class="watchlists">
        <tab-head></tab-head>
 
        <div class="swiper">
            <div class="swiper-wrapper flex-start">
                <div class="swiper-slide">
                    <index-component :ids="'watchlists1'"></index-component>
                </div>
                <div class="swiper-slide">
                    <index-component :ids="'watchlists2'"></index-component>
                </div>
                <div class="swiper-slide">
                    <index-component :ids="'watchlists3'"></index-component>
                </div>
            </div>
        </div>
 
        <div class="division"></div>
 
        <div class="subheading">
            <div class="subheading_title flex-start">
                <img src="../../assets/img/shortcut.png" alt="">
                <span style="flex:1">{{ $t('hj61') }}</span>
                <span class="edit" @click="onEdit">{{ editorShow ? $t('完成') : $t('编辑') }}</span>
            </div>
 
            <stock-list ref="stockList"></stock-list>
        </div>
    </div>
</template>
 
<script>
import tabHead from "@/components/tabHead.vue";
import indexComponent from "@/components/index-component.vue";
import stockList from "@/components/stock-list.vue";
export default {
    name: 'watchlists',
    components: {
        tabHead, indexComponent, stockList
    },
    computed: {
    },
    data() {
        return {
            msg: 'watchlists',
            editorShow: false,
        }
    },
    methods: {
        onEdit() {
            this.$refs.stockList.onEdit()
            this.editorShow = !this.editorShow
        }
    }
}
</script>
 
<style lang="less" scoped>
@green: #c4d600;
 
.watchlists {
    font-size: 10vw;
    width: 100vw;
    min-height: 100vh;
    padding-bottom: 1.5rem;
 
    .subheading {
        padding-bottom: .25em;
 
        .subheading_title {
            display: flex;
            align-items: center;
            padding: .35em .25em .35em .25em;
 
            .edit {
                color: @green;
            }
 
            img {
                width: .5em;
                height: .5em;
                margin-right: .25em;
            }
 
            span {
                font-size: .5em;
                line-height: .5em;
                font-weight: 500;
            }
        }
    }
 
    .division {
        width: 100%;
        height: .25em;
        background-color: #f5f5f5;
    }
 
    .swiper {
        width: 10em;
        overflow-x: auto;
        padding-bottom: .25em;
 
        &::-webkit-scrollbar {
            display: none;
        }
 
        .swiper-wrapper {
            width: 14.5em;
            margin-top: .4em;
            padding-left: .25em;
 
            .swiper-slide {
                margin-right: .25em;
                width: 4.5em;
                height: 3.2em;
                background-color: rgba(red, .1);
                border-radius: .1em;
            }
        }
    }
 
}
</style>