This commit is contained in:
tcubic 2022-08-02 10:58:48 +08:00
parent 3d2c065a0f
commit 44faa5eb0f
2 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,7 @@
import axios from 'axios'
import QS from 'qs';
import store from '@/store'
console.log("API:",process.env.VUE_APP_API);
@ -11,7 +13,8 @@ const service = axios.create({
baseURL: process.env.VUE_APP_API,
// responseType: 'json',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
'Content-Type': 'application/x-www-form-urlencoded',
'token': store.state.userAccount.token
},
});

View File

@ -184,8 +184,14 @@ const btn = () => {
//
const drawBtn = () => {
console.log("抽奖:");
// console.log("",getAuthorize(1));
service.get(process.env.VUE_APP_API + '/cms88/card/qrcode/',cardId=store.state.userAccount.cardId )
.then((res) => {
console.log(res);
})
// console.log("",getAuthorize(1));
// if (h5plugin.getQueryString("forceauth")) {
// console.log("yes-forceauth");
// getAuthorize(0);