南昌市物联网技防平台-前端
Administrator
2021-05-09 39f70f74b3f96dabdb3c21995961c62c9873cb1d
Merge branch 'master' of http://192.168.0.105:10010/r/jfpt-Vue
3 files modified
1 files renamed
20 ■■■■■ changed files
public/xcxh5map/js/createMap.js 10 ●●●● patch | view | raw | blame | history
public/xcxh5map/js/def.js 3 ●●●● patch | view | raw | blame | history
public/xcxh5map/popup/user.html 7 ●●●● patch | view | raw | blame | history
public/xcxh5map/xcxmap.html patch | view | raw | blame | history
public/xcxh5map/js/createMap.js
@@ -63,28 +63,32 @@
            //   extend: 'myskin/FlareClusterLayer.css'
            // });
            // layuiLayer.close(layuiLayer.index);
            if (nowIndex != null) {
                layuiLayer.close(nowIndex);
            }
            layuiLayer.open({
                title: '',
                anim: 2,
                type: 2,
                shadeClose: true,
                shade: false,
                skin: 'demo-class',
                id: 'onelyTwo',
                maxmin: false, //开启最大化最小化按钮
                area: ['250px', '250px'],
                area: ['100px', '100px'],
                // area: 'auto',
                //   offset: winSize,
                offset: 'b',
                skin: 'flare',
                isOutAnim: false,
                closeBtn: 2, //关闭按钮,可通过配置1和2来展示,0关闭
                closeBtn: 1, //关闭按钮,可通过配置1和2来展示,0关闭
                content: ['./popup/user.html'],
                resize: false,
                scrollbar: false,
                // tipsMore: true, //允许多个tipe
                // content: num,
                success: function (layero, index) { //成功后添加全局点击关闭
                    nowIndex = index;
                    console.log(data, 53413541)
                    $("#layui-layer-iframe" + index).contents().find("#user").val(data);
                    // layuiLayer.close(index)
public/xcxh5map/js/def.js
@@ -1,4 +1,5 @@
var map = null,
    getdata = null,
    marker = null,
    layuiLayer = null;
    layuiLayer = null,
    nowIndex = null;
public/xcxh5map/popup/user.html
@@ -12,7 +12,8 @@
    <div id="popup">
        <!-- 从layui传值给iframe 的占位input -->
        <input type="text" id="user" ref="user" style="display:none">
        46476978---{{ourData}}
        46476978--
        -{{ourData.title}}
    </div>
    <script>
        var me = new Vue({
@@ -26,10 +27,6 @@
                    clearTimeout(this.oldtime);
                    this.ourData = JSON.parse(this.$refs.user.value);//json对象转js对象
                    console.log(this.ourData,2)
                    // this.getUser(this.ourData.id);
                    // console.log(this.ourData);
                    // this.getdatas(this.ourData);
                }, 100);
            }
        })
public/xcxh5map/xcxmap.html