更新记录
4.5.8(2024-08-08) 下载此版本
无
平台兼容性
uni-app
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
√ | - | - | - | - | - | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
√ | - | - | - | - | - | - | - | - | - | - |
1.天气预报修改: 目录:uni_modules/jr-weather/components/utils.js 修改getLocationAndWeather和getLocationAndthreeWeather函数下的key即可:
uni.request({
url: 'https://restapi.amap.com/v3/weather/weatherInfo', //高德地图查询天气
method: 'GET',
data: {
key: '', //填写自己的高德KEY
city: adcode,
},
success: (e) => {
temperature = e.data.lives[0].temperature
weather = e.data.lives[0].weather
resolve({
city,
temperature,
weather
})
},
2.登录修改: 目录:uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json 修改微信小程序的key:
"mp-weixin": {
"oauth": {
"weixin": {
"appid": "", //微信小程序的appid
"appsecret": ""//微信小程序的appsecret
}
}
},
3.体验的话,可以直接查看我发布的小程序:“牛管家记账本”