Browse Source

量表页面全部加上可选头部导航

test
wzl 3 months ago
parent
commit
f2779b4904
5 changed files with 47 additions and 7 deletions
  1. +9
    -1
      README.md
  2. +1
    -1
      src/config/models.js
  3. +2
    -1
      src/views/psychological-scale/detail.vue
  4. +32
    -3
      src/views/psychological-scale/index.vue
  5. +3
    -1
      src/views/psychological-scale/list.vue

+ 9
- 1
README.md View File

@@ -1180,4 +1180,12 @@ update

`2024.8.7`
update
- 更新

- 增加 心理量表功能

## v1.0.129

`2024.8.8`
update

- 量表页面全部增加可选头部导航

+ 1
- 1
src/config/models.js View File

@@ -8,7 +8,7 @@
import store from "@/store";
// 情绪模型
const appTypeList = ['1'];
export const VERSION_MODEL = '1.0.128F'; //版本号
export const VERSION_MODEL = '1.0.129F'; //版本号
export const IMAGE_URL = {
production: 'http://zfb.ssjlai.com/web/',
test: 'http://zfb.ssjlai.com/web/',


+ 2
- 1
src/views/psychological-scale/detail.vue View File

@@ -1,11 +1,12 @@
<template>
<div class="page">
<div class="page" :style="`padding-top: ${showLeftArrow ? '46px' : '0'};`">
<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" />返回


+ 32
- 3
src/views/psychological-scale/index.vue View File

@@ -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'


+ 3
- 1
src/views/psychological-scale/list.vue View File

@@ -1,11 +1,13 @@
<template>
<div class="page">
<div class="page"
:style="`padding-top: ${showLeftArrow ? '46px' : '0'};`">
<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" />返回


Loading…
Cancel
Save