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
a721f584
Commit
a721f584
authored
Sep 11, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
711_watch
parent
28048b64
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
13 deletions
+11
-13
app.js
src/app.js
+2
-2
index.js
src/config/index.js
+1
-1
pointDetail.js
src/pages/pointDetail/pointDetail.js
+0
-1
pointList.js
src/pages/pointList/pointList.js
+2
-3
project.config.json
src/project.config.json
+1
-1
wxService.js
src/utils/wxService.js
+5
-5
No files found.
src/app.js
View file @
a721f584
...
...
@@ -115,9 +115,9 @@ App({
imageUrl
:
envInfo
.
imgCtx
,
//图片地址
isFullSucreen
:
false
,
// 当前设备是否为 FullSucreen
commonFunc
:
commonFunc
,
//
brandId: 2711,
brandId
:
2711
,
// brandId: 2005,
brandId
:
1001
,
//
brandId: 1001,
// brandId: 1002,
}
})
src/config/index.js
View file @
a721f584
const
PROJECT_ENV
=
'
dev2
'
// 生产 prod, 开发1 dev,开发2 dev2, 测试 test, 预生产 pre
const
PROJECT_ENV
=
'
prod
'
// 生产 prod, 开发1 dev,开发2 dev2, 测试 test, 预生产 pre
const
needMock
=
''
//
// appid_dev_wx wxc3b64b09b1d3dfc2
...
...
src/pages/pointDetail/pointDetail.js
View file @
a721f584
...
...
@@ -47,7 +47,6 @@ wxService.page({
},
watch
:
{
experAccessible
(
newVal
,
oldVal
)
{
console
.
log
(
'集点详情'
,
newVal
,
oldVal
)
if
(
newVal
)
{
// 登录接口返回err
const
reLoginErrFlag
=
wx
.
getStorageSync
(
'reLoginErr'
)
...
...
src/pages/pointList/pointList.js
View file @
a721f584
...
...
@@ -22,7 +22,6 @@ wxService.page({
},
watch
:
{
experAccessible
(
newVal
,
oldVal
)
{
console
.
log
(
'集点列表'
,
newVal
,
oldVal
)
if
(
newVal
)
{
this
.
getPointList
()
}
else
{
...
...
@@ -40,8 +39,8 @@ wxService.page({
* 生命周期函数--监听页面显示
*/
onShow
()
{
const
{
experAccessible
}
=
this
.
data
console
.
log
(
'experAccessible'
,
experAccessible
)
//
const { experAccessible } = this.data
//
console.log('experAccessible', experAccessible)
// wxService.nextTick(() => {
// const { experAccessible } = this.data
// console.log('experAccessible', experAccessible)
...
...
src/project.config.json
View file @
a721f584
...
...
@@ -13,7 +13,7 @@
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.8.2"
,
"appid"
:
"wx
c3b64b09b1d3dfc2
"
,
"appid"
:
"wx
700028bf32a3be66
"
,
"projectname"
:
"7-Eleven"
,
"debugOptions"
:
{
"hidedInDevtools"
:
[]
...
...
src/utils/wxService.js
View file @
a721f584
...
...
@@ -411,7 +411,7 @@ class WXService extends Http {
page
(
config
)
{
const
_self
=
this
const
{
sr
}
=
this
.
getApp
()
config
.
data
.
experAccessible
=
false
;
config
.
data
.
experAccessible
;
const
CONFIG_PAPGE
=
{
onLoad
:
function
(...
args
)
{
...
...
@@ -431,16 +431,16 @@ class WXService extends Http {
_self
.
trialList
().
then
(
res
=>
{
if
(
!
res
)
return
false
const
{
currentPaths
}
=
res
console
.
log
(
'22222'
,
currentPaths
,
currentPaths
.
indexOf
(
router
.
route
),
isExperiencer
)
if
(
currentPaths
.
indexOf
(
router
.
route
)
>
-
1
&&
isExperiencer
)
{
this
.
setData
({
experAccessible
:
true
},()
=>
{
console
.
log
(
'experAccessible'
,
this
.
data
.
experAccessible
)
})
}
else
{
this
.
setData
({
experAccessible
:
false
})
}
})
},
onReady
:
function
(...
args
)
{
config
.
onReady
&&
config
.
onReady
.
apply
(
this
,
args
)
...
...
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