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
42c2518b
Commit
42c2518b
authored
Oct 09, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
体验者权限
parent
b57d5717
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
15 deletions
+25
-15
index.js
src/config/index.js
+3
-1
wxService.js
src/utils/wxService.js
+22
-14
No files found.
src/config/index.js
View file @
42c2518b
...
...
@@ -18,7 +18,9 @@ const prodCtx = 'https://crm-b.bigaka.com/api' // 发生产时解开此注释
const
devImgCtx
=
'https://img3.bigaka.com/test'
// 开发环境图片地址
const
testImgCtx
=
'https://img3.bigaka.com/test'
// 测试环境图片地址
const
preImgCtx
=
'https://img3.bigaka.com/test'
// 预生产环境图片地址
const
prodImgCtx
=
'https://img3.bigaka.com'
// 预生产环境图片地址
// const prodImgCtx = 'https://img3.bigaka.com' // 预生产环境图片地址
const
prodImgCtx
=
'https://img3.bigaka.com/prd'
// 预生产环境图片地址
// const prodImgCtx = 'https://img3.bigaka.com' // 生产环境图片地址
const
config
=
{
dev
:
devCtx
,
...
...
src/utils/wxService.js
View file @
42c2518b
...
...
@@ -301,7 +301,10 @@ class WXService extends Http {
}
trialList
()
{
//
let
localPath
=
this
.
getAssPath
()
// 如果 localPath 则返回true
wx
.
showLoading
({
title
:
'加载中'
})
...
...
@@ -446,11 +449,19 @@ class WXService extends Http {
// 获取当前页
let
router
=
getCurrentRouter
()
const
baseUserInfo
=
_self
.
getBaseUserInfo
()
// this.setData({
// experAccessible: true
// })
// if (baseUserInfo) {
_self
.
trialList
().
then
(
res
=>
{
if
(
!
res
)
return
false
if
(
!
res
.
length
)
{
this
.
setData
({
experAccessible
:
true
})
}
const
{
currentPaths
}
=
res
// 有版本号
//有版本号
if
(
currentPaths
.
length
>
0
){
// 是体验者
if
(
currentPaths
.
indexOf
(
router
.
route
)
>
-
1
&&
isExperiencer
)
{
...
...
@@ -469,21 +480,18 @@ class WXService extends Http {
})
}
// if (currentPaths.indexOf(router.route) > -1 && isExperiencer || currentPaths.length == 0) {
// this.setData({
// experAccessible: true
// })
// } else {
// this.setData({
// experAccessible: false
// })
// }
// // if (currentPaths.indexOf(router.route) > -1 && isExperiencer || currentPaths.length == 0) {
// // this.setData({
// // experAccessible: true
// // })
// // } else {
// // this.setData({
// // experAccessible: false
// // })
// // }
})
console
.
log
(
'000'
,
this
.
data
.
experAccessible
);
// }
...
...
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