wkyy пре 2 година
родитељ
комит
aa7969d4a5
2 измењених фајлова са 15 додато и 3 уклоњено
  1. 1 2
      pages/index/index.vue
  2. 14 1
      pages/user/setting.vue

+ 1 - 2
pages/index/index.vue

@@ -650,8 +650,7 @@
 					} else {
 					} else {
 						siteApi.searchStationData({
 						siteApi.searchStationData({
 							longitude: this.longitude,
 							longitude: this.longitude,
-							latitude: this.latitude,
-							online: 0
+							latitude: this.latitude
 						}).then((response) => {
 						}).then((response) => {
 							var stationDataList = response.data.data[0];
 							var stationDataList = response.data.data[0];
 							this.stationList = response.data.data;
 							this.stationList = response.data.data;

+ 14 - 1
pages/user/setting.vue

@@ -27,6 +27,7 @@
 
 
 <script>
 <script>
 	import * as userApi from '@/apis/user.js'
 	import * as userApi from '@/apis/user.js'
+	import * as API from '@/apis/index.js'
 	
 	
 	export default {
 	export default {
 		data() {
 		data() {
@@ -48,7 +49,8 @@
 				titleStyle: {
 				titleStyle: {
 					fontWeight: 'bold',
 					fontWeight: 'bold',
 					fontSize: '18px',
 					fontSize: '18px',
-				}
+				},
+				fontMode: 0
 			}
 			}
 		},
 		},
 		onReady() {
 		onReady() {
@@ -71,9 +73,20 @@
 			checkedChange() {
 			checkedChange() {
 				if(this.checked) {
 				if(this.checked) {
 					this.carhelp.set("getElderModeClass", "长辈模式");
 					this.carhelp.set("getElderModeClass", "长辈模式");
+					this.fontMode = 1;
 				} else {
 				} else {
 					this.carhelp.set("getElderModeClass", "标准模式");
 					this.carhelp.set("getElderModeClass", "标准模式");
+					this.fontMode = 0;
 				}
 				}
+				
+				API.changeFont({fontMode: this.fontMode}).then((res) => {
+					
+				}).catch(error => {
+					uni.showToast({
+						title: error,
+						icon: "none"
+					})
+				})
 			},
 			},
 			signOut() {
 			signOut() {
 				this.show = true;
 				this.show = true;