Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
contraceptives_app
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
ynby
contraceptives_app
Commits
fc22289a
Commit
fc22289a
authored
Apr 29, 2021
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上线版本_1
parent
963b5d97
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
9 deletions
+21
-9
.env.dev
.env.dev
+1
-1
.env.prod
.env.prod
+1
-1
.env.test
.env.test
+1
-1
index.html
public/index.html
+6
-4
api.js
src/utils/api.js
+8
-0
siteDetails.vue
src/views/siteDetails.vue
+4
-2
No files found.
.env.dev
View file @
fc22289a
NODE_ENV=dev
NODE_ENV=dev
VUE_APP_BASE_URL = https://
beta-yj
service.yiboshi.com
VUE_APP_BASE_URL = https://
yaoju-
service.yiboshi.com
.env.prod
View file @
fc22289a
NODE_ENV=prod
NODE_ENV=prod
VUE_APP_PATH = https://ynfymds-service.yiboshi.com
VUE_APP_PATH = https://ynfymds-service.yiboshi.com
VUE_APP_BASE_URL = https://
beta-yj
service.yiboshi.com
VUE_APP_BASE_URL = https://
yaoju-
service.yiboshi.com
.env.test
View file @
fc22289a
NODE_ENV
=
test
NODE_ENV
=
test
VUE_APP_PATH
=
https
://
beta
-
yjservice
.
yiboshi
.
com
VUE_APP_PATH
=
https
://
beta
-
yjservice
.
yiboshi
.
com
VUE_APP_BASE_URL
=
https
://
beta
-
yj
service
.
yiboshi
.
com
VUE_APP_BASE_URL
=
https
://
yaoju
-
service
.
yiboshi
.
com
public/index.html
View file @
fc22289a
...
@@ -8,11 +8,13 @@
...
@@ -8,11 +8,13 @@
<meta
http-equiv=
"Content-Security-Policy"
content=
"upgrade-insecure-requests"
>
<meta
http-equiv=
"Content-Security-Policy"
content=
"upgrade-insecure-requests"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://at.alicdn.com/t/font_2002967_absxhdgm27r.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://at.alicdn.com/t/font_2002967_absxhdgm27r.css"
>
<link
rel=
"stylesheet"
href=
"https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css"
/>
<link
rel=
"stylesheet"
href=
"https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css"
/>
<!--<script type="text/javascript"
src="https://webapi.amap.com/maps?v=1.4.15&key=8830df3ce60e0b6348e0854a939ffa9d"></script>-->
<script
type=
"text/javascript"
<script
type=
"text/javascript"
src=
"https://webapi.amap.com/maps?v=1.4.15&key=
8830df3ce60e0b6348e0854a939ffa9d
"
></script>
src=
"https://webapi.amap.com/maps?v=1.4.15&key=
e8a56e9582dbac15d801174310ea43d7
"
></script>
<script
src=
"https://a.amap.com/jsapi_demos/static/demo-center/js/demoutils.js"
></script>
<script
src=
"https://a.amap.com/jsapi_demos/static/demo-center/js/demoutils.js"
></script>
<link
rel=
"stylesheet"
href=
"path/to/font-awesome/css/font-awesome.min.css"
>
<link
rel=
"stylesheet"
href=
"path/to/font-awesome/css/font-awesome.min.css"
>
<
script
src=
"https://cdn.bootcdn.net/ajax/libs/vConsole/3.3.4/vconsole.min.js"
></script
>
<
!--<script src="https://cdn.bootcdn.net/ajax/libs/vConsole/3.3.4/vconsole.min.js"></script>--
>
<title><
%=
htmlWebpackPlugin
.
options
.
title
%
></title>
<title><
%=
htmlWebpackPlugin
.
options
.
title
%
></title>
</head>
</head>
<body>
<body>
...
@@ -20,7 +22,7 @@
...
@@ -20,7 +22,7 @@
<!-- built files will be auto injected -->
<!-- built files will be auto injected -->
</body>
</body>
<script>
<script>
var
vConsole
=
new
VConsole
();
/*
var vConsole =new VConsole();
console
.
log
(
'Hello world'
);
console.log('Hello world');
*/
</script>
</script>
</html>
</html>
src/utils/api.js
View file @
fc22289a
...
@@ -30,14 +30,22 @@ apiInstance.interceptors.request.use(config=>{
...
@@ -30,14 +30,22 @@ apiInstance.interceptors.request.use(config=>{
//拦截请求结果判断token是否失效
//拦截请求结果判断token是否失效
apiInstance
.
interceptors
.
response
.
use
(
res
=>
{
apiInstance
.
interceptors
.
response
.
use
(
res
=>
{
debugger
let
data
=
res
let
data
=
res
let
result
=
res
.
data
let
result
=
res
.
data
//比如响应一些报错信息
//比如响应一些报错信息
/* if (res.status == '401') {
callMobile("goIndex", {});
return
}*/
if
(
result
.
code
==
'BIZ.TOKEN_EXPIRATION'
)
{
if
(
result
.
code
==
'BIZ.TOKEN_EXPIRATION'
)
{
callMobile
(
"goIndex"
,
{});
callMobile
(
"goIndex"
,
{});
return
return
}
}
return
data
return
data
},
error
=>
{
/* callMobile("goIndex", {});
return*/
})
})
/*获取网点*/
/*获取网点*/
...
...
src/views/siteDetails.vue
View file @
fc22289a
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
v-for=
"item in stockInfo"
v-for=
"item in stockInfo"
>
>
<div
class=
"cell"
>
<div
class=
"cell"
>
<img
:src=
"item.imgUrl"
/>
<img
:src=
"item.imgUrl"
alt=
""
onerror=
"this.src='../assets/img/no_picture.jpg';this.onerror=null"
/>
</div>
</div>
<div
class=
"tradeInfo"
>
<div
class=
"tradeInfo"
>
...
@@ -67,6 +67,7 @@
...
@@ -67,6 +67,7 @@
import
NoData
from
"./component/noData"
;
import
NoData
from
"./component/noData"
;
import
{
Indicator
}
from
'mint-ui'
;
import
{
Indicator
}
from
'mint-ui'
;
import
{
MessageBox
}
from
'mint-ui'
;
import
{
MessageBox
}
from
'mint-ui'
;
import
no_picture
from
"../assets/img/no_picture.jpg"
export
default
{
export
default
{
name
:
"siteDetails"
,
name
:
"siteDetails"
,
...
@@ -82,7 +83,8 @@
...
@@ -82,7 +83,8 @@
param
:
{
param
:
{
pageIndex
:
0
,
pageIndex
:
0
,
pageSize
:
10
pageSize
:
10
}
},
no_picture
,
}
}
},
},
created
()
{
created
()
{
...
...
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