Commit 1292e05c authored by sujie@126.com's avatar sujie@126.com

dd

parent de5ef7e0
......@@ -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();
}, 1e3);
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':
......
......@@ -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
......@@ -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
......@@ -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()
......
......@@ -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>
......
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