Procházet zdrojové kódy

关注公众号组件样式修改;修复站点导航不生效的问题

zuy před 7 měsíci
rodič
revize
df72e79e86
2 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 2 2
      src/components/station/index.vue
  2. 1 1
      src/pages/index/index.vue

+ 2 - 2
src/components/station/index.vue

@@ -56,8 +56,8 @@ const props = defineProps({
 const handleNavMap = (station: any) => {
   let location = JSON.parse(station.location)
   uni.openLocation({
-    latitude: location.stationLat,
-    longitude: location.stationLng,
+    latitude: Number(location.stationLat),
+    longitude: Number(location.stationLng),
     scale: 18,
     name: station.stationName,
     address: station.address,

+ 1 - 1
src/pages/index/index.vue

@@ -17,7 +17,7 @@
 
     <view class="w100 gap"></view>
 
-    <official-account @binderror="handleOAerror"  @bindload="handleOAload"></official-account>
+    <official-account @binderror="handleOAerror"  @bindload="handleOAload" style="width: 100%"></official-account>
 
 
     <view class="menu-content w100">