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
150fb469
Commit
150fb469
authored
May 30, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 小程序配置
parent
51a24553
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
app.js
src/app.js
+1
-0
app.json
src/app.json
+2
-3
welcome.js
src/pages/welcome/welcome.js
+1
-0
wxService.js
src/utils/wxService.js
+3
-2
No files found.
src/app.js
View file @
150fb469
...
@@ -10,6 +10,7 @@ App({
...
@@ -10,6 +10,7 @@ App({
},
},
onShow
:
function
(
options
=
{})
{
onShow
:
function
(
options
=
{})
{
console
.
log
(
'app-onshow'
,
options
)
// 是不是第一次进入小程序
// 是不是第一次进入小程序
const
baseUserInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
const
baseUserInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
if
(
baseUserInfo
)
{
if
(
baseUserInfo
)
{
...
...
src/app.json
View file @
150fb469
{
{
"pages"
:
[
"pages"
:
[
"pages/userCenter/userCenter"
,
"pages/welcome/welcome"
,
"pages/welcome/welcome"
,
"pages/mySpend/mySpend"
,
"pages/mySpend/mySpend"
,
"pages/memberOfOwn/memberOfOwn"
,
"pages/memberOfOwn/memberOfOwn"
,
"pages/userCenter/userCenter"
,
"pages/memberRules/memberRules"
,
"pages/memberRules/memberRules"
,
"pages/integralWater/integralWater"
,
"pages/integralWater/integralWater"
,
"pages/deliveryService/deliveryService"
,
"pages/deliveryService/deliveryService"
,
...
@@ -11,8 +11,7 @@
...
@@ -11,8 +11,7 @@
"pages/couponDetail/couponDetail"
,
"pages/couponDetail/couponDetail"
,
"pages/consumptionDetails/consumptionDetails"
,
"pages/consumptionDetails/consumptionDetails"
,
"pages/IntegralMall/IntegralMall"
,
"pages/IntegralMall/IntegralMall"
,
"pages/integralMallDetail/integralMallDetail"
,
"pages/integralMallDetail/integralMallDetail"
"component/personCenter/personCenter"
],
],
"window"
:
{
"window"
:
{
"backgroundTextStyle"
:
"light"
,
"backgroundTextStyle"
:
"light"
,
...
...
src/pages/welcome/welcome.js
View file @
150fb469
...
@@ -20,6 +20,7 @@ wxService.page({
...
@@ -20,6 +20,7 @@ wxService.page({
})
})
},
},
onShow
(){
onShow
(){
console
.
log
(
'===1===1111'
,
this
.
options
)
},
},
onLoad
:
function
()
{
onLoad
:
function
()
{
// if (app.globalData.userInfo) {
// if (app.globalData.userInfo) {
...
...
src/utils/wxService.js
View file @
150fb469
...
@@ -436,8 +436,9 @@ class WXService extends Http {
...
@@ -436,8 +436,9 @@ class WXService extends Http {
}
}
})
})
}
else
{
}
else
{
this
.
router
(
'/pages/index/index'
)
// this.router('/pages/index/index')
console
.
log
(
'开卡成功跳转'
)
this
.
router
(
'/pages/memberRules/memberRules'
)
console
.
log
(
'取消开卡跳转'
)
}
}
},
},
complete
:
()
=>
{
complete
:
()
=>
{
...
...
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