|
@@ -1,20 +1,52 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <view>
|
|
|
|
|
- <textarea @tap="activeKeyboard" disabled :value="input" placeholder="点击调起键盘输入"></textarea>
|
|
|
|
|
|
|
+ <view class="boardset-flowert">
|
|
|
|
|
+ <!-- <textarea @tap="activeKeyboard" disabled :value="input" placeholder="点击调起键盘输入"></textarea> -->
|
|
|
|
|
+ <view class="flower-input_box">
|
|
|
|
|
+ <view class="flower-title">粉佳人</view>
|
|
|
|
|
+ <view class="flower-open_box">
|
|
|
|
|
+ <view>
|
|
|
|
|
+ <view class="desc">数量</view>
|
|
|
|
|
+ <div class="flower-unit_box">
|
|
|
|
|
+ <input @tap="activeKeyboard" disabled type="number" v-model="currentNum">
|
|
|
|
|
+ <span>扎</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <i class="icon-qiehuan">换</i>
|
|
|
|
|
+ <view>
|
|
|
|
|
+ <view class="desc">单价</view>
|
|
|
|
|
+ <div class="flower-unit_box">
|
|
|
|
|
+ <input type="number" v-model="currentPrice">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="set-residue_box">
|
|
|
|
|
+ 还剩5扎2支
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
<VKeyboard ref="keyboard" :pointIsShow="false" :digital="true" :disorderly="false" @typing="typing" @enter="enter"></VKeyboard>
|
|
<VKeyboard ref="keyboard" :pointIsShow="false" :digital="true" :disorderly="false" @typing="typing" @enter="enter"></VKeyboard>
|
|
|
|
|
+ <!-- <keyboard-module
|
|
|
|
|
+ :show.sync="keyShow"
|
|
|
|
|
+ @comfirm="hideKeyFn"
|
|
|
|
|
+ @clickKey="clickKeyFn"
|
|
|
|
|
+ @del="delFn" /> -->
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import VKeyboard from '@/components/plugin/vKeyboard/VKeyboard.vue'
|
|
import VKeyboard from '@/components/plugin/vKeyboard/VKeyboard.vue'
|
|
|
|
|
+ import keyboardModule from '@/components/keyboard.vue'
|
|
|
export default {
|
|
export default {
|
|
|
name:'keyboardSetFlower',
|
|
name:'keyboardSetFlower',
|
|
|
components:{
|
|
components:{
|
|
|
- VKeyboard
|
|
|
|
|
|
|
+ VKeyboard,
|
|
|
|
|
+ keyboardModule
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- input: ''//键盘输入
|
|
|
|
|
|
|
+ input: '',//键盘输入
|
|
|
|
|
+ currentNum: 0,
|
|
|
|
|
+ currentPrice: 0,
|
|
|
|
|
+ keyShow: false
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -24,22 +56,67 @@
|
|
|
},
|
|
},
|
|
|
typing(e) {
|
|
typing(e) {
|
|
|
if (e.backspace) {
|
|
if (e.backspace) {
|
|
|
- if (this.input.length > 0) {
|
|
|
|
|
- this.input = this.input.substring(0, this.input.length - 1);
|
|
|
|
|
|
|
+ if (this.currentNum.length > 0) {
|
|
|
|
|
+ this.currentNum = this.input.substring(0, this.input.length - 1);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
- this.input += e.char;
|
|
|
|
|
|
|
+ this.currentNum += e.char;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
enter() {
|
|
enter() {
|
|
|
this.$refs.keyboard.deactivate();
|
|
this.$refs.keyboard.deactivate();
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
//键盘方法end
|
|
//键盘方法end
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
-
|
|
|
|
|
|
|
+ .boardset-flowert {
|
|
|
|
|
+ width: 400upx;
|
|
|
|
|
+ height: 300upx;
|
|
|
|
|
+ background-color: #ffffff;
|
|
|
|
|
+ margin: 0 auto;
|
|
|
|
|
+ border-radius: 5upx;
|
|
|
|
|
+ padding: 10upx;
|
|
|
|
|
+ & .flower-input_box {
|
|
|
|
|
+ & .flower-title {
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ color: #333333;
|
|
|
|
|
+ font-size: 14upx;
|
|
|
|
|
+ }
|
|
|
|
|
+ & .set-residue_box {
|
|
|
|
|
+ font-size: 14upx;
|
|
|
|
|
+ color: #666666;
|
|
|
|
|
+ margin-top: 10upx;
|
|
|
|
|
+ text-align: left;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ & .flower-open_box {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ & > view {
|
|
|
|
|
+ & .desc {
|
|
|
|
|
+ font-size: 12upx;
|
|
|
|
|
+ margin-bottom: 8upx;
|
|
|
|
|
+ }
|
|
|
|
|
+ & .flower-unit_box {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ & > input {
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ height: 40upx;
|
|
|
|
|
+ border-bottom: 1px solid #eee;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ & .icon-qiehuan {
|
|
|
|
|
+ width: 35upx;
|
|
|
|
|
+ height: 35upx;
|
|
|
|
|
+ padding: 0 7upx;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|