input-price.vue 807 Bytes
<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>