Commit 21938ec6 by 高淑倩

modify: 去掉console

parent df211d35
......@@ -41,8 +41,6 @@ Component({
})
const userInfo = res.detail || {}
if (res.detail.userInfo) {
console.log('点击授权')
utils.getUserInfoByBtn(userInfo).then( (data = {} ) => {
const {token} = data
wx.setStorageSync('_accreditUserInfo', userInfo)
......@@ -76,8 +74,6 @@ Component({
},
setUserInfo: function (e) {
console.log('开卡')
// wxService.router(`/pages/userCenter/userCenter`)
if (!app.globalData.openCard) { // 没有开卡并且需要开卡
wxService.openCard()
return false
......
......@@ -77,7 +77,6 @@ Component({
}
wxService.post(`/coupon/pointsRedemptionCouponSetting/exchange`, params).then(res=>{
const {result,data} = res.data
console.log('res.data',res.data)
if(result == 0){
wx.hideLoading()
......
......@@ -38,7 +38,6 @@ wxService.page({
this.handleGoActivateCard(this.options)
},
handleGoActivateCard(options={}) {
console.log("options", options)
if(!options) return false
options.activate_ticket = decodeURIComponent(options.activate_ticket)
// 解析 url 参数 {}
......@@ -50,7 +49,8 @@ wxService.page({
const {result,data} = res.data
if(result == 0){
wx.hideLoading()
wxService.router(`/pages/index/index`)
wxService.router(`/pages/userCenter/userCenter`)
// wxService.router(`/pages/index/index`)
} else {
wx.hideLoading()
wx.showToast({
......
......@@ -54,7 +54,6 @@ wxService.page({
const {result,data} = res.data
if(result == 0){
wx.hideLoading()
console.log('dddd',data)
} else {
wx.hideLoading()
wx.showToast({
......
......@@ -32,7 +32,6 @@ wxService.page({
//滑动切换
swiperTab: function (e) {
const {current} = e.detail
console.log('current',current)
this.setData({
currentTab: current
});
......
......@@ -33,7 +33,6 @@ wxService.page({
}
},
goDetail(e) {
console.log('e', e.currentTarget.dataset)
const { orderNo } = e.currentTarget.dataset
// pages/consumptionDetails/consumptionDetails
wxService.router(`/pages/consumptionDetails/consumptionDetails?orderNo=${orderNo}`)
......
......@@ -19,9 +19,7 @@ wxService.page({
url: '../logs/logs'
})
},
onShow(){
console.log('===1===1111', this.options)
},
onShow(){},
onLoad: function () {
// if (app.globalData.userInfo) {
// this.setData({
......
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