spring
4 天以前 435881d494e2be4ba5ce8bfccb02d6ef49e07314
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<template>
    <view class="body">
        <view class="main_view">
            <view class="main_item" @click="goPage(0)">
                <span style="color:#4F4F4F">类别</span>
                <view>
                    <span style="color:#333333;margin-right: 20rpx;">{{ query.type }}</span>
                    <u-icon name="arrow-right" color="#687792" size="28"></u-icon>
                </view>
            </view>
            <view class="main_item" @click="goPage(1)">
                <span style="color:#4F4F4F">规格型号</span>
                <view>
                    <span style="color:#333333;margin-right: 20rpx;">{{ query.model }}</span>
                    <u-icon name="arrow-right" color="#687792" size="28"></u-icon>
                </view>
            </view>
            <view class="main_item" @click="goPage(2)">
                <span style="color:#4F4F4F">图号</span>
                <view>
                    <span style="color:#333333;margin-right: 20rpx;">{{ query.num }}</span>
                    <u-icon name="arrow-right" color="#687792" size="28"></u-icon>
                </view>
            </view>
            <view class="main_item" @click="goPage(3)">
                <span style="color:#4F4F4F">本体特征结构</span>
                <view>
                    <span style="color:#333333;margin-right: 20rpx;">{{ query.structure }}</span>
                    <u-icon name="arrow-right" color="#687792" size="28"></u-icon>
                </view>
            </view>
            <view class="main_item" @click="goPage(4)">
                <span style="color:#4F4F4F">第一位</span>
                <view>
                    <span style="color:#333333;margin-right: 20rpx;">{{ query.first }}</span>
                    <u-icon name="arrow-right" color="#687792" size="28"></u-icon>
                </view>
            </view>
            <view class="main_item" @click="goPage(5)">
                <span style="color:#4F4F4F">第二位</span>
                <view>
                    <span style="color:#333333;margin-right: 20rpx;">{{ query.second }}</span>
                    <u-icon name="arrow-right" color="#687792" size="28"></u-icon>
                </view>
            </view>
        </view>
        <u-select v-model="selectShowType" :list="TypeList" @confirm="confirm($event, 'type')"></u-select>
        <u-select v-model="selectShowModels" :list="modelsList" @confirm="confirm($event, 'model')"></u-select>
        <u-select v-model="selectShowNum" :list="numList" @confirm="confirm($event, 'num')"></u-select>
        <u-select v-model="selectShowStructure" :list="structureList" @confirm="confirm($event, 'structure')"></u-select>
        <u-select v-model="selectShowFirst" :list="firstList" @confirm="confirm($event, 'first')"></u-select>
        <u-select v-model="selectShowSecond" :list="secondList" @confirm="confirm($event, 'second')"></u-select>
    </view>
</template>
 
<script>
export default {
    name: "tool",
    // import 引入的组件需要注入到对象中才能使用
    components: {},
    data() {
        // 这里存放数据
        return {
            query: {
                type: '',
                model: '',
                num: '',
                structure: '',
                first: '',
                second: '',
            },
            selectShowType: false,
            selectShowModels: false,
            selectShowNum: false,
            selectShowStructure: false,
            selectShowFirst: false,
            selectShowSecond: false,
            TypeList: [
                {
                    value: '1',
                    label: '干式变压器成品'
                },
                {
                    value: '2',
                    label: '干式变压器成品'
                },
            ],
            modelsList: [
                {
                    value: '1',
                    label: 'SCB18-1600/10'
                },
            ],
            numList: [
                {
                    value: '1',
                    label: 'G2023.1'
                },
            ],
            structureList: [
                {
                    value: '1',
                    label: '00'
                },
            ],
            firstList: [
                {
                    value: '0',
                    label: '力得常规温控仪'
                },
                {
                    value: '1',
                    label: '力得常规温控箱'
                },
            ],
            secondList: [
                {
                    value: '0',
                    label: '1.5mm钢板外壳RAL7035(电磁锁+行程开关)下进上出、下进侧出,散装、落地安装+常规尺寸'
                },
                {
                    value: '1',
                    label: '0.7m201不锈钢外壳本色(电磁锁+行程开关)下进上出、下进侧出,散装、落地安装+常规尺寸'
                },
            ],
        }
    },
    // 方法集合
    methods: {
        goPage (index) {
            switch(index){
                case 0:
                    this.selectShowType = true;
                    break;
                case 1:
                    this.selectShowModels = true;
                    break;
                case 2:
                    this.selectShowNum = true;
                    break;
                case 3:
                    this.selectShowStructure = true;
                    break;
                case 4:
                    this.selectShowFirst = true;
                    break;
                case 5:
                    this.selectShowSecond = true;
                    break;
            }
        },
        confirm (e, item) {
            console.log('e--', e)
            console.log('item--', item)
            switch(item){
                case 'type':
                    this.query.type = e[0].label;
                    break;
                case 'model':
                    this.query.model = e[0].label;
                    break;
                case 'num':
                    this.query.num = e[0].label;
                    break;
                case 'structure':
                    this.query.structure = e[0].label;
                    break;
                case 'first':
                    this.query.first = e[0].label;
                    break;
                case 'second':
                    this.query.second = e[0].label;
                    break;
            }
        },
    },
}
</script>
 
<style scoped lang="scss">
.body {
    background: linear-gradient(to bottom, #E5F0FF, #F6F9FF);
    box-sizing: border-box;
    padding-top: 26rpx;
    height: calc(100vh - 188rpx);
    .main_view {
        //background-image: url('~@/static/custom/home/home_img_bg.png');
        //background-repeat: no-repeat;
        //background-size: 100% auto;
        background: linear-gradient(180deg, #DFEDFF 0%, #F7F7F8 100%);
        border-radius: 15rpx;
        height: 936rpx;
        margin: 6rpx 30rpx 0;
        box-sizing: border-box;
        padding: 38rpx 26rpx;
        .main_item{
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 30rpx;
            line-height: 112rpx;
            border-bottom: 1rpx solid rgba(213,213,213, 0.67);
            box-sizing: border-box;
        }
    }
}
</style>