This commit is contained in:
tcubic 2022-08-08 17:23:14 +08:00
parent 6ad2f1368f
commit 1f3d09053e
3 changed files with 11 additions and 53 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 142 KiB

View File

@ -453,13 +453,10 @@ const activityBtn = (item) => {
if (item.id == 4) { if (item.id == 4) {
console.log("牛牛杯"); console.log("牛牛杯");
let urlTarget = "https://appstatic.cmschina.com/activity/cmszhyxpt/bees/index.html?id=INT_SMKTC_uD5KUL2d";
wx.miniProgram.redirectTo({url:urlTarget,});
// window.location.href =
// "https://appstatic.cmschina.com/activity/cmszhyxpt/bees/index.html?id=INT_SMKTC_uD5KUL2d"; window.location.href =
"https://appstatic.cmschina.com/activity/cmszhyxpt/bees/index.html?id=INT_SMKTC_uD5KUL2d";
// setTimeout(()=>{ // setTimeout(()=>{
// location.replace(location.href) // location.replace(location.href)
// },1000) // },1000)

View File

@ -63,15 +63,6 @@ const getBrithday = () => {
process.env.VUE_APP_API + "/cms-activity/cms88/user/isin/birthday", process.env.VUE_APP_API + "/cms-activity/cms88/user/isin/birthday",
{} {}
); );
// .then((res) => {
// console.log("", res.data.data);
// // store.state.userAccount.isBirthMon = 1
// store.commit({
// type: "updateBirthMoon",
// isBirthMon: res.data.data,
// // isBirthMon: 1,
// });
// });
}; };
// isInActivityDate 0 1 // isInActivityDate 0 1
@ -83,15 +74,6 @@ const getIsAddService = (id) => {
isInActivityDate, isInActivityDate,
{} {}
); );
// .then((res) => {
// console.log("", res.data);
// // store.state.userAccount.isBirthMon = res.data.data
// store.commit({
// type: "updateIsAddCustomer",
// // isBirthMon:res.data.data,
// isAddCustomer: res.data.data,
// });
// });
}; };
// //
@ -100,14 +82,6 @@ const getMyPrizeRecored = () => {
process.env.VUE_APP_API + "/cms-activity/cms88/prize/list", process.env.VUE_APP_API + "/cms-activity/cms88/prize/list",
{} {}
); );
// .then((res) => {
// console.log("", res.data);
// store.commit({
// type: "updatePrizeList",
// prizeList: res.data.data,
// });
// });
}; };
// - // -
@ -115,28 +89,14 @@ const gerCardId = (carid) => {
return service.get( return service.get(
process.env.VUE_APP_API + "/cms-activity/cms88/card/qrcode/" + carid process.env.VUE_APP_API + "/cms-activity/cms88/card/qrcode/" + carid
); );
// .then((res) => {
// console.log("", res.data.data);
// store.commit({
// type: "updateeEqcodeImg",
// eqcodeImg: res.data.data,
// });
// });
}; };
// //
const getInfo = () => { const getInfo = () => {
// return new Promise((resolve, reject) => {
// });
return service.post( return service.post(
process.env.VUE_APP_API + "/cms-activity/cms88/nkh/info", process.env.VUE_APP_API + "/cms-activity/cms88/nkh/info",
{} {}
); );
// .then((res) => {
// console.log("", res.data);
// });
}; };
// //
@ -211,14 +171,15 @@ onBeforeMount(() => {
if (h5plugin.isWX()) { if (h5plugin.isWX()) {
// console.log("code:", h5plugin.getQueryString("code")); // console.log("code:", h5plugin.getQueryString("code"));
if (h5plugin.getQueryString("code")) { // if (h5plugin.getQueryString("code")) {
// codeopenid // // codeopenid
authCode.value = h5plugin.getQueryString("code"); // authCode.value = h5plugin.getQueryString("code");
getOpenId(authCode.value); // getOpenId(authCode.value);
} else { // } else {
getCode(); // getCode();
} // }
apiAll();
// //
// if(h5plugin.getQueryString("openid")){ // if(h5plugin.getQueryString("openid")){