| | |
| | | <div class="mobilePopupOurOnce_r_down"> |
| | | <div v-for="(item, index) in seebut" :key="index"> |
| | | <el-link |
| | | icon="el-icon-map-location" |
| | | :icon=" |
| | | item.name == '实景' |
| | | ? 'el-icon-place' |
| | | : item.name == '图集' |
| | | ? 'el-icon-data-board' |
| | | : item.name == '定位' |
| | | ? 'el-icon-map-location' |
| | | : '' |
| | | " |
| | | class="mobilePopupOurOnce_r_d_in" |
| | | @click="openOnce(item.name)" |
| | | >{{ item.name }}</el-link |
| | |
| | | name: "mobilePopupOurOnce", |
| | | created() { |
| | | this.DC = global.DC; |
| | | // console.log(this.onceData); |
| | | if (this.onceData.icon) { |
| | | this.srcList = this.onceData.icon; |
| | | this.icon = this.srcList[0]; |
| | | } |
| | | if (this.onceData.from == "校园建筑") { |
| | | this.getOnceCampus(this.onceData.id); |
| | | } else if ( |
| | | this.onceData.from == "机构单位" || |
| | | this.onceData.from == "生活设施" |
| | | ) { |
| | | } else { |
| | | this.ourData = this.onceData; |
| | | } |
| | | }, |
| | |
| | | "https://www.kuleiman.com/110487/index.html?m=1" |
| | | ); |
| | | } else if (val == "图集") { |
| | | console.log(this.srcList); |
| | | let imgsDom = document.getElementById("mobileBigImgs" + this.icon + ""); |
| | | imgsDom.click(); |
| | | } |
| | |
| | | getOnceCampus(id) { |
| | | getChildNavDetail({ id: id }).then((res) => { |
| | | var result = res.data.data[0].list; |
| | | // console.log(result); |
| | | let d = { |
| | | name: result.mechanismname, |
| | | lntLat: [result.jd, result.wd], |
| | |
| | | QRImg: result.codeurl, |
| | | websiteUrl: result.websiteurl, |
| | | telePhone: result.telephone, |
| | | address: result.address, |
| | | }; |
| | | this.ourData = d; |
| | | }); |