Commit 6d630928 by 高淑倩

console

parent 07d75b1d
......@@ -84,7 +84,6 @@ Component({
}
},
swiperChange(e){
console.log(e)
this.setData({
swiperCurrent: e.detail.current
})
......
......@@ -127,7 +127,6 @@ Component({
//如果是在企业微信中 由于不支持observers属性方法,因此需要手动调用
const currentEnv = wx.getStorageSync('_qyWeChat');
if (currentEnv){
// console.log('its in qiye weixin')
this.calMaxHeight(heights);
}
......
......@@ -61,7 +61,6 @@ Component({
})
},
_selectCoupon(e){
console.log(e)
this.setData({
proData: e.detail
})
......
......@@ -44,7 +44,6 @@ Component({
let windowHeight = '';
wx.getSystemInfo({
success: function (res) {
console.log(res.windowHeight);
windowHeight = res.windowHeight
},
})
......@@ -52,7 +51,6 @@ Component({
let query = wx.createSelectorQuery().in (this);
query.select('#bottom-query').boundingClientRect(rect => {
let height = rect.height;
console.log(height)
this.setData({
shareHight: windowHeight - height + 'px'
})
......
......@@ -115,7 +115,6 @@ Component({
success: function (res) {
wx.hideLoading();
if (res.statusCode === 200) {
console.log('000',res.tempFilePath)
var codeSrc = res.tempFilePath;
that.sharePosteCanvas(productSrc, codeSrc, imgInfo);
} else {
......@@ -148,7 +147,6 @@ Component({
//canvas绘制分享海报
sharePosteCanvas: function (avaterSrc, codeSrc, imgInfo) {
console.log('----', this.data.productDesc)
wx.showLoading({
title: '生成中...',
......@@ -372,7 +370,6 @@ Component({
},
//快速分享到朋友圈
quickShare() {
console.log('222')
this.setData({
showpost: false
})
......
......@@ -14,7 +14,6 @@ Component({
}
},
attached() {
console.log('----', this.data.tabList)
this.setData({
categoryList: this.data.tabList
})
......
......@@ -76,7 +76,6 @@ Component({
maxDuration: 60,
camera: 'back',
success(res) {
console.log(res.tempFilePath)
const video = res.tempFilePath;
that.setData({
video: video
......
......@@ -81,8 +81,6 @@ wxService.page({
this.setData({
citys: [province, cityList, district]
})
console.log('++++', this.data.citys)
},
// 通过地址id查询
......@@ -141,7 +139,6 @@ wxService.page({
},
bindMultiPickerColumnChange(e) {
console.log('0000',e)
const detail = e.detail
const index = detail.value
let cityName = ''
......
......@@ -113,7 +113,6 @@ wxService.page({
cartList: cartList
}, function () {
this.setTotalFee()
console.log('减少', cartList[e])
this.inputProNumber(cartList[e]) // update
// this.editOk(cartList[e]) //调用完成
})
......@@ -142,7 +141,6 @@ wxService.page({
}, function () {
this.setTotalFee()
console.log('add', cartList[e])
this.inputProNumber(cartList[e]) // update
// this.editOk(cartList[e]) // add调用完成
})
......@@ -163,7 +161,6 @@ wxService.page({
cartList: cartList
}, function () {
this.setTotalFee()
console.log('blur', cartList[e.index])
this.inputProNumber(cartList[e.index]) //调用完成
})
......@@ -186,7 +183,6 @@ wxService.page({
cartList: cartList
}, function () {
this.setTotalFee()
console.log('input', cartList[e.index])
this.inputProNumber(cartList[e.index]) //调用完成
})
}
......@@ -267,7 +263,6 @@ wxService.page({
const { result, data } = res && res.data || res && res.result
if (result == 0) {
delete data.appId
console.log('dddd', data.amount)
let amount = data.amount || 0
wx.requestPayment(Object.assign({
success(res) {
......@@ -290,7 +285,6 @@ wxService.page({
},
// 调整商品 /trolley/add
editOk(cartPro) {
console.log('cartPro', cartPro)
// count skuId
wx.showLoading({
title: '加载中'
......
......@@ -507,7 +507,6 @@ console.log('sele', finCouponName, finCouponId)
const { memberId } = wx.getStorageSync('_baseUserInfo')
wx.chooseAddress({
success: (res) => {
console.log('微信地址', res)
res.name = res.userName
res.phone = res.telNumber
res.fullArea = res.provinceName + res.cityName + res.countyName
......@@ -542,7 +541,6 @@ console.log('sele', finCouponName, finCouponId)
this.data.addressInfo.fullArea = this.data.addressInfo.provinceName + ' ' +
this.data.addressInfo.cityName + ' ' + this.data.addressInfo.countyName
wx.setStorageSync('_defalutAddress', this.data.addressInfo)
console.log('WX---------------------', this.data.addressInfo)
},
fail: function (err) {
console.log(err)
......
......@@ -177,10 +177,8 @@ wxService.page({
title: this.data.proData[0].productName,
type: 3// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
}
console.log('4444', tentacleInfo.content)
this.data.currentShareContent = data;
console.log('++++++++++++++++',this.data.currentShareContent)
wxService.getTentacleContent(tentacleInfo).then(res => {
if (res && res.id) {
......@@ -272,7 +270,6 @@ wxService.page({
// 获取我的推广订单列表
getMyExtendOrderList(pageNum, pageSize){
console.log('pageNum----', pageNum)
wx.showLoading({
title: '加载中',
mask: true
......@@ -398,8 +395,6 @@ wxService.page({
let id = Integer.digit(this.data.currentShareContent.id, 10, 64);
let tentacleId = Integer.digit(this.data.currentShareContent.tentacleId, 10, 64);
var path = 'subPackage/page/pages/friendShareList/friendShareList?i=' + id + '&t=' + tentacleId;
console.log('用户点击右上角分享', this.data.currentShareContent.id)
console.log(path)
return {
title: this.data.proData[0].productName,
path: path,
......@@ -409,7 +404,6 @@ wxService.page({
const { memberId, member } = wx.getStorageSync('_baseUserInfo')
//修改为参数memberId
var path = `pages/extendProduct/extendProduct`;
console.log('推广商品memberId-----', memberId)
if (memberId){
let m = Integer.digit(memberId, 10, 64);
path = `pages/extendProduct/extendProduct?m=${m}`;
......
......@@ -32,13 +32,11 @@ wxService.page({
})
},
translate () {
console.log('平移变换')
// 平移变换
this.animation.translateY(- 107).step()
this.setData({animation: this.animation.export()})
},
reset () {
console.log('重置')
this.animation.translateY(0)
.step({duration: 0})
this.setData({animation: this.animation.export()})
......
......@@ -34,7 +34,6 @@ wxService.page({
let detailOrderList = wx.getStorageSync('orderList')
let currentDetail = detailOrderList.filter(item => item.id == id)
// /trade/buyer/{id} 订单详情
console.log('id', id)
if(id) {
this.setData({
id
......@@ -117,13 +116,11 @@ wxService.page({
if (result.hour < 10) result.hour = '0' + result.hour;
} else {
const {detail, id} = this.data
console.log('status', detail.status)
if (!this.getDetailLimitCount) {
this.getDetailLimitCount = 1
} else {
this.getDetailLimitCount++
}
console.log('detail-request', this.getDetailLimitCount)
if (this.getDetailLimitCount <= 1 && detail.status == 'N') {
this.getOrderDetail(id)
}
......@@ -134,7 +131,6 @@ wxService.page({
// 删除订单
handelDelOrder(e) {
const { id } = e.currentTarget.dataset
console.log('删除订单',id)
wx.showLoading({
title: '加载中',
mask: true
......@@ -197,7 +193,6 @@ wxService.page({
},
// 取消订单
handelCancelOrder(e) {
console.log('取消订单')
const { id } = e.currentTarget.dataset
wx.showLoading({
title: '加载中',
......@@ -231,16 +226,13 @@ wxService.page({
},
// 查看物流
checkLogistics(e) {
console.log('----', e)
const { detail } = e.currentTarget.dataset
let params = JSON.stringify(detail)
console.log("params", params)
// 退款申请
wxService.router(`/pages/logistics/logistics`).search({params})
},
// 申请退款
handelRequestRefund(e) {
console.log('----', e)
const { id } = e.currentTarget.dataset
const { detail } = e.currentTarget.dataset
detail.id = this.data.id
......@@ -250,7 +242,6 @@ wxService.page({
},
// 确认收货
handelConfirmReceipt(e) {
console.log('----', e)
const { id } = e.currentTarget.dataset
wx.showLoading({
title: '加载中',
......
......@@ -275,7 +275,6 @@ wxService.page({
// 加入购物车
this.getPutCart(trolleySku)
} else if (this.data.showSkuPopupType == 'buy') {
console.log('buy')
// 关闭弹框
this.setData({
showSkuPopup: false
......@@ -329,7 +328,6 @@ wxService.page({
// let id = Integer.digit(this.data.currentShareContent.id, 10, 64);
// let tentacleId = Integer.digit(this.data.currentShareContent.tentacleId, 10, 64);
// var path = 'pages/productDetail/productDetail?i=' + id + '&t=' + tentacleId;
// console.log(path)
// return {
// path: path,
// imageUrl: this.data.productInfo.indexUrl, // 可以更换分享的图片
......@@ -338,7 +336,6 @@ wxService.page({
let id = Integer.digit(this.data.currentShareContent.id, 10, 64);
let tentacleId = Integer.digit(this.data.currentShareContent.tentacleId, 10, 64);
var path = 'pages/productDetail/productDetail?i=' + id + '&t=' + tentacleId;
console.log(path)
return {
title: this.data.productInfo.productName,
path: path,
......@@ -348,7 +345,6 @@ wxService.page({
//修改为参数memberId
var path = `pages/productDetail/productDetail`;
const { memberId, member } = wx.getStorageSync('_baseUserInfo')
console.log('--------------------memberId-=---', memberId)
if (memberId) {
let m = Integer.digit(memberId, 10, 64);
let contentId = Integer.digit(this.data.productInfo.productId, 10, 64);
......
......@@ -139,7 +139,6 @@ wxService.page({
checkPro(e) {
var index = e.currentTarget.dataset.index
const { cartList } = this.data
console.log('index', index, cartList[index].checked)
if (cartList[index].checked) {
cartList[index].checked = false
} else {
......@@ -165,7 +164,6 @@ wxService.page({
var cartList = this.data.cartList
var index = e.currentTarget.dataset.index
let proNum = cartList[index].count
console.log('减少数量', proNum)
if (proNum > 1) {
proNum--
......@@ -188,7 +186,6 @@ wxService.page({
var index = e.currentTarget.dataset.index
var cartList = this.data.cartList
var proNum = cartList[index].count
console.log('增加数量', proNum)
proNum++
......
......@@ -96,7 +96,6 @@ wxService.page({
//填写物流信息
tapWriteLogis() {
console.log('222')
this.setData({
showApplyRefundModal: true,
refundId : this.data.id
......
......@@ -64,7 +64,6 @@ wxService.page({
contentType: app.globalData.contants.SHARE_TYPE.HOME,
type: 3// 1:门店,2:员工(暂时不做),3:会员,4:第三方外部渠道,5:智能营销
};
console.log('触点对象id-----------', options)
this.generatePointObject(tentacleInfo);
}
......
......@@ -46,7 +46,6 @@ wxService.page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log(options)
if (options && options.id) {
this.setData({
'form.mallCategoryId': options.id
......
......@@ -34,7 +34,6 @@ wxService.page({
*/
onShow: function () {
const { amount, status } = this.options
console.log('this.options', status)
this.setData({
amount,
status
......
......@@ -45,7 +45,6 @@ wxService.page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log('--------', options)
this.setData({
id: options.id
},()=>{
......
......@@ -26,7 +26,6 @@ wxService.page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
console.log('--------', this.options)
const { storeList } = this.options
this.setData({
......
......@@ -130,7 +130,6 @@ wxService.page({
},()=>{
const { member } = wx.getStorageSync('_baseUserInfo')
const { avatarUrl } = wx.getStorageSync('_userInfo')
console.log('0000', avatarUrl)
wx.getSystemInfo({
success: function (system) {
wx.getImageInfo({
......@@ -173,7 +172,6 @@ wxService.page({
wx.saveImageToPhotosAlbum({
filePath: this.imagePath,
success(res) {
console.log('3333')
setTimeout(()=>{
wx.showToast({
title: '保存成功,请前往相册查看~',
......
......@@ -87,7 +87,6 @@ wxService.page({
*/
onShow() {
const { memberId, member } = wx.getStorageSync('_baseUserInfo')
console.log('user=============', this.options)
// 取会员卡号
const baseUserInfo = wx.getStorageSync('_baseUserInfo')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment