Merge branch 'hotfix/nbs-返回结果页按钮功能变更' into release/0407

This commit is contained in:
tian.guangyuan
2020-04-07 14:21:26 +08:00
2 changed files with 7 additions and 3 deletions

View File

@@ -120,10 +120,10 @@ export default {
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + `/#/nbs/result/${id}/${this.half}/02` url: location.origin + `/#/nbs/result/${id}/${this.half}/02?back=2`
}, },
routerInfo: { routerInfo: {
path: `/nbs/result/${id}/${this.half}/02` path: `/nbs/result/${id}/${this.half}/02?back=2`
} }
}) })
} else { } else {

View File

@@ -35,13 +35,17 @@ export default {
}, },
methods: { methods: {
appCallBack(data) { appCallBack(data) {
let backIndex = '-1'
if(this.$route.query.back){
backIndex = '-2'
}
if (data.trigger == 'left_button_click') { if (data.trigger == 'left_button_click') {
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
this.$jump({ this.$jump({
flag: 'goBack', flag: 'goBack',
extra: { extra: {
refresh: '1', refresh: '1',
index: '-2' index: backIndex
}, },
routerInfo: { routerInfo: {
path: `/nbs/list` path: `/nbs/list`