校园报告tab

parent c46e9339
...@@ -41,13 +41,13 @@ ...@@ -41,13 +41,13 @@
<view class="school-report-context"> <view class="school-report-context">
<view class="school-report-context-tab"> <view class="school-report-context-tab">
<view class="school-report-context-tab-item"> <view class="school-report-context-tab-item">
<view class="school-report-context-tab-item-one active"> <view class="school-report-context-tab-item-one" :class="tabIndex==1?'active':''" @tap="tabTap(1)">
<text>消费报告</text> <text>消费报告</text>
</view> </view>
<view class="school-report-context-tab-item-one"> <view class="school-report-context-tab-item-one" :class="tabIndex==2?'active':''" @tap="tabTap(2)">
<text>门禁报告</text> <text>门禁报告</text>
</view> </view>
<view class="school-report-context-tab-item-one"> <view class="school-report-context-tab-item-one" :class="tabIndex==3?'active':''" @tap="tabTap(3)">
<text>公话报告</text> <text>公话报告</text>
</view> </view>
</view> </view>
...@@ -416,6 +416,7 @@ ...@@ -416,6 +416,7 @@
maxDate: new Date(), maxDate: new Date(),
imgUrl: '', // 存储base64图片 imgUrl: '', // 存储base64图片
dialogShow: false, dialogShow: false,
tabIndex:1,
// 就餐情况 // 就餐情况
diningSituations: { diningSituations: {
diningSituationsDate: '', diningSituationsDate: '',
...@@ -484,6 +485,9 @@ ...@@ -484,6 +485,9 @@
} }
}, },
methods: { methods: {
tabTap:function(num){
this.tabIndex=num;
},
toImage: function() { toImage: function() {
this.$nextTick(() => { this.$nextTick(() => {
html2cancas(document.getElementsByClassName("tainer")[0], { html2cancas(document.getElementsByClassName("tainer")[0], {
......
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