linwe
2023-11-10 3c5f26adee53b2b44d158400398a8f9a3bbff0a0
通知公告
1 files modified
31 ■■■■ changed files
pages/home/index.vue 31 ●●●● patch | view | raw | blame | history
pages/home/index.vue
@@ -136,24 +136,28 @@
                    </view>
                    <u-icon name="arrow-right"></u-icon>
                </view>
                <view v-for="(item,index) in notice" :key="index">
                <view class="notic-list" @click="navigatorPage('/subPackage/notice/detail')">
                    <view class="f-28 mb-30">
                        新业态新就业群体现状调查问卷
                            {{item.title}}
                    </view>
                    <view class="flex a-i-c j-c-s-b">
                        <view class="f-28 flex a-i-c">
                            <view class="flex a-i-c mr-30">
                                <u-icon name="thumb-up-fill" size="24" color="#CECECE"></u-icon>
                                <text class="f-24 c-99 ml-10">121</text>
                                    <text class="f-24 c-99 ml-10">{{item.countNumber}}</text>
                            </view>
                            <view class="flex a-i-c">
                                <u-icon name="eye-fill" size="24" color="#CECECE"></u-icon>
                                <text class="f-24 c-99 ml-10">121</text>
                                    <text class="f-24 c-99 ml-10">{{item.viewNumber}}</text>
                            </view>
                        </view>
                        <text class="f-24 c-99">2023-08-21</text>
                            <text class="f-24 c-99">{{item.createTime}}</text>
                    </view>
                </view>
                </view>
            </view>
            <u-picker :title="roleTypeName" :closeOnClickOverlay="true" @close="selectBoxShow = false"
                :show="selectBoxShow" keyName="name" ref="uPicker" :columns="siteColumns" @confirm="confirmSite"
@@ -168,6 +172,10 @@
        getFuncList,
        getHouseList
    } from "@/api/doorplateAddress/doorplateAddress";
    import {
        getPage
    } from "@/api/notice/notice";
    export default {
        data() {
            return {
@@ -309,7 +317,8 @@
                    useSlot: true
                }],
                menuList: [],
                curHouseCode: ''
                curHouseCode: '',
                notice: [],
            }
        },
@@ -358,9 +367,21 @@
                console.log(uni.getStorageSync("activeRole"))
                this.getMenuList()
                this.getSiteList()
                this.getNoticeList()
                // uni.hideTabBar()
            },
            async getNoticeList() {
                const param = {
                    size: 10,
                    current: 1
                }
                const res = await getPage(param)
                this.notice = res.data.records
                console.table(JSON.stringify(res.data.records))
            },
            //获取场所列表
            async getSiteList() {
                console.log(this.selectRole)