quanyawei
2023-11-13 7f922eb1e96e21e72fccc651167348021af039d2
fix:小程序详情修改
4 files modified
32 ■■■■ changed files
pages/actionChange/agencyPage/index.vue 10 ●●●●● patch | view | raw | blame | history
pages/actionChange/newPage/index.vue 6 ●●●● patch | view | raw | blame | history
pages/actionChange/workOrderDetails/index.vue 12 ●●●● patch | view | raw | blame | history
pages/index/index.vue 4 ●●●● patch | view | raw | blame | history
pages/actionChange/agencyPage/index.vue
@@ -206,6 +206,7 @@
        onReachBottom() {
            //这里是判断是否需要继续掉接口
            if (this.isLoading) {
                console.log('1122111')
                this.status = 'loading'
                //请求一次接口,页码就++
                this.page.currentPage = ++this.page.currentPage
@@ -294,6 +295,14 @@
                }
                this.getWorkOrder()
            },
            setData() {
                this.workOderList = []
                this.page = {
                    currentPage: 1,
                    pageSize: 10
                }
                this.getContaminateList()
            },
            // 获取责任单位list
            getUnitList() {
                this.$http.httpGet('/allocation/unit').then(res => {
@@ -352,6 +361,7 @@
                data.allocationId = e.allocationId
                data.state = e.state
                data.allocationNum = e.allocationNum
                data.current = this.current
                let myData = JSON.stringify(data)
                uni.navigateTo({
                    url: '/pages/actionChange/workOrderDetails/index?infor=' + myData + '&type=jump',
pages/actionChange/newPage/index.vue
@@ -62,9 +62,8 @@
                </view>
            </u-form-item>
        </u-form>
        <u-picker v-if="showCheckBox" :show="showCheckBox" keyName="label" :columns="actionOptionList"
            @cancel="showCheckBox = false" :default-selector="[0]" :immediateChange='true'
            @confirm="selectBack"></u-picker>
        <u-picker :show="showCheckBox" keyName="label" :columns="actionOptionList" @cancel="showCheckBox = false"
            :default-selector="[0]" :immediateChange='true' @confirm="selectBack"></u-picker>
        <!--     <u-action-sheet v-if="actionOptionList.length > 0" :actions="actionOptionList" :show="showCheckBox" title="请选择"
            @close="showCheckBox = false" @select="selectBack" /> -->
        <view class="bunts">
@@ -184,6 +183,7 @@
        },
        methods: {
            handleFile(data) {
                console.log('datadata', data)
                this.fileBaseList = data
            },
            close() {
pages/actionChange/workOrderDetails/index.vue
@@ -135,9 +135,15 @@
                        showTabBar: true
                    }
                })
                uni.redirectTo({
                    url: '/pages/index/index',
                })
                if (this.option.type === 'share') {
                    uni.redirectTo({
                        url: '/pages/index/index',
                    })
                } else {
                    uni.navigateBack({
                        delta: 1, //返回上上一级注意这里要设置为2
                    })
                }
            },
            refuse() {
                Promise.all([this.$refs.rectificationInfor && this.$refs.rectificationInfor.formVali(), this.$refs
pages/index/index.vue
@@ -45,14 +45,14 @@
                console.log('currIndexOn', data)
                this.currIndex = data.data.index
                this.showTabBar = data.data.showTabBar
                this.$refs.agencyPage.getContaminateList()
                this.$refs.agencyPage.setData()
            })
            this.share.title = this.title
        },
        methods: {
            getData() {
                console.log('获取数据')
                this.$refs.agencyPage.getContaminateList()
                this.$refs.agencyPage.setData()
            },
            handleChangeTabe(index) {
                if (index === 2) {