去除多余console
This commit is contained in:
@ -41,8 +41,6 @@ export default {
|
||||
this.toLaunch();
|
||||
return;
|
||||
}
|
||||
console.log(this.$store.getters.token, '获取store里面的 token');
|
||||
console.log(this.$store.getters.userInfo, '获取store里面的 userInfo');
|
||||
cookie.get("spread");
|
||||
// this.toLaunch();
|
||||
if (this.$deviceType == 'app') {
|
||||
@ -61,7 +59,6 @@ export default {
|
||||
methods: {
|
||||
...mapActions(["changeAuthorization", "setUserInfo"]),
|
||||
toLaunch() {
|
||||
console.log(this);
|
||||
this.changeAuthorization(false);
|
||||
this.$yrouter.switchTab({
|
||||
path: "/pages/home/index"
|
||||
|
@ -114,7 +114,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
changeTime: function(index) {
|
||||
console.log(index);
|
||||
this.active = index;
|
||||
this.getSeckillList();
|
||||
},
|
||||
|
@ -235,7 +235,6 @@ export default {
|
||||
},
|
||||
mountedStart: function() {
|
||||
var that = this;
|
||||
console.log(that);
|
||||
let id = that.$yroute.query.id;
|
||||
getCombinationDetail(id).then(res => {
|
||||
that.userCollect = res.data.userCollect;
|
||||
|
@ -199,7 +199,6 @@ export default {
|
||||
if (that.attr.cartAttr == false) {
|
||||
that.attr.cartAttr = !this.attr.attrcartAttr;
|
||||
} else {
|
||||
console.log(that.storeInfo);
|
||||
var data = {};
|
||||
data.productId = that.storeInfo.productId;
|
||||
data.cartNum = that.attr.productSelect.cart_num;
|
||||
@ -208,7 +207,6 @@ export default {
|
||||
data.new = 1;
|
||||
postCartAdd(data)
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
that.$yrouter.push({
|
||||
path: "/pages/order/OrderSubmission/index",
|
||||
query: { id: res.data.cartId }
|
||||
|
@ -213,7 +213,6 @@ export default {
|
||||
title: '加载中'
|
||||
});
|
||||
getHomeData().then(res => {
|
||||
console.log(res);
|
||||
that.logoUrl = res.data.logoUrl;
|
||||
that.$set(that, 'banner', res.data.banner);
|
||||
that.$set(that, 'menus', res.data.menus);
|
||||
@ -246,7 +245,6 @@ export default {
|
||||
});
|
||||
},
|
||||
goGoodsCon(item) {
|
||||
console.log(item);
|
||||
this.$yrouter.push({
|
||||
path: '/pages/shop/GoodsCon/index',
|
||||
query: { id: item.id }
|
||||
|
@ -46,7 +46,6 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
let type = this.$yroute.query.type;
|
||||
console.log(2222)
|
||||
if (type) {
|
||||
}
|
||||
|
||||
@ -54,7 +53,6 @@ export default {
|
||||
// }
|
||||
},
|
||||
onHide() {
|
||||
console.log("清除状态");
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
@ -514,7 +514,6 @@ export default {
|
||||
});
|
||||
},
|
||||
goGroupRule(orderInfo) {
|
||||
console.log(orderInfo)
|
||||
this.$yrouter.push({
|
||||
path: "/pages/activity/GroupRule/index",
|
||||
query: {
|
||||
|
@ -345,7 +345,6 @@
|
||||
},
|
||||
changeUseIntegral: function(e) {
|
||||
// this.computedPrice();
|
||||
console.log(e)
|
||||
this.useIntegral = e.mp.detail.value[0];
|
||||
},
|
||||
computedPrice() {
|
||||
@ -486,22 +485,6 @@
|
||||
if (this.$deviceType == 'app') {
|
||||
form.form = 'app'
|
||||
}
|
||||
console.log(this.orderGroupInfo.orderKey, {
|
||||
realName: this.contacts,
|
||||
phone: this.contactsTel,
|
||||
addressId: this.addressInfo.id,
|
||||
useIntegral: this.useIntegral ? 1 : 0,
|
||||
couponId: this.usableCoupon.id || 0,
|
||||
payType: this.active,
|
||||
pinkId: this.pinkId,
|
||||
seckillId: this.orderGroupInfo.seckill_id,
|
||||
combinationId: this.orderGroupInfo.combination_id,
|
||||
bargainId: this.orderGroupInfo.bargain_id,
|
||||
from: this.from,
|
||||
mark: this.mark || "",
|
||||
shippingType: parseInt(shipping_type) + 1,
|
||||
...form
|
||||
})
|
||||
createOrder(this.orderGroupInfo.orderKey, {
|
||||
realName: this.contacts,
|
||||
phone: this.contactsTel,
|
||||
@ -519,7 +502,6 @@
|
||||
...form
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res)
|
||||
uni.hideLoading();
|
||||
const data = res.data;
|
||||
switch (data.status) {
|
||||
@ -565,7 +547,6 @@
|
||||
break;
|
||||
case "WECHAT_PAY":
|
||||
weappPay(data.result.jsConfig).then(res => {
|
||||
console.log(res)
|
||||
this.$yrouter.replace({
|
||||
path: "/pages/order/OrderDetails/index",
|
||||
query: {
|
||||
|
@ -257,9 +257,7 @@ export default {
|
||||
},
|
||||
computed: mapGetters(["isLogin"]),
|
||||
mounted: function() {
|
||||
console.log(this);
|
||||
let url = handleQrCode();
|
||||
console.log(url);
|
||||
if (url && url.productId) {
|
||||
this.id = url.productId;
|
||||
} else {
|
||||
@ -329,7 +327,6 @@ export default {
|
||||
if (this.$deviceType == "app") {
|
||||
form.form = "app";
|
||||
}
|
||||
console.log(form, 2222);
|
||||
getProductDetail(that.id, form)
|
||||
.then(res => {
|
||||
that.$set(that, "storeInfo", res.data.storeInfo);
|
||||
@ -500,7 +497,6 @@ export default {
|
||||
},
|
||||
changeattr: function(msg) {
|
||||
this.attr.cartAttr = msg;
|
||||
console.log(this.attr, msg);
|
||||
this.isOpen = false;
|
||||
},
|
||||
//选择属性;
|
||||
|
@ -177,7 +177,6 @@ export default {
|
||||
// document.title = this.title || this.$yroute.meta.title;
|
||||
},
|
||||
get_product_list() {
|
||||
console.log("请求李贝奥");
|
||||
var that = this;
|
||||
this.setWhere();
|
||||
// if (to.name !== "GoodsList") return;
|
||||
|
@ -193,7 +193,6 @@ export default {
|
||||
// },
|
||||
watch: {
|
||||
userInfo(user) {
|
||||
console.log(user, '用户信息,8585');
|
||||
if (user.uid) {
|
||||
this.carnum();
|
||||
this.countMoney();
|
||||
@ -202,7 +201,6 @@ export default {
|
||||
}
|
||||
},
|
||||
token(token) {
|
||||
console.log(token, '用户token,8585');
|
||||
if (this.userInfo.uid) {
|
||||
this.carnum();
|
||||
this.countMoney();
|
||||
@ -348,7 +346,6 @@ export default {
|
||||
});
|
||||
return;
|
||||
}
|
||||
console.log(id);
|
||||
this.$yrouter.push({
|
||||
path: '/pages/order/OrderSubmission/index',
|
||||
query: {
|
||||
|
@ -285,7 +285,6 @@
|
||||
this.current = index;
|
||||
},
|
||||
async submit() {
|
||||
console.log("spread:" + cookie.get("spread"));
|
||||
const {
|
||||
account,
|
||||
password
|
||||
|
@ -235,7 +235,7 @@ export default {
|
||||
})
|
||||
.catch(err => {});
|
||||
} else if (res.cancel) {
|
||||
console.log("用户点击取消");
|
||||
// console.log("用户点击取消");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -220,7 +220,6 @@ export default {
|
||||
this.$yrouter.push("/pages/user/PersonalData/index");
|
||||
},
|
||||
getPhoneNumber: function(e) {
|
||||
console.log(e.mp.detail);
|
||||
// 判断一下这里是不是小程序 如果是小程序,走获取微信手机号进行绑定
|
||||
if (e.mp.detail.errMsg == "getPhoneNumber:ok") {
|
||||
uni.showLoading({
|
||||
@ -230,7 +229,6 @@ export default {
|
||||
uni.getProvider({
|
||||
service: "oauth",
|
||||
success: function(res) {
|
||||
console.log(res.provider);
|
||||
// 此处可以排除h5
|
||||
if (res.provider) {
|
||||
uni.login({
|
||||
@ -324,8 +322,6 @@ export default {
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
console.log(this.$store.getters.token);
|
||||
console.log(this.userInfo);
|
||||
if (this.$store.getters.token) {
|
||||
this.User();
|
||||
this.MenuUser();
|
||||
|
@ -133,7 +133,6 @@ export default {
|
||||
this.address.province = e.labelArr[0] || "";
|
||||
this.address.city = e.labelArr[1] || "";
|
||||
this.address.district = e.labelArr[2] || "";
|
||||
console.log(this.pickerText);
|
||||
},
|
||||
getUserAddress: function() {
|
||||
if (!this.id) return false;
|
||||
|
@ -131,8 +131,7 @@ export default {
|
||||
that.loaded = res.data.length < that.where.limit;
|
||||
that.loadTitle = that.loaded ? "人家是有底线的" : "上拉加载更多";
|
||||
that.where.page = that.where.page + 1;
|
||||
that.list.push.apply(that.list, res.data);
|
||||
console.log(that.list)
|
||||
that.list.push.apply(that.list, res.data);
|
||||
},
|
||||
err => {
|
||||
uni.showToast({
|
||||
|
Reference in New Issue
Block a user