浏览代码

feat:完善小程序

lsw 10 月之前
父节点
当前提交
7a252c60b8
共有 5 个文件被更改,包括 31 次插入22 次删除
  1. 1 1
      app/App.vue
  2. 1 0
      app/common/common.scss
  3. 11 8
      app/pages/follow/index.vue
  4. 8 8
      app/pages/index/index.vue
  5. 10 5
      app/pages/user/index.vue

+ 1 - 1
app/App.vue

@@ -30,7 +30,7 @@ button::after {
 /**挂载iconfont字体图标*/
 @font-face {
 	font-family: 'iconfont';
-	src: url('https://at.alicdn.com/t/c/font_4620946_njwyc3sdjfl.ttf?t=1722846374586') format('truetype');
+	src: url('https://at.alicdn.com/t/c/font_4620946_77k3uh0ak7p.ttf?t=1722848437021') format('truetype');
 	/* src: url('~@/static/font/iconfont.ttf') format('truetype'); */
 }
 .icon {

+ 1 - 0
app/common/common.scss

@@ -146,6 +146,7 @@
 		color: $font-c;
 		overflow: hidden;
 		border-bottom: 1px solid #f0f2f7;
+		font-size: 15px;
 		.ic {
 			display: block;
 			float: left;

+ 11 - 8
app/pages/follow/index.vue

@@ -5,13 +5,14 @@
 		</view>
 		<view class="list">
 			<view class="message-bubble-received" v-for="(item, index) in list" :key="index" @click="go('/pages/follow/detail?id=' + item.id)">
-				<view class="title">
-					<text class="icon">&#xe617;</text>
-					<text>{{ item.templateName }}</text>
-				</view>
+				<view class="title">{{ item.templateName }}</view>
 				<view class="desc">尊敬的患者,为了更好的改善服务,我们向你发起了一个回访并且希望您认真填写。</view>
 				<view class="desc">{{ item.createTime }}</view>
-				<button class="btn" :style="{ backgroundColor: item.state == 0 ? '#4581fb' : '#4CAF50' }">{{ item.state == 0 ? '去填写' : '已填写' }}</button>
+				<button class="btn" :style="{ backgroundColor: item.state == 0 ? '#4581fb' : '#4CAF50' }">
+					<text class="icon" v-if="item.state == 0">&#xe749;</text>
+					<text class="icon" v-else>&#xe6c6;</text>
+					<text>{{ item.state == 0 ? '去填写' : '已填写' }}</text>
+				</button>
 			</view>
 			<view class="loading" v-if="loadMore"><u-loadmore :status="loadMore ? 'loading' : 'nomore'" /></view>
 			<u-empty v-if="!loadMore && list.length == 0"></u-empty>
@@ -91,15 +92,17 @@ export default {
 		.title {
 			font-size: 16px;
 			font-weight: bold;
-			.icon {
-				padding-right: 3px;
-			}
 		}
 		.desc {
 			font-size: 13px;
 			padding-top: 10px;
 			color: $font-c;
 		}
+		.btn {
+			.icon {
+				padding-right: 3px;
+			}
+		}
 	}
 }
 </style>

+ 8 - 8
app/pages/index/index.vue

@@ -61,7 +61,7 @@
 			<u-scroll-list :indicator="true" indicatorColor="#e0e0e0">
 				<view class="doctor">
 					<view class="item" v-for="(item, index) in doctorList" :key="index" @click="go('/pages/news/detail?id=' + item.id)">
-						<image :src="ip + item.avatar" mode="scaleToFill" class="avatar"></image>
+						<image :src="item.avatar" mode="scaleToFill" class="avatar"></image>
 						<view class="title">{{ item.name }}</view>
 					</view>
 				</view>
@@ -99,13 +99,13 @@ export default {
 			ip: this.http.ip,
 			noticeList: ['医院开通线上小程序啦,快来体验吧', '首次使用如何绑定就诊卡'],
 			doctorList: [
-				{ name: '梁红斌', avatar: '/profile/upload/2024/07/23/blob_20240723162841A002.jpeg' },
-				{ name: '戴浩华', avatar: '/profile/upload/2024/07/23/blob_20240723153318A001.jpeg' },
-				{ name: '罗肇林', avatar: '/profile/upload/2024/07/23/blob_20240723145549A005.jpeg' },
-				{ name: '覃勇军', avatar: '/profile/upload/2024/07/23/blob_20240723144505A002.jpeg' },
-				{ name: '阿松大', avatar: '/profile/upload/2024/07/23/blob_20240723153318A001.jpeg' },
-				{ name: '阿松大', avatar: '/profile/upload/2024/07/23/blob_20240723153318A001.jpeg' },
-				{ name: '阿松大', avatar: '/profile/upload/2024/07/23/blob_20240723153318A001.jpeg' }
+				{ name: '梁红斌', avatar: 'https://chenglantimes.com/prod-api/profile/upload/2024/08/05/1722848767545.jpg' },
+				{ name: '梁红斌', avatar: 'https://chenglantimes.com/prod-api/profile/upload/2024/08/05/1722848767545.jpg' },
+				{ name: '梁红斌', avatar: 'https://chenglantimes.com/prod-api/profile/upload/2024/08/05/1722848767545.jpg' },
+				{ name: '梁红斌', avatar: 'https://chenglantimes.com/prod-api/profile/upload/2024/08/05/1722848767545.jpg' },
+				{ name: '梁红斌', avatar: 'https://chenglantimes.com/prod-api/profile/upload/2024/08/05/1722848767545.jpg' },
+				{ name: '梁红斌', avatar: 'https://chenglantimes.com/prod-api/profile/upload/2024/08/05/1722848767545.jpg' },
+				{ name: '梁红斌', avatar: 'https://chenglantimes.com/prod-api/profile/upload/2024/08/05/1722848767545.jpg' }
 			],
 			knowledgeList: []
 		};

+ 10 - 5
app/pages/user/index.vue

@@ -36,16 +36,16 @@
 				<text class="title">检测报告</text>
 				<text class="icon arrow">&#xe62b;</text>
 			</view>
-			<view class="s_item" @click="go('/pages/help/my')">
+			<button class="s_item" open-type="share" @click="go('/pages/help/my')" hover-class="none">
 				<text class="icon ic" style="color: #f44336">&#xe7c4;</text>
 				<text class="title">分享应用</text>
 				<text class="icon arrow">&#xe62b;</text>
-			</view>
-			<view class="s_item" @click="go('/pages/help/my')">
+			</button>
+			<button class="s_item" open-type="feedback" @click="go('/pages/help/my')">
 				<text class="icon ic" style="color: #4caf50">&#xe62c;</text>
 				<text class="title">建议反馈</text>
 				<text class="icon arrow">&#xe62b;</text>
-			</view>
+			</button>
 			<view class="s_item" @click="go('/pages/other/setting')">
 				<text class="icon ic" style="color: #9e9e9e">&#xe60f;</text>
 				<text class="title">设置</text>
@@ -113,7 +113,7 @@ export default {
 		return {
 			title: '岑溪人民医院小程序',
 			path: '/pages/index/index',
-			imageUrl: 'https://chenglantimes.com/prod-api/profile/upload/2024/06/16/blob_20240616055022A009.jpeg',
+			imageUrl: '../../static/favicon.png',
 			success: (res) => {},
 			fail: (res) => {}
 		};
@@ -153,5 +153,10 @@ export default {
 			margin-top: 14px;
 		}
 	}
+	button {
+		border-radius: 0px;
+		line-height: 1;
+		font-size: 15px;
+	}
 }
 </style>