Jelajahi Sumber

样式修改

lilei 4 tahun lalu
induk
melakukan
f2ecee93ff
3 mengubah file dengan 14 tambahan dan 13 penghapusan
  1. 7 1
      pages/index/index.vue
  2. 6 11
      pages/toDoList/toDoList.vue
  3. 1 1
      pages/work/work.vue

+ 7 - 1
pages/index/index.vue

@@ -18,7 +18,7 @@
 		<div class="panel-box">
 			<div class="panel-title">
 				<span class="texts">待办单</span>
-				<span class="btns">更多 
+				<span class="btns" @click="toDoList">更多 
 				<u-icon name="icon-xian-11" custom-prefix="xd-icon" size="24" color="#4eacfe"></u-icon>
 				</span>
 			</div>
@@ -150,6 +150,12 @@ export default {
 				}
 			})
 		},
+		// 更多待办
+		toDoList(){
+			uni.navigateTo({
+				url: '/pages/toDoList/toDoList'
+			})
+		}
 	}
 };
 </script>

+ 6 - 11
pages/toDoList/toDoList.vue

@@ -1,11 +1,8 @@
 <template>
 	<view class="pagesCons">
 		<!-- 自定义标题 -->
-		<u-navbar :is-back="false" :border-bottom="false" :background="background" id="navbar">
+		<u-navbar title-color="#fff" back-icon-size="30" back-icon-color="#fff" :border-bottom="false" :background="background" id="navbar">
 			<view class="slot-wrap">
-				<view class="back-icon" @click="goBack">
-					<u-icon name="arrow-left" color="#fff" size="32"></u-icon>
-				</view>
 				<view class="left-icon">待办单</view>
 				<view class="right-icon">
 					<u-icon name="plus-circle" color="#fff" size="32"></u-icon>新增
@@ -301,19 +298,17 @@
 		/* 如果您想让slot内容占满整个导航栏的宽度 */
 		flex: 1;
 		/* 如果您想让slot内容与导航栏左右有空隙 */
-		padding: 0 30rpx;
+		padding: 0 30rpx 0 0;
 		color: #fff;
 		font-size: 28upx;
-		.left-icon {
+		.left-icon{
 			flex-grow: 1;
 			font-size: 32upx;
-			margin-right: 10upx;
-			text-align: center;
 		}
-		.right-icon {
-			padding-left: 50upx;
+		.right-icon{
+			padding-left:50upx;
 		}
-		.uni-icons {
+		.uni-icons{
 			margin-right: 10upx;
 		}
 	}

+ 1 - 1
pages/work/work.vue

@@ -38,7 +38,7 @@
 						auth: true
 					},
 					{
-						id: 'tcgl',
+						id: 'dbd',
 						icon: 'daiban',
 						color: '#0e97ff',
 						name: '待办单',