Browse Source

update

demo-md
kola-web 2 weeks ago
parent
commit
4b5403a668
  1. BIN
      src/images/md/2.png
  2. 11
      src/pages/6/index.ts
  3. 2
      src/pages/6/index.wxml

BIN
src/images/md/2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 520 KiB

After

Width:  |  Height:  |  Size: 524 KiB

11
src/pages/6/index.ts

@ -7,46 +7,57 @@ Page({
sliderValue: 2, sliderValue: 2,
slider: { slider: {
0: { 0: {
color:"#77E59D",
title: "完全不痛", title: "完全不痛",
content: "无痛,舒适,不影响任何活动和睡眠", content: "无痛,舒适,不影响任何活动和睡眠",
}, },
1: { 1: {
color:"#8DD990",
title: "轻度疼痛", title: "轻度疼痛",
content: "极轻微疼痛,几乎不觉,对生活无影响", content: "极轻微疼痛,几乎不觉,对生活无影响",
}, },
2: { 2: {
color:"#A6CA81",
title: "轻度疼痛", title: "轻度疼痛",
content: "轻微疼痛偶尔出现,不干扰睡眠和日常", content: "轻微疼痛偶尔出现,不干扰睡眠和日常",
}, },
3: { 3: {
color:"#C3B96F",
title: "轻度疼痛", title: "轻度疼痛",
content: "轻度持续痛,可忍受,不影响生活", content: "轻度持续痛,可忍受,不影响生活",
}, },
4: { 4: {
color:"#D5AD64",
title: "中度疼痛", title: "中度疼痛",
content: "疼痛明显,安静时察觉,睡眠略受扰", content: "疼痛明显,安静时察觉,睡眠略受扰",
}, },
5: { 5: {
color:"#EC9357",
title: "中度疼痛", title: "中度疼痛",
content: "中度痛,分散注意力,睡眠翻身增多", content: "中度痛,分散注意力,睡眠翻身增多",
}, },
6: { 6: {
color:"#F08E54",
title: "中度疼痛", title: "中度疼痛",
content: "中度痛加重,活动受限,睡眠偶醒", content: "中度痛加重,活动受限,睡眠偶醒",
}, },
7: { 7: {
color:"#FF9736",
title: "重度疼痛", title: "重度疼痛",
content: "重度痛,活动困难,睡眠严重受扰", content: "重度痛,活动困难,睡眠严重受扰",
}, },
8: { 8: {
color:"#FF6E4B",
title: "重度疼痛", title: "重度疼痛",
content: "剧烈痛,几乎不能动,基本无法入睡", content: "剧烈痛,几乎不能动,基本无法入睡",
}, },
9: { 9: {
color:"#FF5F4B",
title: "重度疼痛", title: "重度疼痛",
content: "极度剧痛,无法活动,毫无睡意", content: "极度剧痛,无法活动,毫无睡意",
}, },
10: { 10: {
color:"#FF4B4B",
title: "重度疼痛", title: "重度疼痛",
content: "最剧烈疼痛,难以忍受,意识可能模糊", content: "最剧烈疼痛,难以忍受,意识可能模糊",
}, },

2
src/pages/6/index.wxml

@ -15,7 +15,7 @@
<image wx:if="{{sliderValue==9}}" class="status" src="{{imageUrl}}md/status9.png?t={{Timestamp}}"></image> <image wx:if="{{sliderValue==9}}" class="status" src="{{imageUrl}}md/status9.png?t={{Timestamp}}"></image>
<image wx:if="{{sliderValue==10}}" class="status" src="{{imageUrl}}md/status10.png?t={{Timestamp}}"></image> <image wx:if="{{sliderValue==10}}" class="status" src="{{imageUrl}}md/status10.png?t={{Timestamp}}"></image>
<view class="title"> <view class="title">
<view class="num">{{sliderValue}}</view> <view class="num" style="color:{{slider[sliderValue].color}}">{{sliderValue}}</view>
分-{{slider[sliderValue].title}} 分-{{slider[sliderValue].title}}
</view> </view>
<view class="content">{{slider[sliderValue].content}}</view> <view class="content">{{slider[sliderValue].content}}</view>

Loading…
Cancel
Save