Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
X
XiTianSenMall
Project
Project
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
leiqingsong
XiTianSenMall
Commits
f3218b6a
Commit
f3218b6a
authored
Mar 31, 2021
by
leiqingsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部署测试环境
parent
ea395e4c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
.env.production
H5/.env.production
+2
-2
App.vue
H5/src/App.vue
+1
-1
bridgeToAppFun.js
H5/src/utils/bridgeToAppFun.js
+2
-1
settings.vue
H5/src/views/settings.vue
+1
-1
No files found.
H5/.env.production
View file @
f3218b6a
# 生产环境 部署生产环境放开这个
#
VUE_APP_BASE_URL = "http://app.xitiansen.com"
VUE_APP_BASE_URL = "http://app.xitiansen.com"
# 测试环境 部署测试环境放开这个
VUE_APP_BASE_URL = "http://8.131.244.76:81"
\ No newline at end of file
# VUE_APP_BASE_URL = "http://8.131.244.76:81"
\ No newline at end of file
H5/src/App.vue
View file @
f3218b6a
...
...
@@ -22,7 +22,7 @@ export default {
this
.
currentTitle
=
val
.
meta
.
title
;
}
},
moun
ted
()
{
crea
ted
()
{
console
.
log
(
"和App开始交互"
);
this
.
$bridgeToAppFun
.
getAuthToken
()
...
...
H5/src/utils/bridgeToAppFun.js
View file @
f3218b6a
...
...
@@ -39,7 +39,6 @@ class bridgeToAppFun {
console
.
log
(
"调ios的方法"
);
jsBridge
.
callhandler
(
"getAuthToken"
,
null
,
data
=>
{
if
(
data
)
{
// localStorage.setItem("token", data);
resolve
(
data
);
}
else
{
console
.
log
(
"调用失败"
);
...
...
@@ -114,8 +113,10 @@ class bridgeToAppFun {
console
.
log
(
"an"
);
version
=
window
.
android
.
getAppVersion
();
}
else
{
console
.
log
(
"ios获取版本号"
);
jsBridge
.
callhandler
(
"getAppVersion"
,
null
,
response
=>
{
if
(
response
)
{
console
.
log
(
"版本号,获取到的数据"
,
response
);
version
=
response
;
}
});
...
...
H5/src/views/settings.vue
View file @
f3218b6a
...
...
@@ -89,7 +89,7 @@ export default {
inviteeCodeDialog
:
false
};
},
moun
ted
()
{
crea
ted
()
{
console
.
log
(
"读取用户信息"
);
this
.
imageBaseUrl
=
process
.
env
.
VUE_APP_BASE_URL
;
this
.
getUser
();
...
...
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