Commit 73ac4ccc authored by 刘文虎's avatar 刘文虎
parents f4d78598 86a24099
Pipeline #3647 canceled with stages
......@@ -14,12 +14,12 @@
<view class="label-view">上班</view>
<view class="value-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')" />
</view>
<view>小时 =</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')" />
</view>
<view>元 = 1个工</view>
......@@ -39,19 +39,19 @@
<view class="label-view">加班</view>
<view class="value-view" v-if="form.overType == 'UNIT'">
<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')" />
</view>
<view>小时 =</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')" />
</view>
<view>元 = 1个工</view>
</view>
<view class="value-view" v-else>
<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')" />
</view>
<view>元/小时</view>
......@@ -63,6 +63,7 @@
</template>
<script>
import uniSwipeActionItemVue from '../../../../components/uni-swipe-action-item/uni-swipe-action-item.vue'
export default {
props: {
......@@ -110,6 +111,14 @@ export default {
isNormal () {
return this.type == 'normal'
},
cursorSpacing() {
switch (this.type) {
case 'pop':
return 155
case 'nomal':
return 30
}
},
title () {
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