浏览代码

修改部分内容样式

刘拾玖 4 月之前
父节点
当前提交
f659a97081
共有 5 个文件被更改,包括 30 次插入10 次删除
  1. 2 2
      lib/config/index.ts
  2. 8 0
      lib/util.ts
  3. 2 2
      pages.json
  4. 7 3
      pages/feedback/FeedbackList.vue
  5. 11 3
      pages/feedback/index.vue

+ 2 - 2
lib/config/index.ts

@@ -4,12 +4,12 @@
 
 // //--- 本地服务器
 // export const  SERVER= ''
-export const  SERVER= 'http://192.168.31.36:48080'
+export const  SERVER= 'http://192.168.31.36:86'
 
 // //--- 正式服务器
 // export const SERVER = '/'
 
-export const BASE_URL = SERVER //+ '/dev-api'
+export const BASE_URL = SERVER + '/zyyyyjs'
 
 export const VITE_UPLOAD_URL = 'http://192.168.31.36:48080'
 

+ 8 - 0
lib/util.ts

@@ -238,6 +238,14 @@ export function filterApplicationBgColor(index){
 	}
 	return dict_type[index]
 }
+export function filterApplicationType(index){
+	let dict_type = {
+		'1':'缺药补药反馈',
+		'2':'标准建议反馈',
+		'3':'其他反馈',
+	}
+	return dict_type[index]
+}
 
 // 定义全局变量
 export const userInfo = {

+ 2 - 2
pages.json

@@ -9,14 +9,14 @@
 		{
 			"path": "pages/feedback/index",
 			"style": {
-				"navigationBarTitleText": "办件记录",
+				"navigationBarTitleText": "中医用药一件事-办件记录",
 				"navigationBarBackgroundColor": "#fff"
 			}
 		}, 
 		{
 			"path": "pages/feedback/details",
 			"style": {
-				"navigationBarTitleText": "中医用药一件事反馈登记",
+				"navigationBarTitleText": "中医用药一件事-反馈登记",
 				"navigationBarBackgroundColor": "#fff"
 			}
 		}

+ 7 - 3
pages/feedback/FeedbackList.vue

@@ -9,7 +9,7 @@
 				<view v-for="(item,index) in listArray" :key="index" class="loop-list-item" @click="onClick(item)">
 					<view class="item-content">
 						<view class="item-title">
-							<view class="title-line">{{ item.title }}</view>
+							<view class="title-line">{{ filterApplicationType(item.fklx) }}</view>
 							<view class="title-company" :class="filterApplicationBgColor(item.fkzt)">{{ filterApplicationStatus(item.fkzt) }}</view>
 						</view>
 						<view class="part-line"></view>
@@ -28,7 +28,11 @@
 
 <script setup lang="ts">
 	import { defineProps,ref } from "vue";
-	import { filterApplicationStatus,filterApplicationBgColor } from '@/lib/util'
+	import { 
+		filterApplicationStatus,
+		filterApplicationType,
+		filterApplicationBgColor,
+	} from '@/lib/util'
 
 	const emit = defineEmits(['click','nextPage']) // 定义 success 事件,用于操作成功后的回调
 	// 定义 props 类型
@@ -71,7 +75,7 @@
 				margin-bottom: 24rpx;
 				border-radius: 10rpx;
 				background: #fff;
-				padding: 30rpx 0 20rpx;
+				padding: 14rpx 0 20rpx;
 				.item-content {
 					.item-title{
 						padding: 0 20rpx;

+ 11 - 3
pages/feedback/index.vue

@@ -24,6 +24,7 @@
 		<!-- 新增 -->
 		<view class="feedback-add-icon" @click="onClickAdd">
 			<image class="add-icon" src="/static/image/add-icon.svg" mode="aspectFit"></image>
+			<view class="add-title">登记</view>
 		</view>
 	</view>
 </template>
@@ -145,11 +146,11 @@
 		});
 		return { 
 			...item, 
-			title: '中医用药一件事反馈登记',
 			formattedData: formattedItem ,
 		};
 	  });
 	  listArray.value = formattedData;
+	  console.log("查询",listArray.value)
 	};
 	
 	const onNextPage = ()=> {
@@ -249,12 +250,19 @@
 	  width: 120rpx;
 	  height: 120rpx;
 	  @include flex-center;
+	  flex-direction: column;
 	  border-radius: 50%;
 	  background-color: #fff;
 	  box-shadow: 0px 4px 10px 0px rgba(216, 216, 216, 0.8),inset 0px 4px 10px 0px rgba(216, 216, 216, 0.3);
 	  .add-icon {
-		width: 60rpx;
-		height: 60rpx;
+		margin-top: 16rpx;
+		width: 55rpx;
+		height: 55rpx;
+	  }
+	  .add-title {
+		  color: #1E92F0;
+		  font-size: 24rpx;
+		  font-weight: 600;
 	  }
   }
 }