diff --git a/src/components/Index.vue b/src/components/Index.vue index 40f42dc..e6ebb17 100644 --- a/src/components/Index.vue +++ b/src/components/Index.vue @@ -166,6 +166,7 @@ onBeforeMount(() => { getMyPrizeRecored(); getBrithday(); getActivityNum(); + getIsAddService() }); // 页面挂载后 @@ -281,7 +282,7 @@ const getMyPrizeRecored = ()=>{ const getIsAddService = ()=>{ let isInActivityDate = 0 service - .post(process.env.VUE_APP_API + "/cms-activity/cms88/qywx/isadded/"+ isInActivityDate) + .post(process.env.VUE_APP_API + "/cms-activity/cms88/qywx/isadded/"+ isInActivityDate,{}) .then((res) => { console.log("是否添加了企微",res); }); diff --git a/src/components/LuckyWheel.vue b/src/components/LuckyWheel.vue index 8f5e1bc..421b438 100644 --- a/src/components/LuckyWheel.vue +++ b/src/components/LuckyWheel.vue @@ -23,7 +23,7 @@
-
开始抽奖
+ diff --git a/src/page/Home/Home.vue b/src/page/Home/Home.vue index 3c8ed98..a27db03 100644 --- a/src/page/Home/Home.vue +++ b/src/page/Home/Home.vue @@ -79,19 +79,19 @@ const indexPage = (actions) => { // 授权获取code const getCode = () => { let redirect_uri = window.location.href; - service.post(process.env.VUE_APP_API + '/cms-activity/cms88/zsApi/xfhdAuthorize', + service.post(process.env.VUE_APP_API + '/cms-activity/cms88/zsApi/xfhdAuthorize?redirect_uri='+redirect_uri, // qs.stringify({ // redirect_uri: redirect_uri // }) - { - params:{ - redirect_uri: redirect_uri - } - }, + // { + // params:{ + // redirect_uri: redirect_uri + // } + // }, ).then((res) => { let code = res.data.data - console.log("get code",res); + console.log("get code292",res); // authCode.value = res.data.data // window.location.href = res.data.data })