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
cade8030
Commit
cade8030
authored
Aug 31, 2020
by
郝聪敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 区分测试线上环境
parent
831a605e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
17 deletions
+20
-17
.env.development
.env.development
+1
-1
index.js
src/config/index.js
+1
-1
main.js
src/main.js
+9
-9
routes.js
src/router/routes.js
+1
-1
detailPay.mixin.js
src/views/Goods/Detail/modules/detailPay.mixin.js
+8
-5
No files found.
.env.development
View file @
cade8030
NODE_ENV=development
NODE_ENV=development
ENVIRONMENT=development
VUE_APP_ENVIRONMENT=development
\ No newline at end of file
\ No newline at end of file
src/config/index.js
View file @
cade8030
import
prod
from
"
./prod.config
"
;
import
prod
from
"
./prod.config
"
;
import
dev
from
"
./dev.config
"
;
import
dev
from
"
./dev.config
"
;
export
default
process
.
env
.
NODE_ENV
===
"
production
"
?
prod
:
dev
;
export
default
process
.
env
.
VUE_APP_ENVIRONMENT
===
"
production
"
?
prod
:
dev
;
src/main.js
View file @
cade8030
...
@@ -9,10 +9,10 @@ import "amfe-flexible";
...
@@ -9,10 +9,10 @@ import "amfe-flexible";
import
sa
from
"
sa-sdk-javascript
"
;
import
sa
from
"
sa-sdk-javascript
"
;
import
"
@/assets/icons/index
"
;
import
"
@/assets/icons/index
"
;
import
"
@/service/cherry-ui
"
;
import
"
@/service/cherry-ui
"
;
//
import Raven from "raven-js";
import
Raven
from
"
raven-js
"
;
//
import RavenVue from "raven-js/plugins/vue";
import
RavenVue
from
"
raven-js/plugins/vue
"
;
import
config
from
"
@/config
"
;
import
config
from
"
@/config
"
;
//
import { release } from "../.sentryclirc";
import
{
release
}
from
"
../.sentryclirc
"
;
Vue
.
config
.
productionTip
=
false
;
Vue
.
config
.
productionTip
=
false
;
new
Vue
({
new
Vue
({
...
@@ -22,12 +22,12 @@ new Vue({
...
@@ -22,12 +22,12 @@ new Vue({
}).
$mount
(
"
#app
"
);
}).
$mount
(
"
#app
"
);
// 初始化sentry
// 初始化sentry
//
Raven.config("https://1dc603dd7c09468793aa003ab0bf9480@sentry.q-gp.com/57", {
Raven
.
config
(
"
https://1dc603dd7c09468793aa003ab0bf9480@sentry.q-gp.com/57
"
,
{
//
release,
release
,
//
environment: process.env.VUE_APP_ENVIRONMENT
environment
:
process
.
env
.
VUE_APP_ENVIRONMENT
//
})
})
//
.addPlugin(RavenVue, Vue)
.
addPlugin
(
RavenVue
,
Vue
)
//
.install();
.
install
();
// 初始化神策
// 初始化神策
sa
.
init
({
sa
.
init
({
...
...
src/router/routes.js
View file @
cade8030
...
@@ -125,7 +125,7 @@ export default [
...
@@ -125,7 +125,7 @@ export default [
meta
:
{
title
:
"
芒果保险
"
}
meta
:
{
title
:
"
芒果保险
"
}
},
},
{
{
path
:
"
/policy/success/:orderNo
"
,
path
:
"
/policy/success/:orderNo
/:productNo
"
,
name
:
"
Sucess
"
,
name
:
"
Sucess
"
,
component
:
()
=>
import
(
"
../views/Policy/Success/index.vue
"
),
component
:
()
=>
import
(
"
../views/Policy/Success/index.vue
"
),
meta
:
{
title
:
"
芒果保险
"
}
meta
:
{
title
:
"
芒果保险
"
}
...
...
src/views/Goods/Detail/modules/detailPay.mixin.js
View file @
cade8030
...
@@ -109,9 +109,9 @@ export default {
...
@@ -109,9 +109,9 @@ export default {
return
;
return
;
}
}
// 根据状态跳转页面
// 根据状态跳转页面
const
status
=
await
this
.
getPolicyStatus
(
orderNo
);
const
{
status
,
productNo
}
=
await
this
.
getPolicyStatus
(
orderNo
);
if
([
"
6.2-3
"
,
"
6.1-3
"
].
includes
(
status
))
{
if
([
"
6.2-3
"
,
"
6.1-3
"
].
includes
(
status
))
{
this
.
$router
.
replace
(
`/policy/success/
${
orderNo
}
`
);
this
.
$router
.
replace
(
`/policy/success/
${
orderNo
}
/
${
productNo
}
`
);
return
;
return
;
}
}
// 保单详情页支付需重新调用保单接口
// 保单详情页支付需重新调用保单接口
...
@@ -130,9 +130,12 @@ export default {
...
@@ -130,9 +130,12 @@ export default {
},
},
async
getPolicyStatus
(
orderNo
)
{
async
getPolicyStatus
(
orderNo
)
{
const
policy
=
await
getPolicyDetail
(
orderNo
);
const
policy
=
await
getPolicyDetail
(
orderNo
);
return
policy
?.
payState
return
{
status
:
policy
?.
payState
?
`
${
policy
?.
policyState
}
-
$
{
policy
?.
payState
}
`
?
`
${
policy
?.
policyState
}
-
$
{
policy
?.
payState
}
`
: String(policy?.policyState);
: String(policy?.policyState),
productNo: policy?.productNo
};
}
}
}
}
};
};
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