123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367 |
- <template>
- <view class="content">
- <view class="navbar">
- <view v-for="(item, index) in navList" :key="index" class="nav-item"
- :class="{ current: tabCurrentIndex === index }" @click="tabClick(index)">{{ item.text }}</view>
- </view>
- <swiper :current="tabCurrentIndex" class="swiper-box" duration="300" @change="changeTab">
- <swiper-item class="tab-content" v-for="(tabItem, tabIndex) in navList" :key="tabIndex">
- <scroll-view class="list-scroll-content" scroll-y>
- <view class="main" v-for="(item,index) in 10" :key="index">
- <view class="main-top flex">
- <view class="main-title ">
- 旷工处罚
- </view>
- <view class="main-type" :class="{red:index%3==1}">
- {{index%3 ==1?'待处理':index%3 ==2?'已反对':'已完成'}}
- </view>
- </view>
- <view class="main-time">
- 处罚日期:2023年10月10日
- </view>
- <view class="main-info">
- <view class="main-info-item">
- <text
- class="main-info-title">处罚说明:</text>处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由
- </view>
- <view class="main-info-item" v-if="index%3 !=1">
- <text
- class="main-info-title">领导处理说明:</text>领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明
- </view>
- </view>
- <view class="main-name flex">
- <view class="main-name-left">
- 提交人:李丹丹 <text v-if="index%3 !=1">领导:高启强</text>
- </view>
- <view class="main-name-right">
- ¥200
- </view>
- </view>
- <view class="btn-box" v-if="index%3 == 1" @click="open()">
- <view class="btn1">
- 拒绝扣款
- </view>
- <view class="btn2">
- 同意扣款
- </view>
- </view>
- </view>
- </scroll-view>
- </swiper-item>
- </swiper>
- <uni-popup ref="popup" type="center">
- <view class="popup-box">
- <view class="popup-title">
- 输入意见
- </view>
- <view class="popup-main">
- <textarea placeholder="请点击输入..." class="popup-main-font" name="" id="" cols="30"
- rows="10"></textarea>
- </view>
- <view class="popup-btn-box flex">
- <view class="popup-btn-item qx" @click="cancel()">
- 取消
- </view>
- <view class="popup-btn-item qd">
- 确定
- </view>
- </view>
- </view>
- </uni-popup>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- tabCurrentIndex: 0,
- navList: [{
- state: '',
- text: '全部',
- loadingType: 'more',
- orderList: [],
- page: 1, //当前页数
- limit: 10 //每次信息条数
- },
- {
- state: '',
- text: '待处理',
- loadingType: 'more',
- orderList: [],
- page: 1, //当前页数
- limit: 10 //每次信息条数
- },
- {
- state: '',
- text: '已反对',
- loadingType: 'more',
- orderList: [],
- page: 1, //当前页数
- limit: 10 //每次信息条数
- },
- {
- state: '',
- text: '已完成',
- loadingType: 'more',
- orderList: [],
- page: 1, //当前页数
- limit: 10 //每次信息条数
- }
- ]
- }
- },
- onLoad() {},
- onShow() {},
- onReachBottom() {},
- onReady() {},
- methods: {
- //swiper 切换
- changeTab(e) {
- this.tabCurrentIndex = e.target.current;
- this.loadData('tabChange');
- },
- //顶部tab点击
- tabClick(index) {
- this.tabCurrentIndex = index;
- },
- loadData() {
- },
- open() {
- this.$refs.popup.open()
- },
- cancel() {
- this.$refs.popup.close()
- }
- }
- };
- </script>
- <style lang="scss">
- page,
- .content {
- min-height: 100%;
- height: auto;
- }
- .navbar {
- display: flex;
- height: 40px;
- padding: 0 5px;
- background: #fff;
- box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
- position: relative;
- z-index: 10;
- .nav-item {
- flex: 1;
- display: flex;
- justify-content: center;
- align-items: center;
- height: 100%;
- font-size: 15px;
- color: $font-color-dark;
- position: relative;
- &.current {
- color: #FF4C4C;
- &:after {
- content: '';
- position: absolute;
- left: 50%;
- bottom: 0;
- transform: translateX(-50%);
- width: 44px;
- height: 0;
- border-bottom: 2px solid #FF4C4C;
- }
- }
- }
- }
- .swiper-box {
- height: calc(100vh - 40px);
- }
- .list-scroll-content {
- height: 100%;
- }
- .main {
- margin: 20rpx auto 0;
- width: 706rpx;
- background: #FFFFFF;
- border-radius: 15rpx;
- padding: 34rpx 20rpx 0rpx;
- .main-top {
- padding: 0 16rpx;
- .main-title {
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #333333;
- }
- .main-type {
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- }
- .red {
- color: #FF4C4C;
- }
- }
- .main-time {
- margin-top: 20rpx;
- padding: 0 16rpx;
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- }
- .main-info {
- padding: 0 14rpx;
- margin-top: 20rpx;
- padding: 26rpx 26rpx 26rpx 20rpx;
- background: #f2f2f2;
- .main-info-item {
- .main-info-title {
- color: #333333;
- }
- margin-top: 24rpx;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #666666;
- }
- .main-info-item:first-child {
- margin-top: 0;
- }
- }
- .main-name {
- padding: 28rpx 16rpx;
- .main-name-left {
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #333333;
- }
- .main-name-right {
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FF4C4C;
- }
- }
- .btn-box {
- border-top: 1px solid #f6f6f6;
- padding: 28rpx 12rpx 20rpx;
- display: flex;
- justify-content: flex-end;
- .btn1 {
- display: flex;
- justify-content: center;
- align-items: center;
- width: 144rpx;
- height: 55rpx;
- border: 2px solid #EBEBEB;
- border-radius: 28rpx;
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- }
- .btn2 {
- margin-left: 20rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- width: 144rpx;
- height: 55rpx;
- border: 2px solid #FF4C4C;
- border-radius: 28rpx;
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FF4C4C;
- }
- }
- }
- .popup-box {
- width: 582rpx;
- background: #FFFFFF;
- border-radius: 7rpx;
- padding: 64rpx 32rpx 54rpx;
- .popup-title {
- text-align: center;
- font-size: 42rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #2D2D2D;
- }
- .popup-main {
- margin-top: 42rpx;
- width: 100%;
- height: 194rpx;
- background: #F4F4F4;
- border-radius: 10rpx;
- padding: 20rpx;
- .popup-main-font {
- width: 100%;
- height: 100%;
- font-size: 34rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- }
- }
- .popup-btn-box {
- margin-top: 50rpx;
- .popup-btn-item {
- display: flex;
- justify-content: center;
- align-items: center;
- width: 248rpx;
- height: 78rpx;
- border-radius: 5rpx;
- font-size: 34rpx;
- font-family: PingFang SC;
- font-weight: 500;
- }
- .qx {
- color: #333333;
- background: #FFFFFF;
- border: 1px solid #999999;
- }
- .qd {
- background: #069CFA;
- color: #FFFFFF;
- }
- }
- }
- </style>
|