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

打点日志

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