fix: 修改key

main
ch 3 years ago
parent 6197780b52
commit 74ebf5d282

@ -74,6 +74,7 @@
zoom: 13 // zoom: 13 //
}); });
}).catch((e)=>{ }).catch((e)=>{
console.error(e); // console.error(e); //
}); });

@ -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: 2023-01-03 20:14:04 * @LastEditTime: 2023-01-03 21:00:14
* @Description: 高德地图配置需要自行去高德开放平台申请 * @Description: 高德地图配置需要自行去高德开放平台申请
*/ */
export default { export default {
// 高德地图JS Api key // 高德地图JS Api key
key:'5bd2fa582964f00d06b3f5e8b7eb0abe', key:'83b7fb6fb16083a0950a992c0c3f9f71',
// 高德地图JS Api key对应的秘钥正式环境最好不要放前端 // 高德地图JS Api key对应的秘钥正式环境最好不要放前端
securityJsCode : '5cac8799cfa688ca3a695a1a23c90480', securityJsCode : '4d4bf6cc97cd7a9bbc513ae209e90a56',
// 城市获取key // 城市获取key
cityKey : 'fe5524e832a0fc6e2bcaf1bb781ac830', cityKey : 'fe5524e832a0fc6e2bcaf1bb781ac830',
// 高德城市请求地址 // 高德城市请求地址

@ -3,7 +3,7 @@
<BMap ref="mapRef" /> <BMap ref="mapRef" />
<view class="city" @click="handleCity()">{{city.name}}</view> <view class="city" @click="handleCity()">{{city.name}}</view>
<view class="system" @click="handleSystem()"></view> <view class="system" @click="handleSystem()"></view>
<SelectPoint @confirm="handleConfrimPoint"/> <SelectPoint v-if="loadingFinish" @confirm="handleConfrimPoint"/>
</view> </view>
</template> </template>
<script setup> <script setup>
@ -15,11 +15,16 @@
const $store = useStore(); const $store = useStore();
const mapRef = ref(null); const mapRef = ref(null);
let city = computed(()=> $store.state.city); let city = computed(()=> $store.state.city);
let loadingFinish = ref(false);
provide('mapSearch',(str,cb) => mapRef.value.search(cb, str)); provide('mapSearch',(str,cb) => mapRef.value.search(cb, str));
onMounted(()=>{ onMounted(()=>{
setCenter(); setCenter();
watch(city, setCenter); watch(city, setCenter);
//
setTimeout(()=>{
loadingFinish.value = true
},7000)
}) })
/** /**

@ -1,7 +1,7 @@
<template> <template>
<view class="container"> <view class="container">
<view class="logo">飞滴出行一路畅</view> <view class="logo" @dblclick="handleAccount"></view>
<view class="login"> <view class="login">
<input placeholder="请输入手机号" type="number" maxlength="11" v-model="phone" class="login--input" /> <input placeholder="请输入手机号" type="number" maxlength="11" v-model="phone" class="login--input" />
<view class="login--code"> <view class="login--code">
@ -10,7 +10,6 @@
</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>
@ -85,6 +84,9 @@ const verifyPhone = (phone) =>{
return result; return result;
} }
const handleAccount = ()=>{
uni.navigateTo({url:'/pages/account'})
}
// const clear = () =>{ // const clear = () =>{
// uni.clearStorageSync(); // uni.clearStorageSync();
// } // }

Loading…
Cancel
Save