diff --git a/.prettierrc b/.prettierrc
index 170b4a2..f20f145 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -1,35 +1,28 @@
{
- "$schema": "https://json.schemastore.org/prettierrc.json",
+ "$schema": "http://json.schemastore.org/prettierrc",
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
- "semi": true,
+ "semi": false,
"singleQuote": true,
"bracketSpacing": true,
"trailingComma": "all",
"arrowParens": "always",
- "endOfLine": "auto",
+ "endOfLine": "lf",
"htmlWhitespaceSensitivity": "ignore",
"singleAttributePerLine": false,
- "jsxSingleQuote": true,
"overrides": [
{
"files": "*.wxml",
- "options": {
- "parser": "html"
- }
+ "options": { "parser": "html" }
},
{
"files": "*.wxss",
- "options": {
- "parser": "css"
- }
+ "options": { "parser": "css" }
},
{
"files": "*.wxs",
- "options": {
- "parser": "babel"
- }
+ "options": { "parser": "babel" }
}
]
}
diff --git a/README.md b/README.md
index 5888b3c..9dcb3b2 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,8 @@
https://pic1.zhimg.com/50/v2-dcfbab1219ae4f7a7a6db168bb1580a2_720w.jpg?source=2c26e567
images svn 地址
-svn://39.106.86.127:28386/projects/takeda/proj_src/shop/frontend/web/wt
+svn://39.106.86.127:28386/projects/xd/proj_src/shop/frontend/web/xd
+svn://39.106.86.127:28386/projects/xd/proj_src/branches/dev_v2.0/shop/frontend/web/xd/
(/images/)(\S*(?=["|']))
{{imageUrl}}$2?t={{Timestamp}}
diff --git a/project.config.json b/project.config.json
index 4a3111e..c975dce 100644
--- a/project.config.json
+++ b/project.config.json
@@ -1,75 +1,73 @@
-{
- "description": "项目配置文件",
- "miniprogramRoot": "src/",
- "compileType": "miniprogram",
- "setting": {
- "useCompilerPlugins": [
- "typescript",
- "sass"
- ],
- "babelSetting": {
- "ignore": [],
- "disablePlugins": [],
- "outputPath": ""
- },
- "coverView": false,
- "postcss": false,
- "minified": false,
- "enhance": true,
- "showShadowRootInWxmlPanel": false,
- "packNpmManually": true,
- "packNpmRelationList": [
- {
- "packageJsonPath": "package.json",
- "miniprogramNpmDistDir": "./src"
- }
- ],
- "ignoreUploadUnusedFiles": true,
- "compileHotReLoad": false,
- "skylineRenderEnable": true,
- "es6": true,
- "compileWorklet": false,
- "uglifyFileName": false,
- "uploadWithSourceMap": true,
- "minifyWXSS": true,
- "minifyWXML": true,
- "localPlugins": false,
- "disableUseStrict": false,
- "condition": false,
- "swc": false,
- "disableSWC": true
- },
- "simulatorType": "wechat",
- "simulatorPluginLibVersion": {},
- "condition": {},
- "srcMiniprogramRoot": "src/",
- "editorSetting": {
- "tabIndent": "insertSpaces",
- "tabSize": 2
- },
- "libVersion": "3.7.7",
- "ignore": [],
- "packOptions": {
- "ignore": [
- {
- "value": "/images/*.*",
- "type": "glob"
- },
- {
- "value": "/images/**/*.*",
- "type": "glob"
- },
- {
- "value": "/images/**/**/*.*",
- "type": "glob"
- }
- ],
- "include": [
- {
- "value": "/images/tabbar/*.*",
- "type": "glob"
- }
- ]
- },
- "appid": "wxf9ce8010f1ad24aa"
-}
\ No newline at end of file
+{
+ "description": "项目配置文件",
+ "miniprogramRoot": "src/",
+ "compileType": "miniprogram",
+ "setting": {
+ "useCompilerPlugins": ["typescript", "sass"],
+ "babelSetting": {
+ "ignore": [],
+ "disablePlugins": [],
+ "outputPath": ""
+ },
+ "coverView": false,
+ "postcss": false,
+ "minified": false,
+ "enhance": true,
+ "showShadowRootInWxmlPanel": false,
+ "packNpmManually": true,
+ "packNpmRelationList": [
+ {
+ "packageJsonPath": "package.json",
+ "miniprogramNpmDistDir": "./src"
+ }
+ ],
+ "ignoreUploadUnusedFiles": true,
+ "compileHotReLoad": false,
+ "skylineRenderEnable": true,
+ "es6": true,
+ "compileWorklet": false,
+ "uglifyFileName": false,
+ "uploadWithSourceMap": true,
+ "minifyWXSS": true,
+ "minifyWXML": true,
+ "localPlugins": false,
+ "disableUseStrict": false,
+ "condition": false,
+ "swc": false,
+ "disableSWC": true
+ },
+ "simulatorType": "wechat",
+ "simulatorPluginLibVersion": {},
+ "condition": {},
+ "srcMiniprogramRoot": "src/",
+ "editorSetting": {
+ "tabIndent": "insertSpaces",
+ "tabSize": 2
+ },
+ "libVersion": "3.7.7",
+ "ignore": [],
+ "packOptions": {
+ "ignore": [
+ {
+ "value": "/images/*.*",
+ "type": "glob"
+ },
+ {
+ "value": "/images/**/*.*",
+ "type": "glob"
+ },
+ {
+ "value": "/images/**/**/*.*",
+ "type": "glob"
+ }
+ ],
+ "include": [
+ {
+ "value": "/images/tabbar/*.*",
+ "type": "glob"
+ }
+ ]
+ },
+ "appid": "wxf9ce8010f1ad24aa"
+}
+
diff --git a/project.private.config.json b/project.private.config.json
index 7c6e787..2357198 100644
--- a/project.private.config.json
+++ b/project.private.config.json
@@ -23,11 +23,32 @@
"miniprogram": {
"list": [
{
+ "name": "患者-直播结果页",
+ "pathName": "patient/pages/liveResult/index",
+ "query": "id=5",
+ "scene": null,
+ "launchMode": "default"
+ },
+ {
+ "name": "患者-医生详情",
+ "pathName": "patient/pages/doctorDetail/index",
+ "query": "id=3",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
+ "name": "患者-互动",
+ "pathName": "patient/pages/interactivePatient/index",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
"name": "患者端-登录",
"pathName": "patient/pages/login/index",
"query": "",
- "scene": null,
- "launchMode": "default"
+ "launchMode": "default",
+ "scene": null
},
{
"name": "资料库详情",
diff --git a/src/app.json b/src/app.json
index 89d5194..de8e074 100644
--- a/src/app.json
+++ b/src/app.json
@@ -131,8 +131,8 @@
"text": "资料库"
},
{
- "iconPath": "/images/tabbar/tab2.png",
- "selectedIconPath": "/images/tabbar/tab-active2.png",
+ "iconPath": "/images/tabbar/tab4.png",
+ "selectedIconPath": "/images/tabbar/tab-active4.png",
"pagePath": "pages/d_interactive/index",
"text": "互动"
},
diff --git a/src/components/patient-tab-bar/index.scss b/src/components/patient-tab-bar/index.scss
index a2aa18b..c93a87f 100644
--- a/src/components/patient-tab-bar/index.scss
+++ b/src/components/patient-tab-bar/index.scss
@@ -1,19 +1,15 @@
-/* custom-tab-bar/index.wxss */
-
-
-.tab-item {
- .icon {
- width: 50rpx;
- height: 50rpx;
- }
- .name {
- font-size: 24rpx;
- color: #CCCCCC;
- &.active{
- color: #CF5375;
- }
- &.drug-active{
- color: #25D9C8;
- }
- }
-}
+/* custom-tab-bar/index.wxss */
+
+.tab-item {
+ .icon {
+ width: 48rpx;
+ height: 48rpx;
+ }
+ .name {
+ font-size: 20rpx;
+ color: rgba(105, 104, 110, 1);
+ &.active {
+ color: rgba(33, 29, 46, 1);
+ }
+ }
+}
diff --git a/src/components/patient-tab-bar/index.ts b/src/components/patient-tab-bar/index.ts
index 48d4621..33f3520 100644
--- a/src/components/patient-tab-bar/index.ts
+++ b/src/components/patient-tab-bar/index.ts
@@ -1,5 +1,5 @@
-import { getCurrentPageUrl } from '@/utils/util';
-const app = getApp();
+import { getCurrentPageUrl } from '@/utils/util'
+const app = getApp()
Component({
properties: {},
@@ -11,32 +11,26 @@ Component({
{
pagePath: '/patient/pages/index/index',
text: '首页',
- icon: 'home',
- iconActive: 'home-active',
+ icon: 'tab1',
+ iconActive: 'tab-active1',
},
{
pagePath: '/patient/pages/repository/index',
- text: 'MG全知道',
- icon: 'story',
- iconActive: 'story-active',
+ text: '了解TED',
+ icon: 'tab2',
+ iconActive: 'tab-active2',
},
{
pagePath: '/patient/pages/live/index',
- text: '周三大咖说',
- icon: 'gift',
- iconActive: 'gift-active',
- },
- {
- pagePath: '/patient/pages/story/index',
- text: '向往的生活',
- icon: 'class',
- iconActive: 'class-active',
+ text: '大咖说',
+ icon: 'tab5',
+ iconActive: 'tab-active5',
},
{
pagePath: '/patient/pages/my/index',
text: '我的',
- icon: 'my',
- iconActive: 'my-active',
+ icon: 'tab3',
+ iconActive: 'tab-active3',
},
],
userInfo: {},
@@ -50,17 +44,17 @@ Component({
app.zdGetTheme().then((res) => {
this.setData({
theme: res,
- });
- });
+ })
+ })
- const pagePath = getCurrentPageUrl();
- const active = this.data.list.findIndex((item) => item.pagePath === pagePath);
+ const pagePath = getCurrentPageUrl()
+ const active = this.data.list.findIndex((item) => item.pagePath === pagePath)
this.setData({
active,
- });
+ })
this.setData({
showRed: app.globalData.showRed,
- });
+ })
// getApp().registerListener(() => {
// wx.ajax({
// method: 'GET',
@@ -76,30 +70,30 @@ Component({
methods: {
onChange() {},
handleNav(e) {
- const { index } = e.currentTarget.dataset;
- const { list, config } = this.data;
- const pagePath = list[index].pagePath;
- app.globalData.BeginnerCardId = '';
+ const { index } = e.currentTarget.dataset
+ const { list, config } = this.data
+ const pagePath = list[index].pagePath
+ app.globalData.BeginnerCardId = ''
if (pagePath == '/patient/pages/my/index') {
app.zdPermissionVerification(2, 0, `/patient/pages/index/index`).then(() => {
wx.reLaunch({
url: pagePath,
- });
- });
+ })
+ })
} else if (pagePath == '/patient/pages/repository/index' && config.picTextEbookStatus == 1) {
app.zdPermissionVerification(2, 0, `/pages/repository/index`).then(() => {
const webviewUrl = encodeURIComponent(
`${app.globalData.url}/zdcare/#/cover?loginState=${app.globalData.loginState}`,
- );
+ )
wx.navigateTo({
url: `/patient/pages/webview/index?url=${webviewUrl}`,
- });
- });
+ })
+ })
} else {
wx.reLaunch({
url: pagePath,
- });
+ })
}
},
},
-});
+})
diff --git a/src/components/patient-tab-bar/index.wxml b/src/components/patient-tab-bar/index.wxml
index d76abe5..5d25952 100644
--- a/src/components/patient-tab-bar/index.wxml
+++ b/src/components/patient-tab-bar/index.wxml
@@ -4,9 +4,9 @@
class="tab-item"
bind:tap="handleNav"
data-index="{{index}}"
- icon="{{imageUrl}}za-images/tabbar/{{active==index ? (theme === 'DRUG' ? 'drug-' :'' ) + item.iconActive: item.icon}}.png"
+ icon="{{imageUrl}}tabbar/{{active==index ? item.iconActive: item.icon}}.png"
>
- {{item.text}}
+ {{item.text}}
diff --git a/src/images/bg10.png b/src/images/bg10.png
new file mode 100644
index 0000000..e38a0c7
Binary files /dev/null and b/src/images/bg10.png differ
diff --git a/src/images/icon24.png b/src/images/icon24.png
new file mode 100644
index 0000000..358b3cc
Binary files /dev/null and b/src/images/icon24.png differ
diff --git a/src/images/icon25.png b/src/images/icon25.png
new file mode 100644
index 0000000..dc98882
Binary files /dev/null and b/src/images/icon25.png differ
diff --git a/src/images/icon26.png b/src/images/icon26.png
new file mode 100644
index 0000000..6e13c3e
Binary files /dev/null and b/src/images/icon26.png differ
diff --git a/src/images/icon27.png b/src/images/icon27.png
new file mode 100644
index 0000000..fb3e62d
Binary files /dev/null and b/src/images/icon27.png differ
diff --git a/src/images/icon28.png b/src/images/icon28.png
new file mode 100644
index 0000000..8f73a97
Binary files /dev/null and b/src/images/icon28.png differ
diff --git a/src/images/icon29.png b/src/images/icon29.png
new file mode 100644
index 0000000..ba9fed9
Binary files /dev/null and b/src/images/icon29.png differ
diff --git a/src/images/icon30.png b/src/images/icon30.png
new file mode 100644
index 0000000..e4877a4
Binary files /dev/null and b/src/images/icon30.png differ
diff --git a/src/images/icon31.png b/src/images/icon31.png
new file mode 100644
index 0000000..fdec640
Binary files /dev/null and b/src/images/icon31.png differ
diff --git a/src/images/icon32.png b/src/images/icon32.png
new file mode 100644
index 0000000..ade313e
Binary files /dev/null and b/src/images/icon32.png differ
diff --git a/src/images/icon33.png b/src/images/icon33.png
new file mode 100644
index 0000000..87b84db
Binary files /dev/null and b/src/images/icon33.png differ
diff --git a/src/images/icon34.png b/src/images/icon34.png
new file mode 100644
index 0000000..478a8c0
Binary files /dev/null and b/src/images/icon34.png differ
diff --git a/src/images/icon35.png b/src/images/icon35.png
new file mode 100644
index 0000000..5c0646e
Binary files /dev/null and b/src/images/icon35.png differ
diff --git a/src/images/icon36.png b/src/images/icon36.png
new file mode 100644
index 0000000..8ff1790
Binary files /dev/null and b/src/images/icon36.png differ
diff --git a/src/images/icon37.png b/src/images/icon37.png
new file mode 100644
index 0000000..c512770
Binary files /dev/null and b/src/images/icon37.png differ
diff --git a/src/images/icon38.png b/src/images/icon38.png
new file mode 100644
index 0000000..0c7ce8e
Binary files /dev/null and b/src/images/icon38.png differ
diff --git a/src/images/icon39.png b/src/images/icon39.png
new file mode 100644
index 0000000..f49c105
Binary files /dev/null and b/src/images/icon39.png differ
diff --git a/src/images/icon40.png b/src/images/icon40.png
new file mode 100644
index 0000000..f54e777
Binary files /dev/null and b/src/images/icon40.png differ
diff --git a/src/images/icon41.png b/src/images/icon41.png
new file mode 100644
index 0000000..35cf88e
Binary files /dev/null and b/src/images/icon41.png differ
diff --git a/src/images/icon42.png b/src/images/icon42.png
new file mode 100644
index 0000000..6a4be30
Binary files /dev/null and b/src/images/icon42.png differ
diff --git a/src/images/icon43.png b/src/images/icon43.png
new file mode 100644
index 0000000..85768b7
Binary files /dev/null and b/src/images/icon43.png differ
diff --git a/src/images/icon44.png b/src/images/icon44.png
new file mode 100644
index 0000000..957a2d3
Binary files /dev/null and b/src/images/icon44.png differ
diff --git a/src/images/logo2.png b/src/images/logo2.png
new file mode 100644
index 0000000..e8d5929
Binary files /dev/null and b/src/images/logo2.png differ
diff --git a/src/images/tabbar/tab-active4.png b/src/images/tabbar/tab-active4.png
new file mode 100644
index 0000000..3894dc2
Binary files /dev/null and b/src/images/tabbar/tab-active4.png differ
diff --git a/src/images/tabbar/tab-active5.png b/src/images/tabbar/tab-active5.png
new file mode 100644
index 0000000..d0cfb89
Binary files /dev/null and b/src/images/tabbar/tab-active5.png differ
diff --git a/src/images/tabbar/tab4.png b/src/images/tabbar/tab4.png
new file mode 100644
index 0000000..026a1e6
Binary files /dev/null and b/src/images/tabbar/tab4.png differ
diff --git a/src/images/tabbar/tab5.png b/src/images/tabbar/tab5.png
new file mode 100644
index 0000000..dbb0a7b
Binary files /dev/null and b/src/images/tabbar/tab5.png differ
diff --git a/src/images/title6.png b/src/images/title6.png
new file mode 100644
index 0000000..327e324
Binary files /dev/null and b/src/images/title6.png differ
diff --git a/src/patient/pages/cancellation/index.json b/src/patient/pages/cancellation/index.json
index c70e319..a10316d 100644
--- a/src/patient/pages/cancellation/index.json
+++ b/src/patient/pages/cancellation/index.json
@@ -1,6 +1,6 @@
{
- "navigationBarTitleText": "",
- "navigationStyle": "custom",
+ "navigationBarTitleText": "注销账号",
+ "navigationStyle": "default",
"usingComponents": {
"navBar": "/components/zd-navBar/navBar"
}
diff --git a/src/patient/pages/cancellation/index.scss b/src/patient/pages/cancellation/index.scss
index 2e5974d..48a3d8b 100644
--- a/src/patient/pages/cancellation/index.scss
+++ b/src/patient/pages/cancellation/index.scss
@@ -1,48 +1,44 @@
-page {
- background-color: #afb7cb;
-}
-.page {
- height: 100vh;
- display: flex;
- flex-direction: column;
- .container {
- padding: 76rpx 48rpx 58rpx;
- flex: 1;
- margin-top: 160rpx;
- box-sizing: border-box;
- border-radius: 48rpx 48rpx 0 0;
- background-color: #fff;
- text-align: center;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- .icon {
- width: 256rpx;
- height: 256rpx;
- }
- .title {
- margin-top: 51rpx;
- font-size: 48rpx;
- color: #495069;
- font-weight: bold;
- }
- .tip {
- text-align: left;
- margin-top: 44rpx;
- font-size: 30rpx;
- line-height: 53rpx;
- color: #aeb7cd;
- }
- .footer {
- .rescan {
- width: 100%;
- height: 80rpx;
- text-align: center;
- color: #fff;
- line-height: 80rpx;
- background: #B8BFD1;
- border-radius: 42rpx;
- }
- }
- }
-}
+page {
+ background-color: rgba(246, 248, 249, 1);
+}
+.page {
+ height: 100vh;
+ .container {
+ padding: 84rpx 40rpx 0;
+ text-align: center;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ .icon {
+ width: 128rpx;
+ height: 128rpx;
+ }
+ .title {
+ margin-top: 51rpx;
+ font-size: 36rpx;
+ color: rgba(0, 0, 0, 1);
+ font-weight: bold;
+ }
+ .tip {
+ margin-top: 48rpx;
+ padding: 32rpx;
+ font-size: 32rpx;
+ line-height: 48rpx;
+ border-radius: 24rpx;
+ color: rgba(173, 172, 178, 1);
+ background-color: #fff;
+ }
+ .footer {
+ margin-top: 80rpx;
+ .rescan {
+ width: 100%;
+ height: 88rpx;
+ text-align: center;
+ color: #fff;
+ line-height: 88rpx;
+ background: linear-gradient( 197deg, #FFBCF9 0%, #B982FF 100%);
+ border-radius: 42rpx;
+ }
+ }
+ }
+}
diff --git a/src/patient/pages/cancellation/index.wxml b/src/patient/pages/cancellation/index.wxml
index 22fb617..62bd718 100644
--- a/src/patient/pages/cancellation/index.wxml
+++ b/src/patient/pages/cancellation/index.wxml
@@ -1,13 +1,8 @@
-
-
-
- 注销后数据不可恢复
-
- 请谨慎操作
-
+
+ 注销后数据不可恢复 请谨慎操作
注销账号后,系统会删除当前患者的全部信息和数据,包括基础信息数据,患者的健康记录数据,若您有亲友号绑定此患者,则亲友号也将同步自动注销。您注销后若重新注册,则为全新身份在平台内使用,原有的数据无法恢复。
diff --git a/src/patient/pages/doctorDetail/index.json b/src/patient/pages/doctorDetail/index.json
index 70c331f..2b5306d 100644
--- a/src/patient/pages/doctorDetail/index.json
+++ b/src/patient/pages/doctorDetail/index.json
@@ -2,6 +2,6 @@
"navigationStyle": "custom",
"usingComponents": {
"van-icon": "@vant/weapp/icon/index",
- "navBar": "/components/zd-navBar/navBar"
+ "navbar": "/components/navbar/index"
}
}
diff --git a/src/patient/pages/doctorDetail/index.scss b/src/patient/pages/doctorDetail/index.scss
index 0d5f2ac..833c787 100644
--- a/src/patient/pages/doctorDetail/index.scss
+++ b/src/patient/pages/doctorDetail/index.scss
@@ -1,19 +1,21 @@
page {
- background: #f2f4f5;
- padding-bottom: calc(140rpx + env(safe-area-inset-bottom));
+ background: rgba(246, 248, 249, 1);
}
.page {
min-height: 100vh;
+ padding: 0 30rpx;
.container {
- margin: 160rpx 30rpx 0;
- padding: 0 30rpx 40rpx;
- background: #fff linear-gradient(to top, #ffffff 0%, #e8f0f1 100%) no-repeat top center/100% 200rpx;
+ position: relative;
+ padding: 32rpx 32rpx 32rpx 32rpx;
+ background: linear-gradient(53deg, #ffffff 0%, rgba(255, 255, 255, 0.46) 100%);
border-radius: 24rpx 24rpx 24rpx 24rpx;
border: 2rpx solid #ffffff;
.avatar {
- margin-top: -50rpx;
- width: 128rpx;
- height: 128rpx;
+ position: absolute;
+ top: -36rpx;
+ right: 32rpx;
+ width: 164rpx;
+ height: 164rpx;
.avatar-user {
width: 100%;
height: 100%;
@@ -21,46 +23,47 @@ page {
}
}
.name {
- margin: -55rpx 0 0 150rpx;
+ padding-right: 220rpx;
font-size: 40rpx;
- color: rgba(40, 48, 49, 1);
+ color: rgba(33, 29, 46, 1);
font-weight: bold;
- line-height: 1;
+ line-height: 48rpx;
+ .label {
+ display: inline;
+ font-weight: normal;
+ font-size: 28rpx;
+ color: rgba(105, 104, 110, 1);
+ }
}
- .card {
- margin-top: 52rpx;
- padding: 32rpx;
- background: #ffffff;
- box-shadow: 0rpx 8rpx 32rpx 0rpx rgba(40, 48, 49, 0.04);
- border-radius: 24rpx 24rpx 24rpx 24rpx;
- border: 2rpx solid #f8f9f9;
- .content {
- display: flex;
- gap: 8rpx;
- align-items: start;
- font-size: 32rpx;
- color: rgba(40, 48, 49, 1);
- line-height: 1;
- .tag {
- flex-shrink: 0;
- padding: 4rpx 12rpx;
- font-size: 22rpx;
- color: rgba(229, 154, 41, 1);
- border-radius: 8rpx;
- background-color: rgba(229, 154, 41, 0.29);
- }
+ .hostipal {
+ margin-top: 20rpx;
+ padding-right: 220rpx;
+ font-size: 28rpx;
+ color: rgba(105, 104, 110, 1);
+ .tag {
+ margin-right: 12rpx;
+ display: inline-block;
+ flex-shrink: 0;
+ padding: 4rpx 12rpx;
+ font-size: 22rpx;
+ color: #fff;
+ border-radius: 8rpx;
+ background: linear-gradient(90deg, #ffd650 0%, #f8a61a 100%);
}
+ }
+ .card {
+ margin-top: 32rpx;
+ padding-top: 32rpx;
+ border-top: 1px solid rgba(246, 248, 249, 1);
.c-row {
- margin-top: 32rpx;
display: flex;
- gap: 12rpx;
- font-size: 32rpx;
- color: rgba(40, 48, 49, 1);
- line-height: 1;
+ gap: 16rpx;
+ font-size: 28rpx;
+ color: rgba(105, 104, 110, 1);
.icon {
flex-shrink: 0;
- width: 32rpx;
- height: 32rpx;
+ width: 36rpx;
+ height: 36rpx;
}
.site-num {
margin-top: 10rpx;
@@ -70,75 +73,22 @@ page {
}
}
}
- .row {
- margin-top: 32rpx;
- .r-title {
- width: 128rpx;
- height: 32rpx;
- }
- .r-content {
- margin-top: 16rpx;
- font-size: 28rpx;
- color: rgba(154, 161, 163, 1);
- }
- }
}
- .invite {
- padding: 36rpx 30rpx 36rpx 168rpx;
- margin: 24rpx 30rpx 0;
- display: flex;
- align-items: center;
- justify-content: space-between;
- border-radius: 24rpx;
+ .info-card {
+ margin-top: 24rpx;
+ padding: 32rpx;
+ background: #ffffff;
+ border-radius: 24rpx 24rpx 24rpx 24rpx;
border: 2rpx solid #ffffff;
- .wrap {
- .title {
- font-size: 36rpx;
- color: rgba(40, 48, 49, 1);
- }
- .content {
- font-size: 28rpx;
- color: rgba(154, 161, 163, 1);
- }
- }
- .btn {
- width: 198rpx;
- height: 64rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 32rpx;
- color: rgba(255, 255, 255, 1);
- background: #62bed0;
- border-radius: 136rpx 136rpx 136rpx 136rpx;
+ .r-title {
+ width: 128rpx;
+ height: 32rpx;
}
- }
- .list {
- margin: 24rpx 30rpx 0;
- .list-item {
- padding: 30rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- background: #ffffff;
- border-radius: 24rpx 24rpx 24rpx 24rpx;
- .left {
- display: flex;
- gap: 20rpx;
- align-items: center;
- .icon {
- width: 48rpx;
- height: 48rpx;
- }
- .name {
- font-size: 32rpx;
- color: rgba(40, 48, 49, 1);
- }
- }
- .more {
- color: #d4d9da;
- font-size: 32rpx;
- }
+ .r-content {
+ margin-top: 16rpx;
+ font-size: 28rpx;
+ color: rgba(105, 104, 110, 1);
+ line-height: 44rpx;
}
}
}
diff --git a/src/patient/pages/doctorDetail/index.ts b/src/patient/pages/doctorDetail/index.ts
index c6821bb..024fa38 100644
--- a/src/patient/pages/doctorDetail/index.ts
+++ b/src/patient/pages/doctorDetail/index.ts
@@ -1,150 +1,142 @@
-const app = getApp()
-
-Page({
- data: {
- id: '',
- detail: {} as any,
- LNG: '' as number | string,
- LAT: '' as number | string,
- pagination: {
- page: 1,
- pages: 1,
- count: 1,
- },
- },
- onLoad(options) {
- const SystemInfo = app.globalSystemInfo
- if (SystemInfo) {
- const { top, bottom } = SystemInfo.capsulePosition
- this.setData({
- top,
- bottom,
- })
- }
- app.zdWaitLogin().then((_res) => {
- this.setData({
- id: options.id,
- })
- this.handleToggleSite()
- })
- },
- handleToggleSite() {
- const that = this
- if (!this.data.LNG) {
- wx.getSetting({
- success(res) {
- if (
- res.authSetting['scope.userFuzzyLocation'] != undefined &&
- res.authSetting['scope.userFuzzyLocation'] == true
- ) {
- //获取当前位置
- that.getFuzzyLocation()
- } else if (res.authSetting['scope.userFuzzyLocation'] == undefined) {
- //获取当前位置
- that.getFuzzyLocation()
- } else {
- wx.showModal({
- title: '请求授权当前位置',
- content: '需要获取您的地理位置,请确认授权',
- confirmColor: '#cf5375',
- success(res) {
- if (res.cancel) {
- //取消授权
- wx.showToast({
- title: '拒绝授权',
- icon: 'none',
- duration: 1000,
- })
- that.getFuzzyLocation()
- } else if (res.confirm) {
- //确定授权,通过wx.openSetting发起授权请求
- wx.openSetting({
- success(res) {
- if (res.authSetting['scope.userFuzzyLocation'] == true) {
- that.getFuzzyLocation()
- } else {
- that.getFuzzyLocation()
- }
- },
- })
- }
- },
- })
- }
- },
- })
- } else {
- that.setData({
- LNG: '',
- LAT: '',
- })
- this.getDetail()
- }
- },
- getFuzzyLocation() {
- const that = this
- wx.getFuzzyLocation({
- success(res) {
- that.setData({
- LNG: res.longitude,
- LAT: res.latitude,
- })
- that.getDetail()
- },
- fail(_err) {
- that.getDetail()
- },
- })
- },
- getDetail() {
- wx.ajax({
- method: 'GET',
- url: '?r=zd/doctor/detail',
- data: {
- Id: this.data.id,
- lng: this.data.LNG,
- lat: this.data.LAT,
- },
- }).then((res) => {
- let weekName = ''
- if (res.ClinicType == 2) {
- weekName = res.Clinic
- } else {
- weekName = (res.Clinic ? res.Clinic : [])
- .map((subItem: { weekday: string | number; timeType: string | number }) => {
- const week = ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
- const timeDay = { 1: '上午', 2: '下午' }
- return `${week[Number(subItem.weekday) - 1]}${timeDay[subItem.timeType]}`
- })
- .join(',')
- }
- this.setData({
- detail: {
- ...res,
- weekName,
- },
- })
- })
- },
- handlePhone() {
- const { detail } = this.data
- wx.makePhoneCall({
- phoneNumber: detail.Telephone,
- })
- },
- handleOpenMap() {
- const {
- detail: { hospital },
- } = this.data
- wx.openLocation({
- latitude: hospital.LAT,
- longitude: hospital.LNG,
- name: hospital.Name,
- address: `${hospital.ProvinceName}${hospital.CityName}${hospital.AreaName}${hospital.Address}`,
- })
- },
- handleBack() {
- wx.navigateBack()
- },
- onPageScroll() {},
-})
+const app = getApp()
+
+Page({
+ data: {
+ id: '',
+ detail: {} as any,
+ LNG: '' as number | string,
+ LAT: '' as number | string,
+ pagination: {
+ page: 1,
+ pages: 1,
+ count: 1,
+ },
+ },
+ onLoad(options) {
+ app.waitLogin({ type: [1] }).then((_res) => {
+ this.setData({
+ id: options.id,
+ })
+ this.handleToggleSite()
+ })
+ },
+ handleToggleSite() {
+ const that = this
+ if (!this.data.LNG) {
+ wx.getSetting({
+ success(res) {
+ if (
+ res.authSetting['scope.userFuzzyLocation'] != undefined &&
+ res.authSetting['scope.userFuzzyLocation'] == true
+ ) {
+ //获取当前位置
+ that.getFuzzyLocation()
+ } else if (res.authSetting['scope.userFuzzyLocation'] == undefined) {
+ //获取当前位置
+ that.getFuzzyLocation()
+ } else {
+ wx.showModal({
+ title: '请求授权当前位置',
+ content: '需要获取您的地理位置,请确认授权',
+ confirmColor: '#cf5375',
+ success(res) {
+ if (res.cancel) {
+ //取消授权
+ wx.showToast({
+ title: '拒绝授权',
+ icon: 'none',
+ duration: 1000,
+ })
+ that.getFuzzyLocation()
+ } else if (res.confirm) {
+ //确定授权,通过wx.openSetting发起授权请求
+ wx.openSetting({
+ success(res) {
+ if (res.authSetting['scope.userFuzzyLocation'] == true) {
+ that.getFuzzyLocation()
+ } else {
+ that.getFuzzyLocation()
+ }
+ },
+ })
+ }
+ },
+ })
+ }
+ },
+ })
+ } else {
+ that.setData({
+ LNG: '',
+ LAT: '',
+ })
+ this.getDetail()
+ }
+ },
+ getFuzzyLocation() {
+ const that = this
+ wx.getFuzzyLocation({
+ success(res) {
+ that.setData({
+ LNG: res.longitude,
+ LAT: res.latitude,
+ })
+ that.getDetail()
+ },
+ fail(_err) {
+ that.getDetail()
+ },
+ })
+ },
+ getDetail() {
+ wx.ajax({
+ method: 'GET',
+ url: '?r=zd/doctor/detail',
+ data: {
+ Id: this.data.id,
+ lng: this.data.LNG,
+ lat: this.data.LAT,
+ },
+ }).then((res) => {
+ let weekName = ''
+ if (res.ClinicType == 2) {
+ weekName = res.Clinic
+ } else {
+ weekName = (res.Clinic ? res.Clinic : [])
+ .map((subItem: { weekday: string | number; timeType: string | number }) => {
+ const week = ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
+ const timeDay = { 1: '上午', 2: '下午' }
+ return `${week[Number(subItem.weekday) - 1]}${timeDay[subItem.timeType]}`
+ })
+ .join(',')
+ }
+ this.setData({
+ detail: {
+ ...res,
+ weekName,
+ },
+ })
+ })
+ },
+ handlePhone() {
+ const { detail } = this.data
+ wx.makePhoneCall({
+ phoneNumber: detail.Telephone,
+ })
+ },
+ handleOpenMap() {
+ const {
+ detail: { hospital },
+ } = this.data
+ wx.openLocation({
+ latitude: hospital.LAT,
+ longitude: hospital.LNG,
+ name: hospital.Name,
+ address: `${hospital.ProvinceName}${hospital.CityName}${hospital.AreaName}${hospital.Address}`,
+ })
+ },
+ handleBack() {
+ wx.navigateBack()
+ },
+ onPageScroll() {},
+})
diff --git a/src/patient/pages/doctorDetail/index.wxml b/src/patient/pages/doctorDetail/index.wxml
index 579d230..92fe6b9 100644
--- a/src/patient/pages/doctorDetail/index.wxml
+++ b/src/patient/pages/doctorDetail/index.wxml
@@ -1,43 +1,50 @@
-
+
+
+
- {{detail.Name}}
+
+ {{detail.Name}}
+ 主任医生 | 眼科
+
+
+ 三级甲等
+ {{detail.hospital.Name}}
+
+
+
+
-
- {{detail.hospital.Name}}
-
- {{detail.hospital.HospitalClassificationName}}{{detail.hospital.HospitalLevelName}}
-
-
-
+
{{detail.hospital.ProvinceName}}{{detail.hospital.CityName}}{{detail.hospital.CountyName}}{{detail.hospital.Address}}
{{detail.hospital.dist}}
-
+
{{ detail.Telephone }}
-
-
- {{detail.Introduce}}
-
-
-
- {{detail.weekName}}
-
+
+
+
+
+ {{detail.Introduce}}
+
+
+
+ {{detail.weekName}}
diff --git a/src/patient/pages/enterInfo/index.json b/src/patient/pages/enterInfo/index.json
index ffc6647..3f47e68 100644
--- a/src/patient/pages/enterInfo/index.json
+++ b/src/patient/pages/enterInfo/index.json
@@ -3,10 +3,9 @@
"navigationStyle": "custom",
"disableSwipeBack": true,
"usingComponents": {
- "loginNavbar": "/components/loginNavbar/index",
- "pageNavbar": "/components/pageNavbar/index",
"van-icon": "@vant/weapp/icon/index",
"van-divider": "@vant/weapp/divider/index",
- "van-popup": "@vant/weapp/popup/index"
+ "van-popup": "@vant/weapp/popup/index",
+ "navbar": "/components/navbar/index"
}
}
diff --git a/src/patient/pages/enterInfo/index.scss b/src/patient/pages/enterInfo/index.scss
index 78ad38d..8eafe96 100644
--- a/src/patient/pages/enterInfo/index.scss
+++ b/src/patient/pages/enterInfo/index.scss
@@ -2,77 +2,76 @@
min-height: 100vh;
position: relative;
box-sizing: border-box;
- background-color: #fff;
+ background-color: rgba(255, 255, 255, 1);
.bg {
width: 100%;
+ height: 512rpx;
}
.page-container {
- padding-bottom: 180rpx;
+ padding-bottom: 260rpx;
position: absolute;
width: 100%;
top: 0;
left: 0;
display: flex;
flex-direction: column;
- .navbar {
- flex-shrink: 0;
- }
- .title {
- margin-top: 86rpx;
- font-size: 56rpx;
- color: #333333;
- font-weight: bold;
- text-align: center;
- }
.content {
- margin: 86rpx auto 0;
- padding: 40rpx 64rpx 0;
- width: 654rpx;
+ padding: 40rpx 40rpx 0;
box-sizing: border-box;
- background: #ffffff;
- box-shadow: 0rpx 4rpx 24rpx 0rpx rgba(0, 0, 0, 0.09);
- border: 2rpx solid rgba(224, 71, 117, 0.25);
border-radius: 24rpx;
.switch {
- margin-bottom: 40rpx;
+ margin-bottom: 50rpx;
display: flex;
gap: 22rpx;
- justify-content: space-between;
+ justify-content: center;
+ gap: 86rpx;
.item {
- padding: 19rpx 19rpx 16rpx;
- flex: 1;
- background: #f2f2f2;
- border-radius: 24rpx 24rpx 24rpx 24rpx;
- border: 1px solid #d2d2d2;
- text-align: center;
- .icon {
- width: 152rpx;
- height: 90rpx;
+ .icon-wrap {
+ background: rgba(255, 255, 255, 1);
+ border-radius: 24rpx 24rpx 24rpx 24rpx;
+ border: 1px solid rgba(255, 255, 255, 1);
+ text-align: center;
+ .icon {
+ display: block;
+ margin-bottom: -2px;
+ width: 186rpx;
+ height: 164rpx;
+ }
}
.name {
- margin-top: 12rpx;
- font-size: 28rpx;
- color: #999999;
- line-height: 32rpx;
+ margin-top: 24rpx;
+ font-size: 32rpx;
+ color: rgba(173, 172, 178, 1);
+ text-align: center;
}
&.active {
- background-color: #ffffff;
- border-color: #cf5375;
+ .icon-wrap {
+ border-color: rgba(185, 130, 255, 1);
+ }
.name {
- color: #cf5375;
+ color: rgba(185, 130, 255, 1);
}
}
}
}
- .divider {
- font-size: 24rpx;
- color: #aaaaaa;
+ .row-title {
+ margin-top: 48rpx;
+ margin-bottom: 24rpx;
+ font-size: 32rpx;
+ font-weight: bold;
+ color: rgba(33, 29, 46, 1);
+ .sub {
+ font-size: 32rpx;
+ color: rgba(105, 104, 110, 1);
+ font-weight: normal;
+ }
}
.row {
margin-bottom: 40rpx;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
+ gap: 22rpx;
&.row-age {
display: grid;
grid-template-columns: repeat(3, 1fr);
@@ -110,97 +109,102 @@
height: 40rpx;
font-size: 32rpx;
color: #333;
- background: #f2f2f2;
- border: 2rpx solid #cccccc;
- border-radius: 24rpx;
+ background: #f6f8f9;
+ border-radius: 116rpx;
+ }
+ .input-place {
+ color: rgba(173, 172, 178, 1);
+ }
+ .input-required {
+ display: flex;
+ justify-content: space-between;
+ align-items: flex-end;
+ &::after {
+ flex-shrink: 0;
+ margin-right: 60rpx;
+ content: '';
+ width: 12rpx;
+ height: 12rpx;
+ border-radius: 50%;
+ background: rgba(185, 130, 255, 1);
+ }
}
.item {
- padding: 12rpx 24rpx;
+ flex: 1;
+ padding: 12rpx 62rpx;
opacity: 1;
border: 2rpx solid #cccccc;
- font-size: 28rpx;
- color: #999999;
+ font-size: 32rpx;
+ color: rgba(173, 172, 178, 1);
display: flex;
align-items: center;
justify-content: center;
- border-radius: 12rpx;
- background: linear-gradient(90deg, #fff 0%, #f9f9f9 100%);
+ border-radius: 116rpx;
+ background: rgba(246, 248, 249, 1);
.icon {
width: 64rpx;
height: 64rpx;
}
&.active {
- color: #e04775;
- background: linear-gradient(90deg, #fff 0%, #f9f9f9 100%);
- border-color: #e04775;
- }
- }
- .input-required {
- display: flex;
- justify-content: space-between;
- align-items: center;
- &::after {
- margin-right: 60rpx;
- content: '';
- width: 12rpx;
- height: 12rpx;
- border-radius: 50%;
- background: #e04775;
+ color: rgba(185, 130, 255, 1);
+ background: #fff;
+ border-color: rgba(185, 130, 255, 1);
}
}
.age-item {
margin-bottom: 24rpx;
- width: 160rpx;
+ width: 208rpx;
height: 88rpx;
white-space: nowrap;
- font-size: 28rpx;
+ font-size: 32rpx;
color: #999999;
display: flex;
align-items: center;
justify-content: center;
- border-radius: 12rpx;
+ border-radius: 150rpx;
box-sizing: border-box;
border: 2rpx solid #d2d2d2;
&.active {
- color: #e04775;
- border-color: #e04775;
+ color: rgba(185, 130, 255, 1);
+ border-color: rgba(185, 130, 255, 1);
}
}
}
.tip {
- margin-top: -26rpx;
- font-size: 24rpx;
+ margin-top: -24rpx;
+ margin-left: 46rpx;
+ font-size: 28rpx;
line-height: 40rpx;
- color: #cf5375;
+ color: rgba(185, 130, 255, 1);
}
}
}
.footer {
+ padding: 32rpx 40rpx 40rpx;
position: fixed;
left: 0;
- bottom: 40rpx;
- width: calc(100% - 96rpx);
- flex-shrink: 0;
- margin: 0 48rpx;
+ bottom: 0;
+ width: 100%;
box-sizing: border-box;
- display: flex;
- > view:not(:last-of-type),
- > image {
- margin-right: 30rpx;
- }
+ background-color: #fff;
+ box-shadow: 0 -10rpx 10rpx rgba(204,204,204, 0.1);
.next {
flex: 1;
text-align: center;
height: 88rpx;
line-height: 88rpx;
text-align: center;
- border: 2rpx solid #e04775;
- border-radius: 24rpx;
+ border-radius: 100rpx;
font-size: 34rpx;
- font-weight: bold;
- background-color: #e04775;
+ background: linear-gradient(197deg, #ffbcf9 0%, #b982ff 100%);
color: #fff;
}
+ .cancel {
+ margin-top: 48rpx;
+ font-size: 32rpx;
+ color: rgba(173, 172, 178, 1);
+ text-align: center;
+ }
}
}
diff --git a/src/patient/pages/enterInfo/index.ts b/src/patient/pages/enterInfo/index.ts
index 539cf4d..e05899d 100644
--- a/src/patient/pages/enterInfo/index.ts
+++ b/src/patient/pages/enterInfo/index.ts
@@ -1,5 +1,5 @@
-import dayjs from 'dayjs';
-const app = getApp();
+import dayjs from 'dayjs'
+const app = getApp()
Page({
data: {
@@ -26,7 +26,7 @@ Page({
this.setData({
pagePath: options.page,
proces: options.proces,
- });
+ })
app.zdWaitLogin({ isReg: false, loginPage: true }).then(() => {
app.getZdUserInfo(this, true, (zdUserInfo) => {
this.setData({
@@ -34,81 +34,53 @@ Page({
name: zdUserInfo.PatientName,
gender: zdUserInfo.Gender,
ageRange: zdUserInfo.AgeRange,
- });
- });
- app.zdMpBehavior({ PageName: 'PG_PATIENTINFOENTRY' });
- });
+ })
+ })
+ app.zdMpBehavior({ PageName: 'PG_PATIENTINFOENTRY' })
+ })
},
handleRelationType(e: WechatMiniprogram.CustomEvent) {
- const { id } = e.currentTarget.dataset;
+ const { id } = e.currentTarget.dataset
this.setData({
relationType: id,
- });
+ })
},
handleGender(e: WechatMiniprogram.CustomEvent) {
- const { id } = e.currentTarget.dataset;
+ const { id } = e.currentTarget.dataset
this.setData({
gender: id,
- });
+ })
},
handleSelectAge(e: WechatMiniprogram.CustomEvent) {
- const { id } = e.currentTarget.dataset;
+ const { id } = e.currentTarget.dataset
this.setData({
ageRange: id,
- });
- },
- bindChangeDate(e: WechatMiniprogram.CustomEvent) {
- const { key } = e.currentTarget.dataset;
- this.setData({
- [key]: e.detail.value,
- });
- },
- handleDiagnoseTypeSave() {
- const rangeIndex = this.data.selectDiagnoseTypeIndex;
- const { DiagnoseType } = this.data;
- const { id, name } = DiagnoseType[rangeIndex];
- this.setData({
- diagnoseTypeIndex: rangeIndex,
- diagnoseTypeName: name,
- diagnoseType: id,
- });
- this.handleDiagnoseTypeShow();
- },
- handleDiagnoseTypeShow() {
- this.setData({
- diagnoseTypeShow: !this.data.diagnoseTypeShow,
- });
- },
- bindChange(e: WechatMiniprogram.CustomEvent) {
- const rangeIndex = e.detail.value[0];
- this.setData({
- selectDiagnoseTypeIndex: rangeIndex,
- });
+ })
},
handleSubmit() {
- if (this.data.submiting) return;
- app.zdMpBehavior({ PageName: 'BTN_PATIENTINFONEXT' });
- const { name, gender, ageRange, relationType } = this.data;
- const { registrationSource, registChannel, regBusinessId, WorkerId, IsAliQiWei } = app.globalData;
- const { doctorId, inviteChan } = app.globalData.scene;
- let toast = '';
+ if (this.data.submiting) return
+ app.zdMpBehavior({ PageName: 'BTN_PATIENTINFONEXT' })
+ const { name, gender, ageRange, relationType } = this.data
+ const { registrationSource, registChannel, regBusinessId, WorkerId, IsAliQiWei } = app.globalData
+ const { doctorId, inviteChan } = app.globalData.scene
+ let toast = ''
// if (!diagnosisTime) toast = "确诊时间不能为空";
// if (!birth) toast = "出生日期不能为空";
- if (!gender) toast = '请选择性别';
- if (!ageRange) toast = '请选择年龄范围';
- if (!name) toast = '姓名不能为空';
+ if (!gender) toast = '请选择性别'
+ if (!ageRange) toast = '请选择年龄范围'
+ if (!name) toast = '姓名不能为空'
if (toast) {
- wx.showToast({ title: toast, icon: 'none' });
- return;
+ wx.showToast({ title: toast, icon: 'none' })
+ return
}
- const backPage = app.globalData.backPage;
+ const backPage = app.globalData.backPage
const navUrl =
- typeof backPage === 'string' && backPage.includes('liveResult') ? backPage : '/patient/pages/certReslove/index';
+ typeof backPage === 'string' && backPage.includes('liveResult') ? backPage : '/patient/pages/certReslove/index'
this.setData({
submiting: true,
- });
+ })
wx.ajax({
method: 'POST',
url: '?r=zd/account/reg',
@@ -133,21 +105,27 @@ Page({
app.updateLoginInfo(() => {
wx.reLaunch({
url: navUrl,
- });
+ })
this.setData({
submiting: false,
- });
- });
+ })
+ })
})
.catch(() => {
this.setData({
submiting: false,
- });
- });
+ })
+ })
},
handleBack() {
- wx.navigateBack();
+ wx.navigateBack({
+ fail() {
+ wx.reLaunch({
+ url: '/patient/pages/login/index',
+ })
+ },
+ })
},
-});
+})
-export {};
+export {}
diff --git a/src/patient/pages/enterInfo/index.wxml b/src/patient/pages/enterInfo/index.wxml
index 1cbf934..1392f2d 100644
--- a/src/patient/pages/enterInfo/index.wxml
+++ b/src/patient/pages/enterInfo/index.wxml
@@ -1,31 +1,21 @@
-
-
-
- 录入信息
+
+
+
+
+
-
- 选择身份
-
-
-
-
-
+
+
+
患者本人
-
-
+
+
+
患者亲友
@@ -33,28 +23,31 @@
请您输入真实姓名,便于医生识别随访
-
- 患者性别
-
+ 患者性别
-
+
女性用户
-
+
男性用户
-
- 患者年龄范围
-
+ 患者年龄范围
18岁以下
18岁-44岁
@@ -62,109 +55,28 @@
60岁-74岁
75岁以上
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ 是否有Graves病病史
+ (非必填)
+
+
+ 是
+ 否
+ 不确定
+
+
+ 是否有TED(甲状腺眼突)及其相关眼部手术史
+ (非必填)
+
+
+ 是
+ 否
+ 不确定
+
-
-
diff --git a/src/patient/pages/index/index.scss b/src/patient/pages/index/index.scss
index 0d3d735..1a025dc 100644
--- a/src/patient/pages/index/index.scss
+++ b/src/patient/pages/index/index.scss
@@ -1,18 +1,11 @@
$page-margin: 40rpx;
page {
- background-color: #fafafa;
+ background-color: rgba(246, 248, 249, 1);
}
.page {
position: relative;
min-height: 100vh;
- .bg {
- margin-top: 96rpx;
- width: 100%;
- }
- .drug-bg {
- width: 100%;
- }
.page-container {
position: absolute;
left: 0;
@@ -20,52 +13,23 @@ page {
width: 100%;
box-sizing: border-box;
padding-bottom: 180rpx;
- .user {
- margin: 53rpx $page-margin 0;
- display: flex;
- align-items: center;
- .avatar {
- width: 87rpx;
- height: 87rpx;
- border-radius: 50%;
- }
- .content {
- margin-left: 33rpx;
- .name {
- font-size: 32rpx;
- color: #333333;
- font-weight: bold;
- line-height: 48rpx;
- }
- .info {
- font-size: 24rpx;
- color: #999999;
- line-height: 48rpx;
- .num {
- font-size: 32rpx;
- color: #333333;
- font-weight: bold;
- }
- }
- }
- }
- .referral {
- margin: $page-margin $page-margin 0;
- .referral-img {
- margin-left: -20rpx;
- width: calc(100% + 20rpx);
- height: 234rpx;
- }
- }
.doctor {
margin: $page-margin $page-margin 0;
- padding: 70rpx 10rpx 10rpx;
+ padding: 16rpx 10rpx 10rpx;
border-radius: 24rpx;
+ background: linear-gradient(195deg, #ffe3fc 0%, #ecddff 100%);
+ .title {
+ padding-left: 16rpx;
+ font-size: 32rpx;
+ color: rgba(185, 130, 255, 1);
+ font-weight: bold;
+ }
.container {
+ margin-top: 16rpx;
padding: 27rpx 0 27rpx 27rpx;
display: flex;
justify-content: space-between;
- background: rgba(255, 255, 255, 0.95);
+ background: linear-gradient(351deg, #ffffff 0%, rgba(255, 255, 255, 0.78) 100%);
border-radius: 21rpx;
.avatar {
width: 104rpx;
@@ -124,10 +88,9 @@ page {
}
.icon {
margin-left: 4rpx;
- margin-top: -20rpx;
display: inline-block;
width: 36rpx;
- height: 24rpx;
+ height: 36rpx;
}
}
.content {
@@ -152,7 +115,7 @@ page {
font-size: 22rpx;
line-height: 1;
color: #ffffff;
- background: #ee951b;
+ background: linear-gradient( 90deg, #FFD650 0%, #F8A61A 100%);
line-height: 24rpx;
border-radius: 8rpx 8rpx 8rpx 8rpx;
}
@@ -160,11 +123,11 @@ page {
}
.btn {
align-self: center;
- width: 151rpx;
+ width: 128rpx;
height: 44rpx;
font-size: 28rpx;
- color: #cf5375;
- background: linear-gradient(136deg, #ebeffe 0%, #fce3ec 100%), #ffffff;
+ color: #fff;
+ background: linear-gradient(197deg, #ffbcf9 0%, #b982ff 100%);
border-radius: 420rpx 0 0 420rpx;
display: flex;
align-items: center;
@@ -184,11 +147,11 @@ page {
margin: $page-margin;
.swiper {
width: 100%;
- height: 280rpx;
+ height: 224rpx;
.swiper-item {
display: block;
width: 100%;
- height: 240rpx;
+ height: 224rpx;
box-sizing: border-box;
border-radius: 20rpx;
.swiper-item-img {
@@ -208,382 +171,15 @@ page {
}
}
}
- .adl {
- position: relative;
- margin: $page-margin;
- .adl-bg {
- width: 100%;
- height: 240rpx;
- }
- .adl-container {
- padding: 63rpx 40rpx 24rpx;
- width: 100%;
- box-sizing: border-box;
- position: absolute;
- top: 0;
- left: 0;
- .other {
- .new {
- position: absolute;
- left: -22rpx;
- top: 9rpx;
- .icon {
- width: 123rpx;
- height: 59rpx;
- }
- .new-text {
- position: absolute;
- width: 68rpx;
- height: 26rpx;
- top: 13rpx;
- left: 18rpx;
- }
- }
- .adl-title {
- width: 334rpx;
- height: 86rpx;
- }
- .title {
- font-size: 44rpx;
- font-weight: bold;
- color: #fff;
- line-height: 48rpx;
- .blod {
- // font-size: 50rpx;
- }
- }
- .num {
- font-size: 25rpx;
- line-height: 36rpx;
- color: #fff;
- }
- .status {
- margin-top: 18rpx;
- padding: 0 25rpx;
- display: inline-block;
- font-size: 22rpx;
- color: #e04775;
- background-color: #fff;
- border-radius: 17rpx;
- }
- .btn {
- margin-top: 10rpx;
- width: 206rpx;
- height: 54rpx;
- border-radius: 30rpx;
- text-align: center;
- line-height: 54rpx;
- background: #ffffff linear-gradient(136deg, #e6edfe 0%, #fee0ea 100%);
- opacity: 1;
- margin-right: 20rpx;
- font-size: 28rpx;
- color: #cf5375;
- font-weight: bold;
- .icon {
- width: 21rpx;
- height: 21rpx;
- margin-left: 9rpx;
- }
- }
- .o-aside {
- position: absolute;
- top: 7rpx;
- right: 0;
- .badge {
- width: 302rpx;
- height: 233rpx;
- }
- }
- }
- }
- &.adl-drugs {
- .adl-container {
- .other {
- .title {
- color: #fff;
- }
- .num {
- color: #fff;
- }
- .status {
- color: #24d8c8;
- }
- .btn {
- width: 206rpx;
- height: 54rpx;
- background: #ffffff;
- font-size: 28rpx;
- color: #25d9c8;
- font-weight: bold;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 32rpx 32rpx 32rpx 32rpx;
- .icon {
- width: 21rpx;
- height: 21rpx;
- }
- }
- .o-aside {
- .box {
- .change {
- color: #ffffff;
- }
- .center {
- background: linear-gradient(163deg, #fcfcfc 70%, #2fdbca 100%);
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- }
- .b-line {
- background: linear-gradient(61deg, #ffffff 30%, #f08f35 49%, #e55273 100%);
- &::after {
- border-color: transparent transparent #fff transparent;
- }
- }
- }
- }
- }
- }
- }
- }
- .drug-record {
- position: relative;
- margin: $page-margin $page-margin 64rpx;
- padding: 24rpx 40rpx;
- border-radius: 24rpx;
- background: linear-gradient(to bottom, #25d9c8 0%, #a8ede6 100%);
- .d-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- .status {
- display: flex;
- align-items: center;
- .name {
- margin-right: 10rpx;
- font-size: 28rpx;
- color: #fff;
- font-weight: bold;
- }
- .icons {
- display: flex;
- align-items: center;
- .icon {
- margin-right: 14rpx;
- width: 32rpx;
- height: 32rpx;
- }
- }
- }
- .more {
- font-size: 24rpx;
- color: #ffffff;
- }
- }
- .d-line {
- margin: 31rpx 0 25rpx;
- width: 26rpx;
- height: 4rpx;
- background: #ffffff;
- border-radius: 0rpx 0rpx 0rpx 0rpx;
- }
- .date {
- .d-name {
- font-size: 24rpx;
- color: #ffffff;
- }
- .d-str {
- display: flex;
- align-items: center;
- font-size: 28rpx;
- color: #ffffff;
- font-weight: bold;
- .week {
- font-weight: bold;
- margin-left: 10rpx;
- font-size: 20rpx;
- color: #26dac9;
- width: 55rpx;
- height: 24rpx;
- line-height: 24rpx;
- text-align: center;
- border-radius: 6rpx 6rpx 6rpx 6rpx;
- background: #ffffff;
- }
- }
- }
- .d-card {
- min-width: 300rpx;
- padding: 15rpx 24rpx 23rpx;
- position: absolute;
- top: 95rpx;
- right: 32rpx;
- box-shadow: 8rpx 16rpx 24rpx 0 #dfdfdf;
- background-color: #fff;
- border-radius: 24rpx;
- .dc-header {
- display: flex;
- align-items: center;
- font-size: 24rpx;
- color: #12245c;
- font-weight: bold;
- .over-date {
- margin-left: 17rpx;
- font-size: 20rpx;
- color: #bec3d1;
- }
- }
- .dc-content {
- margin-top: 13rpx;
- display: flex;
- align-items: flex-end;
- justify-content: space-between;
- .c-l {
- display: flex;
- align-items: flex-end;
- .box {
- padding: 0 20rpx;
- height: 59rpx;
- font-size: 48rpx;
- color: #ffffff;
- text-align: center;
- line-height: 59rpx;
- background-color: #12245c;
- border-radius: 6rpx 6rpx 6rpx 6rpx;
- opacity: 1;
- font-weight: bold;
- }
- .sub {
- margin-left: 10rpx;
- font-size: 24rpx;
- color: #12245c;
- }
- &.today {
- .box {
- padding: 5rpx 8rpx;
- font-size: 32rpx;
- background: linear-gradient(91deg, #12245c 0%, rgba(18, 36, 92, 0.52) 100%);
- }
- }
- }
- .more {
- font-size: 24rpx;
- color: #25d9c8;
- }
- }
- }
- .d-noraml {
- display: flex;
- justify-content: space-between;
- align-items: center;
- .n-left {
- // padding: 40rpx 0;
- flex-shrink: 0;
- margin-right: 40rpx;
- .title {
- font-size: 28rpx;
- color: #ffffff;
- line-height: 48rpx;
- font-weight: bold;
- }
- .btn {
- margin-top: 46rpx;
- width: 206rpx;
- height: 54rpx;
- background: #ffffff;
- font-size: 28rpx;
- color: #25d9c8;
- font-weight: bold;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 32rpx 32rpx 32rpx 32rpx;
- .icon {
- width: 21rpx;
- height: 21rpx;
- }
- }
- }
- .n-right {
- flex: 1;
- display: flex;
- justify-content: space-between;
- .item {
- .icon {
- margin: 0 auto;
- width: 64rpx;
- height: 64rpx;
- background: linear-gradient(120deg, #a7ede6 0%, #3cd9ca 100%);
- border-radius: 12rpx 12rpx 12rpx 12rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- image {
- width: 48rpx;
- height: 48rpx;
- }
- }
- .name {
- margin: 4rpx;
- font-size: 20rpx;
- color: #ffffff;
- }
- }
- }
- }
- }
- .live {
- margin: $page-margin 0;
- .header {
- margin: 0 $page-margin;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .title {
- font-size: 32rpx;
- color: #474747;
- font-weight: bold;
- }
- .more {
- font-size: 24rpx;
- color: #cccccc;
- }
- }
- .live-container {
- margin-top: 24rpx;
- margin-left: $page-margin;
- overflow-x: auto;
- overflow-y: hidden;
- &::-webkit-scrollbar {
- display: none;
- }
- .scroll {
- display: flex;
- flex-wrap: nowrap;
- .live-item {
- flex-shrink: 0;
- width: 670rpx;
- height: 331rpx;
- margin-right: 30rpx;
- .live-img {
- width: 100%;
- height: 100%;
- border-radius: 24rpx;
- }
- }
- }
- }
- }
- .live-up {
- margin: $page-margin 0;
+ .live-up-new {
+ margin: 0 40rpx;
.header {
- margin: 0 $page-margin;
display: flex;
align-items: center;
justify-content: space-between;
.title {
font-size: 32rpx;
- color: #474747;
+ color: rgba(33, 29, 46, 1);
font-weight: bold;
}
.more {
@@ -591,449 +187,125 @@ page {
color: #cccccc;
}
}
- .live-container {
- margin-top: 24rpx;
- margin-left: $page-margin;
- overflow-x: auto;
- overflow-y: hidden;
- &::-webkit-scrollbar {
- display: none;
- }
- .scroll {
- display: flex;
- flex-wrap: nowrap;
- .live-item {
- flex-shrink: 0;
- width: 670rpx;
- height: 331rpx;
- margin-right: 30rpx;
- .live-img {
- width: 100%;
- height: 100%;
- border-radius: 24rpx;
- }
- }
- .item {
- margin-right: 30rpx;
- flex-shrink: 0;
- width: 418rpx;
- border-radius: 24rpx;
- border: 1px solid #d6d9e1;
- .photo-wrap {
- position: relative;
- width: 100%;
- height: 235rpx;
- border-radius: 24rpx 24rpx 0 0;
- .photo {
- width: 100%;
- height: 100%;
- border-radius: 24rpx 24rpx 0 0;
- }
- .status {
- position: absolute;
- left: 0;
- top: 0;
- padding: 5rpx 18rpx;
- background: #ffffff linear-gradient(136deg, #e7eeff 0%, #fde0ea 100%);
- border-radius: 24rpx 0 24rpx 0;
- display: flex;
- align-items: center;
- font-size: 24rpx;
- color: #cf5375;
- .dot {
- margin-right: 10rpx;
- width: 10rpx;
- height: 10rpx;
- border-radius: 50%;
- background: #cf5375;
- }
- &.bad {
- color: #484848;
- background: #e6e6e6;
- .dot {
- display: none;
- }
- }
- }
- .date {
- padding: 18rpx 18rpx 8rpx;
- position: absolute;
- left: 40rpx;
- bottom: 0;
- background: #e04775;
- border-radius: 11rpx 11rpx 0rpx 0rpx;
- text-align: center;
- .d-title {
- font-size: 22rpx;
- color: #ffffff;
- font-weight: bold;
- .icon {
- margin-right: -10rpx;
- }
- }
- .ymd {
- font-size: 18rpx;
- color: #fff;
- line-height: 28rpx;
- border-bottom: 2rpx solid rgba(255, 255, 255, 0.34);
- }
- .hm {
- font-size: 18rpx;
- color: #fff;
- line-height: 28rpx;
- }
- }
- }
- .content {
- padding: 24rpx 28rpx;
- display: flex;
- align-items: center;
- border-radius: 0 0 24rpx 24rpx;
- background-color: #fff;
- .name {
- max-width: 4em;
- font-size: 28rpx;
- color: #666666;
- font-weight: bold;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- }
- .labels {
- margin-left: 10rpx;
- flex: 1;
- .label {
- display: block;
- font-size: 24rpx;
- color: #cccccc;
- max-width: 4em;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- }
- .label:not(:first-of-type) {
- display: none;
- }
- }
- .btn {
- flex-shrink: 0;
- padding: 0 13rpx;
- height: 48rpx;
- line-height: 48rpx;
- font-size: 28rpx;
- font-weight: bold;
- color: #cf5375;
- border-radius: 24rpx;
- background: #ffffff linear-gradient(136deg, #e7eefe 0%, #fee0ea 100%);
- display: flex;
- align-items: center;
- justify-content: center;
- .icon {
- width: 40rpx;
- height: 40rpx;
- }
- }
- }
- }
- }
- &.live-container-drugs {
- .scroll {
- .item {
- .content {
- .btn {
- .icon {
- margin-right: 10rpx;
- width: 24rpx;
- height: 24rpx;
- }
- background: #25d9c8;
- color: #fff;
- }
- }
- }
- }
- }
- }
- }
- .live-up-new {
- margin: 0 40rpx;
.l-banner {
+ margin-top: 24rpx;
width: 100%;
- height: 834rpx;
+ height: 336rpx;
border-radius: 24rpx;
.live-img {
width: 100%;
height: 100%;
object-fit: cover;
+ border-radius: 24rpx 24rpx 0 0;
}
}
- .item {
- margin-top: 24rpx;
- padding: 24rpx;
- background: #ffffff;
- border-radius: 24rpx;
- display: flex;
- .photo-wrap {
- flex-shrink: 0;
- width: 182rpx;
- height: 182rpx;
- position: relative;
- .photo {
- width: 100%;
- height: 100%;
- border-radius: 24rpx;
- }
- .status {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 40rpx;
- font-size: 24rpx;
- color: #fff;
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 10rpx;
- background-color: rgba(0, 0, 0, 0.46);
- border-radius: 0 0 24rpx 24rpx;
- .icon {
- width: 20rpx;
- height: 20rpx;
- }
- &.active {
- background-color: rgba(207, 83, 117, 1);
- }
- }
- }
- .content {
- flex: 1;
- padding-left: 24rpx;
+ .list {
+ margin: 0 -40rpx;
+ padding: 16rpx 40rpx 0;
+ background-color: #fff;
+ .item {
+ margin-bottom: 24rpx;
+ padding: 32rpx 0;
+ background: #ffffff;
display: flex;
- flex-direction: column;
- justify-content: space-between;
- .name {
- font-size: 32rpx;
- color: rgba(72, 72, 72, 1);
- font-weight: bold;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- }
- .labels {
- margin-top: 16rpx;
- max-width: 56vw;
- font-size: 28rpx;
- color: rgba(173, 173, 173, 1);
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- }
- .c-footer {
- margin-top: 20rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 20rpx;
- padding: 0 0 0 16rpx;
- background-color: rgba(250, 250, 250, 1);
- border-radius: 48rpx;
- .date {
- font-size: 24rpx;
- color: rgba(72, 72, 72, 1);
- }
- .btn {
- width: 128rpx;
- height: 48rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8rpx;
- background-color: rgba(207, 83, 117, 1);
- border-radius: 24rpx;
- font-size: 24rpx;
- color: rgba(255, 255, 255, 1);
- .icon {
- width: 24rpx;
- height: 24rpx;
- }
- }
- }
- }
- }
- }
- .story {
- margin: $page-margin 0;
- .header {
- margin: 0 $page-margin;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .title {
- font-size: 32rpx;
- color: #474747;
- font-weight: bold;
- }
- .more {
- font-size: 24rpx;
- color: #cccccc;
- }
- }
- .story-container {
- position: relative;
- margin-top: 24rpx;
- overflow-x: auto;
- overflow-y: hidden;
- &::-webkit-scrollbar {
- display: none;
- }
- &::after {
- position: sticky;
- left: 0;
- bottom: 0;
- margin-top: -253rpx;
- display: block;
- content: '';
- width: 100vw;
- height: 253rpx;
- background: #cf5375;
- }
- &.story-container-drugs {
- &::after {
- display: none;
+ border-bottom: 1px dotted rgba(39, 58, 101, 0.2);
+ &:last-of-type {
+ border: none;
}
- }
- .scroll {
- position: relative;
- display: flex;
- flex-wrap: nowrap;
- padding-left: $page-margin;
- padding-bottom: 55rpx;
- .story-item {
- position: relative;
- z-index: 1;
+ .photo-wrap {
flex-shrink: 0;
- width: 281rpx;
- height: 375rpx;
- margin-right: 40rpx;
- .story-img {
+ width: 160rpx;
+ height: 160rpx;
+ position: relative;
+ .photo {
width: 100%;
height: 100%;
border-radius: 24rpx;
}
- .story-content {
+ .status {
position: absolute;
- left: 0;
bottom: 0;
- padding: 40rpx 29rpx 26rpx;
- box-sizing: border-box;
+ left: 0;
width: 100%;
+ height: 40rpx;
font-size: 24rpx;
- line-height: 32rpx;
- color: #273a65;
- font-weight: bold;
- background: linear-gradient(180deg, rgba(236, 236, 236, 0) 0%, rgba(236, 236, 236, 1) 100%);
+ color: #fff;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 10rpx;
+ background-color: rgba(0, 0, 0, 0.46);
border-radius: 0 0 24rpx 24rpx;
+ .icon {
+ width: 20rpx;
+ height: 20rpx;
+ }
+ &.active {
+ background-color: rgba(207, 83, 117, 1);
+ }
}
}
- }
- }
- }
- .server {
- margin: $page-margin;
- .header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- .title {
- font-size: 32rpx;
- color: #474747;
- font-weight: bold;
- }
- .more {
- font-size: 24rpx;
- color: #cccccc;
- }
- }
- .server-container {
- margin-top: 24rpx;
- .two {
- display: flex;
- justify-content: space-between;
- .item {
- position: relative;
+ .content {
flex: 1;
- height: 163rpx;
+ padding-left: 24rpx;
display: flex;
- justify-content: flex-end;
- .item-bg {
- width: 100%;
- height: 100%;
- border-radius: 24rpx;
- border: 1px solid #d7dae1;
- }
- .item-container {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- border: 2px solid #d7dae1;
- padding: 28rpx 31rpx;
- box-sizing: border-box;
- border-radius: 24rpx;
- .title {
- font-size: 28rpx;
- font-weight: bold;
- color: #666666;
- }
+ flex-direction: column;
+ justify-content: space-between;
+ .name {
+ font-size: 32rpx;
+ color: rgba(33, 29, 46, 1);
+ font-weight: bold;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ }
+ .labels {
+ margin-top: 16rpx;
+ max-width: 56vw;
+ font-size: 28rpx;
+ color: rgba(173, 172, 178, 1);
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ overflow: hidden;
.line {
- margin-top: 20rpx;
- width: 25rpx;
- height: 4rpx;
- background-color: #666666;
+ margin: 0 4rpx;
+ vertical-align: baseline;
+ display: inline-block;
+ width: 1px;
+ height: 24rpx;
+ background-color: rgba(105, 104, 110, 0.2);
}
- .en {
- margin-top: 20rpx;
- font-size: 20rpx;
- color: #666666;
+ }
+ .c-footer {
+ margin-top: 24rpx;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 20rpx;
+ .date {
+ font-size: 24rpx;
+ color: rgba(105, 104, 110, 1);
}
- .icon {
- position: absolute;
- bottom: 0;
- right: 0;
- border-radius: 0 0 24rpx 0;
- width: 106rpx;
- height: 107rpx;
+ .btn {
+ width: 128rpx;
+ height: 48rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 8rpx;
+ background: linear-gradient(to right, #f2e6fe 0%, #f5e8ff 100%);
+ border-radius: 24rpx;
+ font-size: 24rpx;
+ color: rgba(185, 130, 255, 1);
+ .icon {
+ width: 24rpx;
+ height: 24rpx;
+ }
}
}
}
- .item:not(:first-of-type) {
- margin-left: 30rpx;
- }
- }
- .four {
- margin-top: 24rpx;
- padding: 22rpx 30rpx;
- border-radius: 24rpx;
- background-color: #fff;
- display: flex;
- align-items: center;
- border: 1px solid #d5d8e0;
- .item {
- flex: 1;
- text-align: center;
- .icon {
- width: 95rpx;
- height: 95rpx;
- }
- .name {
- font-size: 24rpx;
- color: #666666;
- }
- }
}
}
}
@@ -1062,6 +334,7 @@ page {
.book-list {
padding: 0 32rpx;
border-radius: 32rpx;
+ background-color: #fff;
box-shadow: 0 0 32rpx 1rpx rgba(0, 0, 0, 0.08);
.card {
@@ -1096,8 +369,8 @@ page {
}
.content {
- font-size: 28rpx;
- color: #666666;
+ font-size: 32rpx;
+ color: rgba(33, 29, 46, 1);
font-weight: bold;
.title {
overflow: hidden;
@@ -1110,7 +383,7 @@ page {
}
.card:not(:last-of-type) {
- border-bottom: 1rpx solid rgba(152, 175, 225, 0.5);
+ border-bottom: 1rpx dotted rgba(39, 58, 101, 0.2);
}
}
}
diff --git a/src/patient/pages/index/index.ts b/src/patient/pages/index/index.ts
index 7ce0519..08d8f06 100644
--- a/src/patient/pages/index/index.ts
+++ b/src/patient/pages/index/index.ts
@@ -1,6 +1,6 @@
-import dayjs from 'dayjs';
-const app = getApp();
-const licia = require('miniprogram-licia');
+import dayjs from 'dayjs'
+const app = getApp()
+const licia = require('miniprogram-licia')
Page({
data: {
@@ -12,6 +12,7 @@ Page({
zdUserInfo: {} as any,
anyWhere: false,
regGuide: true,
+ isLogin: 1,
adlList: [],
adlNum: '',
@@ -47,49 +48,50 @@ Page({
options: {} as any,
},
onLoad(options) {
- const systemInfo = wx.getSystemInfoSync();
+ const systemInfo = wx.getSystemInfoSync()
app.zdGetTheme().then((res) => {
this.setData({
theme: res,
- });
- });
+ })
+ })
this.setData({
sliderTop: systemInfo.screenHeight - 160,
options,
- });
+ })
},
onShow() {
app.waitLogin({ type: [0, 1] }).then(() => {
- app.zdMpBehavior({ PageName: 'PG_PATIENTHOME' });
+ app.zdMpBehavior({ PageName: 'PG_PATIENTHOME' })
this.setData({
anyWhere: app.globalData.anyWhere,
- });
+ isLogin: app.globalData.isLogin,
+ })
if (this.data.options.es === '201501') {
- app.globalData.IsAliQiWei = 1;
- app.zdMpBehavior({ PageName: 'JUMP_PATIENT_HOME_INDEX' });
+ app.globalData.IsAliQiWei = 1
+ app.zdMpBehavior({ PageName: 'JUMP_PATIENT_HOME_INDEX' })
this.setData({
options: {},
- });
+ })
}
app.getZdUserInfo(this, true, (zdUserInfo) => {
this.setData({
zdUserInfo,
publicCard: zdUserInfo.isShowFollowGuide == 1,
- });
- this.getPopup();
- this.getConfig(zdUserInfo);
- this.getSystemConfig();
+ })
+ this.getPopup()
+ this.getConfig(zdUserInfo)
+ this.getSystemConfig()
if (zdUserInfo.ExclusiveDoctorId > 0) {
- this.getUnreadCount();
+ this.getUnreadCount()
}
if (zdUserInfo.UserType == 4) {
- this.getLastRecord();
+ this.getLastRecord()
}
- });
- });
+ })
+ })
},
getUnreadCount() {
wx.ajax({
@@ -99,8 +101,8 @@ Page({
}).then((res) => {
this.setData({
unreadCount: res,
- });
- });
+ })
+ })
},
getSystemConfig() {
wx.ajax({
@@ -110,8 +112,8 @@ Page({
}).then((res) => {
this.setData({
systemConfig: res,
- });
- });
+ })
+ })
},
getLastRecord() {
wx.ajax({
@@ -124,13 +126,13 @@ Page({
days: dayjs().diff(res.InjectionDate, 'day'),
...res,
},
- });
- });
+ })
+ })
},
getConfig(zdUserInfo: any) {
- let UserType = zdUserInfo.UserType;
+ let UserType = zdUserInfo.UserType
if (UserType <= 2) {
- UserType = 1;
+ UserType = 1
}
wx.ajax({
method: 'GET',
@@ -140,8 +142,8 @@ Page({
res = res.map((item: any) => {
if (item.code == 'spread1' || item.code == 'spread2' || item.code == 'serviceConf') {
item.subList = item.subList.filter((subItem) => {
- return subItem.showStatus == 1;
- });
+ return subItem.showStatus == 1
+ })
}
// if (item.name === 'BANNER-MINIDOVTOR') {
// item.subList = item.subList
@@ -152,29 +154,29 @@ Page({
// return subItem.linkUrl !== 'MINIDOCTOR-1.0' || zdUserInfo.EntryTwoPeriod === 1
// })
// }
- return item;
- });
+ return item
+ })
this.setData({
configList: res,
- });
+ })
res.forEach((item) => {
if (item.code == 'article') {
- this.getInfoList(item.configId);
+ this.getInfoList(item.configId)
}
if (item.code == 'story') {
- this.getStoryList(item.configId);
+ this.getStoryList(item.configId)
}
if (item.code == 'adl') {
- this.getAdl();
+ this.getAdl()
}
if (item.code == 'activity2') {
- this.getActivity(item.configId, item.showNum, 'liveList');
+ this.getActivity(item.configId, item.showNum, 'liveList')
}
if (item.code == 'activity1') {
- this.getActivity(item.configId, item.showNum, 'liveDownList');
+ this.getActivity(item.configId, item.showNum, 'liveDownList')
}
- });
- });
+ })
+ })
},
async getPopup() {
const data5 = await wx.ajax({
@@ -183,15 +185,15 @@ Page({
data: {
Type: 5,
},
- });
+ })
if (data5.showAlert) {
this.setData({
toastShow: data5.showAlert,
toastType: 'doubleStandards',
toastParams: data5,
- });
+ })
- return;
+ return
}
const data4 = await wx.ajax({
@@ -200,28 +202,28 @@ Page({
data: {
Type: 4,
},
- });
+ })
if (data4.showAlert) {
this.setData({
toastShow: data4.showAlert,
toastType: 'vipScan',
toastParams: {},
- });
- return;
+ })
+ return
}
const data1 = await wx.ajax({
method: 'GET',
url: '?r=zd/popup/info',
data: { Type: 1 },
- });
+ })
if (!Array.isArray(data1)) {
this.setData({
toastShow: true,
toastType: 'healthCare',
toastParams: data1,
- });
- return;
+ })
+ return
}
const data2 = await wx.ajax({
@@ -230,7 +232,7 @@ Page({
data: {
Type: 2,
},
- });
+ })
if (data2.showAlert && this.data.zdUserInfo.UserType == 4) {
this.setData({
toastShow: data2.showAlert,
@@ -238,7 +240,7 @@ Page({
toastParams: {
id: data2.articleId,
},
- });
+ })
}
const data3 = await wx.ajax({
@@ -247,25 +249,25 @@ Page({
data: {
Type: 6,
},
- });
+ })
if (data3.showAlert) {
this.setData({
toastShow: data3.showAlert,
toastType: 'dedicatedDoctor',
toastParams: {},
- });
+ })
}
const data6 = await wx.ajax({
method: 'GET',
url: '?r=zd/re-visit/get-popup-show-status',
- });
+ })
if (data6.showStatus === 1) {
this.setData({
toastShow: true,
toastType: 'referral-toast',
toastParams: {},
- });
+ })
}
},
setPopupInfo() {
@@ -276,14 +278,14 @@ Page({
Type: 1,
Id: this.data.toastParams.Id,
},
- }).then((_res) => {});
+ }).then((_res) => {})
},
setBannerClick() {
wx.ajax({
method: 'POST',
url: '?r=zd/nrdl/add-banner-click-record',
data: {},
- });
+ })
},
getInfoList(configId: string) {
wx.ajax({
@@ -296,8 +298,8 @@ Page({
}).then((res) => {
this.setData({
infoList: licia.chunk(res.list, 3),
- });
- });
+ })
+ })
},
getStoryList(configId: string) {
wx.ajax({
@@ -310,8 +312,8 @@ Page({
}).then((res) => {
this.setData({
storyList: res.list,
- });
- });
+ })
+ })
},
getAdl() {
wx.ajax({
@@ -319,7 +321,7 @@ Page({
url: '?r=zd/adl/index',
data: {},
}).then((res) => {
- const newRecord = res.newRecord;
+ const newRecord = res.newRecord
this.setData({
adlList: res.list,
adlNum: res.count,
@@ -328,8 +330,8 @@ Page({
...newRecord,
newCreateTime: dayjs(newRecord.CreateTime).format('YYYY-MM-DD'),
},
- });
- });
+ })
+ })
},
getActivity(ConfigId: string, count: number, key: string) {
wx.ajax({
@@ -339,126 +341,126 @@ Page({
}).then((res) => {
this.setData({
[key]: res.list.map((item) => {
- item.EndTimeValue = dayjs(item.EndTime).valueOf();
- item.BeginTimeValue = dayjs(item.BeginTime).valueOf();
- item.SignUpDeadlineValue = dayjs(item.SignUpDeadline).valueOf();
- item.BeginDate = dayjs(item.BeginTime).format('YYYY-MM-DD');
- item.EndDate = dayjs(item.EndTime).format('YYYY-MM-DD');
- item.isDay = item.BeginDate == item.EndDate;
- item.BeginHm = dayjs(item.BeginTime).format('HH:mm');
- item.EndHm = dayjs(item.EndTime).format('HH:mm');
- item.BeginTime = dayjs(item.BeginTime).format('YYYY-MM-DD HH:mm');
- item.EndTime = dayjs(item.EndTime).format('YYYY-MM-DD HH:mm');
- return item;
+ item.EndTimeValue = dayjs(item.EndTime).valueOf()
+ item.BeginTimeValue = dayjs(item.BeginTime).valueOf()
+ item.SignUpDeadlineValue = dayjs(item.SignUpDeadline).valueOf()
+ item.BeginDate = dayjs(item.BeginTime).format('YYYY-MM-DD')
+ item.EndDate = dayjs(item.EndTime).format('YYYY-MM-DD')
+ item.isDay = item.BeginDate == item.EndDate
+ item.BeginHm = dayjs(item.BeginTime).format('HH:mm')
+ item.EndHm = dayjs(item.EndTime).format('HH:mm')
+ item.BeginTime = dayjs(item.BeginTime).format('YYYY-MM-DD HH:mm')
+ item.EndTime = dayjs(item.EndTime).format('YYYY-MM-DD HH:mm')
+ return item
}),
- });
- });
+ })
+ })
},
routerTo(e) {
- let { url, active, code } = e.currentTarget.dataset;
- if (!url) return;
+ let { url, active, code } = e.currentTarget.dataset
+ if (!url) return
if (code === 'adl') {
- app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMEADLMODULE' });
+ app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMEADLMODULE' })
}
if (code === 'drugs') {
- app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMEMEDICATIONMODULE' });
+ app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMEMEDICATIONMODULE' })
}
if (code === 'story' && url === '/patient/pages/story/index') {
- app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMESTORIESVIEWALL' });
+ app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMESTORIESVIEWALL' })
}
if (code === 'story' && url.includes('/patient/pages/publishStoryDetail/index')) {
- app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMESTORYCLICK' });
+ app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMESTORYCLICK' })
}
if (code === 'activity2' && url === '/patient/pages/live/index') {
- app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMEONLINEACTIVITIESVIEWALL' });
+ app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMEONLINEACTIVITIESVIEWALL' })
}
if (code === 'activity2' && url === '/patient/pages/live/index?index=0') {
- app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMEONLINEACTIVITIESMONTHLYPOSTER' });
+ app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMEONLINEACTIVITIESMONTHLYPOSTER' })
}
if (code === 'activity2' && url.includes('/patient/pages/liveDetail/index')) {
- app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMEONLINEACTIVITIESCARD' });
+ app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMEONLINEACTIVITIESCARD' })
}
if (code === 'activity1' && url === '/patient/pages/live/index') {
- app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMEOFFLINEACTIVITIESVIEWALL' });
+ app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMEOFFLINEACTIVITIESVIEWALL' })
}
if (code === 'activity1' && url.includes('/patient/pages/liveDetail/index')) {
- app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMEOFFLINEACTIVITIESCARD' });
+ app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMEOFFLINEACTIVITIESCARD' })
}
if (code === 'article' && url === '/patient/pages/repository/index') {
- app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMERECOMMENDEDREADINGVIEWALL' });
+ app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMERECOMMENDEDREADINGVIEWALL' })
}
if (code === 'article' && url.includes('/patient/pages/repositoryDetail/index')) {
- app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMERECOMMENDEDREADINGARTICLE' });
+ app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMERECOMMENDEDREADINGARTICLE' })
}
if (code === 'serviceConf') {
- app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMESERVICE' });
+ app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMESERVICE' })
}
if (url === '/patient/pages/interactivePatient/index') {
- app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMEDOCTORCARD' });
+ app.zdMpBehavior({ PageName: 'BTN_PATIENTHOMEDOCTORCARD' })
}
if (url === 'NRDL') {
- this.setBannerClick();
- this.handleNRDL();
- return;
+ this.setBannerClick()
+ this.handleNRDL()
+ return
}
if (url.includes('loginState')) {
- url = url + encodeURIComponent(app.globalData.loginState);
+ url = url + encodeURIComponent(app.globalData.loginState)
app.zdPermissionVerification(2, 11, `/patient/pages/repository/index`).then(() => {
wx.navigateTo({
url,
- });
- });
- return;
+ })
+ })
+ return
}
wx.navigateTo({
url,
fail() {
- app.globalData.active = active;
+ app.globalData.active = active
wx.switchTab({
url,
- });
+ })
},
- });
+ })
},
handleReg() {
- app.zdPermissionVerification(3, 0, '');
+ app.zdPermissionVerification(3, 0, '')
},
handleMiniDoctor(e) {
- const { link } = e.currentTarget.dataset;
- let period = '';
+ const { link } = e.currentTarget.dataset
+ let period = ''
if (link === 'MINIDOCTOR-1.0') {
- period = '2';
+ period = '2'
}
wx.navigateTo({
url: `/patient/pages/webview/index?period=${period}`,
- });
+ })
},
handleQuestion() {
app.zdPermissionVerification(2, 11, `/patient/pages/repository/index`).then(() => {
const webviewUrl = encodeURIComponent(
`${app.globalData.url}/zdcare/#/info?loginState=${app.globalData.loginState}`,
- );
+ )
wx.navigateTo({
url: `/patient/pages/webview/index?url=${webviewUrl}`,
- });
- });
+ })
+ })
},
handleSlider() {
wx.ajax({
method: 'POST',
url: '?r=zd/nrdl/add-slide-click-record',
data: {},
- });
- this.handleNRDL();
+ })
+ this.handleNRDL()
},
handleNRDL() {
app.zdPermissionVerification(3, 12, `/patient/pages/index/index`).then(() => {
wx.navigateTo({
url: `/patient/pages/nrdl/index`,
- });
+ })
// if (this.data.zdUserInfo.has7DayAdl === 1) {
// wx.navigateTo({
// url: `/patient/pages/nrdl/index`,
@@ -469,57 +471,57 @@ Page({
// toastType: "ndrlAldAlert",
// });
// }
- });
+ })
},
routerVipTo() {
- const { MedicineAuditSwitch, UseDrugsAuditStatus, isFollow } = this.data.zdUserInfo;
+ const { MedicineAuditSwitch, UseDrugsAuditStatus, isFollow } = this.data.zdUserInfo
if (MedicineAuditSwitch === '0') {
wx.navigateTo({
url: '/patient/pages/vipLogin/index',
- });
+ })
} else if (MedicineAuditSwitch === '1') {
const pendPath = {
0: '/patient/pages/vipPending/index',
1: '/patient/pages/vipStartPending/index',
- }[isFollow];
+ }[isFollow]
const url = {
1: pendPath,
2: '/patient/pages/vipReject/index',
- }[UseDrugsAuditStatus];
+ }[UseDrugsAuditStatus]
wx.navigateTo({
url: url || '/patient/pages/vipCert/index',
- });
+ })
} else {
wx.showToast({
icon: 'none',
title: '工程师正在努力建设中,敬请期待!',
- });
+ })
}
},
handleToastOk() {
- const { toastType } = this.data;
+ const { toastType } = this.data
if (toastType === 'vipScan') {
- this.routerVipTo();
- this.handleToastCancel();
+ this.routerVipTo()
+ this.handleToastCancel()
} else if (toastType === 'aldAlert') {
wx.navigateTo({
url: '/patient/pages/adl/index',
- });
- this.handleToastCancel();
+ })
+ this.handleToastCancel()
} else if (toastType === 'healthCare') {
- this.setPopupInfo();
- this.handleNRDL();
- this.handleToastCancel();
+ this.setPopupInfo()
+ this.handleNRDL()
+ this.handleToastCancel()
} else if (toastType === 'ndrlAldAlert') {
wx.navigateTo({
url: '/patient/pages/adl/index?nrdl=1',
- });
- this.handleToastCancel();
+ })
+ this.handleToastCancel()
} else if (toastType === 'doubleStandards') {
wx.navigateTo({
url: '/patient/pages/adl/index',
- });
- this.handleToastCancel();
+ })
+ this.handleToastCancel()
} else if (toastType === 'dedicatedDoctor') {
wx.ajax({
method: 'POST',
@@ -530,23 +532,23 @@ Page({
}).then((_res) => {
wx.navigateTo({
url: '/patient/pages/interactivePatient/index',
- });
- });
- this.handleToastCancel(null, false);
+ })
+ })
+ this.handleToastCancel(null, false)
} else if (toastType === 'referral-toast') {
this.setData({
referralFromShow: true,
- });
+ })
wx.ajax({
method: 'POST',
url: '?r=zd/re-visit/update-popup-show-status',
data: {},
- });
- this.handleToastCancel(null, false);
+ })
+ this.handleToastCancel(null, false)
}
},
handleToastCancel(_e = null, sure = true) {
- const { toastType } = this.data;
+ const { toastType } = this.data
if (toastType === 'doubleStandards' && sure) {
wx.ajax({
method: 'POST',
@@ -554,7 +556,7 @@ Page({
data: {
Type: 5,
},
- });
+ })
} else if (toastType === 'dedicatedDoctor' && sure) {
wx.ajax({
method: 'POST',
@@ -562,49 +564,49 @@ Page({
data: {
Type: 6,
},
- });
+ })
} else if (toastType === 'referral-toast') {
wx.ajax({
method: 'POST',
url: '?r=zd/re-visit/update-popup-show-status',
data: {},
- });
+ })
}
this.setData({
toastShow: false,
toastType: '',
toastParams: '',
- });
+ })
},
handlePublic() {
this.setData({
toastShow: true,
toastType: 'public-toast',
toastParams: {},
- });
- this.handlePublicClose();
+ })
+ this.handlePublicClose()
},
handlePublicClose() {
this.setData({
publicCard: false,
- });
+ })
wx.ajax({
method: 'POST',
url: '?r=zd/account/add-user-subscribe-guide-record',
data: {},
- });
+ })
},
handleMp(e: any) {
- const { code } = e.currentTarget.dataset;
+ const { code } = e.currentTarget.dataset
const PageName = {
spread1: 'BTN_PATIENTHOMEBANNER1',
spread2: 'BTN_PATIENTHOMEBANNER2',
- }[code];
- app.zdMpBehavior({ PageName });
+ }[code]
+ app.zdMpBehavior({ PageName })
},
handleRegClose() {
this.setData({
regGuide: false,
- });
+ })
},
-});
+})
diff --git a/src/patient/pages/index/index.wxml b/src/patient/pages/index/index.wxml
index c56a25e..1ed103d 100644
--- a/src/patient/pages/index/index.wxml
+++ b/src/patient/pages/index/index.wxml
@@ -1,39 +1,17 @@
-
-
-
+
-
-
-
-
- {{today}}
-
- 今天是重症肌无力加油站陪伴你的第
- {{zdUserInfo.JoinDays}}
- 天
-
-
-
+
+
-
-
-
+ 我的专属医生
@@ -42,7 +20,7 @@
{{zdUserInfo.ExclusiveDoctorName}}
-
+
医生给您留言了,记得查看!
@@ -56,10 +34,7 @@
-
- {{unreadCount ? '去看看':'去咨询'}}
-
-
+ {{unreadCount ? '去看看':'去咨询'}}
@@ -98,233 +73,45 @@
-
-
-
-
-
-
-
-
- 最近一次测评 {{adlNewRecord.newCreateTime}}
-
-
- 立即自测
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 上次治疗日期
-
- {{detail.InjectionDate}}
- {{detail.weekName}}
-
-
-
-
-
-
- 今天治疗
-
-
- {{detail.days}}
- 天
-
-
- 更新记录
-
-
-
-
-
-
-
-
- 展示您的注射信息
- 开启您的专属服务
-
-
- 开始记录
-
-
-
-
-
-
-
-
- ADL提醒
-
-
-
-
-
- 随访服务
-
-
-
-
-
- 健康报告
-
-
-
-
-
+
-
-
-
-
-
-
+
+
-
-
-
-