Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
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
wildfirecode13
new_taobao
Commits
43e610df
Commit
43e610df
authored
Oct 14, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/origin/tianmaoxiaoyuan' into tianmaoxiaoyuan
parents
b6c8708a
9587d85e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
353 additions
and
342 deletions
+353
-342
myprize.js
taobao_mini/client/pages/myprize/myprize.js
+353
-342
No files found.
taobao_mini/client/pages/myprize/myprize.js
View file @
43e610df
...
@@ -72,7 +72,7 @@ Page({
...
@@ -72,7 +72,7 @@ Page({
const
t3
=
new
Date
(
endTime
).
getMinutes
()
+
''
;
//获取分
const
t3
=
new
Date
(
endTime
).
getMinutes
()
+
''
;
//获取分
const
t4
=
new
Date
(
endTime
).
getSeconds
()
+
''
;
//获取秒
const
t4
=
new
Date
(
endTime
).
getSeconds
()
+
''
;
//获取秒
console
.
log
(
endTime
,
new
Date
(
endTime
+
48
*
60
*
60
*
1000
).
toLocaleString
(),
'endTime'
);
console
.
log
(
endTime
,
new
Date
(
endTime
+
48
*
60
*
60
*
1000
).
toLocaleString
(),
'endTime'
);
console
.
log
(
'endtime str'
,
t1
+
""
+
t2
.
padStart
(
2
,
'0'
)
+
":"
+
t3
.
padStart
(
2
,
'0'
)
+
":"
+
t4
.
padStart
(
2
,
'0'
))
console
.
log
(
'endtime str'
,
t1
+
""
+
t2
.
padStart
(
2
,
'0'
)
+
":"
+
t3
.
padStart
(
2
,
'0'
)
+
":"
+
t4
.
padStart
(
2
,
'0'
))
this
.
setData
({
this
.
setData
({
endTime
:
t1
+
""
+
t2
.
padStart
(
2
,
'0'
)
+
":"
+
t3
.
padStart
(
2
,
'0'
)
+
":"
+
t4
.
padStart
(
2
,
'0'
)
endTime
:
t1
+
""
+
t2
.
padStart
(
2
,
'0'
)
+
":"
+
t3
.
padStart
(
2
,
'0'
)
+
":"
+
t4
.
padStart
(
2
,
'0'
)
})
})
...
@@ -132,7 +132,7 @@ Page({
...
@@ -132,7 +132,7 @@ Page({
* 发奖
* 发奖
*/
*/
async
cloudTBIssue
(
params
)
{
async
cloudTBIssue
(
params
)
{
console
.
log
(
'cloudTBIssue params'
,
JSON
.
stringify
(
params
))
console
.
log
(
'cloudTBIssue params'
,
JSON
.
stringify
(
params
))
const
{
const
{
cloud
cloud
}
=
app
;
}
=
app
;
...
@@ -185,17 +185,17 @@ Page({
...
@@ -185,17 +185,17 @@ Page({
strategyCode
,
strategyCode
,
code
,
code
,
channel
channel
}).
then
(()
=>
{
}).
then
(()
=>
{
API
.
receivLaFeiPrize
({
id
}).
then
((
res
)
=>
{
API
.
receivLaFeiPrize
({
id
}).
then
((
res
)
=>
{
console
.
log
(
'receivLaFeiPrize res'
,
res
)
console
.
log
(
'receivLaFeiPrize res'
,
res
)
this
.
getMyPrize
()
this
.
getMyPrize
()
})
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
console
.
log
(
'receivLaFeiPrize error'
,
error
)
console
.
log
(
'receivLaFeiPrize error'
,
error
)
})
})
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
API
.
receivLaFeiPrize
({
result
:
err
})
API
.
receivLaFeiPrize
({
result
:
err
})
})
})
// const { activityId } = app;
// const { activityId } = app;
// console.log(item, '领取权益')
// console.log(item, '领取权益')
...
@@ -218,25 +218,36 @@ Page({
...
@@ -218,25 +218,36 @@ Page({
},
},
// 领取实物前询问
// 领取实物前询问
async
handleGetEntity
(
e
)
{
async
handleGetEntity
(
e
)
{
my
.
confirm
({
title
:
'领取奖品'
,
content
:
'是否允许访问您的粘贴板'
,
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
success
:
(
result
)
=>
{
if
(
result
.
confirm
)
{
const
text
=
'zzzxxx'
const
text
=
'zzzxxx'
commonToast
(
'请前去钉钉领取,钉钉号为:'
+
text
+
'。钉钉号已经复制成功。'
,
3000
);
setClipboard
({
setClipboard
({
text
:
`
${
text
}
`
text
:
`
${
text
}
`
}).
then
(()
=>
{
commonToast
(
' '
+
text
+
'。钉钉号已经复制成功。'
,
3000
);
}).
catch
(
err
=>
{
console
.
log
(
'handleGetEntity error'
,
err
)
})
})
}
},
fail
:
(
result
)
=>
{
// my.confirm({
commonToast
(
'访问剪贴板失败'
)
// title: '领取奖品',
}
// content: '是否允许访问您的粘贴板',
});
// confirmButtonText: '确认',
// cancelButtonText: '取消',
// success: (result) => {
// if (result.confirm) {
// const text = 'zzzxxx'
// setClipboard({
// text: `${text}`
// })
// commonToast('请前去钉钉领取,钉钉号为:' + text + '。钉钉号已经复制成功。', 3000);
// }
// },
// fail: (result) =>{
// commonToast('访问剪贴板失败')
// }
// });
// if (flag) {
// if (flag) {
...
...
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