he2802 4 年 前
コミット
5ed62f6abb
2 ファイル変更3 行追加5 行削除
  1. 2 2
      common/request.js
  2. 1 3
      pages2/plan/detail.vue

+ 2 - 2
common/request.js

@@ -1,6 +1,6 @@
 
-const BASE_URL = 'http://192.168.1.222:8088'
-// const BASE_URL = 'http://192.168.1.20'   //
+//const BASE_URL = 'http://192.168.1.222:8088'
+ const BASE_URL = 'http://127.0.0.1:8088'   //
 // const BASE_URL = 'https://api.xyyxt.net'  //
 import store from '@/store/index.js'
 import api from './api.js'

+ 1 - 3
pages2/plan/detail.vue

@@ -190,7 +190,6 @@ export default {
 		dealMonth(){
 			let date = new Date();
 			let currentMonth = date.getMonth()+1;
-			this.currentMonth = currentMonth
 			this.haveNextMonth = false
 			this.havePreviousMonth = false
 			for(let i=0;i<this.listItem.calendarStudyVo.length;i++){
@@ -215,7 +214,6 @@ export default {
 			this.calendarStudyVo.miniDayStudyList = [] //创建缩放的数组
 			let date = new Date();
 			let num = date.getDate();
-			console.log(firstItem,88)
 			for(let i = 0; i < firstItem.studyDay; i++) {
 				this.calendarStudyVo.dayStudyList.unshift({date:0})
 			}
@@ -243,7 +241,6 @@ export default {
 					item.dot = true
 				}
 			}
-			console.log(firstItem,88)
 			let start = todayIndex - todayItem.studyDay
 			this.calendarStudyVo.miniDayStudyList = this.calendarStudyVo.dayStudyList.slice(start,start+7)
 			this.showDayList = this.calendarStudyVo.miniDayStudyList
@@ -500,6 +497,7 @@ export default {
 	width: 100%;
 	text-align: center;
 	padding: 20rpx 0;
+
 }
 .card {
 	width: 100%;