Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
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
viitto
mallapp
Commits
b5d81295
Commit
b5d81295
authored
Apr 01, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c69c8242
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
salesvolume.vue
pages/share/salesvolume.vue
+5
-5
choiceDate.vue
pages/share/time/choiceDate.vue
+5
-0
No files found.
pages/share/salesvolume.vue
View file @
b5d81295
...
...
@@ -6,7 +6,7 @@
}
.salesvolume
.zongxiaos
{
width
:
100%
;
margin-top
:
7
0
rpx
;
margin-top
:
5
0
rpx
;
}
.salesvolume
.distext
{
font-size
:
12px
;
...
...
@@ -20,7 +20,7 @@
color
:
#FFF
;
}
.salesvolume
.top-b
{
margin-top
:
50
rpx
;
margin-top
:
35
rpx
;
width
:
100%
;
display
:
flex
;
align-items
:
center
;
...
...
@@ -218,9 +218,9 @@
},
getTime
()
{
var
myDate
=
new
Date
();
this
.
msg
.
EndTime
=
myDate
.
getFullYear
()
+
'-'
+
(
myDate
.
getMonth
()
+
1
)
+
'-'
+
myDate
.
getDate
(
)
this
.
msg
.
EndTime
=
myDate
.
getFullYear
()
+
'-'
+
(
(
myDate
.
getMonth
()
+
1
)
<
10
?
'0'
+
(
myDate
.
getMonth
()
+
1
):(
myDate
.
getMonth
()
+
1
))
+
'-'
+
(
myDate
.
getDate
()
<
10
?
'0'
+
myDate
.
getDate
():
myDate
.
getDate
()
)
var
startDate
=
new
Date
(
myDate
.
setDate
(
myDate
.
getDate
()
-
7
))
//计算当前时间的前7天的时间
this
.
msg
.
StartTime
=
startDate
.
getFullYear
()
+
'-'
+
(
startDate
.
getMonth
()
+
1
)
+
'-'
+
startDate
.
getDate
(
)
this
.
msg
.
StartTime
=
startDate
.
getFullYear
()
+
'-'
+
(
(
myDate
.
getMonth
()
+
1
)
<
10
?
'0'
+
(
myDate
.
getMonth
()
+
1
):(
myDate
.
getMonth
()
+
1
))
+
'-'
+
(
myDate
.
getDate
()
<
10
?
'0'
+
myDate
.
getDate
():
myDate
.
getDate
()
)
this
.
cWidth
=
uni
.
upx2px
(
750
);
this
.
cHeight
=
uni
.
upx2px
(
500
);
this
.
init
();
...
...
@@ -435,7 +435,7 @@
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
height
:
4
4px
;
line-height
:
3
4px
;
padding
:
0
10px
;
}
...
...
pages/share/time/choiceDate.vue
View file @
b5d81295
<
template
>
<view
style=
"height: 100vh;"
>
<calendar
ref=
"calendar"
v-if=
"show"
:startDate=
"StartTime"
:height=
"height"
:endDate=
"EndTime"
...
...
@@ -23,6 +24,7 @@
limit
:
36
,
StartTime
:
''
,
EndTime
:
''
,
show
:
false
,
}
},
created
()
{
...
...
@@ -35,6 +37,9 @@
if
(
options
){
this
.
StartTime
=
options
.
StartTime
this
.
EndTime
=
options
.
EndTime
setTimeout
(()
=>
{
this
.
show
=
true
},
100
)
}
},
methods
:{
...
...
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