Commit 86c18288 by 胡悦

删除console

1 parent fc7f6e3b
......@@ -71,7 +71,6 @@ class Request {
if (code == '0') {
resolve(data.data)
} else {
console.log(data)
wx.showToast({
title: message || '系统异常',
icon: 'none'
......@@ -81,7 +80,6 @@ class Request {
},
fail(error) {
wx.hideLoading()
console.error(`接口异常:`, error)
wx.showToast({
title: '系统异常',
icon: 'error'
......
......@@ -41,6 +41,15 @@ App({
util.setSessionId(res.data.sessionId)
openId = res.data.openId
util.setStorageSync('openId', openId)
if (wx.$trackData.scene) {
_this.getScene(wx.$trackData.scene).then(res => {
wx.$trackData.merchant = res.merchantId
wx.$trackData.cardId = res.cardId
const systemInfo = JSON.parse(wx.getStorageSync('aicard_system_info'))
wx.$trackData.type = systemInfo.environment ? 2 : 1
wx.$Track.sendTrack(trackData.COMPANY, openId)
})
}
ssoApi.getUserInfo({
openId
}).then(result => {
......@@ -59,15 +68,7 @@ App({
wx.$authStatus = true
reject()
})
if (wx.$trackData.scene) {
_this.getScene(wx.$trackData.scene).then(res => {
wx.$trackData.merchant = res.merchantId
wx.$trackData.cardId = res.cardId
const systemInfo = JSON.parse(wx.getStorageSync('aicard_system_info'))
wx.$trackData.type = systemInfo.environment ? 2 : 1
wx.$Track.sendTrack(trackData.COMPANY, openId)
})
}
}
})
})
......
......@@ -101,7 +101,6 @@ Component({
})
wx.getSetting({
success(res) {
console.log(res)
if (!res.authSetting[type]) {
wx.authorize({
scope: type,
......@@ -135,7 +134,6 @@ Component({
getPhoneNumber({
detail
}) {
console.log(detail)
this.triggerEvent('getphonenumber', detail)
}
},
......
......@@ -94,7 +94,6 @@ Component({
} = this.data
wx.$util.showLoading()
detail.sessionId = sessionId
console.log(detail);
ssoApi.authUserPhone(detail).then(({
data,
code
......
......@@ -196,7 +196,6 @@ Component({
x: 0,
y: 0,
success(res) {
console.log(res)
let {
tempFilePath
} = res
......@@ -219,7 +218,6 @@ Component({
}
},
fail(err) {
console.error(err)
wx.hideLoading()
}
}, this)
......@@ -243,7 +241,6 @@ Component({
x: 0,
y: 0,
success(preview) {
console.log(preview)
_this.setData({
tempFilePath
})
......@@ -254,7 +251,6 @@ Component({
wx.hideLoading()
},
fail(err) {
console.error(err)
wx.hideLoading()
}
}, this)
......
......@@ -10,7 +10,6 @@ Component({
cardInfo: {
type: Object,
observer(n) {
console.log(n)
this.setData({
cardInfo: n,
});
......@@ -31,11 +30,9 @@ Component({
methods: {
// 添加微信
addWechat() {
console.log(112, this.data.showWechant);
this.setData({
showWechant: !this.data.showWechant,
});
console.log(this.data.showWechant);
},
// 保存名片
addPhone() {
......@@ -82,7 +79,6 @@ Component({
},
/** 拨打电话 */
callPhone() {
console.log(this.data.cardInfo);
const { staffPhone } = this.data.cardInfo;
if (!staffPhone) {
util.showToast("手机号不存在");
......
......@@ -10,7 +10,6 @@ module.exports = Behavior({
methods: {
// 0-企微魔方 1-数字化权益 2-智能线索 3-D+增值转化
selectIntroduce(e) {
console.log(e.currentTarget);
const curIntroduceIndex = e.currentTarget.dataset.index;
switch(curIntroduceIndex) {
case 3:
......
......@@ -19,7 +19,6 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
console.log(util.getUserInfo())
if (util.getUserInfo().phone) {
this.setData({
hasShare: true
......@@ -35,9 +34,5 @@ Page({
detailObj: this.data.addDatailObj[attrName]
})
})
},
handleShare() {
console.log('分享--')
}
})
\ No newline at end of file
......@@ -62,10 +62,8 @@ Page({
const curTabIndex = e.currentTarget.dataset.index;
// 视频直播和合作申请是跳转新页面,不需要设置激活样式
// 0-公司介绍 1-方案介绍 2-视频直播 3-合作申请
console.log(this.data.curTabIndex);
switch (curTabIndex) {
case 2:
console.log("跳转直播");
wx.openChannelsActivity({
finderUserName: 'sphPIdcy0NVpuao',
feedId: 'export/UzFfAgtgekIEAQAAAAAAOQ8BJrsjzwAAAAstQy6ubaLX4KHWvLEZgBPEmIEUOQV4c62CzNPgMJqRnrGh3TfaajoIU4mGBiio'
......@@ -83,11 +81,17 @@ Page({
// 跳转咨询页面
goConsult() {
console.log("跳转到咨询页面");
// wx.openCustomerServiceChat({
// extInfo: {url: 'https://work.weixin.qq.com/kfid/kfcdc6d35b59631ce3c'},
// corpId: 'ww2318dc9e5d23230b',
// complete: r => {
// console.log(r)
// }
// })
},
// 设置手机号
getPhoneNumber() {
console.log(11111111);
this.setData({
hasPhoneNumber: true,
});
......@@ -129,10 +133,8 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {
console.log(wx.$trackData, wx.getEnterOptionsSync())
const options = wx.getEnterOptionsSync()
wx.$trackData = options.query
console.log(options.query,'--------------')
if (wx.$trackData.merchant) {
wx.$Track.sendTrack(this.data.curTab[this.data.curTabIndex])
}
......@@ -299,7 +301,6 @@ Page({
wx.getUserProfile({
desc: "用于完善资料", // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
success: (res) => {
console.log(this.data.hasUserInfo);
ssoApi
.authUserInfo({
...res,
......
......@@ -121,7 +121,6 @@ class TRACK {
}
/**定时发送埋点数据 */
sendTrack(p, openId) {
console.log(wx.$trackData)
let params = {
method: 'entmicro.api.business.card.cardRecord',
cardId: wx.$trackData.cardId,
......@@ -216,7 +215,6 @@ class TRACK {
longitude
}) => {
if (!addressInfo) this.setTrack({}, 5)
console.log('---------------- 更新地理位置 ----------------')
return
mapApi.detailedAdrress([latitude, longitude]).then(detail => {
let info = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!