xy 1 年之前
父节点
当前提交
af944ee961
共有 3 个文件被更改,包括 24 次插入13 次删除
  1. 14 12
      xs-app/components/read/readPage.vue
  2. 1 1
      xs-app/components/read/settingMenu.vue
  3. 9 0
      xs-app/pages/readbook/read.vue

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

@@ -1,18 +1,20 @@
 <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>
-		<!-- <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>
-	
 </template>
 	
 <script setup lang="ts">

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

@@ -87,7 +87,7 @@
 	watch(
 	     () => ReadSetting().data.fontSizeIndex, // 监听的数据源
 	     (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]
 	       // 可以在这里执行一些操作,比如更新其他状态或触发其他函数
 	     }

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

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