浏览代码

修改标题

chenrui 2 年之前
父节点
当前提交
8bda14c4ae
共有 2 个文件被更改,包括 44 次插入10 次删除
  1. 21 5
      pages/vinAnalyse/fitProductlist.vue
  2. 23 5
      pages/vinAnalyse/shelfAnalyse.vue

+ 21 - 5
pages/vinAnalyse/fitProductlist.vue

@@ -1,5 +1,9 @@
 <template>
 	<view class="modal-box">
+		<view class="headerName u-flex">
+			<text></text>
+			<view class="shelfName u-line-1">{{shelfName}}</view>
+		</view>
 		<view class="searchBox">
 			<view class="searchBox_l">
 				<u-search
@@ -114,11 +118,6 @@ export default {
 		};
 		this.loadData(ajaxData);
 	},
-	onReady() {
-		uni.setNavigationBarTitle({
-			title: this.shelfName
-		})
-	},
 	onBackPress(e) {
 		if (this.sortShow) {
 			this.sortShow = false;
@@ -260,6 +259,23 @@ export default {
 	background: #ffffff;
 	padding: 20rpx;
 	width: 100%;
+	.headerName{
+		padding: 15rpx 0;
+		color: #222;
+		font-size: 30rpx;
+		text{
+				display: block;
+				height: 30rpx;
+				width: 6rpx;
+				background: #0485F6;
+				margin-right: 10rpx;
+				border-radius: 10rpx;
+			}
+			.shelfName{
+				font-weight: bold;
+				width: calc(100% - 16rpx);
+			}
+	}
 	.searchBox {
 		width: 100%;
 		display: flex;

+ 23 - 5
pages/vinAnalyse/shelfAnalyse.vue

@@ -1,5 +1,9 @@
 <template>
 	<view class="shelf-analyse-content">
+		<view class="headerName u-flex">
+			<text></text>
+			<view class="shelfName u-line-1">{{shelfName}}</view>
+		</view>
 		<view class="checkbox-price">
 			<u-checkbox-group  placement="row" :size="24">
 				<u-checkbox v-model="item.checked" activeColor="rgb(4, 133, 246)" v-for="(item,index) in tabList" :key="index" :name="item.val">{{item.name}}</u-checkbox>
@@ -195,11 +199,6 @@
 			this.getList(ajaxData);
 			
 		},
-		onReady() {
-			uni.setNavigationBarTitle({
-				title: this.shelfName
-			})
-		},
 		methods:{
 			toPage(url){
 				uni.switchTab({
@@ -299,6 +298,25 @@
 	.shelf-analyse-content{
 		width:100%;
 		height: 100vh;
+		.headerName{
+			background:#fff;
+			vertical-align: top;
+			padding: 15rpx 20rpx;
+			color: #222;
+			font-size: 30rpx;
+			text{
+					display: block;
+					height: 30rpx;
+					width: 6rpx;
+					background: #0485F6;
+					margin-right: 10rpx;
+					border-radius: 10rpx;
+				}
+				.shelfName{
+					font-weight: bold;
+					width: calc(100% - 16rpx);
+				}
+		}
 		.emptyStyle{
 			margin:auto;
 		}