提交 1d956873 authored 作者: matian's avatar matian

update:打开注释代码部分

上级 d430092b
...@@ -76,16 +76,16 @@ export default { ...@@ -76,16 +76,16 @@ export default {
mounted() { mounted() {
this.id = this.$route.query.id;//从链接上获取活动id this.id = this.$route.query.id;//从链接上获取活动id
console.log(this.id) console.log(this.id)
// if(this.id == ''||this.id == undefined){ if(this.id == ''||this.id == undefined){
// this.isShowError = true; this.isShowError = true;
// return return
// } }
this.getSignInDetail(); //获取页面详情 this.getSignInDetail(); //获取页面详情
}, },
methods: { methods: {
getSignInDetail() { getSignInDetail() {
//调用签到详情接口 //调用签到详情接口
let id = this.id || "6833097708249546752"; let id = this.id;
signInDetail(id).then((res) => { signInDetail(id).then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.signInfo = res.data;//获取签到详情数据 this.signInfo = res.data;//获取签到详情数据
...@@ -111,7 +111,7 @@ export default { ...@@ -111,7 +111,7 @@ export default {
}, },
//签到接口 //签到接口
getSignIn(){ getSignIn(){
let id = this.id || "6833097708249546752";//从链接上获取活动id let id = this.id;//从链接上获取活动id
signIn(id).then((res)=>{ signIn(id).then((res)=>{
if (res.code == 0) { if (res.code == 0) {
this.status = res.data.status; //签到状态 this.status = res.data.status; //签到状态
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论