|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view style="padding: 30rpx;">
|
|
|
- <view class="card">
|
|
|
+ <view class="card" v-if="havePlan">
|
|
|
<view class="date_t1">
|
|
|
<u-icon name="arrow-left" size="28" v-if="havePreviousMonth" @click="swipeMonth(-1)"></u-icon>
|
|
|
<text style="padding: 0 15rpx;">{{calendarStudyVo.year}}年 {{calendarStudyVo.month}}月</text>
|
|
|
@@ -79,6 +79,7 @@
|
|
|
</uni-swipe-action-item>
|
|
|
</uni-swipe-action>
|
|
|
</view>
|
|
|
+
|
|
|
<view class="newPlan" @click="newPlan()">新建计划</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -158,7 +159,8 @@ export default {
|
|
|
],
|
|
|
dayStudyList:[],
|
|
|
listItem:{},
|
|
|
- currentMonth:0
|
|
|
+ currentMonth:0,
|
|
|
+ havePlan:false
|
|
|
};
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
@@ -286,12 +288,11 @@ export default {
|
|
|
item.show = 'none';
|
|
|
});
|
|
|
self.list = result.data.data;
|
|
|
- self.listItem = self.list[0]
|
|
|
- self.dealMonth()
|
|
|
- // self.calendarStudyVo = result.data.data[0].calendarStudyVo[1];
|
|
|
-
|
|
|
-
|
|
|
- console.log(self.calendarStudyVo.dayStudyList)
|
|
|
+ if(self.list.length>0){
|
|
|
+ self.listItem = self.list[0]
|
|
|
+ self.dealMonth()
|
|
|
+ self.havePlan = true
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
newPlan() {
|