Commit 04e8f2fc by 严立

LL - 清理调用接口前默认调用登录逻辑

parent fd951303
...@@ -8,17 +8,10 @@ Page({ ...@@ -8,17 +8,10 @@ Page({
}, },
onLoad: function (options) { onLoad: function (options) {
console.log(options)
this.setData({ this.setData({
id: options.id id: options.id
}) })
let that = this this.getNoticeDetail()
app.login({
success: function () {
that.getNoticeDetail()
}
})
}, },
// 最新动态详情 // 最新动态详情
......
...@@ -12,12 +12,7 @@ Page({ ...@@ -12,12 +12,7 @@ Page({
}, },
onLoad: function () { onLoad: function () {
var that = this this.getNoticeList()
App.login({
success: function (token) {
that.getNoticeList()
}
})
}, },
onNoticeDetail: function (funcItem) { onNoticeDetail: function (funcItem) {
......
...@@ -66,15 +66,10 @@ Page({ ...@@ -66,15 +66,10 @@ Page({
this.setData({ this.setData({
pageNo: 1 pageNo: 1
}) })
var that = this this.getBanner()
App.login({ // this.loadVisiterPlanList()
success: function (token) { this.getNoticeList()
that.getBanner() this.getBrands()
// that.loadVisiterPlanList()
that.getNoticeList()
that.getBrands()
}
})
}, },
setLogin: function () { setLogin: function () {
let funcUserInfo = wx.getStorageSync('userInfo') let funcUserInfo = wx.getStorageSync('userInfo')
......
...@@ -31,12 +31,7 @@ Page({ ...@@ -31,12 +31,7 @@ Page({
this.setData({ this.setData({
integral: integral integral: integral
}) })
App.login({ this.getAccumulate()
timeout: 0,
success: (result) => {
this.getAccumulate()
},
})
}, },
// 获取积分列表 // 获取积分列表
getAccumulate: function () { getAccumulate: function () {
......
...@@ -12,17 +12,7 @@ Page({ ...@@ -12,17 +12,7 @@ Page({
passList: [] passList: []
}, },
onLoad: function (options) { onLoad: function (options) {
// if (options.type) options.type = Number(options.type) this.getCardList()
// this.setData({
// passListType: options.type
// })
// this.setView()
App.login({
timeout: 0,
success: (result) => {
this.getCardList()
},
})
}, },
// 跳转订单详情 // 跳转订单详情
onOrderDetail: function (event) { onOrderDetail: function (event) {
......
...@@ -41,31 +41,12 @@ Page({ ...@@ -41,31 +41,12 @@ Page({
option: options, option: options,
optionsGoodType: options.goodType != undefined ? 1 * options.goodType : '' optionsGoodType: options.goodType != undefined ? 1 * options.goodType : ''
}) })
// App.login({
// timeout: 0,
// success: (result) => {
// this.setOrderType()
// },
// })
}, },
onShow: function () { onShow: function () {
App.login({ this.setOrderType()
timeout: 0,
success: (result) => {
this.setOrderType()
},
})
}, },
refresh: function () { refresh: function () {
App.login({ this.setOrderType()
timeout: 0,
success: (result) => {
this.setOrderType()
},
})
}, },
/** /**
......
...@@ -39,12 +39,7 @@ Page({ ...@@ -39,12 +39,7 @@ Page({
fromPage: options.fromPage === 'order' ? 'order' : '', fromPage: options.fromPage === 'order' ? 'order' : '',
isFromUse: options.showCode === 'true' ? true : false, isFromUse: options.showCode === 'true' ? true : false,
}) })
App.login({ this.queryOrderDetail()
timeout: 0,
success: (result) => {
this.queryOrderDetail()
},
})
}, },
// 再次下单 // 再次下单
onOrderAgain: function (event) { onOrderAgain: function (event) {
......
...@@ -37,12 +37,7 @@ Page({ ...@@ -37,12 +37,7 @@ Page({
id: options.id id: options.id
}) })
var that = this this.getEnrollView()
App.login({
success: function () {
that.getEnrollView()
}
})
}, },
onQuantityCut: function () { onQuantityCut: function () {
...@@ -139,12 +134,7 @@ Page({ ...@@ -139,12 +134,7 @@ Page({
}, },
onSubmit: function () { onSubmit: function () {
var that = this this.doActivityEnroll()
App.login({
success: function () {
that.doActivityEnroll()
}
})
}, },
onEntryComplete: function () { onEntryComplete: function () {
......
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 sign in to comment