Commit 21938ec6 by 高淑倩

modify: 去掉console

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