测试
This commit is contained in:
parent
6ad2f1368f
commit
1f3d09053e
Binary file not shown.
|
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 142 KiB |
@ -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)
|
||||||
|
|||||||
@ -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")) {
|
||||||
// 存在code的话去换取openid
|
// // 存在code的话去换取openid
|
||||||
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")){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user