智慧保安APP验收版本
shuishen
2021-12-02 2977e6255e9de550c6710f01937d89017354f0d7
部分修改
3 files modified
49 ■■■■ changed files
pages/videoCall/videoCall.nvue 1 ●●●● patch | view | raw | blame | history
store/actions.js 44 ●●●● patch | view | raw | blame | history
store/index.js 4 ●●●● patch | view | raw | blame | history
pages/videoCall/videoCall.nvue
@@ -262,6 +262,7 @@
                        type: 'video'
                    },
                    success(res) {
                        console.log(res, 789)
                        // if(res.data.res == 0){
                        // }
store/actions.js
@@ -69,28 +69,28 @@
                    // 实时定位获取得方法
                    uni.getLocation({
                        type: 'gcj02',
                        geocode: true,
                        success: function(wzres) {
                            uni.request({
                                url: "http://223.82.109.183:2080/api/liveLocation/saveLiveLocationAndLocus",
                                method: "post",
                                data: {
                                    type: 1,
                                    workerId: res.data.user_id,
                                    longitude: wzres.longitude,
                                    latitude: wzres.latitude,
                                    location: wzres.address.country +
                                        wzres.address.province + wzres
                                        .address.city + wzres.address
                                        .district + wzres.address
                                        .street + wzres.address
                                        .streetNum
                                }
                            })
                        }
                    });
                    // uni.getLocation({
                    //     type: 'gcj02',
                    //     geocode: true,
                    //     success: function(wzres) {
                    //         uni.request({
                    //             url: "http://223.82.109.183:2080/api/liveLocation/saveLiveLocationAndLocus",
                    //             method: "post",
                    //             data: {
                    //                 type: 1,
                    //                 workerId: res.data.user_id,
                    //                 longitude: wzres.longitude,
                    //                 latitude: wzres.latitude,
                    //                 location: wzres.address.country +
                    //                     wzres.address.province + wzres
                    //                     .address.city + wzres.address
                    //                     .district + wzres.address
                    //                     .street + wzres.address
                    //                     .streetNum
                    //             }
                    //         })
                    //     }
                    // });
                    setInterval(function() {
store/index.js
@@ -33,9 +33,9 @@
            useName: '过客 ',
        },
        logPath: '',
        piAPI: 'http://192.168.0.114:83',
        piAPI: 'http://223.82.109.183:2088/api',
        // piAPI: 'http://192.168.0.114:81',
        api: 'http://192.168.0.114:83',
        api: 'http://223.82.109.183:2088/api',
        // piAPI: 'http://localhost:81/',
        // piAPI: 'http://192.168.0.108:81',
        puserName: '',