切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
anyv
6 years ago
提交
f5bf4c04d8723b789b454848ebd9109918bac630
1 个父辈
e4925394
1 个管道 的构建
通过
耗费 0 秒
5
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
26 行增加
和
13 行删除
public/themes/simpleboot3/portal/order/get_one.html
simplewind/cmf/controller/WeChatBaseController.php
public/themes/simpleboot3/portal/order/get_one.html
查看文件 @
f5bf4c0
...
...
@@ -180,17 +180,30 @@
</script>
<script>
var
starttime
=
new
Date
(
"2019/6/9"
);
setInterval
(
function
()
{
var
nowtime
=
new
Date
();
var
time
=
nowtime
-
starttime
;
var
hour
=
parseInt
(
time
/
1000
/
60
/
60
%
24
);
var
minute
=
parseInt
(
time
/
1000
/
60
%
60
);
var
seconds
=
parseInt
(
time
/
1000
%
60
);
$
(
'.timespan'
).
html
(
hour
+
"时"
+
minute
+
"分"
+
seconds
+
"秒后"
);
console
.
log
(
hour
);
console
.
log
(
minute
);
console
.
log
(
seconds
)
},
1000
);
var
lastTime
=
{
$data
.
create_time
}
+
86400
;
//最后时间时间戳(秒)
var
currentTime
=
Date
.
parse
(
new
Date
())
/
1000
;
//当前时间时间戳(秒)
console
.
log
(
currentTime
);
var
intDiff
=
parseInt
(
lastTime
-
currentTime
);
//倒计时总秒数量
function
timer
(
intDiff
)
{
window
.
setInterval
(
function
()
{
var
day
=
0
,
hour
=
0
,
minute
=
0
,
second
=
0
;
//时间默认值
if
(
intDiff
>
0
)
{
day
=
Math
.
floor
(
intDiff
/
(
60
*
60
*
24
));
hour
=
Math
.
floor
(
intDiff
/
(
60
*
60
))
-
(
day
*
24
);
minute
=
Math
.
floor
(
intDiff
/
60
)
-
(
day
*
24
*
60
)
-
(
hour
*
60
);
second
=
Math
.
floor
(
intDiff
)
-
(
day
*
24
*
60
*
60
)
-
(
hour
*
60
*
60
)
-
(
minute
*
60
);
}
if
(
minute
<=
9
)
minute
=
'0'
+
minute
;
if
(
second
<=
9
)
second
=
'0'
+
second
;
var
time
=
hour
+
'时'
+
minute
+
'分'
+
second
+
'秒'
console
.
log
(
time
);
$
(
'.timespan'
).
html
(
time
)
intDiff
--
;
},
1000
);
}
timer
(
intDiff
);
</script>
</html>
\ No newline at end of file
...
...
simplewind/cmf/controller/WeChatBaseController.php
查看文件 @
f5bf4c0
...
...
@@ -204,7 +204,7 @@ class WeChatBaseController extends BaseController
*/
public
function
checkWeChatUserLogin
()
{
/*$user = Db::name('user')->where('id',5)->find();
/*$user = Db::name('user')->where('id',5)->find();
cmf_update_current_user($user);*/
$userId
=
cmf_get_current_user_id
();
if
(
empty
(
$userId
))
{
...
...
请
注册
或
登录
后发表评论