Browse Source

修改

master
JinxChen 4 weeks ago
parent
commit
c08bfe8b82
11 changed files with 48 additions and 18 deletions
  1. +2
    -1
      pages.json
  2. +3
    -3
      pages/details/index.vue
  3. +21
    -6
      pages/details/result.vue
  4. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map
  5. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
  6. +1
    -1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/details/index.js.map
  7. +1
    -1
      unpackage/dist/dev/mp-weixin/common/runtime.js
  8. +1
    -1
      unpackage/dist/dev/mp-weixin/common/vendor.js
  9. +1
    -1
      unpackage/dist/dev/mp-weixin/pages/details/index.js
  10. +1
    -1
      unpackage/dist/dev/mp-weixin/pages/details/index.wxss
  11. +15
    -1
      utils/index.js

+ 2
- 1
pages.json View File

@@ -27,7 +27,8 @@
{
"path": "pages/details/result",
"style": {
"navigationBarTitleText": "测评结果"
"navigationBarTitleText": "测评结果",
"navigationStyle": "custom"
}
},
{


+ 3
- 3
pages/details/index.vue View File

@@ -158,8 +158,8 @@ export default {
time: that.$util.formateDate('HH:MM', now),
day: that.$util.getDayName(),
year: that.$util.formateDate('yyyy', now),
imageSrc: that.$store.state.user.resultPath,
evaluation: '无明显伤口'
imageSrc: that.$store.state.user.setPhotoPath,
evaluation: '伤口减小,肉芽无增生,皮肤逐渐变浅'
}
]
that.$store.commit('setResultList', mockList);
@@ -264,7 +264,7 @@ export default {
.question-content {
margin: 40rpx 0;
padding: 20rpx 0;
max-height: 65vh;
max-height: 52vh;
overflow: scroll;
.select-list {
.select-item {


+ 21
- 6
pages/details/result.vue View File

@@ -1,6 +1,7 @@
<template>
<view class="result">
<view class="main">
<u-navbar is-back="true" class="nav-bar" :border-bottom ="false" title-color="#333" title="测评结果" @leftClick="onNavBack"></u-navbar>
<view class="main" :style="{ 'top': paddTopHeight + 'px' }">
<view class="steps">
<view class="step-content">
<view class="step-banner">
@@ -51,11 +52,11 @@
<view class="section-main">
<view class="evaluation-item">
<text class="item-label">伤口面积:</text>
<text class="item-value">无</text>
<text class="item-value">约6平方厘米。长约4厘米,宽约1.5厘米 0.3毫米 增生 对比较浅</text>
</view>
<view class="evaluation-item">
<text class="item-label">伤口深度:</text>
<text class="item-value"></text>
<text class="item-value">0.3毫米</text>
</view>
<view class="evaluation-item">
<text class="item-label">肉芽增生:</text>
@@ -134,13 +135,21 @@ export default {
return this.$util.formateDate('yyy-mm-dd', new Date())
},
resultPath() {
return this.$store.state.user.resultPath
return /* this.$store.state.user.resultPath */this.$store.state.user.setPhotoPath
},
paddTopHeight() {
return this.$util.getPaddTopheight();
}
},
onLoad() {
},
methods: {
onNavBack() {
uni.switchTab({
url: '/pages/details/records',
})
},
calculateAge(date) {
return this.$util.calculateAge(date)
},
@@ -295,15 +304,15 @@ export default {
padding: 10rpx;
display: flex;
flex-direction: column;
font-size: 30rpx;

.item-label {
font-weight: bold;
font-size: 30rpx;
color: $cus-theme-color;
min-width: 160rpx;
}

.item-value {
font-size: 30rpx;
color: #333;
padding-top: 20rpx;
}
@@ -325,11 +334,17 @@ export default {
.comparison-item {
margin-bottom: 16rpx;
color: #333;
text {
font-size: 30rpx;
}
}

/* 治疗建议样式 */
.advice-item {
color: #333;
text {
font-size: 30rpx;
}
}
}
}


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/details/index.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/mp-weixin/common/runtime.js
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/mp-weixin/common/vendor.js
File diff suppressed because it is too large
View File


+ 1
- 1
unpackage/dist/dev/mp-weixin/pages/details/index.js View File

@@ -1,2 +1,2 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/details/index"],{190:function(t,e,n){"use strict";(function(t,e){var i=n(4);n(26);i(n(25));var r=i(n(191));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n(1)["default"],n(2)["createPage"])},191:function(t,e,n){"use strict";n.r(e);var i=n(192),r=n(194);for(var s in r)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(s);n(196);var o,a=n(32),u=Object(a["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"54d3589c",null,!1,i["components"],o);u.options.__file="pages/details/index.vue",e["default"]=u.exports},192:function(t,e,n){"use strict";n.r(e);var i=n(193);n.d(e,"render",(function(){return i["render"]})),n.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(e,"components",(function(){return i["components"]}))},193:function(t,e,n){"use strict";var i;n.r(e),n.d(e,"render",(function(){return r})),n.d(e,"staticRenderFns",(function(){return o})),n.d(e,"recyclableRender",(function(){return s})),n.d(e,"components",(function(){return i}));try{i={"u-Image":function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u--image/u--image")]).then(n.bind(null,322))},uButton:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-button/u-button")]).then(n.bind(null,255))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var t=this,e=t.$createElement;t._self._c},s=!1,o=[];r._withStripped=!0},194:function(t,e,n){"use strict";n.r(e);var i=n(195),r=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=r.a},195:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{currentStep:0,steps:[{name:"步骤1"},{name:"步骤2"}],parts:["面部","颈部","胸部","背部","四肢","腹部","手部","足部","其它"],categories:["烧伤","割伤","烫伤","手术后(含剖腹产)"],formData:{part:"",category:"",feel:""},aiRootPath:n(483),selectCurrent:null,details:{total:3,list:[{data:["面部","颈部","胸部","背部","四肢","腹部","手部和足部","其它"],stepIndex:0,question:"伤口受伤的部位是?",answer:"",answerIndex:null},{data:["烧伤","割伤","烫伤","手术后(含剖腹产)","跌碰撞伤","青春痘","宠物抓伤","其他"],stepIndex:1,question:"伤口受伤的类别是?",answer:"",answerIndex:null},{data:["红肿程度","痕痒程度","其他"],stepIndex:2,question:"伤口受伤的感受是?",answer:"",answerIndex:null}]},questionList:[]}},computed:{themeColor:function(){return this.$themeColor},bgthemeColor:function(){return"#000"}},onLoad:function(){this.questionList=this.details.list[this.currentStep].data},methods:{onClick:function(t,e){console.log("item",t,e),this.details.list[this.currentStep].answer=t,this.details.list[this.currentStep].answerIndex=e},handleNext:function(){if(0===this.currentStep){if(!this.details.list[this.currentStep].answer)return t.showToast({title:"请选择伤口部位",icon:"none"});this.currentStep++,this.questionList=this.details.list[this.currentStep].data}else if(1===this.currentStep){if(!this.details.list[this.currentStep].answer)return t.showToast({title:"请选择伤口类别",icon:"none"});this.currentStep++,this.questionList=this.details.list[this.currentStep].data}else if(2===this.currentStep){if(!this.details.list[this.currentStep].answer)return t.showToast({title:"请选择伤口感受",icon:"none"});this.onSubmit()}},handlePre:function(){this.currentStep--,this.questionList=this.details.list[this.currentStep].data},onSubmit:function(){var e=this;t.showLoading({title:"提交中",mask:!0}),setTimeout((function(){t.showToast({title:"提交成功",icon:"success"}),console.log("提交数据:",e.formData);var n=new Date,i=[{date:e.$util.formateDate("mm-dd",n),time:e.$util.formateDate("HH:MM",n),day:e.$util.getDayName(),year:e.$util.formateDate("yyyy",n),imageSrc:e.$store.state.user.resultPath,evaluation:"无明显伤口"}];e.$store.commit("setResultList",i),e.$store.commit("saveAll"),t.reLaunch({url:"/pages/details/result"})}),1500)}}};e.default=i}).call(this,n(2)["default"])},196:function(t,e,n){"use strict";n.r(e);var i=n(197),r=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=r.a},197:function(t,e,n){}},[[190,"common/runtime","common/vendor"]]]);
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/details/index"],{190:function(t,e,n){"use strict";(function(t,e){var i=n(4);n(26);i(n(25));var r=i(n(191));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n(1)["default"],n(2)["createPage"])},191:function(t,e,n){"use strict";n.r(e);var i=n(192),r=n(194);for(var s in r)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(s);n(196);var o,a=n(32),u=Object(a["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"54d3589c",null,!1,i["components"],o);u.options.__file="pages/details/index.vue",e["default"]=u.exports},192:function(t,e,n){"use strict";n.r(e);var i=n(193);n.d(e,"render",(function(){return i["render"]})),n.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(e,"components",(function(){return i["components"]}))},193:function(t,e,n){"use strict";var i;n.r(e),n.d(e,"render",(function(){return r})),n.d(e,"staticRenderFns",(function(){return o})),n.d(e,"recyclableRender",(function(){return s})),n.d(e,"components",(function(){return i}));try{i={"u-Image":function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u--image/u--image")]).then(n.bind(null,322))},uButton:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-button/u-button")]).then(n.bind(null,255))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var t=this,e=t.$createElement;t._self._c},s=!1,o=[];r._withStripped=!0},194:function(t,e,n){"use strict";n.r(e);var i=n(195),r=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=r.a},195:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{currentStep:0,steps:[{name:"步骤1"},{name:"步骤2"}],parts:["面部","颈部","胸部","背部","四肢","腹部","手部","足部","其它"],categories:["烧伤","割伤","烫伤","手术后(含剖腹产)"],formData:{part:"",category:"",feel:""},aiRootPath:n(483),selectCurrent:null,details:{total:3,list:[{data:["面部","颈部","胸部","背部","四肢","腹部","手部和足部","其它"],stepIndex:0,question:"伤口受伤的部位是?",answer:"",answerIndex:null},{data:["烧伤","割伤","烫伤","手术后(含剖腹产)","跌碰撞伤","青春痘","宠物抓伤","其他"],stepIndex:1,question:"伤口受伤的类别是?",answer:"",answerIndex:null},{data:["红肿程度","痕痒程度","其他"],stepIndex:2,question:"伤口受伤的感受是?",answer:"",answerIndex:null}]},questionList:[]}},computed:{themeColor:function(){return this.$themeColor},bgthemeColor:function(){return"#000"}},onLoad:function(){this.questionList=this.details.list[this.currentStep].data},methods:{onClick:function(t,e){console.log("item",t,e),this.details.list[this.currentStep].answer=t,this.details.list[this.currentStep].answerIndex=e},handleNext:function(){if(0===this.currentStep){if(!this.details.list[this.currentStep].answer)return t.showToast({title:"请选择伤口部位",icon:"none"});this.currentStep++,this.questionList=this.details.list[this.currentStep].data}else if(1===this.currentStep){if(!this.details.list[this.currentStep].answer)return t.showToast({title:"请选择伤口类别",icon:"none"});this.currentStep++,this.questionList=this.details.list[this.currentStep].data}else if(2===this.currentStep){if(!this.details.list[this.currentStep].answer)return t.showToast({title:"请选择伤口感受",icon:"none"});this.onSubmit()}},handlePre:function(){this.currentStep--,this.questionList=this.details.list[this.currentStep].data},onSubmit:function(){var e=this;t.showLoading({title:"提交中",mask:!0}),setTimeout((function(){t.showToast({title:"提交成功",icon:"success"}),console.log("提交数据:",e.formData);var n=new Date,i=[{date:e.$util.formateDate("mm-dd",n),time:e.$util.formateDate("HH:MM",n),day:e.$util.getDayName(),year:e.$util.formateDate("yyyy",n),imageSrc:e.$store.state.user.setPhotoPath,evaluation:"伤口减小,肉芽无增生,皮肤逐渐变浅"}];e.$store.commit("setResultList",i),e.$store.commit("saveAll"),t.reLaunch({url:"/pages/details/result"})}),1500)}}};e.default=i}).call(this,n(2)["default"])},196:function(t,e,n){"use strict";n.r(e);var i=n(197),r=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=r.a},197:function(t,e,n){}},[[190,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/details/index.js.map

+ 1
- 1
unpackage/dist/dev/mp-weixin/pages/details/index.wxss View File

@@ -127,7 +127,7 @@ text.data-v-54d3589c {
.container .main .question .question-content.data-v-54d3589c {
margin: 40rpx 0;
padding: 20rpx 0;
max-height: 65vh;
max-height: 52vh;
overflow: scroll;
}
.container .main .question .question-content .select-list .select-item.data-v-54d3589c {


+ 15
- 1
utils/index.js View File

@@ -267,6 +267,19 @@ function calculateAge(birthdate) {
const dayIndex = currentDate.getDay(); // 获取当前日期是星期几(0-6)
return daysOfWeek[dayIndex]; // 返回对应的星期名称
}
function getPaddTopheight() {
const systemInfo = uni.getSystemInfoSync();
let statusBarHeight = systemInfo.statusBarHeight;
let navBarHeight = 44;
let paddTopheight = '';
if (systemInfo.platform === 'ios') {
navBarHeight = 44;
} else if (systemInfo.platform === 'android') {
navBarHeight = 50;
}
paddTopheight = navBarHeight + statusBarHeight;
return paddTopheight || 70
}

const util = {
formateDate,
@@ -278,7 +291,8 @@ const util = {
listAddKey,
getColorForStr,
calculateAge,
getDayName
getDayName,
getPaddTopheight
}

export default util

Loading…
Cancel
Save