|
@@ -25,6 +25,10 @@
|
|
</block>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="next-btn">
|
|
|
|
+ <view class='number_next' @click="nextBtnClick(0)">上一项</view>
|
|
|
|
+ <view class='number_next' @click="nextBtnClick(1)">下一项</view>
|
|
|
|
+ </view>
|
|
</block>
|
|
</block>
|
|
<block v-else-if="keyboardtype == 'car'">
|
|
<block v-else-if="keyboardtype == 'car'">
|
|
<view class="keyboard_car">
|
|
<view class="keyboard_car">
|
|
@@ -92,6 +96,10 @@
|
|
export default {
|
|
export default {
|
|
name: "master-keyboard",
|
|
name: "master-keyboard",
|
|
props: {
|
|
props: {
|
|
|
|
+ fatherMethod: {
|
|
|
|
+ type: Function,
|
|
|
|
+ default: null
|
|
|
|
+ },
|
|
keyboardtype: {
|
|
keyboardtype: {
|
|
type: String,
|
|
type: String,
|
|
default: 'number' // number=数字键盘 digit=带小数点的数字键盘 idcard=身份证号键盘 car=车牌号键盘
|
|
default: 'number' // number=数字键盘 digit=带小数点的数字键盘 idcard=身份证号键盘 car=车牌号键盘
|
|
@@ -166,6 +174,12 @@
|
|
},
|
|
},
|
|
onLoad() {},
|
|
onLoad() {},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ nextBtnClick(type){debugger
|
|
|
|
+ let that = this
|
|
|
|
+ if (this.fatherMethod) {
|
|
|
|
+ this.fatherMethod(type);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
formatCarProvinceFirst(value) {
|
|
formatCarProvinceFirst(value) {
|
|
const list = ['使', '领', '警', '学', '港', '澳', ]
|
|
const list = ['使', '领', '警', '学', '港', '澳', ]
|
|
return list.indexOf(value)
|
|
return list.indexOf(value)
|
|
@@ -303,4 +317,12 @@
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
@import './master-keyboard.scss';
|
|
@import './master-keyboard.scss';
|
|
|
|
+ .next-btn{
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-evenly;
|
|
|
|
+ .number_next{
|
|
|
|
+ width: 45%;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|