Commit 04e8f2fc by 严立

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

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