智慧保安互联网APP
shuishen
2021-08-20 501e7180823c29e893d87efabd0e2b9a629bae40
下拉刷新等
10 files modified
246 ■■■■■ changed files
components/contacts/contacts.vue 3 ●●●● patch | view | raw | blame | history
components/submit/submit.vue 3 ●●●●● patch | view | raw | blame | history
pages.json 26 ●●●● patch | view | raw | blame | history
pages/company/company.vue 25 ●●●●● patch | view | raw | blame | history
pages/dispatch/dispatch.vue 38 ●●●●● patch | view | raw | blame | history
pages/examine/examine.vue 34 ●●●●● patch | view | raw | blame | history
pages/groupChat/groupChat.vue 20 ●●●●● patch | view | raw | blame | history
pages/message/message.vue 33 ●●●●● patch | view | raw | blame | history
pages/report/report.vue 39 ●●●●● patch | view | raw | blame | history
pages/securityStaff/exhibition.vue 25 ●●●●● patch | view | raw | blame | history
components/contacts/contacts.vue
@@ -77,7 +77,8 @@
                var datas = this.Pdata;
                //alert(datas.name)
                uni.navigateTo({
                    url: '/pages/groupChat/chating?chatID=' + datas.recipientId.toString()
                    url: '/pages/groupChat/chating?chatID=' + datas.recipientId.toString() + '&data=' + JSON.stringify(
                        datas)
                });
            },
            QZchating() {
components/submit/submit.vue
@@ -89,6 +89,9 @@
                pageY: 0,
            };
        },
        mounted() {
            console.log(this.callname,1111)
        },
        components: {
            emoji,
        },
pages.json
@@ -67,7 +67,7 @@
            "path": "pages/groupChat/groupChat",
            "style": {
                "navigationBarTitleText": "聊天室",
                "enablePullDownRefresh": false,
                "enablePullDownRefresh": true,
                "navigationStyle": "custom"
            }
        },
@@ -103,9 +103,9 @@
            "path": "pages/securityStaff/exhibition",
            "style": {
                "navigationBarTitleText": "保安管理",
                "enablePullDownRefresh": false,
                "navigationBarBackgroundColor": "#0BB9C8",
                "navigationBarTextStyle": "white"
                "navigationBarTextStyle": "white",
                "enablePullDownRefresh": true
            }
        },
        {
@@ -120,9 +120,9 @@
            "path": "pages/company/company",
            "style": {
                "navigationBarTitleText": "服务单位",
                "enablePullDownRefresh": false,
                "navigationBarBackgroundColor": "#0BB9C8",
                "navigationBarTextStyle": "white"
                "navigationBarTextStyle": "white",
                "enablePullDownRefresh": true
            }
        },
        {
@@ -138,10 +138,10 @@
            "path": "pages/report/report",
            "style": {
                "navigationBarTitleText": "工作汇报",
                "enablePullDownRefresh": false,
                "navigationBarBackgroundColor": "#0BB9C8",
                "navigationBarTextStyle": "white",
                "navigationStyle": "custom"
                "navigationStyle": "custom",
                "enablePullDownRefresh": true
            }
        },
        {
@@ -175,7 +175,7 @@
            "path": "pages/dispatch/dispatch",
            "style": {
                "navigationBarTitleText": "调度指令",
                "enablePullDownRefresh": false,
                "enablePullDownRefresh": true,
                "navigationBarBackgroundColor": "#0BB9C8",
                "navigationBarTextStyle": "white",
                "navigationStyle": "custom"
@@ -203,7 +203,7 @@
            "path": "pages/message/message",
            "style": {
                "navigationBarTitleText": "通知通告",
                "enablePullDownRefresh": false,
                "enablePullDownRefresh": true,
                "navigationBarBackgroundColor": "#0BB9C8",
                "navigationBarTextStyle": "white",
                "navigationStyle": "custom"
@@ -231,7 +231,7 @@
            "path": "pages/examine/examine",
            "style": {
                "navigationBarTitleText": "现场检查",
                "enablePullDownRefresh": false,
                "enablePullDownRefresh": true,
                "navigationBarBackgroundColor": "#0BB9C8",
                "navigationBarTextStyle": "white",
                "navigationStyle": "custom"
@@ -390,11 +390,9 @@
                "navigationStyle": "custom"
                // "enablePullDownRefresh": false
            }
        }
        ,{
        }, {
            "path" : "pages/groupChat/newGroup/newGroup",
            "style" :
            {
            "style": {
                "navigationBarTitleText": "新建群组",
                "navigationBarBackgroundColor": "#0BB9C8",
                "navigationBarTextStyle": "white"
pages/company/company.vue
@@ -41,7 +41,9 @@
                keyValue: '',
                pagelist: 0,
                pages: 0,
                flag: true
                flag: true,
                pullDown: false
            };
        },
        onLoad() {
@@ -63,6 +65,20 @@
        },
        onPullDownRefresh: function() {
            this.pullDown = true;
            this.pagelist = 0;
            this.pages = 0;
            this.flag = true;
            this.dataList = [];
            this.newsList = [];
            this.status = 'loading';
            this.keyValue = '';
            setTimeout(() => {this.getCompany();}, 1000)
        },
        mounted() {
            this.getCompany();
        },
@@ -89,6 +105,11 @@
                        that.pages = res.data.data.pages;
                        var resdata = res.data.data.records;
                        if (this.pullDown == true) {
                            this.pullDown = false;
                            uni.stopPullDownRefresh();
                        }
                        if (resdata.length == 0) {
                            that.flag = false
@@ -210,7 +231,7 @@
    .inTmain {}
    .msg {
        height: 72rpx;
        height: 74rpx;
        line-height: 72rpx;
        text-align: center;
        color: #999;
pages/dispatch/dispatch.vue
@@ -59,8 +59,9 @@
                    <u-tabs :list="list" :is-scroll="false" :current="current" active-color="#14B9C8"
                        inactive-color="#595959" height="100" @change="change"></u-tabs>
                    <u-search v-model='keyValue' placeholder='请输入指令内容' shape="round" class="u-search" input-align="center"
                        height="70" @search='searchValue' @custom='searchValue' @clear='clearValue' @change='changeValue'>
                    <u-search v-model='keyValue' placeholder='请输入指令内容' shape="round" class="u-search"
                        input-align="center" height="70" @search='searchValue' @custom='searchValue' @clear='clearValue'
                        @change='changeValue'>
                    </u-search>
                    <view v-show="current == 0 && newsList.length > 0">
@@ -141,6 +142,8 @@
                pages: 0,
                flag: true,
                pullDown: false
            };
        },
        onLoad() {
@@ -163,6 +166,27 @@
                    that.getSend();
                }
            }, 1000);
        },
        onPullDownRefresh: function() {
            var that = this;
            this.pullDown = true;
            this.pagelist = 0;
            this.pages = 0;
            this.flag = true;
            this.dataList = [];
            this.newsList = [];
            this.status = 'loading';
            this.keyValue = '';
            setTimeout(() => {
                if (that.current == 0) {
                    that.getReceive();
                } else {
                    that.getSend();
                }
            }, 1000)
        },
        mounted() {
            this.getReceive();
@@ -191,6 +215,11 @@
                        that.pages = res.data.data.pages;
                        var resdata = res.data.data.records;
                        if (this.pullDown == true) {
                            this.pullDown = false;
                            uni.stopPullDownRefresh();
                        }
                        if (resdata.length == 0) {
                            that.flag = false
@@ -235,6 +264,11 @@
                        var resdata = res.data.data.records;
                        if (this.pullDown == true) {
                            this.pullDown = false;
                            uni.stopPullDownRefresh();
                        }
                        if (resdata.length == 0) {
                            that.flag = false
                            that.status = 'nomore';
pages/examine/examine.vue
@@ -151,6 +151,8 @@
                pages: 0,
                flag: true,
                pullDown: false
            };
        },
        onLoad() {
@@ -174,6 +176,28 @@
                }
            }, 1000);
        },
        onPullDownRefresh: function() {
            var that = this;
            this.pullDown = true;
            this.pagelist = 0;
            this.pages = 0;
            this.flag = true;
            this.dataList = [];
            this.newsList = [];
            this.status = 'loading';
            this.keyValue = '';
            setTimeout(() => {
                if (that.current == 0) {
                    that.getReceive();
                } else {
                    that.getSend();
                }
            }, 1000)
        },
        mounted() {
            this.getReceive();
        },
@@ -200,6 +224,11 @@
                        that.pages = res.data.data.pages;
                        var resdata = res.data.data.records;
                        if (this.pullDown == true) {
                            this.pullDown = false;
                            uni.stopPullDownRefresh();
                        }
                        if (resdata.length == 0) {
                            that.flag = false
@@ -245,6 +274,11 @@
                        var resdata = res.data.data.records;
                        if (this.pullDown == true) {
                            this.pullDown = false;
                            uni.stopPullDownRefresh();
                        }
                        if (resdata.length == 0) {
                            that.flag = false
                            that.status = 'nomore';
pages/groupChat/groupChat.vue
@@ -6,8 +6,8 @@
        <view style="height:205rpx;"></view>
        <view class="tab" style="position: fixed;top: 0;width: 100%;height: 205rpx;z-index: 100;">
            <u-navbar style="position: relative;" :is-fixed="false" :border-bottom="false" :is-back="false"
                title="好友" :background="{ background: '#0BB9C8' }" title-color="#fff">
            <u-navbar style="position: relative;" :is-fixed="false" :border-bottom="false" :is-back="false" title="好友"
                :background="{ background: '#0BB9C8' }" title-color="#fff">
                <u-icon @click="addFriend" slot="right" class="message-icon" mode="widthFix" name="plus" color="#fff">
                </u-icon>
                <!-- <image  src="../../static/add.png" ></image> -->
@@ -148,6 +148,15 @@
                }
            });
        },
        onPullDownRefresh: function() {
            setTimeout(() => {
                this.getdataList()
            }, 1000)
        },
        methods: {
            change(index) {
                this.current = index;
@@ -185,6 +194,8 @@
                                }
                            }
                            that.dataListP = resdata;
                            uni.stopPullDownRefresh();
                        }
                    });
                } else if (this.current == 1) {
@@ -204,6 +215,8 @@
                            }
                            that.dataListTXL = resdata;
                            uni.stopPullDownRefresh();
                        }
                    })
                } else if (this.current == 2) {
@@ -223,6 +236,8 @@
                                }
                            }
                            that.dataListQZ = resdata;
                            uni.stopPullDownRefresh();
                        }
                    });
                }
@@ -358,6 +373,7 @@
            .m-main {
                box-sizing: border-box;
                .main {
                    padding: 0 16px;
                }
pages/message/message.vue
@@ -142,6 +142,7 @@
                pages: 0,
                flag: true,
                pullDown: false
            };
        },
        onLoad() {
@@ -165,6 +166,28 @@
                }
            }, 1000);
        },
        onPullDownRefresh: function() {
            var that = this;
            this.pullDown = true;
            this.pagelist = 0;
            this.pages = 0;
            this.flag = true;
            this.dataList = [];
            this.newsList = [];
            this.status = 'loading';
            this.keyValue = '';
            setTimeout(() => {
                if (that.current == 0) {
                    that.getReceive();
                } else {
                    that.getSend();
                }
            }, 1000)
        },
        mounted() {
            this.getReceive();
        },
@@ -193,6 +216,11 @@
                        that.pages = res.data.data.pages;
                        var resdata = res.data.data.records;
                        if (this.pullDown == true) {
                            this.pullDown = false;
                            uni.stopPullDownRefresh();
                        }
                        if (resdata.length == 0) {
                            that.flag = false
@@ -239,6 +267,11 @@
                        var resdata = res.data.data.records;
                        if (this.pullDown == true) {
                            this.pullDown = false;
                            uni.stopPullDownRefresh();
                        }
                        if (resdata.length == 0) {
                            that.flag = false
                            that.status = 'nomore';
pages/report/report.vue
@@ -59,8 +59,9 @@
                    <u-tabs :list="list" :is-scroll="false" :current="current" active-color="#14B9C8"
                        inactive-color="#595959" height="100" @change="change"></u-tabs>
                    <u-search v-model='keyValue' placeholder='请输入汇报内容' shape="round" class="u-search" input-align="center"
                        height="70" @search='searchValue' @custom='searchValue' @clear='clearValue' @change='changeValue'>
                    <u-search v-model='keyValue' placeholder='请输入汇报内容' shape="round" class="u-search"
                        input-align="center" height="70" @search='searchValue' @custom='searchValue' @clear='clearValue'
                        @change='changeValue'>
                    </u-search>
                    <view v-show="current == 0 && newsList.length > 0">
@@ -144,6 +145,8 @@
                pages: 0,
                flag: true,
                pullDown: false
            };
        },
        onLoad() {
@@ -167,6 +170,26 @@
                }
            }, 1000);
        },
        onPullDownRefresh: function() {
            var that = this;
            this.pullDown = true;
            this.pagelist = 0;
            this.pages = 0;
            this.flag = true;
            this.dataList = [];
            this.newsList = [];
            this.status = 'loading';
            this.keyValue = '';
            setTimeout(() => {
                if (that.current == 0) {
                    that.getReceive();
                } else {
                    that.getSend();
                }
            }, 1000)
        },
        mounted() {
            this.getReceive();
        },
@@ -194,6 +217,11 @@
                        that.pages = res.data.data.pages;
                        var resdata = res.data.data.records;
                        if (that.pullDown == true) {
                            that.pullDown = false;
                            uni.stopPullDownRefresh();
                        }
                        if (resdata.length == 0) {
                            that.flag = false
@@ -239,6 +267,11 @@
                        var resdata = res.data.data.records;
                        if (that.pullDown == true) {
                            that.pullDown = false;
                            uni.stopPullDownRefresh();
                        }
                        if (resdata.length == 0) {
                            that.flag = false
                            that.status = 'nomore';
@@ -256,6 +289,8 @@
                            return
                        }
                    }
                });
            },
pages/securityStaff/exhibition.vue
@@ -41,7 +41,9 @@
                keyValue: '',
                pagelist: 0,
                pages: 0,
                flag: true
                flag: true,
                pullDown: false
            };
        },
        onLoad() {
@@ -63,6 +65,22 @@
        },
        onPullDownRefresh: function() {
            this.pullDown = true;
            this.pagelist = 0;
            this.pages = 0;
            this.flag = true;
            this.dataList = [];
            this.newsList = [];
            this.status = 'loading';
            this.keyValue = '';
            setTimeout(() => {
                this.getCompany();
            }, 1000)
        },
        mounted() {
            this.getCompany();
        },
@@ -90,6 +108,11 @@
                        var resdata = res.data.data.records;
                        if (this.pullDown == true) {
                            this.pullDown = false;
                            uni.stopPullDownRefresh();
                        }
                        if (resdata.length == 0) {
                            that.flag = false
                            that.status = 'nomore';