Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tianzerencai_xcx
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
石盼盼
tianzerencai_xcx
Commits
9ab748c1
Commit
9ab748c1
authored
Oct 18, 2021
by
hetengji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
域名
parent
49948a24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
app.js
app.js
+5
-5
No files found.
app.js
View file @
9ab748c1
...
@@ -42,13 +42,13 @@ App({
...
@@ -42,13 +42,13 @@ App({
const
accountInfo
=
wx
.
getAccountInfoSync
();
const
accountInfo
=
wx
.
getAccountInfoSync
();
console
.
log
(
accountInfo
)
console
.
log
(
accountInfo
)
if
(
accountInfo
.
miniProgram
.
envVersion
==
'
develop
'
)
{
// 开发板
if
(
accountInfo
.
miniProgram
.
envVersion
==
'
develop
'
)
{
// 开发板
this
.
globalData
.
globalUrl
=
'
https://repairtest.zerui
edu.com
'
this
.
globalData
.
globalUrl
=
'
https://tianzehr.xueyoubang
edu.com
'
}
else
if
(
accountInfo
.
miniProgram
.
envVersion
==
'
trial
'
)
{
// 体验版
}
else
if
(
accountInfo
.
miniProgram
.
envVersion
==
'
trial
'
)
{
// 体验版
this
.
globalData
.
globalUrl
=
'
https://repairtest.zerui
edu.com
'
this
.
globalData
.
globalUrl
=
'
https://tianzehr.xueyoubang
edu.com
'
}
else
if
(
accountInfo
.
miniProgram
.
envVersion
==
'
release
'
)
{
// 正式版
}
else
if
(
accountInfo
.
miniProgram
.
envVersion
==
'
release
'
)
{
// 正式版
this
.
globalData
.
globalUrl
=
'
https://repair.zeruiedu
.com
'
this
.
globalData
.
globalUrl
=
'
https://www.tianzerencai
.com
'
}
else
{
}
else
{
this
.
globalData
.
globalUrl
=
'
https://repairtest.zerui
edu.com
'
this
.
globalData
.
globalUrl
=
'
https://tianzehr.xueyoubang
edu.com
'
}
}
console
.
log
(
this
.
globalData
.
globalUrl
)
console
.
log
(
this
.
globalData
.
globalUrl
)
},
},
...
@@ -135,7 +135,7 @@ App({
...
@@ -135,7 +135,7 @@ App({
that
.
globalData
.
token
=
res
.
data
.
data
.
token
that
.
globalData
.
token
=
res
.
data
.
data
.
token
// login
// login
wx
.
request
({
wx
.
request
({
url
:
that
.
globalData
.
globalUrl
+
'
/api/v1.0/l
ogin
'
,
url
:
that
.
globalData
.
globalUrl
+
'
/api/v1.0/xcxL
ogin
'
,
data
:
{
data
:
{
token
:
res
.
data
.
data
.
token
token
:
res
.
data
.
data
.
token
},
},
...
...
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