You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< script setup >
/**
* name:
* user: sa0ChunLuyu
* date: 2024年8月7日 21:01:52
*/
import {
ref
} from 'vue'
import {
$response
} from '@/api'
import {
onShow
} from '@dcloudio/uni-app'
import JWeixin from "weixin-js-sdk"
const mapClick = ( ) => {
let url = '/pages/main/map/map?'
let query _arr = [ ]
query _arr . push ( ` type=gcj02 ` )
query _arr . push ( ` latitude=39.867671 ` )
query _arr . push ( ` longitude=119.514223 ` )
query _arr . push ( ` scale=18 ` )
query _arr . push ( ` name= ${ encodeURIComponent ( '测试地址' ) } ` )
query _arr . push ( ` address= ${ encodeURIComponent ( '测试地址测试地址123 测试地址' ) } ` )
url = url + query _arr . join ( '&' )
JWeixin . miniProgram . navigateTo ( {
url : url ,
} ) ;
}
< / script >
< template >
< view >
< view >
< button @click ="mapClick()" > 地 图 测 试 < / button >
< / view >
< view class = "blank_wrapper" > < / view >
< / view >
< / template >
< style scoped >
< / style >