123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <template>
- <view class="tabPage" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
- <cus-header title='设置' :showback="false"></cus-header>
- <div class="card">
- <div class="item">
- <div class="left">上班打卡提醒</div>
- <div class="right">
- <u-switch v-model="sbRemind" size="48" activeColor="#2E69EB" inactiveColor="#B9C0C8"></u-switch>
- </div>
- </div>
- <div class="item">
- <div class="left">提醒时间</div>
- <div class="right" @tap="sbShow=true">
- <span>上班前{{sbqMinutes}}分钟</span>
- <u-icon name="arrow-right" color="#606266" size="28"></u-icon>
- </div>
- </div>
- </div>
- <div class="card">
- <div class="item">
- <div class="left">下班打卡提醒</div>
- <div class="right">
- <u-switch v-model="xbRemind" size="48" activeColor="#2E69EB" inactiveColor="#B9C0C8"></u-switch>
- </div>
- </div>
- <div class="item">
- <div class="left">提醒时间</div>
- <div class="right" @tap="xbShow=true">
- <span>下班后{{xbhMinutes}}分钟</span>
- <u-icon name="arrow-right" color="#606266" size="28"></u-icon>
- </div>
- </div>
- </div>
- <u-picker :itemHeight="88" :immediateChange="true" :show="sbShow" :columns="[[5,10,15,20,25,30]]" @confirm="sbConfirm" @close="sbShow=false"></u-picker>
- <u-picker :itemHeight="88" :immediateChange="true" :show="xbShow" :columns="[[5,10,15,20,25,30]]" @confirm="xbConfirm" @close="xbShow=false"></u-picker>
- <Tabbar :tabbarIndex="2"></Tabbar>
- </view>
- </template>
- <script>
- import Tabbar from '@/components/CusTabbar/clock.vue'
- export default {
- components:{ Tabbar },
- data(){
- return {
- sbRemind:false,
- xbRemind:false,
- sbShow:false,
- xbShow:false,
- sbqMinutes:5,
- xbhMinutes:5
- }
- },
- methods:{
- sbConfirm(e){
- this.sbqMinutes = e.value[0];
- this.sbShow = false;
- },
- xbConfirm(e){
- this.xbhMinutes = e.value[0];
- this.xbShow = false;
- }
- }
- }
- </script>
- <style scoped lang="less">
- .tabPage{
- padding: 0 24rpx 188rpx;
- background: #F4F8FB;
-
- .card{
- background: #FFFFFF;
- border-radius: 16rpx;
- margin-top: 20rpx;
- padding: 0 24rpx;
- .item{
- height: 120rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- &:last-child{
- border-top: 1rpx solid #EFEFEF;
- }
- .left{
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 32rpx;
- color: #1D2129;
- line-height: 45rpx;
- }
- .right{
- display: flex;
- align-items: center;
- span{
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 26rpx;
- color: #86909C;
- line-height: 37rpx;
- margin-right: 10rpx;
- }
- }
- }
- }
- }
- </style>
|