Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 893 Bytes

README.md

File metadata and controls

46 lines (34 loc) · 893 Bytes

快速访问

QR Code

和风天气key

// utils/private-key.js
export const privateKey = ''

export const freeKeyList = [
    ''
]

腾讯地图key

// utils/api.js

/**
 *  逆经纬度查询
 * @param {*} lat
 * @param {*} lon
 */
export const geocoder = (lat, lon, success = () => { }, fail = () => { }) => {
    return wx.request({
        url: 'https://apis.map.qq.com/ws/geocoder/v1/',
        data: {
            location: `${lat},${lon}`,
            key: '', //你申请的腾讯位置服务key(一定要绑定自己的小程序appid) https://lbs.qq.com/dev/console/application/mine
            get_poi: 0
        },
        success,
        fail
    })
}

联系开发者

gzh

菜单栏【联系作者】或【进交流群】