Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
纵之格
ShopXO
提交
f23b985e
ShopXO
项目概览
纵之格
/
ShopXO
通知
394
Star
16
Fork
11
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f23b985e
编写于
8月 15, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
小程序秒杀优化
上级
c9c97d14
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
24 addition
and
12 deletion
+24
-12
public/appmini/old/alipay/pages/goods-detail/goods-detail.js
public/appmini/old/alipay/pages/goods-detail/goods-detail.js
+4
-2
public/appmini/old/alipay/pages/index/index.js
public/appmini/old/alipay/pages/index/index.js
+4
-2
public/appmini/old/baidu/pages/goods-detail/goods-detail.js
public/appmini/old/baidu/pages/goods-detail/goods-detail.js
+4
-2
public/appmini/old/baidu/pages/index/index.js
public/appmini/old/baidu/pages/index/index.js
+4
-2
public/appmini/old/weixin/pages/goods-detail/goods-detail.js
public/appmini/old/weixin/pages/goods-detail/goods-detail.js
+4
-2
public/appmini/old/weixin/pages/index/index.js
public/appmini/old/weixin/pages/index/index.js
+4
-2
未找到文件。
public/appmini/old/alipay/pages/goods-detail/goods-detail.js
浏览文件 @
f23b985e
...
@@ -677,11 +677,13 @@ Page({
...
@@ -677,11 +677,13 @@ Page({
// 显示秒杀插件-倒计时
// 显示秒杀插件-倒计时
plugins_limitedtimediscount_countdown
()
{
plugins_limitedtimediscount_countdown
()
{
var
status
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
status
||
0
;
var
msg
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
msg
||
''
;
var
hours
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
hours
||
0
;
var
hours
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
hours
||
0
;
var
minutes
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
minutes
||
0
;
var
minutes
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
minutes
||
0
;
var
seconds
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
seconds
||
0
;
var
seconds
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
seconds
||
0
;
var
self
=
this
;
var
self
=
this
;
if
(
hours
>
0
||
minutes
>
0
||
seconds
>
0
)
{
if
(
status
==
1
)
{
// 秒
// 秒
var
timer
=
setInterval
(
function
()
{
var
timer
=
setInterval
(
function
()
{
if
(
seconds
<=
0
)
{
if
(
seconds
<=
0
)
{
...
@@ -730,7 +732,7 @@ Page({
...
@@ -730,7 +732,7 @@ Page({
}
else
{
}
else
{
// 活动已结束
// 活动已结束
self
.
setData
({
self
.
setData
({
'
plugins_limitedtimediscount_data.desc
'
:
'
活动已结束
'
,
'
plugins_limitedtimediscount_data.desc
'
:
msg
,
plugins_limitedtimediscount_is_show_time
:
false
,
plugins_limitedtimediscount_is_show_time
:
false
,
});
});
}
}
...
...
public/appmini/old/alipay/pages/index/index.js
浏览文件 @
f23b985e
...
@@ -113,11 +113,13 @@ Page({
...
@@ -113,11 +113,13 @@ Page({
// 显示秒杀插件-倒计时
// 显示秒杀插件-倒计时
plugins_limitedtimediscount_countdown
()
{
plugins_limitedtimediscount_countdown
()
{
var
status
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
status
||
0
;
var
msg
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
msg
||
''
;
var
hours
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
hours
||
0
;
var
hours
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
hours
||
0
;
var
minutes
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
minutes
||
0
;
var
minutes
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
minutes
||
0
;
var
seconds
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
seconds
||
0
;
var
seconds
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
seconds
||
0
;
var
self
=
this
;
var
self
=
this
;
if
(
hours
>
0
||
minutes
>
0
||
seconds
>
0
)
{
if
(
status
==
1
)
{
// 秒
// 秒
var
timer
=
setInterval
(
function
()
{
var
timer
=
setInterval
(
function
()
{
if
(
seconds
<=
0
)
{
if
(
seconds
<=
0
)
{
...
@@ -153,7 +155,7 @@ Page({
...
@@ -153,7 +155,7 @@ Page({
}
else
{
}
else
{
// 活动已结束
// 活动已结束
self
.
setData
({
self
.
setData
({
plugins_limitedtimediscount_timer_title
:
'
活动已结束
'
,
plugins_limitedtimediscount_timer_title
:
msg
,
plugins_limitedtimediscount_is_show_time
:
false
,
plugins_limitedtimediscount_is_show_time
:
false
,
});
});
}
}
...
...
public/appmini/old/baidu/pages/goods-detail/goods-detail.js
浏览文件 @
f23b985e
...
@@ -584,11 +584,13 @@ Page({
...
@@ -584,11 +584,13 @@ Page({
// 显示秒杀插件-倒计时
// 显示秒杀插件-倒计时
plugins_limitedtimediscount_countdown
()
{
plugins_limitedtimediscount_countdown
()
{
var
status
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
status
||
0
;
var
msg
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
msg
||
''
;
var
hours
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
hours
||
0
;
var
hours
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
hours
||
0
;
var
minutes
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
minutes
||
0
;
var
minutes
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
minutes
||
0
;
var
seconds
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
seconds
||
0
;
var
seconds
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
seconds
||
0
;
var
self
=
this
;
var
self
=
this
;
if
(
hours
>
0
||
minutes
>
0
||
seconds
>
0
)
{
if
(
status
==
1
)
{
// 秒
// 秒
var
timer
=
setInterval
(
function
()
{
var
timer
=
setInterval
(
function
()
{
if
(
seconds
<=
0
)
{
if
(
seconds
<=
0
)
{
...
@@ -637,7 +639,7 @@ Page({
...
@@ -637,7 +639,7 @@ Page({
}
else
{
}
else
{
// 活动已结束
// 活动已结束
self
.
setData
({
self
.
setData
({
'
plugins_limitedtimediscount_data.desc
'
:
'
活动已结束
'
,
'
plugins_limitedtimediscount_data.desc
'
:
msg
,
plugins_limitedtimediscount_is_show_time
:
false
plugins_limitedtimediscount_is_show_time
:
false
});
});
}
}
...
...
public/appmini/old/baidu/pages/index/index.js
浏览文件 @
f23b985e
...
@@ -108,11 +108,13 @@ Page({
...
@@ -108,11 +108,13 @@ Page({
// 显示秒杀插件-倒计时
// 显示秒杀插件-倒计时
plugins_limitedtimediscount_countdown
()
{
plugins_limitedtimediscount_countdown
()
{
var
status
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
status
||
0
;
var
msg
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
msg
||
''
;
var
hours
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
hours
||
0
;
var
hours
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
hours
||
0
;
var
minutes
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
minutes
||
0
;
var
minutes
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
minutes
||
0
;
var
seconds
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
seconds
||
0
;
var
seconds
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
seconds
||
0
;
var
self
=
this
;
var
self
=
this
;
if
(
hours
>
0
||
minutes
>
0
||
seconds
>
0
)
{
if
(
status
==
1
)
{
// 秒
// 秒
var
timer
=
setInterval
(
function
()
{
var
timer
=
setInterval
(
function
()
{
if
(
seconds
<=
0
)
{
if
(
seconds
<=
0
)
{
...
@@ -148,7 +150,7 @@ Page({
...
@@ -148,7 +150,7 @@ Page({
}
else
{
}
else
{
// 活动已结束
// 活动已结束
self
.
setData
({
self
.
setData
({
plugins_limitedtimediscount_timer_title
:
'
活动已结束
'
,
plugins_limitedtimediscount_timer_title
:
msg
,
plugins_limitedtimediscount_is_show_time
:
false
plugins_limitedtimediscount_is_show_time
:
false
});
});
}
}
...
...
public/appmini/old/weixin/pages/goods-detail/goods-detail.js
浏览文件 @
f23b985e
...
@@ -669,11 +669,13 @@ Page({
...
@@ -669,11 +669,13 @@ Page({
// 显示秒杀插件-倒计时
// 显示秒杀插件-倒计时
plugins_limitedtimediscount_countdown
()
{
plugins_limitedtimediscount_countdown
()
{
var
status
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
status
||
0
;
var
msg
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
msg
||
''
;
var
hours
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
hours
||
0
;
var
hours
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
hours
||
0
;
var
minutes
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
minutes
||
0
;
var
minutes
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
minutes
||
0
;
var
seconds
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
seconds
||
0
;
var
seconds
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
seconds
||
0
;
var
self
=
this
;
var
self
=
this
;
if
(
hours
>
0
||
minutes
>
0
||
seconds
>
0
)
{
if
(
status
==
1
)
{
// 秒
// 秒
var
timer
=
setInterval
(
function
()
{
var
timer
=
setInterval
(
function
()
{
if
(
seconds
<=
0
)
{
if
(
seconds
<=
0
)
{
...
@@ -722,7 +724,7 @@ Page({
...
@@ -722,7 +724,7 @@ Page({
}
else
{
}
else
{
// 活动已结束
// 活动已结束
self
.
setData
({
self
.
setData
({
'
plugins_limitedtimediscount_data.desc
'
:
'
活动已结束
'
,
'
plugins_limitedtimediscount_data.desc
'
:
msg
,
plugins_limitedtimediscount_is_show_time
:
false
,
plugins_limitedtimediscount_is_show_time
:
false
,
});
});
}
}
...
...
public/appmini/old/weixin/pages/index/index.js
浏览文件 @
f23b985e
...
@@ -108,11 +108,13 @@ Page({
...
@@ -108,11 +108,13 @@ Page({
// 显示秒杀插件-倒计时
// 显示秒杀插件-倒计时
plugins_limitedtimediscount_countdown
()
{
plugins_limitedtimediscount_countdown
()
{
var
status
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
status
||
0
;
var
msg
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
msg
||
''
;
var
hours
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
hours
||
0
;
var
hours
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
hours
||
0
;
var
minutes
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
minutes
||
0
;
var
minutes
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
minutes
||
0
;
var
seconds
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
seconds
||
0
;
var
seconds
=
this
.
data
.
plugins_limitedtimediscount_data
.
time
.
seconds
||
0
;
var
self
=
this
;
var
self
=
this
;
if
(
hours
>
0
||
minutes
>
0
||
seconds
>
0
)
{
if
(
status
==
1
)
{
// 秒
// 秒
var
timer
=
setInterval
(
function
()
{
var
timer
=
setInterval
(
function
()
{
if
(
seconds
<=
0
)
{
if
(
seconds
<=
0
)
{
...
@@ -148,7 +150,7 @@ Page({
...
@@ -148,7 +150,7 @@ Page({
}
else
{
}
else
{
// 活动已结束
// 活动已结束
self
.
setData
({
self
.
setData
({
plugins_limitedtimediscount_timer_title
:
'
活动已结束
'
,
plugins_limitedtimediscount_timer_title
:
msg
,
plugins_limitedtimediscount_is_show_time
:
false
,
plugins_limitedtimediscount_is_show_time
:
false
,
});
});
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录