xy 1 year ago
parent
commit
af944ee961

+ 14 - 12
xs-app/components/read/readPage.vue

@@ -1,18 +1,20 @@
 <template>
 <template>
-	<view v-html="book_title" :style="{
-		fontSize:`${config.read_config.fontSizeList[read_setting_data.fontSizeIndex]*1.5}px`,
-		lineHeight:`${config.read_config.lineHeight * config.read_config.fontSizeList[read_setting_data.fontSizeIndex]}px`,
-	}"></view>
-	<view class="inner-box">
-		<view class="book-inner"
-			v-html="text_content"
-			:style="{
-				fontSize: `${config.read_config.fontSizeList[read_setting_data.fontSizeIndex]}px`,
-				lineHeight: `${config.read_config.lineHeight * config.read_config.fontSizeList[read_setting_data.fontSizeIndex]}px`,
+	<view style="background-color: #f3a73f;">
+		<view v-html="book_title" :style="{
+			fontSize:`${config.read_config.fontSizeList[read_setting_data.fontSizeIndex]*1.5}px`,
+			lineHeight:`${config.read_config.lineHeight * config.read_config.fontSizeList[read_setting_data.fontSizeIndex]}px`,
 		}"></view>
 		}"></view>
-		<!-- <image src="../../static/logo.png"></image> -->
+		<view class="inner-box">
+			<view class="book-inner"
+				v-html="text_content"
+				:style="{
+					fontSize: `${config.read_config.fontSizeList[read_setting_data.fontSizeIndex]}px`,
+					lineHeight: `${config.read_config.lineHeight * config.read_config.fontSizeList[read_setting_data.fontSizeIndex]}px`,
+					<!-- color: `${config.read_config.colorList[0]}`, -->
+			}"></view>
+			<!-- <image src="../../static/logo.png"></image> -->
+		</view>
 	</view>
 	</view>
-	
 </template>
 </template>
 	
 	
 <script setup lang="ts">
 <script setup lang="ts">

+ 1 - 1
xs-app/components/read/settingMenu.vue

@@ -87,7 +87,7 @@
 	watch(
 	watch(
 	     () => ReadSetting().data.fontSizeIndex, // 监听的数据源
 	     () => ReadSetting().data.fontSizeIndex, // 监听的数据源
 	     (newVal, oldVal) => {
 	     (newVal, oldVal) => {
-	       console.log(`Count changed from ${oldVal} to ${newVal}`);
+	       // console.log(`Count changed from ${oldVal} to ${newVal}`);
 		   showFontSize.value = config.read_config.fontSizeList[ReadSetting().getReadSetting().fontSizeIndex]
 		   showFontSize.value = config.read_config.fontSizeList[ReadSetting().getReadSetting().fontSizeIndex]
 	       // 可以在这里执行一些操作,比如更新其他状态或触发其他函数
 	       // 可以在这里执行一些操作,比如更新其他状态或触发其他函数
 	     }
 	     }

+ 9 - 0
xs-app/pages/readbook/read.vue

@@ -38,6 +38,15 @@
 	let fontSize = config.read_config.fontSizeList[read_setting_data.fontSizeIndex]
 	let fontSize = config.read_config.fontSizeList[read_setting_data.fontSizeIndex]
 	let bgColor = config.read_config.colorList[read_setting_data.colorBgIndex]
 	let bgColor = config.read_config.colorList[read_setting_data.colorBgIndex]
 	//设置属性end
 	//设置属性end
+	
+	uni.setNavigationBarColor({
+	    frontColor: '#ffffff',
+	    backgroundColor: '#f3a73f',
+	    animation: {
+	        duration: 400,
+	        timingFunc: 'easeIn'
+	    }
+	})
 	if(book_data!=null&&start_read_chapter_id!=-1){
 	if(book_data!=null&&start_read_chapter_id!=-1){
 		initView()
 		initView()
 	}
 	}