fix: map key update

main
ch 3 years ago
parent d1671e1637
commit 3f5b9ee84f

@ -2,14 +2,14 @@
* @Author: ch cwl_ch@163.com * @Author: ch cwl_ch@163.com
* @Date: 2022-12-28 14:39:29 * @Date: 2022-12-28 14:39:29
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-12-30 16:35:53 * @LastEditTime: 2023-01-03 19:35:31
* @Description: 高德地图配置需要自行去高德开放平台申请 * @Description: 高德地图配置需要自行去高德开放平台申请
*/ */
export default { export default {
// 高德地图JS Api key // 高德地图JS Api key
key:'accb4fe7de2b5efd04f187dc0f978777', key:'336c720ecc79d891b7198912f47e7a32',
// 高德地图JS Api key对应的秘钥正式环境最好不要放前端 // 高德地图JS Api key对应的秘钥正式环境最好不要放前端
securityJsCode : '617eba916a16270f5fa3203a4ee2e2a6', securityJsCode : 'c20760ec4150c700d74ca33235bd9a76',
// 城市获取key // 城市获取key
cityKey : 'fe5524e832a0fc6e2bcaf1bb781ac830', cityKey : 'fe5524e832a0fc6e2bcaf1bb781ac830',
// 高德城市请求地址 // 高德城市请求地址

@ -2,7 +2,7 @@
* @Author: ch cwl_ch@163.com * @Author: ch cwl_ch@163.com
* @Date: 2022-12-30 14:47:25 * @Date: 2022-12-30 14:47:25
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-12-30 15:42:42 * @LastEditTime: 2023-01-03 19:51:18
* @Description: 服务端配置 * @Description: 服务端配置
*/ */

@ -10,6 +10,7 @@
</view> </view>
</view> </view>
<button class="login--btn" @click="handleLogin"></button> <button class="login--btn" @click="handleLogin"></button>
<!-- <button @click="clear()"></button> -->
</view> </view>
</template> </template>
<script setup> <script setup>
@ -39,6 +40,7 @@ const handleGetVerifyCode = async () =>{
codeTimerNum.value = 10; codeTimerNum.value = 10;
calcTimer(); calcTimer();
const {error, result} = await ApiGetVerifyCode({passengerPhone:phone.value}); const {error, result} = await ApiGetVerifyCode({passengerPhone:phone.value});
console.log(error, {passengerPhone:phone.value})
if(!HandleApiError(error)){ if(!HandleApiError(error)){
ShowToast('验证码发送成功'); ShowToast('验证码发送成功');
} }
@ -82,6 +84,10 @@ const verifyPhone = (phone) =>{
} }
return result; return result;
} }
// const clear = () =>{
// uni.clearStorageSync();
// }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-03-17 16:36:59 * @Date: 2022-03-17 16:36:59
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2023-01-03 11:23:23 * @LastEditTime: 2023-01-03 19:51:59
* @Description: 针对uniapp request请求做了一次封装使用思维参考axios * @Description: 针对uniapp request请求做了一次封装使用思维参考axios
* *
* *
@ -69,6 +69,7 @@ class MsbUniRequest {
if(option.constructor === Promise){ if(option.constructor === Promise){
return option return option
} }
console.log(option)
return new Promise((resolve, reject)=>{ return new Promise((resolve, reject)=>{
uni.request({ uni.request({
...option, ...option,

Loading…
Cancel
Save