Commit c778ed3a by zhanghaozhe

抽奖预约接口

parent 5b45331f
...@@ -137,17 +137,17 @@ class FormalDraw extends Component { ...@@ -137,17 +137,17 @@ class FormalDraw extends Component {
if (status == 3) { if (status == 3) {
this.draw(id) this.draw(id)
} else if (status == 2) { } else if (status == 2) {
this.subscribe() this.subscribe(id)
} }
} }
subscribe = () => { subscribe = (id) => {
var _czc = _czc || [] var _czc = _czc || []
_czc.push(["_trackEvent", '预约抽奖', 'm端双十一正式页-立即预约']) _czc.push(["_trackEvent", '预约抽奖', 'm端双十一正式页-立即预约'])
if (this.subscribePopupInstance) { if (this.subscribePopupInstance) {
return return
} }
http.get(`${API["base-api"]}/sys/activity/create_pre_qrcode`) http.get(`${API["base-api"]}/sys/activity/create_pre_qrcode`,{params:{id}})
.then(res => { .then(res => {
const {code, data, msg} = res.data const {code, data, msg} = res.data
if (code == 200) { if (code == 200) {
......
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