Commit 76fdb1e4 authored by youjie's avatar youjie

no message

parent f5c94aa0
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</swiper> --> </swiper> -->
<!-- 按钮切换上周下周本周 --> <!-- 按钮切换上周下周本周 -->
<view class="titleHeader-dateStr"> <view class="titleHeader-dateStr">
<view v-if="weekType!=0" class="week" @click="getMonday(0)"> <view v-if="weekShow" class="week" @click="getMonday(0)">
本周 本周
</view> </view>
<view class="position clickLeft" @click="getMonday(-1)"> <view class="position clickLeft" @click="getMonday(-1)">
...@@ -129,8 +129,9 @@ ...@@ -129,8 +129,9 @@
], ],
currentSwiper: 1, currentSwiper: 1,
preSwiperId: 1, preSwiperId: 1,
timer: null, //防抖 weekType: 0,
weekType: 0 weekShow:false,
weekList:[]
}) })
const methods = { const methods = {
changeSwiper(val, PreId) { changeSwiper(val, PreId) {
...@@ -224,6 +225,20 @@ ...@@ -224,6 +225,20 @@
} }
}); });
} }
if(data.weekType==0){
data.weekList = arr
data.weekShow = false
}else{
data.weekList.forEach(item=>{
arr.forEach(i=>{
if(item==i){
data.weekShow = false
}else{
data.weekShow = true
}
})
})
}
data.msg.StartDate = arr[0] data.msg.StartDate = arr[0]
data.msg.EndDate = arr[6] data.msg.EndDate = arr[6]
methods.getList() methods.getList()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment