Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
get-up-early
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baihong
get-up-early
Commits
437ce6ba
Commit
437ce6ba
authored
Apr 20, 2021
by
baihong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:日期选择
parent
49a75dd0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
251 additions
and
1 deletion
+251
-1
pages.json
pages.json
+12
-0
jifen.vue
pages/jifen/jifen.vue
+238
-0
u-calendar.vue
uview-ui/components/u-calendar/u-calendar.vue
+1
-1
No files found.
pages.json
View file @
437ce6ba
...
...
@@ -41,6 +41,18 @@
}
}
,{
"path"
:
"pages/jifen/jifen"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"app-plus"
:
{
"titleView"
:
false
},
"enablePullDownRefresh"
:
false
}
}
],
"globalStyle"
:
{
"navigationBarTextStyle"
:
"black"
,
...
...
pages/jifen/jifen.vue
0 → 100644
View file @
437ce6ba
<
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
:
40
rpx
30
rpx
;
box-sizing
:
border-box
;
background
:
#FFFFFF
;
.list
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
flex-end
;
margin-top
:
20
rpx
;
.num
{
font-size
:
36
rpx
;
font-family
:
PingFangSC-Semibold
,
PingFang
SC
;
font-weight
:
600
;
color
:
#FFC915
;
line-height
:
50
rpx
;
}
.left
{
display
:
flex
;
flex-direction
:
column
;
text
{
font-size
:
24
rpx
;
font-family
:
OpenSans
;
color
:
#999999
;
line-height
:
33
rpx
;
}
text
:nth-child
(
1
)
{
font-size
:
28
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
40
rpx
;
margin-bottom
:
7
rpx
;
}
}
}
.top
{
display
:
flex
;
justify-content
:
space-between
;
font-size
:
28
rpx
;
font-family
:
OpenSans
;
color
:
#999999
;
line-height
:
38
rpx
;
margin-bottom
:
40
rpx
;
text
{
font-size
:
28
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#000000
;
line-height
:
40
rpx
;
}
}
}
.header
{
width
:
100vw
;
height
:
280
rpx
;
background
:
linear-gradient
(
136deg
,
#FFCA16
0%
,
#FFD64A
100%
);
&-main
{
padding
:
0
40
rpx
0
50
rpx
;
box-sizing
:
border-box
;
display
:
flex
;
margin-top
:
57
rpx
;
justify-content
:
space-between
;
.header-right
{
display
:
flex
;
align-items
:
center
;
image
{
width
:
28
rpx
;
height
:
30
rpx
;
}
text
{
font-size
:
32
rpx
;
font-family
:
OpenSans
;
color
:
#000000
;
line-height
:
34
rpx
;
margin
:
0
14
rpx
;
}
}
.header-left
{
display
:
flex
;
align-items
:
flex-end
;
font-size
:
24
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
30
rpx
;
text
{
font-size
:
64
rpx
;
font-family
:
OpenSans
;
color
:
#000000
;
line-height
:
52
rpx
;
}
.name
{
font-size
:
24
rpx
;
font-family
:
OpenSans
;
color
:
#333333
;
line-height
:
30
rpx
;
margin-left
:
4
rpx
;
}
}
}
.nav
{
display
:
flex
;
align-items
:
center
;
margin-top
:
20
rpx
;
padding-left
:
15
rpx
;
.title
{
margin-left
:
250
rpx
;
font-size
:
36
rpx
;
font-family
:
PingFangSC-Semibold
,
PingFang
SC
;
font-weight
:
600
;
color
:
#000000
;
line-height
:
50
rpx
;
}
}
}
}
</
style
>
uview-ui/components/u-calendar/u-calendar.vue
View file @
437ce6ba
...
...
@@ -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'
&&
endDate==`${year}-${month}-${index+1}`">
{{
endText
}}
</view>
</view>
<view
class=
"u-calendar__content__bg-month"
>
{{
month
}}
</view>
</view>
<view
class=
"u-calendar__bottom"
>
<view
class=
"u-calendar__bottom__choose"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment