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
1292e05c
Commit
1292e05c
authored
Sep 03, 2019
by
sujie@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
de5ef7e0
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
27 deletions
+19
-27
index.js
dist/w-countdown/index.js
+5
-4
index.wxml
dist/w-countdown/index.wxml
+2
-2
index.wxss
dist/w-countdown/index.wxss
+10
-2
detailCutd.gif
images/common/cutdown/detailCutd.gif
+0
-0
readCutd.gif
images/common/cutdown/readCutd.gif
+0
-0
index.js
src/pages/readthemeindex/index.js
+1
-18
index.wxml
src/pages/readthemeindex/index.wxml
+1
-1
No files found.
dist/w-countdown/index.js
View file @
1292e05c
...
...
@@ -62,10 +62,11 @@ WussComponent({
"s"
:
"00"
},
downTime
:
99
,
localImageRoot
:
'../../images/'
,
},
attached
()
{
if
(
this
.
data
.
isRead
>
0
)
{
this
.
_downTime
()
//
this._downTime()
}
},
detached
()
{
...
...
@@ -99,7 +100,7 @@ WussComponent({
_startTime
()
{
clearInterval
(
this
.
timer
);
this
.
timer
=
setInterval
(()
=>
{
console
.
log
(
'启动了分钟的计时器'
);
//
console.log('启动了分钟的计时器');
this
.
_timer
();
},
1
e3
);
this
.
_timer
();
...
...
@@ -107,7 +108,7 @@ WussComponent({
_downTime
(){
clearInterval
(
this
.
downtimer
);
this
.
downtimer
=
setInterval
(()
=>
{
console
.
log
(
'启动了毫秒的计时器'
);
//
console.log('启动了毫秒的计时器');
this
.
setData
({
downTime
:
Number
(
this
.
data
.
downTime
)
-
1
>=
0
?(
Number
(
this
.
data
.
downTime
)
-
1
>=
10
?
Number
(
this
.
data
.
downTime
)
-
1
:
'0'
+
(
Number
(
this
.
data
.
downTime
)
-
1
)):
99
})
...
...
@@ -157,7 +158,7 @@ WussComponent({
case
'H'
:
return
`
${
h
}
:
${
mm
}
:
${
s
}
`
;
case
'MM'
:
return
`
${
mm
}
:
${
s
}
`
;
return
`
${
h
}
:
${
mm
}
:
${
s
}
`
;
case
's'
:
return
s
;
case
'd'
:
...
...
dist/w-countdown/index.wxml
View file @
1292e05c
...
...
@@ -13,7 +13,7 @@
秒
</view>
<view class="down" >
{{downTime}}
</view>
</view>
<view class="clock-cut" wx:if="{{isRead==2}}">
...
...
@@ -23,7 +23,7 @@
<view class="maohao" >:</view>
<view class="time" >{{timedate.s}}</view>
<view class="maohao" >:</view>
<view class="time" >
{{downTime}}
</view>
<view class="time" >
<image class="" src="{{localImageRoot}}common/cutdown/detailCutd.gif" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
</view>
</view>
<text class="wuss-class wuss-countdown" wx:if="{{!isRead}}">{{timeText}}</text>
\ No newline at end of file
dist/w-countdown/index.wxss
View file @
1292e05c
...
...
@@ -23,10 +23,14 @@
align-items: center;
}
.wuss-countdown-box .down{
font-size:30rpx;
/*
font-size:30rpx;
font-family:PingFang-SC-Bold;
font-weight:bold;
color:rgba(0,0,0,1);
color:rgba(0,0,0,1); */
}
.wuss-countdown-box .down image{
width: 32rpx;
height: 28rpx;
}
.clock-cut{
display: flex;
...
...
@@ -48,4 +52,8 @@
font-size:22rpx;
padding: 0 4rpx;
font-weight:bold;
}
.clock-cut .time image{
width: 28rpx;
height: 24rpx;
}
\ No newline at end of file
images/common/cutdown/detailCutd.gif
0 → 100644
View file @
1292e05c
1.99 KB
images/common/cutdown/readCutd.gif
0 → 100644
View file @
1292e05c
6.27 KB
src/pages/readthemeindex/index.js
View file @
1292e05c
...
...
@@ -340,27 +340,10 @@ Page({
code
}
=
res
;
if
(
code
==
200
)
{
// if(!res.data){
// wx.showModal({
// title: '提示',
// content: '暂无数据,班级可能已被删除',
// showCancel:false,
// confirmText:"返回首页",
// success(res) {
// if (res.confirm) {
// wx.navigateTo({
// url:"/customer/pages/userindex/index"
// })
// }
// }
// })
// return
// }
this
.
schoolInfoGet
(
data
.
school_id
)
data
.
content
=
JSON
.
parse
(
data
.
content
);
// console.log(new Date(new Date().setHours(new Date().getHours() + 2)).getTime())
// console.log( new Date(res.datetime.replace(/-/g,'/')).getTime(),'44')
const
StorageTime
=
LocalStorage
.
getItem
(
data
.
id
+
'themeRead'
);
// 存储的时间
console
.
log
(
new
Date
(
new
Date
().
setMinutes
(
new
Date
().
getMinutes
()
+
data
.
force_num
)),
'new Date().setMinutes'
)
this
.
setData
({
themeSelect
:
data
,
cutDownDate
:
StorageTime
?
new
Date
().
getTime
()
+
StorageTime
*
1000
:
new
Date
(
new
Date
().
setMinutes
(
new
Date
().
getMinutes
()
+
data
.
force_num
)).
getTime
()
...
...
src/pages/readthemeindex/index.wxml
View file @
1292e05c
...
...
@@ -76,7 +76,7 @@
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton">生成form</button>
</form>
<view class="home-text" >
班级
</view>
<view class="home-text" >
首页
</view>
</view>
</btn-drag>
</view>
...
...
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