Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
21938ec6
Commit
21938ec6
authored
Jun 03, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 去掉console
parent
df211d35
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
3 additions
and
13 deletions
+3
-13
authorization-modal.js
src/component/authorization-modal/authorization-modal.js
+0
-4
exchange-coupon-modal.js
src/component/exchange-coupon-modal/exchange-coupon-modal.js
+0
-1
activateCardCallback.js
src/pages/activateCard/activateCardCallback.js
+2
-2
couponDetail.js
src/pages/couponDetail/couponDetail.js
+0
-1
coupons.js
src/pages/coupons/coupons.js
+0
-1
mySpend.js
src/pages/mySpend/mySpend.js
+0
-1
welcome.js
src/pages/welcome/welcome.js
+1
-3
No files found.
src/component/authorization-modal/authorization-modal.js
View file @
21938ec6
...
@@ -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
...
...
src/component/exchange-coupon-modal/exchange-coupon-modal.js
View file @
21938ec6
...
@@ -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
()
...
...
src/pages/activateCard/activateCardCallback.js
View file @
21938ec6
...
@@ -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
({
...
...
src/pages/couponDetail/couponDetail.js
View file @
21938ec6
...
@@ -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
({
...
...
src/pages/coupons/coupons.js
View file @
21938ec6
...
@@ -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
});
});
...
...
src/pages/mySpend/mySpend.js
View file @
21938ec6
...
@@ -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
}
`
)
...
...
src/pages/welcome/welcome.js
View file @
21938ec6
...
@@ -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({
...
...
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