</transition>
<transition name="slide-fade">
<div class="share showmap" v-show="showmap">
<ditu></ditu>---------------------------------自定义模板
</div>
</transition>
</ul>
<div class="fuceng" v-if="showmap"></div>
</div>
</template>
<script>
import ditu from '@/components/home'
export default {
name: 'app',
data () {
return {
search: '',
showd: false,
showph: false,
showmap: false
}
},
mounted () {
this.init()
},
methods: {
Search () {
if (this.search !== '') {
this.$router.push({
path: '/list',
query: {
serInfo: this.search
}
})
} else {
alert('请输入搜索内容')
}
},
init: function () {
let url = 'http://v3.jiathis.com/code/jia.js'
let script = document.createElement('script')
script.setAttribute('src', url)
document.getElementsByTagName('head')[0].appendChild(script)
}
},
components: {
ditu
}
}
</script>










