123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <template>
- <view class="container">
- <view class="topBox flex">
- <view class="tpl1 flex_item" @click="show = true">
- <view class="title" style="padding-right: 10rpx;">日期</view>
- <i class="iconfont icon-xiangxia" v-if="show == false"></i>
- <i class="iconfont icon-xiangshang" v-if="show == true"></i>
- </view>
- <view class="tpl2 title">累计处理</view>
- <view class="tpl2 title">累计接单</view>
- </view>
- <view class="listBox">
- <view class="listTpl flex" v-for="item,index in list" :key="index">
- <view class="title tpl1">6月6日</view>
- <view class="num tpl2">88</view>
- <view class="num tpl2">88</view>
- </view>
- </view>
- <u-datetime-picker :show="show" v-model="timeValue" mode="year-month" @cancel="close" @close="close" @confirm="confirm"></u-datetime-picker>
- </view>
- </template>
- <script>
- export default {
- data() {
- return{
- list:[{},{},{},{},{},{},{},{},{},{},{},{},{}],
- timeValue:Number(new Date()),
- show:false
- };
- },
- onLoad(options) {},
- onShow() {},
- methods: {
- close(){
- this.show = false
- },
- confirm(e){
- console.log(e,888)
- this.timeValue = e.value
- this.show = false
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- page{
- width: 100%;
- height: 100%;
- }
- .container{
- width: 100%;
- height: 100%;
- padding-top: 120rpx;
- }
- .topBox{
- width: 100%;
- height: 100rpx;
- line-height: 100rpx;
- padding: 0rpx 30rpx;
- background: #FFFFFF;
- position: fixed;
- top: 0;
-
- }
- .listBox{
- background-color: #fff;
- padding: 0rpx 30rpx;
- .listTpl{
- border-bottom: 1rpx solid #F0F0F0;
- }
- }
- .tpl1{
- width: 30%;
- text-align: center;
- justify-content: center;
- }
- .tpl2{
- width: 35%;
- text-align: center;
- }
- .title{
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- line-height: 110rpx;
- }
- .num{
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #333333;
- }
- </style>
|