|
@@ -42,10 +42,10 @@
|
|
|
<view class="segmented-control">
|
|
|
<!-- <view class="segmented-control-item" :class="{ active: activeTab === 'recommend' }" @click="changeTab('recommend')">常办事项</view>
|
|
|
<view class="segmented-control-item" :class="{ active: activeTab === 'favorite' }" @click="changeTab('favorite')">我的事</view> -->
|
|
|
- <view
|
|
|
- class="segmented-control-item"
|
|
|
- :class="activeTab == e.label ? 'highlight' : 'not-highlight' "
|
|
|
- @click="changeTab(e.label)"
|
|
|
+ <view
|
|
|
+ class="segmented-control-item"
|
|
|
+ :class="activeTab == e.label ? 'highlight' : 'not-highlight' "
|
|
|
+ @click="changeTab(e.label)"
|
|
|
v-for="(e,idx) in switchOption"
|
|
|
:key="idx"
|
|
|
>
|
|
@@ -78,11 +78,16 @@
|
|
|
</ul>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+ <uni-fab ref="fab" :horizontal="right" :vertical="bottom"
|
|
|
+ @fabClick="goToMatterAllPage()"/>
|
|
|
+ <!-- <view class="add-button" @click="goToMatterAllPage">
|
|
|
+ <text>+</text>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
|
|
|
|
|
|
</view>
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -109,7 +114,13 @@ import { listDept,collectlist } from '@/api/handleAffairs/matter.js';
|
|
|
value:'我的事',
|
|
|
label:'favorite'
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ userList: [], // 收藏列表数据
|
|
|
+ //悬浮按钮右对齐
|
|
|
+ right: 'right',
|
|
|
+ //悬浮按钮下对齐
|
|
|
+ bottom: 'bottom',
|
|
|
+ color:'#8FBC8F '
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -118,6 +129,12 @@ import { listDept,collectlist } from '@/api/handleAffairs/matter.js';
|
|
|
this.getListscolle();
|
|
|
},
|
|
|
methods: {
|
|
|
+ goToMatterAllPage() {
|
|
|
+ // 使用 uni-app 的路由跳转方法跳转到 matterAll 页面
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/mattersAdd/mattersAdd'
|
|
|
+ });
|
|
|
+ },
|
|
|
confirm(){
|
|
|
if (!this.title.trim()) {//去除前后空格,在判断是否为空
|
|
|
return
|