Commit 437ce6ba by baihong

add:日期选择

parent 49a75dd0
...@@ -41,6 +41,18 @@ ...@@ -41,6 +41,18 @@
} }
} }
,{
"path" : "pages/jifen/jifen",
"style" :
{
"navigationStyle": "custom",
"app-plus": {
"titleView": false
},
"enablePullDownRefresh": false
}
}
], ],
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
......
<template>
<view class="app">
<view class="header">
<page-header>
<view class="nav">
<u-icon name="arrow-left" color="#000000" size="38"></u-icon>
<text class="title">积分明细</text>
</view>
<view class="header-main">
<view class="header-left">
<text>26888</text>
<text class="name">(真我币)</text>
</view>
</view>
</page-header>
</view>
<view class="list-box">
<view class="top">
<text>积分明细</text>
<view class="action" @click="show=true">
时间筛选
<u-icon style="margin-left: 10rpx;" name="arrow-down" color="#999999" size="18"></u-icon>
</view>
</view>
<view class="list">
<view class="left">
<text>日常签到</text>
<text>2021-04-18 18:00:08</text>
</view>
<view class="num">
+200
</view>
</view>
<view class="list">
<view class="left">
<text>日常签到</text>
<text>2021-04-18 18:00:08</text>
</view>
<view class="num">
+200
</view>
</view>
</view>
<u-calendar btn-type='warning' range-bg-color='rgb(255,244,208)' month-arrow-color='#FFC915' year-arrow-color='#FFC915' active-bg-color='#FFC915' v-model="show" :mode="mode"></u-calendar>
</view>
</template>
<script>
import pageHeader from '@/components/page-header.vue';
export default {
components: {
pageHeader
},
data() {
return {
show: true,
mode: 'range',
src: 'https://t7.baidu.com/it/u=1951548898,3927145&fm=193&f=GIF',
list: [{
name: '审核中'
}, {
name: '已通过'
}, {
name: '已拒绝'
}],
current: 0
};
},
computed: {
},
onLoad(option) {
},
methods: {
change(index) {
this.current = index;
},
goSalesInquiry() {
uni.navigateTo({
url: '../salesInquiry/salesInquiry'
});
},
startMove() {
// eslint-disable-next-line
let timer = setTimeout(() => {
if (this.number === 2) {
this.number = 0;
} else {
this.number += 1;
}
this.startMove();
}, 2000); // 滚动不需要停顿则将2000改成动画持续时间
}
}
};
</script>
<style lang="scss" scoped>
.app {
background: #f5f7f9;
height: 100vh;
.list-box {
padding: 40rpx 30rpx;
box-sizing: border-box;
background: #FFFFFF;
.list {
display: flex;
justify-content: space-between;
align-items: flex-end;
margin-top: 20rpx;
.num {
font-size: 36rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #FFC915;
line-height: 50rpx;
}
.left {
display: flex;
flex-direction: column;
text {
font-size: 24rpx;
font-family: OpenSans;
color: #999999;
line-height: 33rpx;
}
text:nth-child(1) {
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #333333;
line-height: 40rpx;
margin-bottom: 7rpx;
}
}
}
.top {
display: flex;
justify-content: space-between;
font-size: 28rpx;
font-family: OpenSans;
color: #999999;
line-height: 38rpx;
margin-bottom: 40rpx;
text {
font-size: 28rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #000000;
line-height: 40rpx;
}
}
}
.header {
width: 100vw;
height: 280rpx;
background: linear-gradient(136deg, #FFCA16 0%, #FFD64A 100%);
&-main {
padding: 0 40rpx 0 50rpx;
box-sizing: border-box;
display: flex;
margin-top: 57rpx;
justify-content: space-between;
.header-right {
display: flex;
align-items: center;
image {
width: 28rpx;
height: 30rpx;
}
text {
font-size: 32rpx;
font-family: OpenSans;
color: #000000;
line-height: 34rpx;
margin: 0 14rpx;
}
}
.header-left {
display: flex;
align-items: flex-end;
font-size: 24rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #333333;
line-height: 30rpx;
text {
font-size: 64rpx;
font-family: OpenSans;
color: #000000;
line-height: 52rpx;
}
.name {
font-size: 24rpx;
font-family: OpenSans;
color: #333333;
line-height: 30rpx;
margin-left: 4rpx;
}
}
}
.nav {
display: flex;
align-items: center;
margin-top: 20rpx;
padding-left: 15rpx;
.title {
margin-left: 250rpx;
font-size: 36rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #000000;
line-height: 50rpx;
}
}
}
}
</style>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<view class="u-calendar__content__item__tips" :style="{color:activeColor}" v-if="mode== 'range' && startDate==`${year}-${month}-${index+1}` && startDate!=endDate">{{startText}}</view> <view class="u-calendar__content__item__tips" :style="{color:activeColor}" v-if="mode== 'range' && startDate==`${year}-${month}-${index+1}` && startDate!=endDate">{{startText}}</view>
<view class="u-calendar__content__item__tips" :style="{color:activeColor}" v-if="mode== 'range' && endDate==`${year}-${month}-${index+1}`">{{endText}}</view> <view class="u-calendar__content__item__tips" :style="{color:activeColor}" v-if="mode== 'range' && endDate==`${year}-${month}-${index+1}`">{{endText}}</view>
</view> </view>
<view class="u-calendar__content__bg-month">{{month}}</view>
</view> </view>
<view class="u-calendar__bottom"> <view class="u-calendar__bottom">
<view class="u-calendar__bottom__choose"> <view class="u-calendar__bottom__choose">
......
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