Commit 73ac4ccc authored by 刘文虎's avatar 刘文虎
parents f4d78598 86a24099
Pipeline #3647 canceled with stages
...@@ -14,12 +14,12 @@ ...@@ -14,12 +14,12 @@
<view class="label-view">上班</view> <view class="label-view">上班</view>
<view class="value-view"> <view class="value-view">
<view class="input-view"> <view class="input-view">
<u-input type="digit" :clearable="false" :custom-style="customStyle" :placeholder-style="placeholderStyle" cursor-spacing="310" <u-input type="digit" :clearable="false" :custom-style="customStyle" :placeholder-style="placeholderStyle" :cursor-spacing="155 + cursorSpacing"
v-model="form.normalUnitHours" placeholder="输入数值" @input="handleInput($event, 'normalUnitHours')" /> v-model="form.normalUnitHours" placeholder="输入数值" @input="handleInput($event, 'normalUnitHours')" />
</view> </view>
<view>小时 =</view> <view>小时 =</view>
<view class="input-view"> <view class="input-view">
<u-input type="digit" :clearable="false" :custom-style="customStyle" :placeholder-style="placeholderStyle" cursor-spacing="310" <u-input type="digit" :clearable="false" :custom-style="customStyle" :placeholder-style="placeholderStyle" :cursor-spacing="155 + cursorSpacing"
v-model="form.normalUnitMoney" placeholder="输入金额" @input="handleInput($event, 'normalUnitMoney')" /> v-model="form.normalUnitMoney" placeholder="输入金额" @input="handleInput($event, 'normalUnitMoney')" />
</view> </view>
<view>元 = 1个工</view> <view>元 = 1个工</view>
...@@ -39,19 +39,19 @@ ...@@ -39,19 +39,19 @@
<view class="label-view">加班</view> <view class="label-view">加班</view>
<view class="value-view" v-if="form.overType == 'UNIT'"> <view class="value-view" v-if="form.overType == 'UNIT'">
<view class="input-view"> <view class="input-view">
<u-input type="digit" :clearable="false" :custom-style="customStyle" :placeholder-style="placeholderStyle" cursor-spacing="155" <u-input type="digit" :clearable="false" :custom-style="customStyle" :placeholder-style="placeholderStyle" :cursor-spacing="cursorSpacing"
v-model="form.overUnitHours" placeholder="输入数值" @input="handleInput($event, 'overUnitHours')" /> v-model="form.overUnitHours" placeholder="输入数值" @input="handleInput($event, 'overUnitHours')" />
</view> </view>
<view>小时 =</view> <view>小时 =</view>
<view class="input-view"> <view class="input-view">
<u-input type="digit" :clearable="false" :custom-style="customStyle" :placeholder-style="placeholderStyle" cursor-spacing="155" <u-input type="digit" :clearable="false" :custom-style="customStyle" :placeholder-style="placeholderStyle" :cursor-spacing="cursorSpacing"
v-model="form.overUnitMoney" placeholder="输入金额" @input="handleInput($event, 'overUnitMoney')" /> v-model="form.overUnitMoney" placeholder="输入金额" @input="handleInput($event, 'overUnitMoney')" />
</view> </view>
<view>元 = 1个工</view> <view>元 = 1个工</view>
</view> </view>
<view class="value-view" v-else> <view class="value-view" v-else>
<view class="input-view"> <view class="input-view">
<u-input type="digit" :clearable="false" :custom-style="customStyle" :placeholder-style="placeholderStyle" cursor-spacing="155" <u-input type="digit" :clearable="false" :custom-style="customStyle" :placeholder-style="placeholderStyle" :cursor-spacing="cursorSpacing"
v-model="form.overHoursMoney" placeholder="输入金额" @input="handleInput($event, 'overHoursMoney')" /> v-model="form.overHoursMoney" placeholder="输入金额" @input="handleInput($event, 'overHoursMoney')" />
</view> </view>
<view>元/小时</view> <view>元/小时</view>
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
</template> </template>
<script> <script>
import uniSwipeActionItemVue from '../../../../components/uni-swipe-action-item/uni-swipe-action-item.vue'
export default { export default {
props: { props: {
...@@ -110,6 +111,14 @@ export default { ...@@ -110,6 +111,14 @@ export default {
isNormal () { isNormal () {
return this.type == 'normal' return this.type == 'normal'
}, },
cursorSpacing() {
switch (this.type) {
case 'pop':
return 155
case 'nomal':
return 30
}
},
title () { title () {
return this.isPop ? '工资设置' : '工资设置(点工)' return this.isPop ? '工资设置' : '工资设置(点工)'
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment