+
liuyg
2021-12-23 d18b5a0f3653e41df8cbc30b75f4f3b14153c560
+
2 files modified
71 ■■■■■ changed files
src/api/mobile/piont/index.js 32 ●●●● patch | view | raw | blame | history
src/components/mobileLeftNav/index.vue 39 ●●●●● patch | view | raw | blame | history
src/api/mobile/piont/index.js
@@ -2,14 +2,14 @@
 * @Author: Morpheus
 * @Date: 2021-05-09 15:17:44
 * @Last Modified by: liu
 * @Last Modified time: 2021-12-22 16:07:15
 * @Last Modified time: 2021-12-23 14:08:48
 */
// 标签
import request from '@/router/axios'
//出入
export const getListdoor = (params) => { //获取生活设施
export const getListdoor = (params) => {
    return request({
        url: 'blade-door/door/selectDoor',
        method: 'get',
@@ -17,7 +17,7 @@
    })
}
//AED
export const getListaed = (params) => { //获取生活设施
export const getListaed = (params) => {
    return request({
        url: 'blade-aed/aed/selectAed',
        method: 'get',
@@ -26,7 +26,7 @@
}
//停车场
export const getListparking = (params) => { //获取生活设施
export const getListparking = (params) => {
    return request({
        url: 'blade-parking/parking/selectPark',
        method: 'get',
@@ -35,7 +35,7 @@
}
// 全景
export const getListarchitecture = (params) => { //获取生活设施
export const getListarchitecture = (params) => {
    return request({
        url: 'blade-architecture/architecture/selectArch',
        method: 'get',
@@ -44,7 +44,7 @@
}
//标签
export const getListarchitecture1 = (params) => { //获取生活设施
export const getListarchitecture1 = (params) => {
    return request({
        url: 'blade-architecture/architecture/selectArchALL',
        method: 'get',
@@ -52,17 +52,17 @@
    })
}
// //打字复印
// export const getListduplicate = (params) => { //获取生活设施
//     return request({
//         url: 'blade-duplicate/duplicate/list',
//         method: 'get',
//         params: params
//     })
// }
//道路
export const getListroad = (params) => {
    return request({
        url: 'blade-road/road/selectList',
        method: 'get',
        params: params
    })
}
// //银行网点
// export const getListnetwork = (params) => { //获取生活设施
// //活动
// export const getListnetwork = (params) => {
//     return request({
//         url: 'blade-network/network/list',
//         method: 'get',
src/components/mobileLeftNav/index.vue
@@ -25,6 +25,7 @@
  getListparking, //停车场
  getListarchitecture, //全景
  getListarchitecture1, //标签
  getListroad, //道路
} from "@/api/mobile/piont/index";
export default {
  name: "mobileLeftNav",
@@ -79,16 +80,16 @@
          imgSrc: "https://map.hit.edu.cn/images/tarrow_xq.png",
          // imgSrc: "img/mobile/pink.png",
        },
        // {
        //   flag: false,
        //   label: "道路",
        //   img: "/img/leftnav/way.png",
        //   normal: "/img/leftnav/way.png",
        //   checked: "/img/leftnav/way-checked.png",
        //   layer: "wayLayer",
        //   methods: getListdoor,
        //   imgSrc: "img/mobile/green.png",
        // },
        {
          flag: false,
          label: "道路",
          img: "/img/leftnav/way.png",
          normal: "/img/leftnav/way.png",
          checked: "/img/leftnav/way-checked.png",
          layer: "wayLayer",
          methods: getListroad,
          imgSrc: "img/mobile/green.png",
        },
        {
          flag: false,
          label: "实景",
@@ -462,6 +463,20 @@
                            </div>
                        </div>
                    `;
            } else if (ourD.label == "道路") {
              // <div  class="way-title" style="border: white 1px solid; padding-left: 2px;font-size: 12px; background: #0066ff;  width: 12px;line-height: 13px; padding:2px 1px 2px 1px; color:white;">
              //    ${data[k].mechanismname}
              // </div>
              dom = `
                        <div  class="way-entitys-box">
                            <div  class="way-title" style="border: white 1px solid; padding-left: 2px;font-size: 12px; background: #0066ff;  width: 12px;line-height: 13px; padding:2px 1px 2px 1px; color:white;">
                                ${data[k].roadname}
                            </div>
                            <div  class="way-sign-box">
                                <img src="https://map.hit.edu.cn/images/roadsign3.png">
                            </div>
                        </div>
                    `;
            } else if (ourD.label == "实景") {
              // <div  class="way-title" style="border: white 1px solid; padding-left: 2px;font-size: 12px; background: #0066ff;  width: 12px;line-height: 13px; padding:2px 1px 2px 1px; color:white;">
              //    ${data[k].mechanismname}
@@ -516,7 +531,7 @@
            divIcon.on(DC.MouseEventType.CLICK, (e) => {
              // console.log(data[k]);
              let d = {
                name: data[k].mechanismname,
                name: data[k].mechanismname || data[k].roadname,
                bgImg: data[k].tpurl,
                introduce: data[k].introduce,
              };
@@ -575,7 +590,7 @@
  .m-left-coutrol {
    position: absolute;
    left: -24px;
    top: 60px;
    top: 77px;
    width: 25px;
    height: 60px;
    background-color: #fff;