康巴易测肤/伤疤uniapp小程序类
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
3 週之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. <template>
  2. <view class="result">
  3. <u-navbar is-back="true" class="nav-bar" :border-bottom ="false" title-color="#333" title="测评结果" @leftClick="onNavBack"></u-navbar>
  4. <view class="main" :style="{ 'top': paddTopHeight + 'px' }">
  5. <view class="steps">
  6. <view class="step-content">
  7. <view class="step-banner">
  8. <view class="left">
  9. <view class="date">
  10. {{ now }}
  11. </view>
  12. <view class="info">
  13. <view class="tag">{{ calculateAge(userInfo.date) || '--' }}岁</view>
  14. <view class="tag">{{ userInfo.gender || '--' }}</view>
  15. </view>
  16. </view>
  17. <view class="right">
  18. <u-icon name="eye-fill" :color="themeDeepColor" size="28"></u-icon>
  19. <text>问题回顾</text>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="report-container">
  25. <!-- 标题 -->
  26. <view class="report-title">
  27. <view class="bar"></view>
  28. <text>伤口测评报告</text>
  29. </view>
  30. <view class="img-box">
  31. <view class="left">
  32. <u--image :src="resultPath" mode="widthFix" :customStyle="{ marginRight: '20rpx'}" shape="circle" width="50px"
  33. height="50px" @click="onPre(resultPath)"></u--image>
  34. </view>
  35. <view class="right">
  36. <p class="bar-text">匹配度:中</p>
  37. <view class="bar">
  38. <u-line-progress :percentage="70" :showText="false" :activeColor="themeDeepColor" inactiveColor="#333" height="12"></u-line-progress>
  39. </view>
  40. </view>
  41. </view>
  42. <!-- 综合评价 -->
  43. <view class="section">
  44. <view class="section-title">
  45. <u--image :src="sectionSrc1" mode="widthFix" :customStyle="{}" width="20px"
  46. height="20px" ></u--image>
  47. <text class="evaluate-title">综合评价</text>
  48. </view>
  49. <view class="section-main">
  50. <view class="evaluation-item">
  51. <text class="item-label">伤口面积:</text>
  52. <text class="item-value">约6平方厘米。长约4厘米,宽约1.5厘米 0.3毫米 无增生 对比较浅</text>
  53. </view>
  54. <view class="evaluation-item">
  55. <text class="item-label">伤口深度:</text>
  56. <text class="item-value">0.3毫米</text>
  57. </view>
  58. <view class="evaluation-item">
  59. <text class="item-label">肉芽增生:</text>
  60. <text class="item-value">无增生</text>
  61. </view>
  62. <view class="evaluation-item">
  63. <text class="item-label">皮肤颜色:</text>
  64. <text class="item-value">对比较浅</text>
  65. </view>
  66. </view>
  67. </view>
  68. <!-- 上次评测对比 -->
  69. <view class="section">
  70. <view class="section-title">
  71. <u--image :src="sectionSrc2" mode="widthFix" :customStyle="{}" width="20px"
  72. height="20px" ></u--image>
  73. <text class="evaluate-title">上次评测对比</text>
  74. </view>
  75. <view class="section-main">
  76. <view class="comparison-item">
  77. <text>本次评分伤口收复87分,颜色淡化程度98分</text>
  78. </view>
  79. <view class="comparison-item">
  80. <text>上次评分伤口收复85分,颜色淡化程度95分</text>
  81. </view>
  82. </view>
  83. </view>
  84. <!-- 治疗建议 -->
  85. <view class="section">
  86. <view class="section-title">
  87. <u--image :src="sectionSrc3" mode="widthFix" :customStyle="{}" width="20px"
  88. height="20px" ></u--image>
  89. <text class="evaluate-title">治疗建议</text>
  90. </view>
  91. <view class="section-main">
  92. <view class="advice-item">
  93. <text>请坚持每天使用康巴易产品1~2次</text>
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. </view>
  100. </template>
  101. <script>
  102. export default {
  103. data() {
  104. return {
  105. imgList: [
  106. { src: '' },
  107. ],
  108. sectionSrc1: require("../../static/tabbar/select_01.png"),
  109. sectionSrc2: require("../../static/tabbar/select_02.png"),
  110. sectionSrc3: require("../../static/tabbar/select_03.png")
  111. }
  112. },
  113. computed: {
  114. themeColor() {
  115. return this.$themeColor
  116. },
  117. themeDeepColor() {
  118. return this.$themeDeepColor
  119. },
  120. userInfo() {
  121. return this.$store.state.user.userInfo
  122. },
  123. now() {
  124. return this.$util.formateDate('yyy-mm-dd', new Date())
  125. },
  126. resultPath() {
  127. return /* this.$store.state.user.resultPath */this.$store.state.user.photoPath
  128. },
  129. paddTopHeight() {
  130. return this.$util.getPaddTopheight();
  131. }
  132. },
  133. onLoad() {
  134. },
  135. methods: {
  136. onNavBack() {
  137. uni.switchTab({
  138. url: '/pages/details/records',
  139. })
  140. },
  141. calculateAge(date) {
  142. return this.$util.calculateAge(date)
  143. },
  144. onPre(resultPath){
  145. if(resultPath) {
  146. uni.previewImage({
  147. urls: [resultPath]
  148. })
  149. }
  150. }
  151. }
  152. }
  153. </script>
  154. <style lang="scss">
  155. .result {
  156. .main {
  157. position: relative;
  158. background: #fff;
  159. overflow: hidden;
  160. .steps {
  161. padding: 24rpx 32rpx;
  162. background-color: #F3D4A3;
  163. .step-content {
  164. background: #fff;
  165. border-radius: 20rpx;
  166. padding: 30rpx;
  167. .step-banner {
  168. display: flex;
  169. justify-content: space-between;
  170. align-items: center;
  171. .left {
  172. .date {}
  173. .info {
  174. margin-top: 20rpx;
  175. display: flex;
  176. justify-content: space-around;
  177. align-items: center;
  178. .tag {
  179. width: 100rpx;
  180. height: 20rpx;
  181. padding: 10rpx 0;
  182. margin-right: 20rpx;
  183. border-radius: 20rpx;
  184. background-color: $cus-theme-color-deep;
  185. color: #fff;
  186. display: flex;
  187. justify-content: center;
  188. align-items: center;
  189. font-size: 28rpx;
  190. }
  191. }
  192. }
  193. .right {
  194. display: flex;
  195. justify-content: flex-start;
  196. align-items: center;
  197. text {
  198. margin-left: 10rpx;
  199. color: $cus-theme-color-deep;
  200. font-weight: bold;
  201. }
  202. }
  203. }
  204. }
  205. }
  206. .report-container {
  207. padding: 40rpx;
  208. background-color: #fff;
  209. font-family: 'PingFang SC', sans-serif;
  210. /* 标题样式 */
  211. .report-title {
  212. display: flex;
  213. justify-content: flex-start;
  214. align-items: center;
  215. .bar {
  216. height: 40rpx;
  217. width: 10rpx;
  218. background-color: $cus-theme-color;
  219. }
  220. text {
  221. font-size: 36rpx;
  222. font-weight: bold;
  223. color: #333;
  224. margin-left: 20rpx;
  225. }
  226. }
  227. .img-box {
  228. margin: 20rpx 0;
  229. padding: 20rpx 0;
  230. display: flex;
  231. justify-content: flex-start;
  232. align-items: center;
  233. .left {
  234. display: flex;
  235. justify-content: flex-start;
  236. align-items: center;
  237. }
  238. .right {
  239. padding: 10rpx;
  240. width: 100%;
  241. display: flex;
  242. justify-content: flex-start;
  243. align-items: flex-start;
  244. flex-direction: column;
  245. .bar-text {
  246. width: 100%;
  247. margin-bottom: 20rpx;
  248. }
  249. .bar {
  250. width: 100%;
  251. }
  252. }
  253. }
  254. /* 分区标题样式 */
  255. .section-title {
  256. margin-top: 40rpx;
  257. padding: 20rpx 0;
  258. display: flex;
  259. justify-content: flex-start;
  260. align-items: center;
  261. .evaluate-title {
  262. font-size: 36rpx;
  263. font-weight: bold;
  264. color: #333;
  265. margin-left: 20rpx;
  266. }
  267. }
  268. .section-main {
  269. padding: 20rpx;
  270. border-radius: 20rpx;
  271. border: 2rpx solid $cus-theme-color;
  272. /* 评价项样式 */
  273. .evaluation-item {
  274. margin-bottom: 20rpx;
  275. padding: 10rpx;
  276. display: flex;
  277. flex-direction: column;
  278. .item-label {
  279. font-size: 30rpx;
  280. color: $cus-theme-color;
  281. min-width: 160rpx;
  282. }
  283. .item-value {
  284. font-size: 30rpx;
  285. color: #333;
  286. padding-top: 20rpx;
  287. }
  288. }
  289. }
  290. /* 分割线样式 */
  291. .divider {
  292. height: 2rpx;
  293. background-color: #eee;
  294. margin: 80rpx 0;
  295. }
  296. /* 对比项样式 */
  297. .comparison-item {
  298. margin-bottom: 16rpx;
  299. color: #333;
  300. text {
  301. font-size: 30rpx;
  302. }
  303. }
  304. /* 治疗建议样式 */
  305. .advice-item {
  306. color: #333;
  307. text {
  308. font-size: 30rpx;
  309. }
  310. }
  311. }
  312. }
  313. }
  314. </style>