Procházet zdrojové kódy

研学haeder 优化

vaecebyZ před 9 měsíci
rodič
revize
f1872e1029
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      study/index.vue

+ 4 - 1
study/index.vue

@@ -1,6 +1,6 @@
 <template>
 	<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">
 			<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">
@@ -127,6 +127,7 @@
 					columnImg: "",
 				},
 				typeList:[],
+				headerTitle:'',
 				list: [],
 				list1: [],
 				communityList:[],
@@ -286,8 +287,10 @@
 		onPageScroll(e) {
 				if(e.scrollTop >= 50){
 					this.background = true
+					this.headerTitle = '慧研学'
 				}else{
 					this.background = false
+					this.headerTitle = ''
 				}
 		},
 	}