From e3b8724b61725b1409c79103009500812df4211d Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Mon, 4 Nov 2024 15:37:49 +0800
Subject: [PATCH] bug 11.4
---
pages/index/index.js | 4 ++--
pages/index/index.wxml | 8 ++++----
pages/index/index.wxss | 16 ++++++++--------
patient/pages/hivConsult/hivConsult.wxml | 2 +-
patient/pages/kepuList/kepuList.js | 7 +++++++
patient/pages/kepuList/kepuList.wxml | 4 ++--
6 files changed, 24 insertions(+), 17 deletions(-)
diff --git a/pages/index/index.js b/pages/index/index.js
index 1f35fa2..5581de8 100644
--- a/pages/index/index.js
+++ b/pages/index/index.js
@@ -48,7 +48,7 @@ Page({
}
}),
goH5:throttle(function(event){
- let {url,name,type}=event.currentTarget.dataset;
+ let {url,name,type,title}=event.currentTarget.dataset;
if(url.indexOf("http")!=-1){
let urlName=(decodeURIComponent(url))
if(this.verifySuffix(urlName)){
@@ -64,7 +64,7 @@ Page({
}else{
if(type==4){
app.method.navigateTo({
- url:'/'+url
+ url:'/'+url+'?title='+title
})
}else{
wx.navigateToMiniProgram({
diff --git a/pages/index/index.wxml b/pages/index/index.wxml
index bc2ba8c..a9bcbd9 100644
--- a/pages/index/index.wxml
+++ b/pages/index/index.wxml
@@ -128,11 +128,11 @@
-
+
-
+
@@ -172,7 +172,7 @@
-
+
@@ -235,7 +235,7 @@
-->
- 暂无医生!
+ 暂无医生!
diff --git a/pages/index/index.wxss b/pages/index/index.wxss
index 545bf3e..16c285a 100644
--- a/pages/index/index.wxss
+++ b/pages/index/index.wxss
@@ -119,8 +119,8 @@
.cellbox .cell {
position: relative;
display: inline-flex;
- width:130rpx;
- height:124rpx;
+ width:150rpx;
+ height:144rpx;
flex-direction: column;
justify-content: center;
align-items: center;
@@ -139,9 +139,9 @@
margin-left: 0rpx;
}
.cellbox .cellimg{
- margin-top: 14rpx;
- width:68rpx;
- height:68rpx;
+margin-top: 14rpx;
+ width:72rpx;
+ height:72rpx;
}
.cellbox image {
width: 98rpx;
@@ -149,10 +149,9 @@
}
.cellbox .name {
- font-size: 20rpx;
-
+ font-size: 24rpx;
margin-top: 5rpx;
- color: #333;
+ color: #000;
}
.consultbox .service{
border:none;
@@ -199,6 +198,7 @@ color: #FFFFFF;
}
.titlebox .van-tab--active{
font-size: 30rpx;
+ font-weight: bold;
}
.titlebox .van-tabs__line{
bottom:16rpx;
diff --git a/patient/pages/hivConsult/hivConsult.wxml b/patient/pages/hivConsult/hivConsult.wxml
index 0fd6bd0..208d839 100644
--- a/patient/pages/hivConsult/hivConsult.wxml
+++ b/patient/pages/hivConsult/hivConsult.wxml
@@ -32,7 +32,7 @@
-
+
diff --git a/patient/pages/kepuList/kepuList.js b/patient/pages/kepuList/kepuList.js
index ad3c19f..8d76090 100644
--- a/patient/pages/kepuList/kepuList.js
+++ b/patient/pages/kepuList/kepuList.js
@@ -10,6 +10,7 @@ Page({
data: {
isTriggered:false,
page:1,
+ title:'科普文章',
keyword:'',
lock:false,
list:[]
@@ -66,6 +67,12 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
+ if(options.title){
+ this.setData({
+ title:options.title
+ });
+ }
+
this.getList()
},
diff --git a/patient/pages/kepuList/kepuList.wxml b/patient/pages/kepuList/kepuList.wxml
index c722b5a..fb31722 100644
--- a/patient/pages/kepuList/kepuList.wxml
+++ b/patient/pages/kepuList/kepuList.wxml
@@ -1,7 +1,7 @@
-
+
-
+
{{item.article_title}}