Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
mini-shimao
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
04e8f2fc
authored
Sep 23, 2020
by
严立
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
LL - 清理调用接口前默认调用登录逻辑
parent
fd951303
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
74 deletions
pages/home/dynamic-detail/dynamic-detail.js
pages/home/dynamic/dynamic.js
pages/home/home/home.js
pages/mine/accumulate/accumulate.js
pages/mine/card/card.js
pages/mine/order/order.js
pages/pay/order-detail/order-detail.js
pages/play/activity-entry/activity-entry.js
pages/home/dynamic-detail/dynamic-detail.js
View file @
04e8f2fc
...
@@ -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
()
}
})
},
},
// 最新动态详情
// 最新动态详情
...
...
pages/home/dynamic/dynamic.js
View file @
04e8f2fc
...
@@ -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
)
{
...
...
pages/home/home/home.js
View file @
04e8f2fc
...
@@ -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'
)
...
...
pages/mine/accumulate/accumulate.js
View file @
04e8f2fc
...
@@ -31,13 +31,8 @@ Page({
...
@@ -31,13 +31,8 @@ Page({
this
.
setData
({
this
.
setData
({
integral
:
integral
integral
:
integral
})
})
App
.
login
({
timeout
:
0
,
success
:
(
result
)
=>
{
this
.
getAccumulate
()
this
.
getAccumulate
()
},
},
})
},
// 获取积分列表
// 获取积分列表
getAccumulate
:
function
()
{
getAccumulate
:
function
()
{
wx
.
showLoading
({
wx
.
showLoading
({
...
...
pages/mine/card/card.js
View file @
04e8f2fc
...
@@ -12,18 +12,8 @@ Page({
...
@@ -12,18 +12,8 @@ Page({
passList
:
[]
passList
:
[]
},
},
onLoad
:
function
(
options
)
{
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
)
{
onOrderDetail
:
function
(
event
)
{
let
orderId
=
event
.
currentTarget
.
dataset
.
id
let
orderId
=
event
.
currentTarget
.
dataset
.
id
...
...
pages/mine/order/order.js
View file @
04e8f2fc
...
@@ -41,33 +41,14 @@ Page({
...
@@ -41,33 +41,14 @@ 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
({
timeout
:
0
,
success
:
(
result
)
=>
{
this
.
setOrderType
()
this
.
setOrderType
()
},
},
})
},
refresh
:
function
()
{
refresh
:
function
()
{
App
.
login
({
timeout
:
0
,
success
:
(
result
)
=>
{
this
.
setOrderType
()
this
.
setOrderType
()
},
},
})
},
/**
/**
* 查询订单列表
* 查询订单列表
* @function
* @function
...
...
pages/pay/order-detail/order-detail.js
View file @
04e8f2fc
...
@@ -39,13 +39,8 @@ Page({
...
@@ -39,13 +39,8 @@ 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
({
timeout
:
0
,
success
:
(
result
)
=>
{
this
.
queryOrderDetail
()
this
.
queryOrderDetail
()
},
},
})
},
// 再次下单
// 再次下单
onOrderAgain
:
function
(
event
)
{
onOrderAgain
:
function
(
event
)
{
let
commodityType
=
this
.
data
.
orderInfo
.
commodityType
let
commodityType
=
this
.
data
.
orderInfo
.
commodityType
...
...
pages/play/activity-entry/activity-entry.js
View file @
04e8f2fc
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment