Browse Source

uupdate

demo-md
kola-web 2 weeks ago
parent
commit
da3d0c805c
  1. 10
      .neoconf.json
  2. 11
      project.private.config.json
  3. BIN
      src/images/md/10.png
  4. BIN
      src/images/md/12.png
  5. BIN
      src/images/md/13.png
  6. BIN
      src/images/md/14.png
  7. BIN
      src/images/md/15.png
  8. BIN
      src/images/md/16.png
  9. BIN
      src/images/md/18.png
  10. BIN
      src/images/md/19.png
  11. BIN
      src/images/md/2.png
  12. BIN
      src/images/md/20.png
  13. BIN
      src/images/md/21.png
  14. BIN
      src/images/md/22.png
  15. BIN
      src/images/md/23.png
  16. BIN
      src/images/md/24.png
  17. BIN
      src/images/md/25.png
  18. BIN
      src/images/md/3.png
  19. BIN
      src/images/md/35.png
  20. BIN
      src/images/md/4.png
  21. BIN
      src/images/md/8.png
  22. BIN
      src/images/md/9.png
  23. BIN
      src/images/md/popup1.png
  24. BIN
      src/images/md/status0.png
  25. BIN
      src/images/md/status1.png
  26. BIN
      src/images/md/status10.png
  27. BIN
      src/images/md/status2.png
  28. BIN
      src/images/md/status3.png
  29. BIN
      src/images/md/status4.png
  30. BIN
      src/images/md/status5.png
  31. BIN
      src/images/md/status6.png
  32. BIN
      src/images/md/status7.png
  33. BIN
      src/images/md/status8.png
  34. BIN
      src/images/md/status9.png
  35. 6
      src/pages/12/index.ts
  36. 19
      src/pages/2/index.scss
  37. 16
      src/pages/2/index.ts
  38. 11
      src/pages/2/index.wxml
  39. 42
      src/pages/26/index.scss
  40. 18
      src/pages/26/index.ts
  41. 10
      src/pages/26/index.wxml
  42. 4
      src/pages/6/index.json
  43. 111
      src/pages/6/index.scss
  44. 53
      src/pages/6/index.ts
  45. 37
      src/pages/6/index.wxml

10
.neoconf.json

@ -0,0 +1,10 @@
{
"emmet_language_server": {
"init_options": {
"preferences": {
"css.intUnit": "rpx",
"css.floatUnitr": "rpx"
}
}
}
}

11
project.private.config.json

@ -23,11 +23,18 @@
"miniprogram": { "miniprogram": {
"list": [ "list": [
{ {
"name": "患者-首页", "name": "pages/6/index",
"pathName": "pages/1/index", "pathName": "pages/6/index",
"query": "", "query": "",
"scene": null, "scene": null,
"launchMode": "default" "launchMode": "default"
},
{
"name": "患者-首页",
"pathName": "pages/1/index",
"query": "",
"launchMode": "default",
"scene": null
} }
] ]
} }

BIN
src/images/md/10.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 807 KiB

After

Width:  |  Height:  |  Size: 859 KiB

BIN
src/images/md/12.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 595 KiB

After

Width:  |  Height:  |  Size: 626 KiB

BIN
src/images/md/13.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 559 KiB

After

Width:  |  Height:  |  Size: 573 KiB

BIN
src/images/md/14.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 678 KiB

After

Width:  |  Height:  |  Size: 692 KiB

BIN
src/images/md/15.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 802 KiB

After

Width:  |  Height:  |  Size: 803 KiB

BIN
src/images/md/16.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 854 KiB

After

Width:  |  Height:  |  Size: 695 KiB

BIN
src/images/md/18.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

After

Width:  |  Height:  |  Size: 154 KiB

BIN
src/images/md/19.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
src/images/md/2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 602 KiB

After

Width:  |  Height:  |  Size: 520 KiB

BIN
src/images/md/20.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 830 KiB

After

Width:  |  Height:  |  Size: 830 KiB

BIN
src/images/md/21.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 396 KiB

After

Width:  |  Height:  |  Size: 379 KiB

BIN
src/images/md/22.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 726 KiB

After

Width:  |  Height:  |  Size: 723 KiB

BIN
src/images/md/23.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 375 KiB

After

Width:  |  Height:  |  Size: 373 KiB

BIN
src/images/md/24.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 470 KiB

After

Width:  |  Height:  |  Size: 469 KiB

BIN
src/images/md/25.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 2.0 MiB

BIN
src/images/md/3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 474 KiB

After

Width:  |  Height:  |  Size: 437 KiB

BIN
src/images/md/35.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
src/images/md/4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 574 KiB

After

Width:  |  Height:  |  Size: 500 KiB

BIN
src/images/md/8.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 443 KiB

After

Width:  |  Height:  |  Size: 443 KiB

BIN
src/images/md/9.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 446 KiB

After

Width:  |  Height:  |  Size: 460 KiB

BIN
src/images/md/popup1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 445 KiB

BIN
src/images/md/status0.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 KiB

BIN
src/images/md/status1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 KiB

BIN
src/images/md/status10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 585 KiB

BIN
src/images/md/status2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1018 KiB

BIN
src/images/md/status3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 KiB

BIN
src/images/md/status4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 KiB

BIN
src/images/md/status5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 KiB

BIN
src/images/md/status6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 KiB

BIN
src/images/md/status7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 587 KiB

BIN
src/images/md/status8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 587 KiB

BIN
src/images/md/status9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 944 KiB

6
src/pages/12/index.ts

@ -5,7 +5,8 @@ Page({
onLoad() {}, onLoad() {},
handleTap1() { handleTap1() {
wx.navigateTo({ wx.navigateTo({
url: "/pages/13/index", // url: "/pages/13/index",
url: "/pages/26/index",
}); });
}, },
handelTap1() { handelTap1() {
@ -13,7 +14,8 @@ Page({
}, },
handelTap2() { handelTap2() {
wx.navigateTo({ wx.navigateTo({
url: "/pages/13/index", // url: "/pages/13/index",
url: "/pages/26/index",
}); });
}, },
handelTap3() { handelTap3() {

19
src/pages/2/index.scss

@ -1,3 +1,22 @@
.page { .page {
width: 100vw; width: 100vw;
} }
.page-click1 {
position: absolute;
top: 1406rpx;
left: 50vw;
z-index: 1;
width: 50vw;
height: 120rpx;
background-color: transparent;
}
.float1 {
position: absolute;
top: 0;
left: 0;
z-index: 2;
width: 100vw;
height: 100vh;
}

16
src/pages/2/index.ts

@ -1,13 +1,25 @@
const _app = getApp<IAppOption>(); const _app = getApp<IAppOption>();
Page({ Page({
data: {}, data: {
float1: false,
},
onLoad() {}, onLoad() {},
handleTap1() { handlePage() {
wx.navigateTo({ wx.navigateTo({
url: "/pages/3/index", url: "/pages/3/index",
}); });
}, },
handelTap1() {
this.setData({
float1: true,
});
},
handleFloat1() {
this.setData({
float1: false,
});
},
}); });
export {}; export {};

11
src/pages/2/index.wxml

@ -1,2 +1,11 @@
<navigation-bar></navigation-bar> <navigation-bar></navigation-bar>
<image class="page" mode="widthFix" src="{{imageUrl}}md/12.png?t={{Timestamp}}" bind:tap="handleTap1"></image> <image class="page" mode="widthFix" src="{{imageUrl}}md/12.png?t={{Timestamp}}" bind:tap="handlePage"></image>
<view class="page-click1" catch:tap="handelTap1"></view>
<image
wx:if="{{float1}}"
class="float1"
mode="widthFix"
src="{{imageUrl}}md/popup1.png?t={{Timestamp}}"
catch:tap="handleFloat1"
></image>

42
src/pages/26/index.scss

@ -1,3 +1,45 @@
.page { .page {
width: 100vw; width: 100vw;
padding-bottom: 180rpx;
}
.page-click1 {
position: fixed;
bottom: 20rpx;
left: 0;
z-index: 3;
width: 50vw;
height: 224rpx;
background-color: transparent;
}
.page-click2 {
position: fixed;
bottom: 20rpx;
left: 50vw;
z-index: 3;
width: 50vw;
height: 224rpx;
background-color: transparent;
}
.page-click3 {
position: absolute;
top: 320rpx;
left: 0;
z-index: 1;
width: 100vw;
height: 124rpx;
background-color: transparent;
}
.tabbar {
position: fixed;
bottom: 0;
left: 0;
z-index: 2;
width: 100vw;
padding-bottom: 20rpx;
background-color: #fff;
.tabbar-img {
width: 100%;
}
} }

18
src/pages/26/index.ts

@ -3,6 +3,24 @@ const _app = getApp<IAppOption>();
Page({ Page({
data: {}, data: {},
onLoad() {}, onLoad() {},
handleTap1() {
wx.navigateTo({
url: "/pages/13/index",
});
},
handelTap1() {
wx.navigateBack();
},
handelTap2() {
wx.navigateTo({
url: "/pages/13/index",
});
},
handelTap3() {
wx.redirectTo({
url: "/pages/19/index",
});
},
}); });
export {}; export {};

10
src/pages/26/index.wxml

@ -0,0 +1,10 @@
<navigation-bar></navigation-bar>
<image class="page" mode="widthFix" src="{{imageUrl}}md/35.png?t={{Timestamp}}" bind:tap="handleTap1"></image>
<view class="page-click1" catch:tap="handelTap1"></view>
<view class="page-click2" catch:tap="handelTap2"></view>
<view class="page-click3" catch:tap="handelTap3"></view>
<view class="tabbar">
<image class="tabbar-img" mode="widthFix" src="{{imageUrl}}md/footer1.png?t={{Timestamp}}"></image>
</view>

4
src/pages/6/index.json

@ -1,3 +1,5 @@
{ {
"usingComponents": {} "usingComponents": {
"van-slider": "@vant/weapp/slider/index"
}
} }

111
src/pages/6/index.scss

@ -23,6 +23,117 @@
height: 120rpx; height: 120rpx;
background-color: transparent; background-color: transparent;
} }
.status {
position: absolute;
top: 548rpx;
left: 50%;
transform: translateX(-50%);
width: 260rpx;
height: 260rpx;
}
.title {
position: absolute;
top: 826rpx;
left: 0;
width: 100%;
display: flex;
align-items: baseline;
justify-content: center;
font-size: 32rpx;
color: #29282c;
font-weight: bold;
.num {
font-size: 96rpx;
color: #88db93;
font-weight: bold;
}
}
.content {
position: absolute;
top: 936rpx;
left: 0;
width: 100%;
text-align: center;
font-size: 32rpx;
color: #6b7280;
}
.slider {
position: absolute;
top: 1160rpx;
left: 50rpx;
width: calc(100vw - 100rpx);
.slider-button {
width: 72rpx;
height: 72rpx;
border-radius: 50%;
background: linear-gradient(89deg, rgba(171, 198, 125, 1), rgba(205, 179, 105, 1));
&::after {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
content: "";
width: 64rpx;
height: 64rpx;
background-color: #fff;
border-radius: 50%;
}
.tip {
position: absolute;
top: -20rpx;
left: 50%;
transform: translate(-50%, -100%);
min-width: 110rpx;
padding: 10rpx 0;
background: #787878;
border-radius: 492rpx 492rpx 492rpx 492rpx;
display: flex;
align-items: baseline;
justify-content: center;
font-size: 26rpx;
color: rgba(255, 255, 255, 0.5);
line-height: 1;
.num {
font-size: 48rpx;
color: #ffffff;
font-weight: bold;
}
&::after {
position: absolute;
bottom: -10rpx;
content: "";
width: 0;
height: 0;
border-style: solid;
border-width: 12rpx 6rpx 0 6rpx;
border-color: #787878 transparent transparent transparent;
}
}
}
}
}
.swiper-item2 {
position: relative;
height: 100vh;
overflow-y: scroll;
.page-click1 {
position: absolute;
top: 1386rpx;
left: 0;
z-index: 1;
width: 50vw;
height: 120rpx;
background-color: transparent;
}
.page-click2 {
position: absolute;
top: 1386rpx;
left: 50vw;
z-index: 1;
width: 50vw;
height: 120rpx;
background-color: transparent;
}
} }
.page-img { .page-img {
width: 100vw; width: 100vw;

53
src/pages/6/index.ts

@ -3,6 +3,53 @@ const _app = getApp<IAppOption>();
Page({ Page({
data: { data: {
current: 0, current: 0,
sliderValue: 0,
slider: {
0: {
title: "完全不痛",
content: "无痛,舒适,不影响任何活动和睡眠",
},
1: {
title: "轻度疼痛",
content: "极轻微疼痛,几乎不觉,对生活无影响",
},
2: {
title: "轻度疼痛",
content: "轻微疼痛偶尔出现,不干扰睡眠和日常",
},
3: {
title: "轻度疼痛",
content: "轻度持续痛,可忍受,不影响生活",
},
4: {
title: "中度疼痛",
content: "疼痛明显,安静时察觉,睡眠略受扰",
},
5: {
title: "中度疼痛",
content: "中度痛,分散注意力,睡眠翻身增多",
},
6: {
title: "中度疼痛",
content: "中度痛加重,活动受限,睡眠偶醒",
},
7: {
title: "重度疼痛",
content: "重度痛,活动困难,睡眠严重受扰",
},
8: {
title: "重度疼痛",
content: "剧烈痛,几乎不能动,基本无法入睡",
},
9: {
title: "重度疼痛",
content: "极度剧痛,无法活动,毫无睡意",
},
10: {
title: "重度疼痛",
content: "最剧烈疼痛,难以忍受,意识可能模糊",
},
},
}, },
onLoad() {}, onLoad() {},
handlePage1() { handlePage1() {
@ -34,6 +81,12 @@ Page({
url: "/pages/7/index", url: "/pages/7/index",
}); });
}, },
onChange(e: any) {
const value = Math.floor(e.detail.value);
this.setData({
sliderValue: value,
});
},
}); });
export {}; export {};

37
src/pages/6/index.wxml

@ -3,15 +3,48 @@
<swiper class="page" model:current="{{current}}"> <swiper class="page" model:current="{{current}}">
<swiper-item class="swiper-item1" bind:tap="handlePage1"> <swiper-item class="swiper-item1" bind:tap="handlePage1">
<image bind:tap="handlePage1" class="page-img" mode="widthFix" src="{{imageUrl}}md/2.png?t={{Timestamp}}"></image> <image bind:tap="handlePage1" class="page-img" mode="widthFix" src="{{imageUrl}}md/2.png?t={{Timestamp}}"></image>
<image wx:if="{{sliderValue==0}}" class="status" src="{{imageUrl}}md/status0.png?t={{Timestamp}}"></image>
<image wx:if="{{sliderValue==1}}" class="status" src="{{imageUrl}}md/status1.png?t={{Timestamp}}"></image>
<image wx:if="{{sliderValue==2}}" class="status" src="{{imageUrl}}md/status2.png?t={{Timestamp}}"></image>
<image wx:if="{{sliderValue==3}}" class="status" src="{{imageUrl}}md/status3.png?t={{Timestamp}}"></image>
<image wx:if="{{sliderValue==4}}" class="status" src="{{imageUrl}}md/status4.png?t={{Timestamp}}"></image>
<image wx:if="{{sliderValue==5}}" class="status" src="{{imageUrl}}md/status5.png?t={{Timestamp}}"></image>
<image wx:if="{{sliderValue==6}}" class="status" src="{{imageUrl}}md/status6.png?t={{Timestamp}}"></image>
<image wx:if="{{sliderValue==7}}" class="status" src="{{imageUrl}}md/status7.png?t={{Timestamp}}"></image>
<image wx:if="{{sliderValue==8}}" class="status" src="{{imageUrl}}md/status8.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>
<view class="title">
<view class="num">{{sliderValue}}</view>
分-{{slider[sliderValue].title}}
</view>
<view class="content">{{slider[sliderValue].content}}</view>
<van-slider
class="slider"
bar-height="36rpx"
inactive-color="linear-gradient( 90deg, #76E69E 0%, #D1B066 33%,#FF7B4A 66%,#FF484B 100%)"
active-color="transparent"
max="10"
step="0.01"
bind:drag="onChange"
use-button-slot
>
<view class="slider-button" slot="button">
<view class="tip">
<view class="num">{{sliderValue}}</view>
</view>
</view>
</van-slider>
<view class="page-click1" catch:tap="handleTap1"></view> <view class="page-click1" catch:tap="handleTap1"></view>
<view class="page-click2" catch:tap="handleTap2"></view> <view class="page-click2" catch:tap="handleTap2"></view>
</swiper-item> </swiper-item>
<swiper-item class="swiper-item1" bind:tap="handlePage2"> <swiper-item class="swiper-item2" bind:tap="handlePage2">
<image bind:tap="handlePage2" class="page-img" mode="widthFix" src="{{imageUrl}}md/9.png?t={{Timestamp}}"></image> <image bind:tap="handlePage2" class="page-img" mode="widthFix" src="{{imageUrl}}md/9.png?t={{Timestamp}}"></image>
<view class="page-click1" catch:tap="handleTap1"></view> <view class="page-click1" catch:tap="handleTap1"></view>
<view class="page-click2" catch:tap="handleTap2"></view> <view class="page-click2" catch:tap="handleTap2"></view>
</swiper-item> </swiper-item>
<swiper-item class="swiper-item1" bind:tap="handlePage3"> <swiper-item class="swiper-item2" bind:tap="handlePage3">
<image bind:tap="handlePage2" class="page-img" mode="widthFix" src="{{imageUrl}}md/13.png?t={{Timestamp}}"></image> <image bind:tap="handlePage2" class="page-img" mode="widthFix" src="{{imageUrl}}md/13.png?t={{Timestamp}}"></image>
<view class="page-click1" catch:tap="handleTap1"></view> <view class="page-click1" catch:tap="handleTap1"></view>
<view class="page-click2" catch:tap="handleTap2"></view> <view class="page-click2" catch:tap="handleTap2"></view>

Loading…
Cancel
Save