Ver Fonte

研学haeder 优化

vaecebyZ há 9 meses atrás
pai
commit
f1872e1029
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      study/index.vue

+ 4 - 1
study/index.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
 	<view class="study">
 	<view class="study">
-		<zs-header  title="慧研学" color="#000" :background="background"></zs-header>
+		<zs-header  :title="headerTitle" color="#000" :background="background"></zs-header>
 		<view class="top-box">
 		<view class="top-box">
 			<image class="bg" src="https://hyxhsh.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/06qgjHTlTxWEb95dd5bef869e62f2a78c625ea6bef78.jpg/1.jpg" mode=""></image>
 			<image class="bg" src="https://hyxhsh.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/06qgjHTlTxWEb95dd5bef869e62f2a78c625ea6bef78.jpg/1.jpg" mode=""></image>
 			<view class="type-box">
 			<view class="type-box">
@@ -127,6 +127,7 @@
 					columnImg: "",
 					columnImg: "",
 				},
 				},
 				typeList:[],
 				typeList:[],
+				headerTitle:'',
 				list: [],
 				list: [],
 				list1: [],
 				list1: [],
 				communityList:[],
 				communityList:[],
@@ -286,8 +287,10 @@
 		onPageScroll(e) {
 		onPageScroll(e) {
 				if(e.scrollTop >= 50){
 				if(e.scrollTop >= 50){
 					this.background = true
 					this.background = true
+					this.headerTitle = '慧研学'
 				}else{
 				}else{
 					this.background = false
 					this.background = false
+					this.headerTitle = ''
 				}
 				}
 		},
 		},
 	}
 	}