智慧保安互联网APP
shuishen
2021-08-18 1b1d3e2b3c9e767932bddf2671172235b8fbd16a
Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/zhba_app
14 files modified
3 files added
865 ■■■■ changed files
common/style/common.scss 108 ●●●●● patch | view | raw | blame | history
components/contacts/contacts.vue 271 ●●●●● patch | view | raw | blame | history
mapWz/js/vueMain.js 2 ●●● patch | view | raw | blame | history
pages.json 6 ●●●●● patch | view | raw | blame | history
pages/examine/addunit.vue 1 ●●●● patch | view | raw | blame | history
pages/groupChat/chating.vue 6 ●●●● patch | view | raw | blame | history
pages/groupChat/chatingcopy.vue 2 ●●● patch | view | raw | blame | history
pages/groupChat/friendrequest.vue 186 ●●●●● patch | view | raw | blame | history
pages/groupChat/groupChat.vue 257 ●●●● patch | view | raw | blame | history
pages/registerUser/registerUser.vue 2 ●●● patch | view | raw | blame | history
pages/user/center.vue 9 ●●●●● patch | view | raw | blame | history
static/apply.png patch | view | raw | blame | history
store/actions.111.js 3 ●●●● patch | view | raw | blame | history
store/actions.js 4 ●●●● patch | view | raw | blame | history
store/index.js 4 ●●●● patch | view | raw | blame | history
xcxMapWzzzz/js/vueMain copy.js 2 ●●● patch | view | raw | blame | history
xcxMapWzzzz/js/vueMain.js 2 ●●● patch | view | raw | blame | history
common/style/common.scss
New file
@@ -0,0 +1,108 @@
// 页面开头公共样式
.content {
    padding-top: var(--status-bar-height);
    }
// 头部公共样式
.top-bar {
            height: 88rpx;
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            display: flex;
            align-items: center;
            z-index: 999;
            padding-top: var(--status-bar-height);
            .top-bar-left {
                margin-left: 32rpx;
                justify-content: left;
                flex: 1;
                image {
                    width: 68rpx;
                    height: 68rpx;
                    border-radius: 16rpx;
                }
                .back-img {
                    left: 0;
                    width: 88rpx;
                    height : 88rpx;
                    image {
                        width: 26rpx;
                        height: 45rpx;
                        margin-top: 22rpx;
                    }
                }
            }
            .top-bar-center {
                .logo {
                    font-weight: bold;
                    color: grey;
                }
            }
            .top-bar-right {
                margin-right: 32rpx;
                flex: 1;
                text-align: right;
                justify-content: right;
                image {
                    width: 52rpx;
                    height: 52rpx;
                    margin-left: 52rpx;
                }
                .text {
                    font-size: $uni-font-size-lg;
                    font-weight: 500;
                    color: $uni-text-color;
                }
                .more-img {
                    padding-right: $uni-spacing-col-base;
                    position: relative;
                    image {
                        width: 52rpx;
                        height: 12rpx;
                        top: 0;
                        right: 0;
                        position: absolute;
                    }
                }
            }
        }
        // 底部样式
        .bottom-bar {
            position: fixed;
            bottom: 0;
            height: 90rpx;
            width: 100%;
            // padding: 12rpx $uni-spacing-col-base;
            padding-top: 10rpx;
            padding-bottom: var(--status-bar-height);
        }
        // 按钮公共样式1
        .btn1 {
            margin: 0 $uni-spacing-col-base;
            line-height: 80rpx;
            height: 80rpx;
            border-radius: $uni-border-radius-sm;
            font-size: 32rpx;
            color: $uni-text-color;
            text-align: center;
        }
components/contacts/contacts.vue
@@ -1,39 +1,56 @@
<template>
    <view class="pColumn" >
        <view class="inPColumn" v-if="fromW == 0">
            <view class="left" @click="chating">
                <view class="top">
                    <view class="userImg">
                        <img class="img" :src=Pdata.avatar>
                    </view>
                    <view class="t-type">{{Pdata.recipientName}}</view>
                    <view class="t-id">{{Pdata.postTime}}</view>
    <view class="main">
        <view v-if="fromW == 0">
            <view class="friend-list" @click="chating">
                <view class="head-wrap">
                    <image :src=Pdata.avatar class="head" />
                    <!-- <view v-if="1 != ''" class="tip">233</view> -->
                </view>
                <view class="bottom">{{Pdata.postMessage}}</view>
                <view class="content-wrap">
                    <text class="name">{{Pdata.recipientName}}</text>
                    <text class="mess">{{Pdata.postMessage}}</text>
                </view>
                <view class="data-wrap">
                    <text class="data">{{Pdata.postTime}}</text>
                </view>
            </view>
        </view>
        <view class="inPColumn" v-if="fromW == 1">
            <view class="left" @click="QZchating">
                <view class="top">
                    <view class="userImg">
                        <img class="img" :src=Pdata.avatar>
                    </view>
                    <view class="t-type">{{Pdata.GroupName}}</view>
                    <!-- <view class="t-id">{{Pdata.postTime}}</view> -->
        <view v-if="fromW == 1">
            <view class="friend-list" @click="TXLchating">
                <view class="head-wrap">
                    <image :src=Pdata.avatar class="head" />
                    <!-- <view v-if="1 != ''" class="tip">233</view> -->
                </view>
                <view class="bottom">{{Pdata.GroupContent}}</view>
                <view class="content-wrap">
                    <text class="name">{{Pdata.realName}}</text>
                    <text class="mess">电话:{{Pdata.phone}}</text>
                </view>
                <view class="data-wrap">
                    <!-- <text class="data">{{Pdata.postTime}}</text> -->
                </view>
            </view>
        </view>
        <view class="inPColumn" v-if="fromW == 2">
            <view class="left" @click="TXLchating">
                <view class="top">
                    <view class="userImg">
                        <img class="img" :src=Pdata.avatar>
                    </view>
                    <view class="t-type">{{Pdata.realName}}</view>
                    <!-- <view class="t-id">{{Pdata.postTime}}</view> -->
        <view v-if="fromW == 2">
            <view class="friend-list" @click="QZchating">
                <view class="head-wrap">
                    <image :src=Pdata.avatar class="head" />
                    <!-- <view v-if="1 != ''" class="tip">233</view> -->
                </view>
                <view class="bottom">电话:{{Pdata.phone}}</view>
                <view class="content-wrap">
                    <text class="name">{{Pdata.GroupName}}</text>
                    <text class="mess">{{Pdata.GroupContent}}</text>
                </view>
                <view class="data-wrap">
                    <!-- <text class="data">{{Pdata.postTime}}</text> -->
                </view>
            </view>
        </view>
    </view>
@@ -55,7 +72,7 @@
                this.bmainb = '0';
                //#endif
            },
            chating(){
            chating() {
                //发起聊天
                var datas = this.Pdata;
                //alert(datas.name)
@@ -63,20 +80,21 @@
                    url: '/pages/groupChat/chating?chatID=' + datas.recipientId.toString()
                });
            },
            QZchating(){
            QZchating() {
                //发起聊天
                var datas = this.Pdata;
                //alert(datas.name)
                uni.navigateTo({
                    url: '/pages/groupChat/chatingQZ?chatID=' + datas.id.toString()
                    url: '/pages/groupChat/chatingQZ?chatID=' + datas.id.toString()
                });
            },
            TXLchating(){
            TXLchating() {
                //发起聊天
                var datas = this.Pdata;
                //alert(datas.name)
                uni.navigateTo({
                    url: '/pages/groupChat/chating?chatID=' + datas.id.toString() + '&data=' + JSON.stringify(datas)
                    url: '/pages/groupChat/chating?chatID=' + datas.friendid.toString() + '&data=' + JSON.stringify(
                        datas)
                });
            },
            onClose() { //触摸遮罩事件
@@ -93,144 +111,93 @@
</script>
<style lang="scss" scoped>
    /* components/pColumn/pColumn.wxss */
    .pColumn,
    .inPColumn,
    .left,
    .right,
    .top {
        display: flex;
    .top-bar {
        background-color: rgba(255, 255, 255, .96);
        // background-color: #42B983;
        box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, .1);
    }
    .userImg {
        // border: 1px solid #007AFF;
    .main {
        // margin-top: 108rpx;
        // padding: 0 32upx ;
        .img {
            width: 100rpx;
            height: 100rpx;
            border-radius: 100rpx;
            // border: 1px solid #007AFF;
        }
    }
    .pColumn {
        width: 100%;
        align-items: center;
        justify-content: center;
        padding-top: 0.5rem;
        .inPColumn {
            margin: 0.2rem 0 0.4rem 0;
            width: 95%;
            height: 4rem;
            border-bottom: 1px rgb(207, 207, 207) solid;
        .friend-list,
        .apply {
            display: flex;
            // margin: 40rpx 0;
            // padding: 20rpx 0;
            height: 130rpx;
            // padding: 16upx 0;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid rgba(0, 0, 0, .1);
            .left {
                width: 80%;
                /* border: 1px rgb(114, 250, 159) solid; */
                flex-direction: column;
            &:active {
                background-color: rgba(243,244,246,1);
            }
                .top {
                    .t-type {
                        padding-left: 0.7rem;
                        font-size: 1.1rem;
                        color: #000000;
                    }
            .head-wrap {
                position: relative;
                    .t-id {
                        color: #8b8b8b;
                        font-size: 0.8rem;
                        line-height: 1.6rem;
                        position: absolute;
                        right: 1.2rem;
                    }
                image {
                    width: 96rpx;
                    height: 96rpx;
                    border-radius: 20upx;
                    // background-color: rgba(255,228,49,1);
                }
                .bottom {
                    color: #8b8b8b;
                    font-size: 0.9rem;
                    position: relative;
                    bottom: 1rem;
                    left: 4rem;
                .tip {
                    position: absolute;
                    top: -6rpx;
                    left: 68rpx;
                    height: 36rpx;
                    min-width: 20rpx;
                    min-height: 20rpx;
                    background-color: rgba(255,93,91,1);
                    border-radius: 18rpx;
                    padding: 0 6rpx;
                    font-size: 24upx;
                    color: rgba(255,228,49,1);
                    line-height: 36rpx;
                    text-align: center;
                }
            }
            .right {
                width: 20%;
                /* border: 1px rgb(143, 114, 250) solid; */
                justify-content: space-around;
            .content-wrap {
                margin-left: 32rpx;
                flex: 1;
                /* align-items: center; */
                .butPopup {
                    z-index: 4;
                    position: fixed;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background-color: rgba($color: #000000, $alpha: 0.5);
                .name {
                    display: block;
                    color: rgba(39,40,50,1);
                    font-size: 36rpx;
                    font-weight: 400;
                    line-height: 50rpx;
                }
                    .b-main {
                        position: absolute;
                        z-index: 2;
                        // bottom: 3rem;//小程序不兼容
                        width: 100%;
                        // border: 1px solid #007AFF;
                        border-radius: 1.5rem;
                        background-color: #fff;
                .mess {
                    display: block;
                    color: rgba(39,40,50,.6);
                    font-size: 28upx;
                    line-height: 40rpx;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 1;
                    overflow: hidden;
                }
            }
                        // height: 20rem;
                        .b-m-title {
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            width: 100%;
                            height: 2.8rem;
                        }
            .data-wrap {
                        .b-m-Y,
                        .b-m-N {
                            color: #fff;
                            border-radius: 0;
                        }
                justify-content: right;
                        .b-m-Y {
                            background-color: #07C160 !important;
                        }
                        .b-m-Y-hove {
                            background-color: #048c44 !important;
                        }
                        .b-m-N {
                            background-color: #FF976A !important;
                        }
                        .b-m-N-hove {
                            background-color: #e1855d !important;
                        }
                    }
                .data {
                    font-size: 24upx;
                    color: rgba(39,40,50,0.4);
                    line-height: 50rpx;
                }
            }
        }
    }
    // .buttitle {
    //     display: flex;
    //     align-items: center;
    //     justify-content: center;
    //     width: 100%;
    //     height: 2.8rem;
    // }
    // .popups {
    //     width: 100%;
    //     padding-bottom: 0 !important;
    //     /* border: 1px solid seagreen; */
    // }
</style>
mapWz/js/vueMain.js
@@ -36,7 +36,7 @@
            var jurisdictionId = this.GetQueryString('id')
            this.userId = this.GetQueryString('userid')
            axios.get('http://223.82.109.183:2080/api/blade-user/page?size=99999&jurisdiction=' + jurisdictionId).then((res) => {
            axios.get(this.$store.state.piAPI + '/blade-user/page?size=99999&jurisdiction=' + jurisdictionId).then((res) => {
                if (res.data.data.records.length > 0) {
                    res.data.data.records.forEach(item => {
pages.json
@@ -88,6 +88,12 @@
            }
        },
        {
            "path" : "pages/groupChat/friendrequest",
            "style" : {
                "navigationStyle" : "custom"
            }
        },
        {
            "path": "pages/securityStaff/exhibition",
            "style": {
                "navigationBarTitleText": "保安管理",
pages/examine/addunit.vue
@@ -91,7 +91,6 @@
        },
        onLoad() {
            this.createData = this.$store.state.UserData
            // http://223.82.109.183:2080/api
        },
        onReachBottom() {
pages/groupChat/chating.vue
@@ -170,7 +170,7 @@
            // this.nextPage()
            var data = JSON.parse(option.data)
            console.log(data,55555555555555555555555)
            this.name = ['wo',data.id];
            this.name = ['wo',option.chatID];
            // console.log(data)
            this.callName = data.name;
        },
@@ -216,7 +216,7 @@
                var that = this;
                that.senId = WxStorage.get("ids");
                uni.request({
                    url:"http://223.82.109.183:2080/api/chat-records/getSingleMessagePage",
                    url:this.$store.state.piAPI + "/chat-records/getSingleMessagePage",
                    method:"get",
                    data:{
                        senderId: that.senId,
@@ -339,7 +339,7 @@
                }
                
                uni.request({
                    url:"http://223.82.109.183:2080/api/chat-records/insertSingleChat",
                    url:this.$store.state.piAPI + "/chat-records/insertSingleChat",
                    method:"post",
                    data:{
                        senderId: that.senId,
pages/groupChat/chatingcopy.vue
@@ -340,7 +340,7 @@
                this.$nextTick(() => {
                    let len = this.msgs.length -1
                    this.scrollToView = 'msg' + this.msgs[len].tip
                })
                })
            },
            // 地图定位
            covers(e) {
pages/groupChat/friendrequest.vue
New file
@@ -0,0 +1,186 @@
<template>
    <view class="content">
        <view class="top-bar">
            <view class="top-bar-left" @tap="backOne">
                <view class="back-img">
                    <image src="../../static/images/common/back.png" />
                </view>
            </view>
            <view class="top-bar-center">
                <text class="title">好友请求</text>
            </view>
            <view class="top-bar-right">
                <view class="pice"></view>
            </view>
        </view>
        <view class="main">
            <view class="requestr" v-for="(item, index) in requestList"
                                                         :key="index">
                <view class="request-top">
                    <view class="reject btn">拒绝</view>
                    <view class="header-img">
                        <image :src="item.head"
                                     mode=""
                                     class="header-img"/>
                    </view>
                    <view class="aggree btn">同意</view>
                </view>
                <view class="request-center">
                    <view class="title">{{ item.name }}</view>
                    <view class="time">{{ item.date | date }}</view>
                </view>
                <view class="notic">
                    <text>留言:</text>
                    <text>{{ item.message }}</text>
                </view>
            </view>
        </view>
    </view>
</template>
<script>
    import datas from '@/debugdate/debugdate.js'
    import filter from '@/config/filter.js'
    export default {
        onLoad(option) {
            friendApplication();
        },
        data() {
            return {
                requestList: []
            };
        },
        async onLoad() {
            this._FriendRequest()
        },
        methods:{
            // 返回键
            backOne() {
                uni.navigateBack({
                    delta: 1
                })
            },
            _FriendRequest() {
                this.requestList = datas.firendsRequest()
            },
            friendApplication(){
                //获取所有好友申请
                uni.request({
                    url: this.$store.state.piAPI + "/friend/friendApplication",
                    method: "GET",
                    data: {
                        applicant: WxStorage.get("ids")
                    },
                    success: (res) => {
                        var resdata = res.data.data;
                        debugger
                    }
                });
            }
        },
        filters:{
            date(time) {
             return    filter.date(time)
            }
        }
    }
</script>
<style lang="scss">
@import '../../common/style/common.scss';
    .top-bar {
        background-color: rgba(255, 255, 255, .96);
        // background-color: #42B983;
        box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, .1);
    }
    .main {
        padding: 108rpx 32upx;
        background: rgba(255, 255, 255, .6);
        .requestr {
            margin-top: 112rpx;
            padding: 32upx;
            background: rgba(255, 255, 255, 1);
            border-radius: 20upx;
            box-shadow: 0px 24rpx 64rpx -8rpx rgba(0, 0, 0, .1);
            .request-top {
                display: flex;
                flex-direction: row;
                .btn {
                    flex: none;
                    width: 160rpx;
                    height: 64rpx;
                    background: rgba(255, 93, 91, .1);
                    border-radius: 40rpx;
                    text-align: center;
                    font-size: 32upx;
                    font-weight: 400;
                    line-height: 64rpx;
                }
                .reject {
                    color: rgba(255,93,91,1);
                    background-color: rgba(255, 93, 91, .1);
                }
                .aggree {
                    color: rgba(39,40,50,1);
                    background-color: rgba(255,228,49,1);
                }
                .header-img {
                    margin-top: -52rpx;
                    flex: auto;
                    text-align: center;
                    image {
                        width: 144rpx;
                        height: 144rpx;
                        border-radius: 50%;
                    }
                }
            }
            .request-center {
                text-align: center;
                padding-top: 20rpx;
                padding-bottom: 40rpx;
                .title {
                    font-size: 36rpx;
                    font-weight: 500;
                    color: rgba(39,40,50,1);
                    line-height: 50rpx;
                }
                .time {
                    font-size: 24upx;
                    color: rgba(39,40,50,0.4);
                    line-height: 34rpx;
                }
            }
            .notic {
                font-size: 28upx;
                color: rgba(39,40,50,1);
                line-height: 40rpx;
                padding: 10px 32upx;
                border-radius: 20upx;
                background: rgba(243,244,246,1);
            }
        }
    }
</style>
pages/groupChat/groupChat.vue
@@ -3,11 +3,11 @@
    <view class="work">
        <!-- 自定义顶部导航栏 -->
        <!-- <navBarTop :title="'聊天室'"></navBarTop> -->
        <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;left: -20rpx;" :is-fixed="false" :border-bottom="false" :is-back="false" title="好友"
                :background="{ background: '#0BB9C8' }" title-color="#fff">
            <u-navbar style="position: relative;left: -20rpx;" :is-fixed="false" :border-bottom="false" :is-back="false"
                title="好友" :background="{ background: '#0BB9C8' }" title-color="#fff">
                <image slot="right" src="/static/images/home/message.png" class="message-icon" mode="widthFix"></image>
            </u-navbar>
            <u-tabs :list="list" :is-scroll="false" :current="current" active-color="#14B9C8" inactive-color="#595959"
@@ -30,8 +30,21 @@
                    <div>
                        <div class="m-main">
                            <!-- <view class="inTitle">{{Task}}</view> -->
                            <view class="applys" @click="toFriendRequest">
                                <view class="head-wrap">
                                    <image src="../../static/apply.png" class="head" />
                                    <view v-if=false class="tip">233</view>
                                </view>
                                <view class="content-wrap">
                                    <text class="name">好友申请</text>
                                    <text class="mess">若人生只如初见</text>
                                </view>
                                <view class="data-wrap">
                                    <text class="data"></text>
                                </view>
                            </view>
                            <view class="inTmain">
                                <contacts v-for="(item,index) in dataListQZ" :key="index" :Pdata="item" :fromW="indexs"
                                <contacts v-for="(item,index) in dataListTXL" :key="index" :Pdata="item" :fromW="indexs"
                                    @refreshTask="refreshTask"></contacts>
                            </view>
                        </div>
@@ -42,7 +55,7 @@
                        <div class="m-main">
                            <!-- <view class="inTitle">{{Task}}</view> -->
                            <view class="inTmain">
                                <contacts v-for="(item,index) in dataListTXL" :key="index" :Pdata="item" :fromW="indexs"
                                <contacts v-for="(item,index) in dataListQZ" :key="index" :Pdata="item" :fromW="indexs"
                                    @refreshTask="refreshTask"></contacts>
                            </view>
                        </div>
@@ -50,7 +63,7 @@
                </view>
            </swiper-item>
        </swiper>
    </view>
</template>
@@ -59,9 +72,10 @@
    import axios from '../../static/lib/axios.js'
    import contacts from '../../components/contacts/contacts.vue'
    import navBarTop from '../../components/nav-bar-top/nav-bar-top.vue';
    export default{
    export default {
        components: {
            navBarTop,contacts
            navBarTop,
            contacts
        },
        data() {
            return {
@@ -69,10 +83,10 @@
                        name: '正在聊天'
                    },
                    {
                        name: '群组'
                        name: '好友'
                    },
                    {
                        name: '好友'
                        name: '群组'
                    }
                ],
                swiperHeight: 0,
@@ -81,7 +95,7 @@
                show: true,
                dataListP: [],
                dataListQZ: [],
                dataListTXL:[],
                dataListTXL: [],
                fromW: '',
                onTop: false, //是否吸顶
                rect: '', //页面滚动距离
@@ -91,30 +105,30 @@
                userName: '',
            }
        },
        activated(){
              this.beginObj();
              this.getdataList(0);
            },
            onReady() {
                let that = this;
                uni.getSystemInfo({
                    success(e) {
                        console.log(e);
                        let {
                            windowWidth,
                            windowHeight,
                            safeArea
                        } = e;
                        const query = uni.createSelectorQuery().in(that);
                        query
                            .select('#swiperBox')
                            .boundingClientRect(data => {
                                that.swiperHeight = safeArea.bottom - data.top;
                            })
                            .exec();
                    }
                });
            },
        activated() {
            this.beginObj();
            this.getdataList(0);
        },
        onReady() {
            let that = this;
            uni.getSystemInfo({
                success(e) {
                    console.log(e);
                    let {
                        windowWidth,
                        windowHeight,
                        safeArea
                    } = e;
                    const query = uni.createSelectorQuery().in(that);
                    query
                        .select('#swiperBox')
                        .boundingClientRect(data => {
                            that.swiperHeight = safeArea.bottom - data.top;
                        })
                        .exec();
                }
            });
        },
        methods: {
            change(index) {
                this.current = index;
@@ -137,17 +151,17 @@
            },
            getdataList() {
                var that = this;
                if(this.current == 0){
                if (this.current == 0) {
                    uni.request({
                        url:"http://223.82.109.183:2080/api/chat-records/getChatListPage",
                        method:"get",
                        data:{
                        url: this.$store.state.piAPI + "/chat-records/getChatListPage",
                        method: "get",
                        data: {
                            senderId: WxStorage.get("ids")
                        },
                        success:(res)=> {
                        success: (res) => {
                            var resdata = res.data.data;
                            for (var i = 0; i < resdata.length; i++) {
                                if(resdata[i].avatar == null || resdata[i].avatar == ""){
                                if (resdata[i].avatar == null || resdata[i].avatar == "") {
                                    resdata[i].avatar = "http://s16s652780.51mypc.cn/img/bg/img-logo.png";
                                }
                            }
@@ -155,54 +169,59 @@
                            that.swiperHeight = resdata.length * 85;
                        }
                    });
                }else if(this.current == 1){
                } else if (this.current == 1) {
                    uni.request({
                        url:"http://223.82.109.183:2080/api/chatgroup/selectList",
                        method:"POST",
                        data:{
                        url: this.$store.state.piAPI + "/friend/page?current=1&size=9999",
                        method: "get",
                        data: {
                            applicant: WxStorage.get("ids")
                        },
                        success: (res) => {
                            var resdata = res.data.data.records;
                            for (var i = 0; i < resdata.length; i++) {
                                if (resdata[i].avatar == null || resdata[i].avatar == "") {
                                    resdata[i].avatar = "http://s16s652780.51mypc.cn/img/bg/img-logo.png";
                                }
                            }
                            that.dataListTXL = resdata;
                            // that.swiperHeight = resdata.length * 95;
                        }
                    })
                } else if (this.current == 2) {
                    uni.request({
                        url: this.$store.state.piAPI + "/chatgroup/selectList",
                        method: "POST",
                        data: {
                            senderId: WxStorage.get("ids")
                        },
                        success:(res)=> {
                            var resdata = res.data.data;
                        success: (res) => {
                            var resdata = res.data.data;
                            for (var i = 0; i < resdata.length; i++) {
                                if(resdata[i].avatar == null || resdata[i].avatar == ""){
                                if (resdata[i].avatar == null || resdata[i].avatar == "") {
                                    resdata[i].avatar = "http://s16s652780.51mypc.cn/img/bg/qunz.png";
                                }
                            }
                            that.dataListQZ = resdata;
                            that.swiperHeight = resdata.length * 85;
                        }
                    })
                }else if(this.current == 2){
                    uni.request({
                        url:"http://223.82.109.183:2080/api/blade-user/page?current=1&size=9999",
                        method:"get",
                        data:{
                            senderId: WxStorage.get("ids")
                        },
                        success:(res)=> {
                            var resdata = res.data.data.records;
                            for (var i = 0; i < resdata.length; i++) {
                                if(resdata[i].avatar == null || resdata[i].avatar == ""){
                                    resdata[i].avatar = "http://s16s652780.51mypc.cn/img/bg/img-logo.png";
                                }
                            }
                            that.dataListTXL = resdata;
                            that.swiperHeight = resdata.length * 85;
                        }
                    })
                    });
                }
            },
            refreshTask() {
                this.getdataList(1);
            },
            toFriendRequest(){
                uni.navigateTo({
                    url: '/pages/groupChat/friendrequest?'
                });
            }
        },
        mounted() {
            this.beginObj();
            this.getdataList(0);
        },
        onPageScroll(e) {
            // console.log(e.scrollTop, 'pingmu')
@@ -220,14 +239,14 @@
        onLoad: function(options) {
            this.userName = options.login;
            // if(options.txlType == 2){
                this.current = 2;
            // this.current = 0;
            // }
        }
    }
</script>
<style lang="scss">
<style lang="scss" scoped>
    .work {
        width: 100%;
        height: 100%;
@@ -269,8 +288,8 @@
        }
        .main {
            margin-top: 0.625rem;
            margin-top: 0.225rem;
            .m-title {
                width: 100%;
                height: 2rem;
@@ -307,18 +326,102 @@
                    padding-bottom: 0.5rem;
                    box-sizing: border-box;
                }
            }
            .m-main {
                padding-left: 32upx;
                box-sizing: border-box;
            }
        }
    }
    .message-icon {
        width: 32rpx;
        height: auto;
        margin-right: 27rpx;
    }
    .top-bar {
        background-color: rgba(255, 255, 255, .96);
        // background-color: #42B983;
        box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, .1);
    }
    .applys {
        display: flex;
        // margin: 40rpx 0;
        padding: 40rpx 0;
        height: 130rpx;
        padding: 16upx 0;
        align-items: center;
        border-bottom: 1px solid rgba(0, 0, 0, .1);
        &:active {
            background-color: rgba(243, 244, 246, 1);
        }
        .head-wrap {
            position: relative;
            image {
                width: 96rpx;
                height: 96rpx;
                border-radius: 20upx;
                background-color: rgba(255, 228, 49, 1);
            }
            .tip {
                position: absolute;
                top: -6rpx;
                left: 68rpx;
                height: 36rpx;
                min-width: 20rpx;
                min-height: 20rpx;
                background-color: rgba(255, 93, 91, 1);
                border-radius: 18rpx;
                padding: 0 6rpx;
                font-size: 24upx;
                color: rgba(255, 228, 49, 1);
                line-height: 36rpx;
                text-align: center;
            }
        }
        .content-wrap {
            margin-left: 32rpx;
            flex: 1;
            .name {
                display: block;
                color: rgba(39, 40, 50, 1);
                font-size: 36rpx;
                font-weight: 400;
                line-height: 50rpx;
            }
            .mess {
                display: block;
                color: rgba(39, 40, 50, .6);
                font-size: 28upx;
                line-height: 40rpx;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 1;
                overflow: hidden;
            }
        }
        .data-wrap {
            justify-content: right;
            .data {
                font-size: 24upx;
                color: rgba(39, 40, 50, 0.4);
                line-height: 50rpx;
            }
        }
    }
</style>
pages/registerUser/registerUser.vue
@@ -321,7 +321,7 @@
                //         var img = res.tempFiles;
                //         console.log('img', img)
                //         // imgToBase64(res)
                //         var url = that.$store.state.piAPI + 'blade-user/faceCompare',
                //         var url = that.$store.state.piAPI + '/blade-user/faceCompare',
                //             // var url = 'http://192.168.0.114:82/' + 'blade-user/faceCompare',
                //             data = {
                //                 "name": that.form.name,
pages/user/center.vue
@@ -119,15 +119,6 @@
                    // that.tenantName = this.$store.state.UserData.tenantName
                }
                // uni.request({
                //     url:'http://223.82.109.183:2080/api/blade-user/details?id='+this.$store.state.puserID,
                //     method:'POST',
                //     success(resdata) {
                //         that.name = resdata.data.data.realName;
                //         that.id = resdata.data.data.id;
                //         that.tenantName = resdata.data.data.tenantName;
                //     }
                // })
            },
        },
        mounted() {
static/apply.png
store/actions.111.js
@@ -17,7 +17,6 @@
                },
            ],
            pasw = md5(data.pass),
            // url = 'http://223.82.109.183:2080/api/blade-auth/oauth/token?tenantId=000000&username=' + data.name +
            url = store.state.piAPI + '/blade-auth/oauth/token?tenantId=000000&username=' + data.name +
            ' &password=' + pasw + '&grant_type=password&scope=all&type=account';
        // url ='http://192.168.0.109:82/blade-auth/oauth/token';
@@ -133,7 +132,7 @@
                        30000);
                    uni.request({
                        url: "http://223.82.109.183:2080/api/blade-system/dept/detail?id=" + res
                        url: this.$store.state.piAPI + "/blade-system/dept/detail?id=" + res
                            .data.dept_id,
                        method: "get",
                        data: {
store/actions.js
@@ -16,7 +16,7 @@
                },
            ],
            pasw = md5(data.pass),
            // url = 'http://223.82.109.183:2080/api/blade-auth/oauth/token?tenantId=000000&username=' + data.name +
            // url = this.$store.state.piAPI + '/blade-auth/oauth/token?tenantId=000000&username=' + data.name +
            url = store.state.piAPI + '/blade-auth/oauth/token?tenantId=000000&username=' + data.name +
            ' &password=' + pasw + '&grant_type=password&scope=all&type=account';
        // url ='http://192.168.0.109:82/blade-auth/oauth/token';
@@ -135,7 +135,7 @@
                    }, 30000)
                    uni.request({
                        url: "http://223.82.109.183:2080/api/blade-system/dept/detail?id=" + res
                        url: store.state.piAPI + "/blade-system/dept/detail?id=" + res
                            .data.dept_id,
                        method: "get",
                        data: {
store/index.js
@@ -34,9 +34,9 @@
        },
        logPath: '',
        // piAPI: 'http://223.82.109.183:2080/api',
        piAPI: 'http://223.82.109.183:2080/api',
        // piAPI: 'http://223.82.109.183:2080/api',
        api: 'http://223.82.109.183:2080/api',
        // piAPI: 'http://localhost:82/',
        piAPI: 'http://localhost:81/',
        // piAPI: 'http://192.168.0.108:81',
        puserName: '',
        puserID: '',
xcxMapWzzzz/js/vueMain copy.js
@@ -35,7 +35,7 @@
            //url解码
            var policeId = this.GetQueryString('id');
            var that = this;
            axios.get('http://223.82.109.183:2080/api/blade-user/page?size=99999&jurisdiction=' + policeId).then((res) => {
            axios.get(this.$store.state.piAPI + '/blade-user/page?size=99999&jurisdiction=' + policeId).then((res) => {
                res.data.data.records.forEach(item => {
                    if (item.longitude && item.latitude) {
                        data.push(item)
xcxMapWzzzz/js/vueMain.js
@@ -35,7 +35,7 @@
            //url解码
            var policeId = this.GetQueryString('id');
            console.log(policeId, 4654645)
            axios.get('http://223.82.109.183:2080/api/blade-user/page?size=99999').then((res) => {
            axios.get(this.$store.state.piAPI + '/blade-user/page?size=99999').then((res) => {
                console.log(res, 4848)
                res.data.data.records.forEach(item => {
                    if (item.longitude && item.latitude) {