康巴易测肤/伤疤uniapp小程序类
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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