Commit 86c18288 by 胡悦

删除console

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