feat 修改去掉多余的console
This commit is contained in:
parent
c13fdf88fd
commit
b8aae5ee73
@ -74,12 +74,10 @@ Component({
|
||||
methods: {
|
||||
clickHandle(e) {
|
||||
// 点击加入历史记录
|
||||
console.log(this.data.goods.spuId,'看看点击商品卡的id');
|
||||
let data = {
|
||||
goodsGuid: this.data.goods.spuId
|
||||
}
|
||||
addOrUpdateGoodsBrowsingHistory(data).then((res) => {
|
||||
console.log(res);
|
||||
})
|
||||
this.triggerEvent('click', { goods: this.data.goods });
|
||||
},
|
||||
|
@ -106,7 +106,6 @@ Component({
|
||||
goodsSkuId: selectedSkuId,
|
||||
cartGoodsNum: buyNum
|
||||
}
|
||||
// console.log(data, '加入购物车的数据');
|
||||
|
||||
// 添加购物车接口
|
||||
addOrUpdateCart(data).then((res) => {
|
||||
@ -206,7 +205,6 @@ Component({
|
||||
},
|
||||
|
||||
chooseSpecItem(e) {
|
||||
console.log(e);
|
||||
const {
|
||||
specList
|
||||
} = this.data.details;
|
||||
|
@ -350,7 +350,6 @@ Component({
|
||||
|
||||
// 总处理
|
||||
setBuyNum(buyNum) {
|
||||
console.log(buyNum, 'setBuyNum');
|
||||
this.setData({
|
||||
buyNum,
|
||||
});
|
||||
|
@ -52,7 +52,6 @@ export async function genSettleDetail(params) {
|
||||
totalDeliveryFee
|
||||
} = params;
|
||||
|
||||
console.log(totalDeliveryFee, '参数是什么');
|
||||
|
||||
const resp = {
|
||||
data: {
|
||||
@ -106,7 +105,6 @@ export async function genSettleDetail(params) {
|
||||
|
||||
// 判断是否携带优惠券数据
|
||||
const discountPrice = [];
|
||||
console.log(couponList, '计算一下');
|
||||
if (couponList && couponList.length > 0) {
|
||||
couponList.forEach((coupon) => {
|
||||
if (coupon.status === 'default') {
|
||||
@ -183,7 +181,6 @@ export async function genSettleDetail(params) {
|
||||
storeGoods.skuDetailVos = list
|
||||
storeGoodsList.push(storeGoods)
|
||||
})
|
||||
console.log(storeGoodsList, '看看成果');
|
||||
|
||||
const list = transformGoodsDataToConfirmData(goodsRequestList);
|
||||
|
||||
|
@ -148,7 +148,6 @@ Page({
|
||||
currentStore.isSelected = isSelected;
|
||||
currentStore.promotionGoodsList.forEach((activity) => {
|
||||
activity.goodsPromotionList.forEach((goods) => {
|
||||
console.log(goods.cartId,'asdasd');
|
||||
this.selectGoodsService(goods.cartId, isSelected)
|
||||
});
|
||||
});
|
||||
@ -173,7 +172,6 @@ Page({
|
||||
// 删除加购商品
|
||||
// 注:实际场景时应该调用接口
|
||||
deleteGoodsService(cartId) {
|
||||
// console.log(cartId,'删除的id');
|
||||
return deleteCart(cartId)
|
||||
},
|
||||
|
||||
@ -227,7 +225,6 @@ Page({
|
||||
|
||||
// 修改购物车的商品数量
|
||||
onQuantityChange(e) {
|
||||
console.log(e.detail, '加够的信息');
|
||||
const {
|
||||
goods: {
|
||||
spuId,
|
||||
@ -328,7 +325,6 @@ Page({
|
||||
// selector: '#t-toast',
|
||||
// message: `${isAllSelected ? '取消' : '点击'}了全选按钮`,
|
||||
// });
|
||||
// console.log(isAllSelected);
|
||||
// 调用接口改变全选
|
||||
selectAllCartGoods({isSelected: !isAllSelected}).then((res) => {
|
||||
if(res.code === 200){
|
||||
|
@ -27,8 +27,6 @@ Component({
|
||||
},
|
||||
|
||||
closePromotionPopup() {
|
||||
console.log(this.list);
|
||||
|
||||
this.triggerEvent('closePromotionPopup', {
|
||||
show: false,
|
||||
});
|
||||
|
@ -160,8 +160,6 @@ Page({
|
||||
})
|
||||
}
|
||||
this.getDetail(this.data.spuId)
|
||||
// console.log(this.data.details.spuId, '点击收藏的id');
|
||||
// console.log("点击收藏");
|
||||
} else {
|
||||
wx.switchTab({
|
||||
url: url,
|
||||
@ -233,7 +231,6 @@ Page({
|
||||
});
|
||||
this.selectSpecsName(selectedSkuValues.length > 0 ? selectedAttrStr : '');
|
||||
if (skuItem) {
|
||||
console.log(skuItem[0], '选中的item');
|
||||
this.setData({
|
||||
selectedSkuId: skuItem[0]?.skuId,
|
||||
selectItem: skuItem,
|
||||
@ -257,7 +254,6 @@ Page({
|
||||
getSelectedSkuValues(skuTree, selectedSku) {
|
||||
const normalizedTree = this.normalizeSkuTree(skuTree);
|
||||
return Object.keys(selectedSku).reduce((selectedValues, skuKeyStr) => {
|
||||
console.log(selectedSku, 'sku啊');
|
||||
const skuValues = normalizedTree[skuKeyStr];
|
||||
const skuValueId = selectedSku[skuKeyStr];
|
||||
if (skuValueId !== '') {
|
||||
@ -334,7 +330,6 @@ Page({
|
||||
goodsSkuId: selectedSkuId,
|
||||
cartGoodsNum: buyNum
|
||||
}
|
||||
console.log(data, '加入购物车的数据');
|
||||
|
||||
// 添加购物车接口
|
||||
addOrUpdateCart(data).then((res) => {
|
||||
@ -354,7 +349,6 @@ Page({
|
||||
},
|
||||
|
||||
gotoBuy(type) {
|
||||
console.log(type);
|
||||
const {
|
||||
isAllSelectedSku,
|
||||
buyNum,
|
||||
@ -394,7 +388,6 @@ Page({
|
||||
thumb: this.data.details.primaryImage,
|
||||
title: this.data.details.title,
|
||||
};
|
||||
console.log(query, '从立刻购买来的');
|
||||
let urlQueryStr = obj2Params({
|
||||
goodsRequestList: JSON.stringify([query]),
|
||||
});
|
||||
|
@ -68,7 +68,6 @@ Page({
|
||||
} else {
|
||||
// params.goodsSort = 1;
|
||||
}
|
||||
console.log(minVal,'最小价格');
|
||||
params.minPrice = minVal ? minVal : 0;
|
||||
params.maxPrice = maxVal ? maxVal : 0;
|
||||
if (reset) return params;
|
||||
@ -196,7 +195,6 @@ Page({
|
||||
onMinValAction(e) {
|
||||
const { value } = e.detail;
|
||||
this.setData({ minVal: value });
|
||||
console.log(this.data.minVal,'最凶啊');
|
||||
},
|
||||
|
||||
onMaxValAction(e) {
|
||||
|
@ -81,7 +81,6 @@ Page({
|
||||
} else {
|
||||
params.goodsSort = 1;
|
||||
}
|
||||
console.log(minVal, 'minVal', maxVal, 'maxVal');
|
||||
if (minVal) {
|
||||
params.minPrice = minVal * 100
|
||||
}
|
||||
@ -102,7 +101,6 @@ Page({
|
||||
goodsList = []
|
||||
} = this.data;
|
||||
const params = this.generalQueryData(reset);
|
||||
console.log(params);
|
||||
if (loadMoreStatus !== 0) return;
|
||||
this.setData({
|
||||
loadMoreStatus: 1,
|
||||
@ -116,9 +114,6 @@ Page({
|
||||
result,
|
||||
totalPage = 0
|
||||
} = data;
|
||||
// console.log(data, 'data');
|
||||
// console.log(result, 'result');
|
||||
// console.log(totalPage, 'totalPage');
|
||||
if (totalPage === 0 && reset) {
|
||||
this.total = totalPage;
|
||||
this.setData({
|
||||
|
@ -42,7 +42,6 @@ Page({
|
||||
historyWords: res.data,
|
||||
});
|
||||
} else {
|
||||
console.log(res.msg);
|
||||
}
|
||||
});
|
||||
} catch (error) {
|
||||
@ -58,7 +57,6 @@ Page({
|
||||
popularWords: res.data,
|
||||
});
|
||||
} else {
|
||||
console.log(res.msg);
|
||||
}
|
||||
});
|
||||
} catch (error) {
|
||||
@ -74,8 +72,6 @@ Page({
|
||||
deleteType,
|
||||
deleteIndex
|
||||
} = this;
|
||||
// console.log('deleteType', deleteType, 'deleteIndex', deleteIndex);
|
||||
// console.log(historyWords);
|
||||
if (deleteType === 0) {
|
||||
const deleteWord = historyWords[deleteIndex];
|
||||
historyWords.splice(deleteIndex, 1);
|
||||
|
@ -158,7 +158,6 @@ Page({
|
||||
pageSize: pageSize,
|
||||
goodsCategoryGuid: this.data.categoryGuid
|
||||
}
|
||||
console.log(params, '看看参数');
|
||||
try {
|
||||
const nextList = await fetchGoodsList(params);
|
||||
this.setData({
|
||||
@ -189,7 +188,6 @@ Page({
|
||||
|
||||
// 加入购物车
|
||||
goodListAddCartHandle(type) {
|
||||
console.log(type);
|
||||
this.setData({
|
||||
buyType: 0,
|
||||
outOperateStatus: 1,
|
||||
|
@ -109,7 +109,6 @@ Page({
|
||||
});
|
||||
return getOrderRefundList(params)
|
||||
.then((res) => {
|
||||
console.log(res,'售后订单列表');
|
||||
this.page.num++;
|
||||
let dataList = [];
|
||||
let { tabs } = this.data;
|
||||
|
@ -214,7 +214,6 @@ Page({
|
||||
amountTip: `最多可申请退款¥ ${orderAmt},含发货运费¥ ${freightFee}`,
|
||||
// maxApplyNum: res.data.numOfSkuAvailable,
|
||||
});
|
||||
console.log(this.data, 'asdasdasdasdasd');
|
||||
} catch (err) {
|
||||
wx.hideLoading();
|
||||
throw err;
|
||||
@ -466,7 +465,6 @@ Page({
|
||||
params.CustomerRefundImg = this.data.sessionFrom.rightsImageUrls.map(item => item.url).join(',')
|
||||
}
|
||||
}
|
||||
console.log(params);
|
||||
this.setData({
|
||||
submitting: true
|
||||
});
|
||||
|
@ -11,7 +11,6 @@ Component({
|
||||
service: {
|
||||
type: Object,
|
||||
observer(service) {
|
||||
console.log(service,'看看service');
|
||||
const buttonsRight = service.buttons || service.buttonVOs || [];
|
||||
this.setData({
|
||||
buttons: {
|
||||
|
@ -160,7 +160,6 @@ Component({
|
||||
//取消订单
|
||||
onCancel(order) {
|
||||
|
||||
console.log(order, '看看order先');
|
||||
// 待支付取消
|
||||
if (order.status === 1) {
|
||||
let data = {
|
||||
@ -240,7 +239,6 @@ Component({
|
||||
|
||||
wxRepay(data).then((res) => {
|
||||
this.handlePay(res.data,order).then((res) => {
|
||||
console.log(res);
|
||||
})
|
||||
})
|
||||
},
|
||||
@ -256,7 +254,6 @@ Component({
|
||||
|
||||
// 申请售后
|
||||
onApplyRefund(order) {
|
||||
console.log(order, '这里的参数');
|
||||
const goods = order.goodsList[this.properties.goodsIndex];
|
||||
const params = {
|
||||
orderGuid: order.Guid,
|
||||
@ -323,7 +320,6 @@ Component({
|
||||
tradeNo: outTradeNo,
|
||||
transactionId: transactionId,
|
||||
};
|
||||
console.log(payOrderInfo, '支付信息');
|
||||
|
||||
// if (channel === 'wechat') {
|
||||
wechatPayOrder(payOrderInfo);
|
||||
|
@ -61,7 +61,6 @@ Component({
|
||||
selectedCoupons,
|
||||
storeId,
|
||||
}).then((res) => {
|
||||
// console.log(res,'res来咯');
|
||||
// this.initData(res);
|
||||
});
|
||||
}
|
||||
@ -81,13 +80,11 @@ Component({
|
||||
const {
|
||||
couponResultList = [], reduce = 0
|
||||
} = data;
|
||||
console.log(data,'data来咯');
|
||||
const selectedList = [];
|
||||
let selectedNum = 0;
|
||||
const couponsList =
|
||||
couponResultList &&
|
||||
couponResultList.map((coupon) => {
|
||||
console.log(coupon,'优惠价');
|
||||
if (coupon.status === 1) {
|
||||
selectedNum++;
|
||||
selectedList.push({
|
||||
@ -150,12 +147,10 @@ Component({
|
||||
},
|
||||
coupons(coupon = {}) {
|
||||
return new Promise((resolve, reject) => {
|
||||
console.log(coupon,'coupon里有什么');
|
||||
const {
|
||||
storeId
|
||||
} =
|
||||
this.data;
|
||||
console.log(storeId);
|
||||
if (coupon?.selectedCoupons) {
|
||||
let data = {
|
||||
couponResultList: [],
|
||||
|
@ -16,7 +16,6 @@ Page({
|
||||
} catch (e) {
|
||||
console.warn('物流节点数据解析失败', e);
|
||||
}
|
||||
console.log(data.nodes,'查看节点');
|
||||
if (Number(query.source) === 2) {
|
||||
const service = {
|
||||
company: data.logisticsCompanyName,
|
||||
|
@ -127,7 +127,6 @@ Page({
|
||||
showCancelButton: true,
|
||||
emptyTip: '请选择物流公司',
|
||||
}).then((indexes) => {
|
||||
console.log(indexes);
|
||||
this.setData({
|
||||
deliveryCompany: deliveryCompanyList[indexes[0]],
|
||||
});
|
||||
@ -183,7 +182,6 @@ Page({
|
||||
expressNo: trackingNo,
|
||||
customerWaybillRemark: remark,
|
||||
};
|
||||
console.log(params,'填写运单号参数');
|
||||
const api = this.isChange ? create : update;
|
||||
this.setData({
|
||||
submitting: true
|
||||
|
@ -103,7 +103,6 @@ Page({
|
||||
// 从购物车跳转过来时,获取传入的商品列表数据
|
||||
const goodsRequestListJson = wx.getStorageSync('order.goodsRequestList');
|
||||
goodsRequestList = JSON.parse(goodsRequestListJson);
|
||||
console.log(goodsRequestList, '数据看看');
|
||||
} else if (typeof options.goodsRequestList === 'string') {
|
||||
goodsRequestList = JSON.parse(options.goodsRequestList);
|
||||
}
|
||||
@ -135,10 +134,8 @@ Page({
|
||||
}
|
||||
await getGoodsFreight(data).then((res) => {
|
||||
params.totalDeliveryFee = res.data
|
||||
console.log(this.data.settleDetailData, '运费');
|
||||
})
|
||||
}
|
||||
console.log(params, '计算参数');
|
||||
fetchSettleDetail(params).then(
|
||||
(res) => {
|
||||
this.setData({
|
||||
@ -157,7 +154,6 @@ Page({
|
||||
// 转换商品卡片显示数据
|
||||
const data = this.handleResToGoodsCard(resData);
|
||||
this.userAddressReq = resData.userAddress;
|
||||
console.log(data,'看看data');
|
||||
|
||||
if (resData.userAddress) {
|
||||
this.setData({
|
||||
@ -477,7 +473,6 @@ Page({
|
||||
if (invoiceData && invoiceData.email) {
|
||||
params.invoiceRequest = invoiceData;
|
||||
}
|
||||
console.log(params, '下单参数!');
|
||||
/** 提交订单方法(接口) */
|
||||
commitPay(params).then(
|
||||
(res) => {
|
||||
@ -485,13 +480,11 @@ Page({
|
||||
const {
|
||||
data
|
||||
} = res;
|
||||
console.log(res, '后端接口返回调起微信支付的参数');
|
||||
// 提交出现 失效 不在配送范围 限购的商品 提示弹窗
|
||||
if (this.isInvalidOrder(data)) {
|
||||
return;
|
||||
}
|
||||
if (res.code === 200) {
|
||||
console.log("正在调起支付");
|
||||
this.handlePay(data, settleDetailData);
|
||||
} else {
|
||||
Toast({
|
||||
@ -586,7 +579,6 @@ Page({
|
||||
tradeNo: outTradeNo,
|
||||
transactionId: transactionId,
|
||||
};
|
||||
console.log(payOrderInfo, '支付信息');
|
||||
|
||||
// if (channel === 'wechat') {
|
||||
wechatPayOrder(payOrderInfo);
|
||||
@ -627,9 +619,7 @@ Page({
|
||||
storeCoupon.couponList,
|
||||
};
|
||||
});
|
||||
console.log(tempSubmitCouponList,'查看确定优惠券 temp');
|
||||
const resSubmitCouponList = this.handleCouponList(tempSubmitCouponList);
|
||||
console.log(resSubmitCouponList,'查看确定优惠券 res');
|
||||
|
||||
//确定选择优惠券
|
||||
this.handleOptionsParams({
|
||||
|
@ -102,7 +102,6 @@ Page({
|
||||
OrderGuid: this.data.orderGuid,
|
||||
};
|
||||
return getOrderDetails(params).then((res) => {
|
||||
console.log(res.data, 'res');
|
||||
const order = res.data;
|
||||
const _order = {
|
||||
id: order.orderId,
|
||||
@ -137,7 +136,6 @@ Page({
|
||||
receiverAddress: this.composeAddress(order),
|
||||
// groupInfoVo: order.groupInfoVo,
|
||||
};
|
||||
console.log(_order);
|
||||
this.setData({
|
||||
order,
|
||||
_order,
|
||||
|
@ -140,7 +140,6 @@ Page({
|
||||
});
|
||||
return getOrderList(params)
|
||||
.then((res) => {
|
||||
// console.log(res);
|
||||
this.page.num++;
|
||||
let orderList = [];
|
||||
if (res && res.data && res.data.result) {
|
||||
@ -178,7 +177,6 @@ Page({
|
||||
freightFee: order.expressPrice,
|
||||
};
|
||||
});
|
||||
// console.log(orderList);
|
||||
}
|
||||
return new Promise((resolve) => {
|
||||
if (reset) {
|
||||
@ -191,7 +189,6 @@ Page({
|
||||
orderList: this.data.orderList.concat(orderList),
|
||||
listLoading: orderList.length > 0 ? 0 : 2,
|
||||
});
|
||||
// console.log(orderList);
|
||||
});
|
||||
})
|
||||
.catch((err) => {
|
||||
@ -207,14 +204,12 @@ Page({
|
||||
},
|
||||
|
||||
onTabChange(e) {
|
||||
// console.log(e);
|
||||
const {
|
||||
value
|
||||
} = e.detail;
|
||||
this.setData({
|
||||
status: value,
|
||||
});
|
||||
// console.log(value);
|
||||
this.refreshList(value);
|
||||
},
|
||||
|
||||
|
@ -116,7 +116,6 @@ Page({
|
||||
} else {
|
||||
// params.goodsSort = 1;
|
||||
}
|
||||
console.log(minVal, '最小价格');
|
||||
params.minPrice = minVal ? minVal : 0;
|
||||
params.maxPrice = maxVal ? maxVal : 0;
|
||||
if (reset) return params;
|
||||
@ -348,7 +347,6 @@ Page({
|
||||
query2
|
||||
.selectAll('.title')
|
||||
.boundingClientRect((rects) => {
|
||||
console.log(rects, '123123123');
|
||||
this.offsetTopList = rects.map((item) => item.top);
|
||||
this.setData({
|
||||
scrollTop: rects[sideBarIndex].top
|
||||
|
@ -164,13 +164,11 @@ Page({
|
||||
// ...v,
|
||||
// ...orderInfo[index],
|
||||
// }));
|
||||
console.log(collectData, '数据');
|
||||
this.data.orderTagInfos[0].orderNum = collectData.waitPayCount
|
||||
this.data.orderTagInfos[1].orderNum = collectData.deliverCount
|
||||
this.data.orderTagInfos[2].orderNum = collectData.packageCount
|
||||
this.data.orderTagInfos[3].orderNum = collectData.commentCount
|
||||
this.data.orderTagInfos[4].orderNum = collectData.exchangCount
|
||||
console.log(this.data.orderTagInfos, 'asdasdasd');
|
||||
this.setData({
|
||||
userInfo,
|
||||
collectData,
|
||||
@ -309,7 +307,6 @@ Page({
|
||||
code: res.code
|
||||
}).then((res) => {
|
||||
wx.setStorageSync('openId', res.data)
|
||||
console.log(res.data, '获取来的OpenId');
|
||||
})
|
||||
},
|
||||
});
|
||||
@ -332,7 +329,6 @@ Page({
|
||||
// 获取客服列表
|
||||
onGetCustomerServiceList() {
|
||||
getCustomerServiceList().then((res) => {
|
||||
console.log(res);
|
||||
if (res.code == 200) {
|
||||
this.setData({
|
||||
CustomerService: res.data[0]
|
||||
|
@ -21,7 +21,6 @@ Page({
|
||||
|
||||
/** 登出 */
|
||||
logOut(){
|
||||
console.log(111);
|
||||
logout();
|
||||
},
|
||||
|
||||
@ -31,7 +30,6 @@ Page({
|
||||
onLoad(options) {
|
||||
getPlatformSpecList().then((res) => {
|
||||
if(res.code === 200){
|
||||
console.log(res,'平台数据');
|
||||
this.setData({
|
||||
platformSpecList: res.data
|
||||
})
|
||||
|
@ -57,7 +57,6 @@ export function dispatchCommitPay(params) {
|
||||
// return new Promise((resolve) => {
|
||||
// resolve('real api');
|
||||
// });
|
||||
console.log(params,'提交订单参数');
|
||||
return new Promise((resolve, reject) => {
|
||||
request({
|
||||
url: `WxPay/wxPay`,
|
||||
|
@ -96,7 +96,6 @@ export const payFail = (payOrderInfo, resultMsg) => {
|
||||
duration: 2000,
|
||||
icon: 'close-circle',
|
||||
});
|
||||
console.log(resultMsg,'错误信息');
|
||||
setTimeout(() => {
|
||||
wx.redirectTo({
|
||||
url: '/pages/order/order-list/index'
|
||||
|
Loading…
Reference in New Issue
Block a user