Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
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
ui
mongo-ui
Commits
d4b909a0
Commit
d4b909a0
authored
Sep 01, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 分享链接异常问题修复
parent
1b70ff7f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
42 additions
and
35 deletions
+42
-35
index.html
public/index.html
+0
-2
share.html
public/share.html
+31
-0
detail.zhongan.yiwai.js
src/api/detail.zhongan.yiwai.js
+9
-3
shareInfo.js
src/api/shareInfo.js
+1
-1
routes.js
src/router/routes.js
+0
-6
http.js
src/service/http.js
+1
-1
index.vue
src/views/Home/Share/index.vue
+0
-22
No files found.
public/index.html
View file @
d4b909a0
...
...
@@ -30,8 +30,6 @@
});
}
})();
// ! 上线需要删掉
var
baseUrl
=
""
;
</script>
<style>
#app
.mainload
{
...
...
public/share.html
0 → 100644
View file @
d4b909a0
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
跳转中...
</title>
</head>
<body>
<div>
跳转中...
</div>
<script>
var
_path
=
getQueryVariable
(
"
path
"
);
if
(
_path
)
{
_path
=
decodeURIComponent
(
_path
);
}
else
{
_path
=
"
/home
"
;
}
var
nextPage
=
document
.
createElement
(
"
a
"
);
nextPage
.
setAttribute
(
"
href
"
,
window
.
location
.
origin
+
"
/
"
+
decodeURIComponent
(
_path
));
nextPage
.
click
();
function
getQueryVariable
(
variable
)
{
var
query
=
window
.
location
.
search
.
substring
(
1
);
var
vars
=
query
.
split
(
"
&
"
);
for
(
var
i
=
0
;
i
<
vars
.
length
;
i
++
)
{
var
pair
=
vars
[
i
].
split
(
"
=
"
);
if
(
pair
[
0
]
==
variable
){
return
pair
[
1
];}
}
return
(
false
);
}
</script>
</body>
</html>
\ No newline at end of file
src/api/detail.zhongan.yiwai.js
View file @
d4b909a0
...
...
@@ -4,7 +4,7 @@
* @Description:众安50万意外险
* @Date: 2020-07-27 15:46:37
* @LastEditors: gzw
* @LastEditTime: 2020-09-01 16:
01:37
* @LastEditTime: 2020-09-01 16:
45:02
*/
import
goodsBg
from
"
@/assets/images/goods/detail/yiwaixian/bg.png
"
;
import
title
from
"
@/assets/images/goods/detail/yiwaixian/title.png
"
;
...
...
@@ -124,13 +124,19 @@ export default {
{
title
:
"
投保年龄
"
,
value
:
`18周岁~65周岁`
},
{
title
:
"
保障期限
"
,
value
:
"
1年
"
},
{
title
:
"
保费
"
,
value
:
"
53元/年起
"
},
{
title
:
"
职业类别
"
,
value
:
"
53元/年起
"
}
{
title
:
"
职业类别
"
,
value
:
{
needSlot
:
true
,
tpl
:
"
<strong>1~3类职业可投保<br /><a href='javascript:;'>查看众安职业分类表</a></strong>
"
}}
],
"
100000
"
:
[
{
title
:
"
投保年龄
"
,
value
:
`18周岁~65周岁`
},
{
title
:
"
保障期限
"
,
value
:
"
1年
"
},
{
title
:
"
保费
"
,
value
:
"
53元/年起
"
},
{
title
:
"
职业类别
"
,
value
:
"
53元/年起
"
}
{
title
:
"
职业类别
"
,
value
:
{
needSlot
:
true
,
tpl
:
"
<strong>1~3类职业可投保<br /><a href='javascript:;'>查看众安职业分类表</a></strong>
"
}}
],
},
protocolData
:
[
...
...
src/api/shareInfo.js
View file @
d4b909a0
import
getWxShareInfo
from
"
@/service/wxJsSdk
"
;
const
currentOrigin
=
window
.
location
.
origin
+
"
/share?path=
"
;
const
currentOrigin
=
window
.
location
.
origin
+
"
/share
.html
?path=
"
;
const
logo
=
currentOrigin
+
"
/shareImg/index.png
"
;
const
shareList
=
{
home
:
{
...
...
src/router/routes.js
View file @
d4b909a0
...
...
@@ -160,12 +160,6 @@ export default [
component
:
()
=>
import
(
"
../views/Policy/PayWaiting/index.vue
"
),
meta
:
{
title
:
"
支付中
"
}
},
{
path
:
"
/share
"
,
name
:
"
Share
"
,
component
:
()
=>
import
(
"
../views/Home/Share/index.vue
"
),
meta
:
{
title
:
"
跳转中
"
}
},
{
path
:
"
*
"
,
redirect
:
"
/goods
"
...
...
src/service/http.js
View file @
d4b909a0
...
...
@@ -59,7 +59,7 @@ axios.interceptors.request.use(
config
.
cancelToken
=
new
CancelToken
(
c
=>
(
pending
[
config
.
url
]
=
c
));
// ! 上线需要删掉
// eslint-disable-next-line
config
.
baseURL
=
baseUrl
||
config
.
baseURL
;
//
config.baseURL = baseUrl || config.baseURL;
// 添加token
const
token
=
localStorage
.
get
(
"
mongoToken
"
);
if
(
token
)
{
...
...
src/views/Home/Share/index.vue
deleted
100644 → 0
View file @
1b70ff7f
<
template
>
<div>
跳转中...
</div>
</
template
>
<
script
>
export
default
{
name
:
"
Share
"
,
data
()
{
return
{};
},
created
()
{
let
_path
=
this
.
$route
.
query
.
path
;
if
(
_path
)
{
_path
=
decodeURIComponent
(
_path
);
}
else
{
_path
=
"
/home
"
;
}
this
.
$router
.
replace
(
_path
);
}
};
</
script
>
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