Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
e9ecca37
Commit
e9ecca37
authored
Mar 21, 2020
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开播提醒
parent
24134a16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
+13
-1
src/api/live.js
+5
-0
src/components/livedModel/notStarted.vue
+8
-1
No files found.
src/api/live.js
View file @
e9ecca37
...
...
@@ -53,4 +53,8 @@ export default {
addLiveUserGoodsByUser
(
options
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/liveBroadcastInfo/addLiveUserGoodsByUser`
,
options
);
},
// 添加订阅和推送
addLiveNoticeByCustomer
(
options
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/broadcastReminderRecord/addLiveNoticeByCustomer`
,
options
);
},
};
\ No newline at end of file
src/components/livedModel/notStarted.vue
View file @
e9ecca37
...
...
@@ -9,6 +9,7 @@
</
template
>
<
script
type=
"text/ecmascript-6"
>
import
live
from
"@/api/live"
;
import
timeDown
from
"@/components/livedModel/timeDown"
;
export
default
{
props
:
[
"info"
],
...
...
@@ -27,13 +28,14 @@ export default {
onLoad
(
options
)
{
let
params
=
JSON
.
parse
(
options
.
params
);
this
.
liveId
=
params
.
liveId
;
console
.
log
(
this
.
info
,
"--------------------126"
);
console
.
log
(
params
,
"--------------------126"
);
this
.
startTime
=
this
.
info
.
startTime
;
},
mounted
()
{},
methods
:
{
// 开播提醒
remind
()
{
let
_this
=
this
;
console
.
log
(
"点击开播,'------------34"
);
try
{
const
subscribeMessageObj
=
this
.
$store
.
state
.
subscribeMessageObj
;
...
...
@@ -53,6 +55,11 @@ export default {
wx
.
requestSubscribeMessage
({
tmplIds
:
tmplIds
,
success
(
res
)
{
let
query
=
{
liveBroadcastId
:
Number
(
_this
.
liveId
),
openId
:
wx
.
getStorageSync
(
"openid"
),
}
live
.
addLiveNoticeByCustomer
(
query
).
then
(
res
=>
{});
console
.
log
(
"message success response: "
,
res
);
},
fail
(
res
)
{
...
...
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