提交 315bf52c 编写于 作者: guangjun.yang's avatar guangjun.yang

打点日志

上级 bdf7640f
......@@ -49,7 +49,7 @@ export default {
watch: {
webUserInfo: {
handler(userInfo) {
console.log("userInfo", userInfo);
alert("userInfo", userInfo);
if (userInfo.id) {
this.getAllCoupons();
}
......@@ -79,7 +79,7 @@ export default {
}
window.__getUserInfo4CouponList = function(param) {
console.log("__getUserInfo4CouponList", param);
alert("__getUserInfo4CouponList", param);
_this.token = param.userToken;
_this.setUserInfo(param);
_this.getAllCoupons();
......@@ -96,14 +96,14 @@ export default {
let { token, info } = this.$store.state.user;
token = token || localStorage.getItem("couponToken") || getCookie("couponToken");
this.token = token;
console.log("token && !info.id", !info.id, "wef", token);
alert("token && !info.id", !info.id, "wef", token);
if (!token) {
console.log('this.goLogin()');
alert('this.goLogin()');
this.goLogin();
return;
}
if (token && !info.id) {
console.log('token && !info.id', token, info.id);
alert('token && !info.id', token, info.id);
this.commonCheckToken(() => {
this.$store.dispatch("getUserInfo");
});
......@@ -144,7 +144,7 @@ export default {
this.POST(`trade/coupon/app/receive/${couponId}`, {}).then(
({ code, data }) => {
if (code == "000000") {
console.log("data.description", data.description);
alert("data.description", data.description);
data.description && Toast(data.description);
this.searchCoupons();
}
......@@ -167,12 +167,13 @@ export default {
item.disabled = item.couponStatus == 0 || item.couponStatus == 1 || item.couponStatus == 4;
newList.push(item);
});
console.log(newList);
alert(newList);
return newList;
},
// 获取所有优惠券列表
getAllCoupons() {
alert('getAllCoupons');
this.commonCheckToken(() => {
let couponId = this.couponId;
if (couponId) {
......@@ -201,7 +202,7 @@ export default {
imgUrl: "https://file.yunqueyi.com/logo.png"
},
() => {
console.log("share success...");
alert("share success...");
}
);
if(this.fromPage) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册