input-price.vue
807 Bytes
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
<template>
<div class="input-wrapper" @click="onClick">
<div class="price-symbol">¥</div>
<input class="tip" type="text" placeholder="定价需以9结尾,例如¥1299"></input>
</div>
</template>
<script>
export default {
name: 'InputPrice',
data() {
return {
show: false,
};
},
methods: {
onClick() {
},
},
watch: {
}
};
</script>
<style lang="scss" scoped>
.input-wrapper {
display: flex;
position: relative;
height: 100px;
background: #f5f5f5;
}
.price-symbol {
width: 40px;
margin-left: 20px;
margin-right: 10px;
font-size: 40px;
font-weight: bolder;
line-height: 100px;
}
.tip {
flex: 1;
font-size: 28px;
line-height: 100px;
background: #f5f5f5;
}
::placeholder {
color: #ccc;
opacity: 1; /* Firefox */
}
</style>