4 files modified
1 files added
| | |
| | | <template> |
| | | <view> |
| | | <u-tabbar class="custom-tabbar" zIndex="100" :value="current" :fixed="true" :active-color="activeColor" |
| | | <u-tabbar class="custom-tabbar" zIndex="9999" :value="current" :fixed="true" :active-color="activeColor" |
| | | :inactive-color="inactiveColor"> |
| | | <u-tabbar-item :text="item.name" @click="changeTabbar(item.url,index)" v-for="(item,index) in tabbarList" |
| | | :key="index"> |
| | | <u-tabbar-item :text="item.name" @click="changeTabbar(item.url,index,item.name)" |
| | | v-for="(item,index) in tabbarList" :key="index"> |
| | | <image class="tabbar-icon" slot="active-icon" :src="item.iconPathSelected"></image> |
| | | <image class="tabbar-icon" slot="inactive-icon" :src="item.iconPath"></image> |
| | | </u-tabbar-item> |
| | |
| | | uni.switchTab({ |
| | | url |
| | | }) |
| | | this.$emit("change", index) |
| | | this.$emit("change", name) |
| | | } |
| | | } |
| | | } |
| | |
| | |
|
| | |
|
| | | <view class="block flex a-i-c j-c-s-b mb-20" v-if="roleType == 3">
|
| | | <view @click="scan" class="block-item"
|
| | | style="width:47%; background:linear-gradient( #00176C 0%, rgba(1,97,203,0.2) 99%)">
|
| | | <!-- <image class="block-item-bg" src="/static/icon/nav-bg-04.png" mode="aspectFill"
|
| | | style="width:100%;" /> -->
|
| | | <view @click="scan" class="block-item">
|
| | | <!-- <image class="block-item-bg" src="/static/img/block-bg.png" mode="aspectFill"
|
| | | style="width:390rpx; height:227rpx;" /> -->
|
| | |
|
| | | <view class="block-item-box flex a-i-c j-c-c " style="width:100%;">
|
| | | <u-icon name="/static/icon/nav-05.png" width="72rpx" height="72rpx"></u-icon>
|
| | | <view class="item-text flex f-d-c j-c-s-b" style="margin-left: 20rpx;">
|
| | |
| | |
|
| | | <view class="block-item" @click="navigatorPage('/subPackage/task/index')"
|
| | | style="width:47%;background:linear-gradient( #00176C 0%, rgba(1,97,203,0.2) 99%)">
|
| | | <!-- <image class="block-item-bg" src="/static/icon/nav-bg-04.png" mode="aspectFill"
|
| | | <!-- <image class="block-item-bg" src="/static/img/block-bg.png" mode="aspectFill"
|
| | | style="width:100%;" /> -->
|
| | | <view class="block-item-box flex a-i-c j-c-c" style="width:100%;">
|
| | | <u-icon name="/static/icon/nav-12.png" width="72rpx" height="72rpx"></u-icon>
|
| | |
| | | @close="selectBoxShow = false" :show="selectBoxShow" keyName="name" ref="uPicker" :columns="siteColumns"
|
| | | @confirm="confirmSite" @change="changeSite" @cancel="selectBoxShow = false"></u-picker>
|
| | | </view>
|
| | | <tabBar :current="0" :list="tabList" />
|
| | | <tabBar :current="0" :list="tabList" @change="changeTabbar" />
|
| | | </view>
|
| | | </template>
|
| | |
|
| | |
| | | // });
|
| | | // },
|
| | |
|
| | | changeTabbar() {
|
| | | uni.$emit('refreshStatistics')
|
| | | },
|
| | |
|
| | |
|
| | |
|
| | | //获取待办事项数量
|
| | | getTaskCount() {
|
| | |
| | | this.getBanner();
|
| | | this.getSiteList()
|
| | | this.getNoticeList()
|
| | | this.getTaskCount();
|
| | | // this.getTaskCount();
|
| | | },
|
| | |
|
| | | getBanner() {
|
| | |
| | | tabList: [] |
| | | } |
| | | }, |
| | | |
| | | // onTabItemTap(e) { |
| | | // // tab 点击时执行,此处直接接收单击事件 |
| | | // console.log(e) |
| | |
| | | // }, |
| | | onLoad() { |
| | | this.tabList = getTabbarList(2); |
| | | }, |
| | | |
| | | |
| | | onShow() { |
| | | this.refreshData(); |
| | | // uni.$on('refreshStatistics', () => { |
| | | // this.refreshData(); |
| | | // }) |
| | | }, |
| | | |
| | | |
| | | methods: { |
| | | |
| | | changeTabbar(e) { |
| | | console.log("==>", e) |
| | | // this.refreshData(); |
| | |
| | | </u-cell> |
| | | </u-cell-group> |
| | | </view> |
| | | <tabBar :current="2" :list="tabList" /> |
| | | <tabBar :current="2" :list="tabList" @change="changeTabbar" /> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | onShow() { |
| | | // this.getUserInfo(); |
| | | let role = uni.getStorageSync('activeRole') |
| | | if (role.roleAlias == "inhabitant") { |
| | | if (role.roleName == "居民") { |
| | | this.tabList = getTabbarList(1); |
| | | this.roleType = 1 |
| | | } else { |
| | |
| | | }, |
| | | methods: { |
| | | |
| | | changeTabbar() { |
| | | uni.$emit('refreshStatistics') |
| | | }, |
| | | |
| | | setAvatar(avatar) { |
| | | return `${minioBaseUrl}${avatar}` |
| | | }, |