更新
This commit is contained in:
parent
3d2c065a0f
commit
44faa5eb0f
@ -1,5 +1,7 @@
|
|||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import QS from 'qs';
|
import QS from 'qs';
|
||||||
|
import store from '@/store'
|
||||||
|
|
||||||
|
|
||||||
console.log("API:",process.env.VUE_APP_API);
|
console.log("API:",process.env.VUE_APP_API);
|
||||||
|
|
||||||
@ -11,7 +13,8 @@ const service = axios.create({
|
|||||||
baseURL: process.env.VUE_APP_API,
|
baseURL: process.env.VUE_APP_API,
|
||||||
// responseType: 'json',
|
// responseType: 'json',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded'
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
|
'token': store.state.userAccount.token
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -184,8 +184,14 @@ const btn = () => {
|
|||||||
// 抽奖按钮
|
// 抽奖按钮
|
||||||
const drawBtn = () => {
|
const drawBtn = () => {
|
||||||
console.log("抽奖:");
|
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")) {
|
// if (h5plugin.getQueryString("forceauth")) {
|
||||||
// console.log("yes-forceauth");
|
// console.log("yes-forceauth");
|
||||||
// getAuthorize(0);
|
// getAuthorize(0);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user