12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <template>
- <view>
- <cu-custom bgColor="bg-blue" backUrl="/pages/index/index?id=apps" :isBack="true">
- <block slot="backText">返回</block>
- <block slot="content"> 通知公告</block>
- </cu-custom>
-
- <view class="bg-white nav fixed flex text-center" :style="[{top:CustomBar + 'px'}]">
- <view class="cu-item flex-sub" :class="0==tabIndex?'text-blue cur':''" @tap="tabSelect" data-id="0">
- 我的通知
- </view>
- <view class="cu-item flex-sub" v-if="$auth.hasPermission('notify:list')" :class="1==tabIndex?'text-blue cur':''" @tap="tabSelect" data-id="1">
- 通告管理
- </view>
- </view>
-
- >
- <my-notify-list ref="mescrollItem0" :i="0" :index="tabIndex"></my-notify-list>
- <oa-notify-list ref="mescrollItem1" :i="1" :index="tabIndex"></oa-notify-list>
- </view>
- </template>
- <script>
- import myNotifyList from "./myNotifyList.vue"
- import oaNotifyList from "./oaNotifyList.vue"
- import MescrollMoreMixin from "@/components/mescroll-uni/mixins/mescroll-more.js";
- import * as $auth from "@/common/auth"
- export default {
- mixins: [MescrollMoreMixin],
- components: {
- myNotifyList,
- oaNotifyList
- },
- onLoad(tab) {
- if(tab&&tab.tabIndex){
- this.tabIndex = parseInt(tab.tabIndex)
- }
- },
- data() {
- return {
- tabIndex: 0
- }
- },
- methods:{
- tabSelect(e) {
- this.tabIndex = parseInt(e.currentTarget.dataset.id);
- }
- }
- }
- </script>
- <style>
- .top-warp{
- z-index: 9990;
- position: fixed;
- top: --window-top;
- left: 0;
- width: 100%;
- height: 120upx;
- background-color: white;
- }
- .top-warp .tip{
- font-size: 28upx;
- height: 60upx;
- line-height: 60upx;
- text-align: center;
- }
- </style>
|