|
@@ -1,6 +1,5 @@
|
|
<template>
|
|
<template>
|
|
<div class="trafficLocation">
|
|
<div class="trafficLocation">
|
|
- <van-nav-bar :title="title" />
|
|
|
|
<van-cell
|
|
<van-cell
|
|
@click="()=>openMap(item)"
|
|
@click="()=>openMap(item)"
|
|
v-for="item in che_list"
|
|
v-for="item in che_list"
|
|
@@ -19,8 +18,7 @@ import { ref } from 'vue';
|
|
* window.$originData.orginParames.parameters 固定参数值
|
|
* window.$originData.orginParames.parameters 固定参数值
|
|
* window.$originData.urlParames url参数
|
|
* window.$originData.urlParames url参数
|
|
*/
|
|
*/
|
|
-console.log(window.$originData);
|
|
|
|
-const title = ref(window.$originData.orginParames.title);
|
|
|
|
|
|
+console.log(location.href.split("#")[0]);
|
|
|
|
|
|
const che_list = ref([
|
|
const che_list = ref([
|
|
{
|
|
{
|
|
@@ -92,7 +90,6 @@ const che_list = ref([
|
|
]);
|
|
]);
|
|
|
|
|
|
function openMap(item) {
|
|
function openMap(item) {
|
|
- console.log(window.wx, item)
|
|
|
|
if (!window.wx) return;
|
|
if (!window.wx) return;
|
|
window.wx.checkJsApi({
|
|
window.wx.checkJsApi({
|
|
jsApiList: ['getLocation', 'openLocation'],
|
|
jsApiList: ['getLocation', 'openLocation'],
|