Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
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
wangxuelai
wechatapp.shangjiadao.com
Commits
42a44650
Commit
42a44650
authored
Sep 03, 2019
by
sujie@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
3fdb85c0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
53 deletions
+2
-53
index.js
business/pages/calendarthemeindex/index.js
+0
-27
index.js
dist/w-countdown/index.js
+2
-1
index.js
src/pages/calendarthemeindex/index.js
+0
-25
No files found.
business/pages/calendarthemeindex/index.js
View file @
42a44650
...
...
@@ -1286,26 +1286,6 @@ Page({
isexpand
:
!
this
.
data
.
isexpand
})
},
teachersPermission
()
{
const
_permission
=
this
.
data
.
permission
;
teachersPermission
({
school_id
:
this
.
data
.
sid
,
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
const
list
=
res
.
data
.
list
;
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
_permission
.
length
;
j
++
)
{
if
(
list
[
i
]
==
j
+
1
)
{
_permission
[
j
]
=
list
[
i
]
}
}
}
this
.
setData
({
permission
:
_permission
,
})
}
}).
catch
(()
=>
{})
},
showcommenteditor
(
e
)
{
const
{
listindex
,
index
}
=
e
.
currentTarget
.
dataset
;
Object
.
assign
(
this
.
data
,{
...
...
@@ -1363,10 +1343,7 @@ Page({
const
mydate
=
''
+
currentDate
;
var
currentFirstDate
;
var
formatDate
=
function
(
date
)
{
const
today
=
new
Date
(
new
Date
().
getFullYear
()
+
'/'
+
(
new
Date
().
getMonth
()
+
1
)
+
'/'
+
new
Date
().
getDate
());
// console.log(Math.abs(today.getTime() - date.getTime()))
var
year
=
date
.
getFullYear
()
+
''
;
var
month
=
(
date
.
getMonth
()
+
1
)
+
''
;
var
day
=
date
.
getDate
()
+
''
;
...
...
@@ -1392,19 +1369,15 @@ Page({
date
=
addDate
(
date
,
week
*
-
1
);
currentFirstDate
=
new
Date
(
date
);
for
(
var
i
=
0
;
i
<
7
;
i
++
)
{
// formatDate(i==0 ? date : addDate(date,1)); 星期一开始
//console.log(); //星期日开始
arr
.
push
(
formatDate
(
i
==
0
?
addDate
(
date
,
-
1
)
:
addDate
(
date
,
1
)));
}
return
arr
}
// console.log(setDate(currentFirstDate));
const
_weeksArr
=
setDate
(
currentDate
);
for
(
let
i
=
0
;
i
<
_weeksArr
.
length
;
i
++
)
{
if
(
Math
.
abs
(
new
Date
(
_weeksArr
[
i
].
date
).
getTime
()
-
new
Date
(
mydate
).
getTime
())
<=
86390000
)
{
_weeksArr
[
i
].
isSelect
=
true
;
}
// console.log(_weeksArr[i].year+'-'+_weeksArr[i].month+'-'+_weeksArr[i].day)
if
(
restDates
){
let
flag
=
false
;
for
(
let
j
=
0
,
len
=
restDates
.
length
;
j
<
len
;
j
++
){
...
...
dist/w-countdown/index.js
View file @
42a44650
...
...
@@ -5,7 +5,7 @@
* @Last Modified time: 2019-01-26 15:50:05
*/
import
WussComponent
from
'../common/extends/baseComponent'
;
var
app
=
getApp
();
WussComponent
({
/**
* @param {boolean} notimestamp 是否使用时间戳 true为不是
...
...
@@ -63,6 +63,7 @@ WussComponent({
},
downTime
:
99
,
localImageRoot
:
'../../images/'
,
imageRoot
:
app
.
globalData
.
imageRoot
,
},
attached
()
{
if
(
this
.
data
.
isRead
>
0
)
{
...
...
src/pages/calendarthemeindex/index.js
View file @
42a44650
...
...
@@ -204,17 +204,6 @@ Page({
pagefrom
,
integral
}
=
options
;
// const {id, tid} = options;
// let pagefrom = 'businesstheme';
// if (integral !== undefined && Number(integral) > 0) {
// this.setData({
// scoreFeedBackStatus: {
// integral: integral,
// show: true,
// scoretype: 1,
// }
// })
// }
this
.
setData
({
id
,
tid
,
...
...
@@ -278,20 +267,6 @@ Page({
hasmore
:
true
,
})
}
// // this.clockListGet('init');
// // this.selfClockGet();
// initCalendar({ // 这次注释
// multi: false,
// noDefault: false,
// whenChangeMonth(current, next) {},
// afterCalendarRender(ctx) {
// const data = [];
// // 异步请求
// setTimeout(() => {}, 1000);
// setTimeout(() => {}, 2000);
// }
// });
},
onHide
:
function
()
{
// Do something when page hide.
this
.
innerAudioContext
.
pause
();
...
...
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