Lou
2023-12-15 5fa1870a958994ca5e8161376d26762a7bdafbbf
公共收益、扫码逻辑修改
12 files modified
124 ■■■■■ changed files
components/noticeList/noticeList.vue 2 ●●● patch | view | raw | blame | history
pages/home/index.vue 35 ●●●● patch | view | raw | blame | history
pages/user/center.vue 9 ●●●●● patch | view | raw | blame | history
static/icon/menu-center-02.png patch | view | raw | blame | history
static/icon/menu-center-03.png patch | view | raw | blame | history
static/icon/menu-center-04.png patch | view | raw | blame | history
subPackage/article/detail.vue 2 ●●● patch | view | raw | blame | history
subPackage/article/list.vue 40 ●●●●● patch | view | raw | blame | history
subPackage/house/family/index.vue 2 ●●● patch | view | raw | blame | history
subPackage/house/houseNumber/index.vue 12 ●●●● patch | view | raw | blame | history
subPackage/workbench/views/cscj.vue 9 ●●●● patch | view | raw | blame | history
subPackage/workbench/views/csjl.vue 13 ●●●● patch | view | raw | blame | history
components/noticeList/noticeList.vue
@@ -6,7 +6,7 @@
                    <text class="notice-title f-28">{{item.title}}</text>
                    <view class="flex j-c-s-b a-i-c">
                        <view class="flex a-i-c">
                            <tag-cell :text="item.dictValue" />
                            <tag-cell  v-if="item.dictValue" :text="item.dictValue" />
                            <view class="flex a-i-c">
                                <u-icon name="eye-fill" size="14" color="#CECECE"></u-icon>
                                <text class="f-24 c-99 ml-5">{{item.viewNumber}}</text>
pages/home/index.vue
@@ -177,6 +177,9 @@
    } from "@/common/setting"
    import noticeList from "@/components/noticeList/noticeList";
    import captionRow from "@/components/caption/caption.vue"
    import { getPublicSecurityDetail } from "@/api/grid/grid.js"
    export default {
        components: {
            noticeList,
@@ -316,7 +319,7 @@
                    {
                        title: "公共收益",
                        icon: "/static/icon/nav-15.png",
                        path: ""
                        path: "/subPackage/article/list?type=1"
                    }
                ]
@@ -720,23 +723,21 @@
                        console.log(obj)
                        if (obj.stdId == "3C77B40EFC5F4C899AA74BEE747D9DF1") {
                            eventType = 1;
                        }
                        if (obj.stdId == "CDF5528D617342228F3C84EF5C3C8780") {
                            eventType = 2;
                        }
                        if (eventType) {
                            that.$u.func.globalNavigator(
                                `/subPackage/house/houseNumber/index?stdId=${obj.stdId}&eventType=${eventType}`,
                                "navTo")
                        } else {
                        }else if (obj.stdId == "CDF5528D617342228F3C84EF5C3C8780"){
                            eventType = 2;
                            that.$u.func.globalNavigator(
                                `/subPackage/house/houseNumber/index?stdId=${obj.stdId}`, "navTo")
                                `/subPackage/house/houseNumber/index?stdId=${obj.stdId}&eventType=${eventType}`,
                                "navTo")
                        }else {
                            that.getHouseType(obj.stdId);
                        }
                        //"3C77B40EFC5F4C899AA74BEE747D9DF1"
                        // let url = "/subPackage/workbench/views/cscj?stdId=" + obj.stdId
                        // let url = "/subPackage/workbench/views/cscj?houseCode=" + obj.stdId
                        // let url = `/subPackage/house/houseNumber/index?stdId=${obj.stdId}`
                        // that.$u.func.globalNavigator(url, "navTo")
                    }
@@ -757,6 +758,20 @@
                }
                return obj
            },
            getHouseType(code){
                getPublicSecurityDetail({
                    addressCode:code
                }).then(res=>{
                    console.log(res)
                    if(res.data.doorplateType == "户室牌"){
                        this.$u.func.globalNavigator(`/subPackage/house/roomDetails/index?id=${code}`,"navTo")
                    }else if (res.data.addressLevel == 4){
                        this.$u.func.globalNavigator(
                            `/subPackage/house/houseNumber/index?stdId=${code}`, "navTo")
                    }
                })
            }
        }
    }
</script>
pages/user/center.vue
@@ -303,13 +303,16 @@
        margin: 18rpx;
        .icon {
            width: 50rpx;
            height: 50rpx;
            width: 52rpx;
            height: 52rpx;
            margin-right: 22rpx;
        }
    }
    
    /deep/ .u-cell__title-text{
        font-size:26rpx !important;
        font-size:28rpx !important;
        font-family: PingFang SC;
        font-weight: 500;
        color: #585b61;
    }
</style>
static/icon/menu-center-02.png

static/icon/menu-center-03.png

static/icon/menu-center-04.png

subPackage/article/detail.vue
@@ -10,7 +10,7 @@
                    <text class="f-22 ml-10">120</text>
                     </view> -->
                    <view class="flex a-i-c">
                        <tag-cell :text="detailInfo.dictValue"></tag-cell>
                        <tag-cell  v-if="detailInfo.dictValue" :text="detailInfo.dictValue"></tag-cell>
                        <view class="flex a-i-c ml-20">
                            <u-icon name="eye-fill" color="#CECECE"></u-icon>
                            <text class="f-22 ml-10">{{detailInfo.viewNumber}}</text>
subPackage/article/list.vue
@@ -1,7 +1,7 @@
<template>
    <view class="">
        <z-paging ref="paging" v-model="list" :auto="false" @query="queryList"  @onRefresh="refreshList" loading-more-no-more-text="没有更多了">
            <view class="tab"  slot="top">
            <view class="tab"  slot="top"  v-show="tabList.length">
                <u-tabs :list="tabList" :current="tabIndex" keyName="dictValue" @change="changeTab"
                    :inactiveStyle="{color:'#999999'}" :activeStyle="{color:'#017BFC'}"></u-tabs>
            </view>
@@ -31,24 +31,32 @@
                list: [],
                currentPage: 1,
                loadingStatus: 'nomore',
                eventType: ""
                eventType: "",
                type:""
            }
        },
        onLoad(option) {
            console.log(option);
            if (option.type) {
                this.eventType = option.type;
                if (option.type == 0) {
                    this.tabList = [{
                        dictKey: "",
                        dictValue: "公益报名"
                    }]
                } else {
                    this.tabList = [{
                        dictKey: "",
                        dictValue: "选举调查"
                    }]
                }
                // this.eventType = option.type;
                // if (option.type == 0) {
                //     this.tabList = [{
                //         dictKey: "",
                //         dictValue: "公益报名"
                //     }]
                // } else {
                //     this.tabList = [{
                //         dictKey: "",
                //         dictValue: "选举调查"
                //     }]
                // }
                // this.getNoticeList()
                uni.setNavigationBarTitle({
                    title:"公共收益"
                })
                this.type = option.type;
                this.$refs.paging.reload();
            } else {
                this.getCateList()
            }
@@ -82,6 +90,7 @@
                        dictKey: "",
                        dictValue: "全部"
                    })
                    this.tabList = data;
                    // this.tabId = data[0].dictKey;
                    // this.getNoticeList()
@@ -95,7 +104,8 @@
                    current: pageNo,
                    size: pageSize,
                    articleType: this.tabId,
                    eventType: this.eventType
                    eventType: this.eventType,
                    type:this.type
                }).then(res => {
                    this.$refs.paging.complete(res.data.records);
                })
subPackage/house/family/index.vue
@@ -326,7 +326,7 @@
                        box-sizing: border-box;
                        // background-color: #FAFBFE;
                        // background-color: rgb(236, 244, 255);
                        background-color: #F4F4F4;
                        background-color: #F8F8F8;
                        margin: 6rpx;
                        &>view {
subPackage/house/houseNumber/index.vue
@@ -213,12 +213,15 @@
                addressType:2,
                placeId:"",
                eventType:0   ,//历史事件类型    1邻里纠纷    2噪音扰民 
                neiName:""    //社区名称
                neiName:""    ,//社区名称
                placeName:""    //场所名称
            }
        },
        onLoad(option) {
            this.stdId = option.stdId
            this.addressType = option.addressType
            if(option.addressType){
                this.addressType = option.addressType
            }
            if(this.addressType ==4){
                this.placeId = this.stdId
            }
@@ -253,6 +256,7 @@
                    return
                }
                if(data){
                    this.placeName = data.placeName;
                    const doorplateAddressEntity = data?.doorplateAddressEntity || {}
                    const placePoiLabelVOList = data?.placePoiLabelVOList || {}
                    
@@ -332,7 +336,9 @@
                this.$u.func.globalNavigator(`/subPackage/workbench/views/cscj?houseCode=${this.stdId}&addressType=${this.addressType}`)
            },
            csjlClick() {
                this.$u.func.globalNavigator('/subPackage/workbench/views/csjl?stdId=' + this.stdId)
                let url = `/subPackage/workbench/views/csjl?stdId=${this.stdId}&name=${this.placeName}&from=place`
                // this.$u.func.globalNavigator('/subPackage/workbench/views/csjl?stdId=' + this.stdId)
                this.$u.func.globalNavigator(url)
            },
                
            navToEventDetail(){
subPackage/workbench/views/cscj.vue
@@ -200,7 +200,9 @@
                    imageUrls: "",
                    placeName: "",
                    username: '',
                    phone: ''
                    phone: '',
                    lat:'',
                    lng:''
                },
                rules: {
                    // 'buildingCode': {
@@ -397,7 +399,7 @@
        },
        onShow() {
            this.getLabel()
            this.getLocation()
            // this.getLocation()
        },
        methods: {
@@ -511,6 +513,9 @@
                            }
                        }
                    })
                    this.form.jwd = `${Number(data.lat).toFixed(6)},${Number(data.lng).toFixed(6)}`
                    this.form.building = arr.join("")
                    setTimeout(() => {
subPackage/workbench/views/csjl.vue
@@ -1,6 +1,6 @@
<template>
    <view class="container">
        <u-sticky>
        <u-sticky  v-if="from == 'home'">
            <view class="tabsAndSearch">
                <view class="tabs">
                    <u-tabs :list="tabsList" @click="tabClick"  :inactiveStyle="{color:'#999999'}"
@@ -65,9 +65,18 @@
                },
                tabsType: 0,
                status: 'nomore',
                currentRole: {}
                currentRole: {},
                from:"home"   //页面跳入来源
            }
        },
        onLoad(option){
            if(option.from){
                this.from = option.from;
                this.iptContext = option.name;
                // this.getrRecordList(option.name);
            }
        },
        onShow() {
            this.recordsData = []
            this.currentRole = uni.getStorageSync('activeRole')