|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352 |
- <template>
- <view class="result">
- <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">
- <view class="left">
- <view class="date">
- {{ now }}
- </view>
- <view class="info">
- <view class="tag">{{ calculateAge(userInfo.date) || '--' }}岁</view>
- <view class="tag">{{ userInfo.gender || '--' }}</view>
- </view>
- </view>
- <view class="right">
- <u-icon name="eye-fill" :color="themeDeepColor" size="28"></u-icon>
- <text>问题回顾</text>
- </view>
- </view>
- </view>
- </view>
- <view class="report-container">
- <!-- 标题 -->
- <view class="report-title">
- <view class="bar"></view>
- <text>伤口测评报告</text>
- </view>
-
- <view class="img-box">
- <view class="left">
- <u--image :src="resultPath" mode="widthFix" :customStyle="{ marginRight: '20rpx'}" shape="circle" width="50px"
- height="50px" @click="onPre(resultPath)"></u--image>
- </view>
- <view class="right">
- <p class="bar-text">匹配度:中</p>
- <view class="bar">
- <u-line-progress :percentage="70" :showText="false" :activeColor="themeDeepColor" inactiveColor="#333" height="12"></u-line-progress>
- </view>
-
- </view>
- </view>
-
- <!-- 综合评价 -->
- <view class="section">
- <view class="section-title">
- <u--image :src="sectionSrc1" mode="widthFix" :customStyle="{}" width="20px"
- height="20px" ></u--image>
- <text class="evaluate-title">综合评价</text>
- </view>
- <view class="section-main">
- <view class="evaluation-item">
- <text class="item-label">伤口面积:</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">0.3毫米</text>
- </view>
- <view class="evaluation-item">
- <text class="item-label">肉芽增生:</text>
- <text class="item-value">无增生</text>
- </view>
- <view class="evaluation-item">
- <text class="item-label">皮肤颜色:</text>
- <text class="item-value">对比较浅</text>
- </view>
- </view>
- </view>
-
- <!-- 上次评测对比 -->
- <view class="section">
- <view class="section-title">
- <u--image :src="sectionSrc2" mode="widthFix" :customStyle="{}" width="20px"
- height="20px" ></u--image>
- <text class="evaluate-title">上次评测对比</text>
- </view>
- <view class="section-main">
-
- <view class="comparison-item">
- <text>本次评分伤口收复87分,颜色淡化程度98分</text>
- </view>
- <view class="comparison-item">
- <text>上次评分伤口收复85分,颜色淡化程度95分</text>
- </view>
- </view>
-
- </view>
-
-
- <!-- 治疗建议 -->
- <view class="section">
- <view class="section-title">
- <u--image :src="sectionSrc3" mode="widthFix" :customStyle="{}" width="20px"
- height="20px" ></u--image>
- <text class="evaluate-title">治疗建议</text>
- </view>
- <view class="section-main">
-
- <view class="advice-item">
- <text>请坚持每天使用康巴易产品1~2次</text>
- </view>
- </view>
-
- </view>
- </view>
- </view>
- </view>
- </template>
-
- <script>
- export default {
- data() {
- return {
- imgList: [
- { src: '' },
- ],
- sectionSrc1: require("../../static/tabbar/select_01.png"),
- sectionSrc2: require("../../static/tabbar/select_02.png"),
- sectionSrc3: require("../../static/tabbar/select_03.png")
- }
- },
- computed: {
- themeColor() {
- return this.$themeColor
- },
- themeDeepColor() {
- return this.$themeDeepColor
- },
- userInfo() {
- return this.$store.state.user.userInfo
- },
- now() {
- return this.$util.formateDate('yyy-mm-dd', new Date())
- },
- resultPath() {
- return /* this.$store.state.user.resultPath */this.$store.state.user.photoPath
- },
- paddTopHeight() {
- return this.$util.getPaddTopheight();
- }
- },
- onLoad() {
-
- },
- methods: {
- onNavBack() {
- uni.switchTab({
- url: '/pages/details/records',
- })
- },
- calculateAge(date) {
- return this.$util.calculateAge(date)
- },
- onPre(resultPath){
- if(resultPath) {
- uni.previewImage({
- urls: [resultPath]
- })
- }
- }
- }
- }
- </script>
-
- <style lang="scss">
- .result {
- .main {
- position: relative;
- background: #fff;
- overflow: hidden;
-
- .steps {
- padding: 24rpx 32rpx;
- background-color: #F3D4A3;
-
- .step-content {
- background: #fff;
- border-radius: 20rpx;
- padding: 30rpx;
-
- .step-banner {
- display: flex;
- justify-content: space-between;
- align-items: center;
-
- .left {
- .date {}
-
- .info {
- margin-top: 20rpx;
- display: flex;
- justify-content: space-around;
- align-items: center;
-
- .tag {
- width: 100rpx;
- height: 20rpx;
- padding: 10rpx 0;
- margin-right: 20rpx;
- border-radius: 20rpx;
- background-color: $cus-theme-color-deep;
- color: #fff;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 28rpx;
- }
- }
- }
-
- .right {
- display: flex;
- justify-content: flex-start;
- align-items: center;
-
- text {
- margin-left: 10rpx;
- color: $cus-theme-color-deep;
- font-weight: bold;
- }
- }
- }
- }
- }
-
- .report-container {
- padding: 40rpx;
- background-color: #fff;
- font-family: 'PingFang SC', sans-serif;
-
- /* 标题样式 */
- .report-title {
- display: flex;
- justify-content: flex-start;
- align-items: center;
- .bar {
- height: 40rpx;
- width: 10rpx;
- background-color: $cus-theme-color;
- }
-
- text {
- font-size: 36rpx;
- font-weight: bold;
- color: #333;
- margin-left: 20rpx;
- }
- }
- .img-box {
- margin: 20rpx 0;
- padding: 20rpx 0;
- display: flex;
- justify-content: flex-start;
- align-items: center;
- .left {
- display: flex;
- justify-content: flex-start;
- align-items: center;
- }
- .right {
- padding: 10rpx;
- width: 100%;
- display: flex;
- justify-content: flex-start;
- align-items: flex-start;
- flex-direction: column;
- .bar-text {
- width: 100%;
- margin-bottom: 20rpx;
- }
- .bar {
- width: 100%;
- }
- }
- }
-
- /* 分区标题样式 */
- .section-title {
- margin-top: 40rpx;
- padding: 20rpx 0;
- display: flex;
- justify-content: flex-start;
- align-items: center;
-
- .evaluate-title {
- font-size: 36rpx;
- font-weight: bold;
- color: #333;
- margin-left: 20rpx;
- }
-
- }
-
- .section-main {
- padding: 20rpx;
- border-radius: 20rpx;
- border: 2rpx solid $cus-theme-color;
-
- /* 评价项样式 */
- .evaluation-item {
- margin-bottom: 20rpx;
- padding: 10rpx;
- display: flex;
- flex-direction: column;
-
- .item-label {
- font-size: 30rpx;
- color: $cus-theme-color;
- min-width: 160rpx;
- }
-
- .item-value {
- font-size: 30rpx;
- color: #333;
- padding-top: 20rpx;
- }
- }
-
-
- }
-
-
-
- /* 分割线样式 */
- .divider {
- height: 2rpx;
- background-color: #eee;
- margin: 80rpx 0;
- }
-
- /* 对比项样式 */
- .comparison-item {
- margin-bottom: 16rpx;
- color: #333;
- text {
- font-size: 30rpx;
- }
- }
-
- /* 治疗建议样式 */
- .advice-item {
- color: #333;
- text {
- font-size: 30rpx;
- }
- }
- }
- }
- }
- </style>
|