|
|
@@ -1,6 +1,22 @@ |
|
|
|
<template> |
|
|
|
<div class="page" v-if="topic.length"> |
|
|
|
<div class="top"> |
|
|
|
<div |
|
|
|
class="page" |
|
|
|
v-if="topic.length" |
|
|
|
:style="`padding-top: ${showLeftArrow ? 'calc(24vw + 46px)' : '24vw'};`" |
|
|
|
> |
|
|
|
<van-nav-bar |
|
|
|
title="测评" |
|
|
|
:border="true" |
|
|
|
:left-arrow="true" |
|
|
|
@click-left="onNavBack" |
|
|
|
v-if="showLeftArrow" |
|
|
|
style="position: fixed; left: 0; top: 0;width: 100vw;" |
|
|
|
> |
|
|
|
<template #left> |
|
|
|
<van-icon name="arrow-left" size="23" style="padding: 0" />返回 |
|
|
|
</template> |
|
|
|
</van-nav-bar> |
|
|
|
<div class="top" :style="`top: ${showLeftArrow ? '46px' : '0'};`"> |
|
|
|
<div class="schedule"> |
|
|
|
<div class="progress"> |
|
|
|
<van-progress |
|
|
@@ -128,7 +144,9 @@ export default { |
|
|
|
// 缓存从随手精灵传过来的标识 |
|
|
|
this.$store.commit('fromSsjl', params.fromSsjl) |
|
|
|
// 是否显示 返回标签 |
|
|
|
this.showLeftArrow = this.$store.getters.fromSsjl === 'true' |
|
|
|
if (params.showLeftArrow) { |
|
|
|
this.showLeftArrow = true |
|
|
|
} |
|
|
|
this.fromUrl = params.fromUrl |
|
|
|
console.log('fromUrl', this.fromUrl) |
|
|
|
|
|
|
@@ -274,6 +292,17 @@ export default { |
|
|
|
console.log(error) |
|
|
|
} |
|
|
|
}, |
|
|
|
onNavBack() { |
|
|
|
let fromSsjl = this.$store.getters.fromSsjl === 'true' |
|
|
|
if (fromSsjl) { |
|
|
|
let baseUrl = this.fromUrl |
|
|
|
window.location.href = `${baseUrl}/#/${ |
|
|
|
this.$route.query.fromMenu || 'device' |
|
|
|
}` |
|
|
|
} else { |
|
|
|
window.history.go(-1) |
|
|
|
} |
|
|
|
}, |
|
|
|
// 获取b端token |
|
|
|
getAuth() { |
|
|
|
let manufactorId = '5bf13062-a41e-4d00-ba14-1101aad12650' |
|
|
|