Bladeren bron

轮播图

“hanlingqiang 3 jaren geleden
bovenliggende
commit
e7d2f3e4b2
2 gewijzigde bestanden met toevoegingen van 19 en 21 verwijderingen
  1. 6 8
      src/views/zhulao/views/circle/detail.vue
  2. 13 13
      src/views/zhulao/views/circle/index.vue

+ 6 - 8
src/views/zhulao/views/circle/detail.vue

@@ -2,8 +2,7 @@
   <div class="page">
     <van-nav-bar title="中心详情" @click-left="$router.back()" left-arrow fixed placeholder safe-area-inset-top />
     <div class="loop_image">
-      <van-image :src="institutionsItem.coverImgUrl"  fit="fill" />
-
+      <van-image :src="institutionsItem.coverImgUrl" fit="fill" />
     </div>
     <div class="info_top">
       <div class="name_bg">
@@ -18,7 +17,7 @@
     </div>
 
     <div class="info_center">
-      <span class="title">基本信息--</span>
+      <span class="title">基本信息</span>
       <!-- <span>dizhi:{{institutionsItem.coverImgUrl}}</span> -->
       <div class="content">
         <div>
@@ -44,10 +43,9 @@
     </div>
 
     <div class="info_center">
-        <span class="title">服务详情</span>
-        <div class="contentHtml" v-html="institutionsItem.content">
-           
-        </div>
+      <span class="title">服务详情</span>
+      <div class="contentHtml" v-html="institutionsItem.content">
+      </div>
     </div>
 
   </div>
@@ -80,7 +78,7 @@ export default {
 .page {
   background-color: #f5f5f5;
   width: 100%;
-  height: 100%;
+  height: auto;
 }
 .loop_image {
   width: 100%;

+ 13 - 13
src/views/zhulao/views/circle/index.vue

@@ -58,21 +58,21 @@ export default {
   async mounted() {
     let that = this
     //1.  调用爱山东获取经纬度
-    // lightAppJssdk.map.getLocation({
-    //   success: function (data) {
-    //     //成功
-    //     that.latitude = String(data.latitude)
-    //     that.longitude = String(data.longitude)
-    //     that.mapInit()
-    //   },
-    //   fail: function (err) {
-    //     //错误
-    //     that.mapInit()
-    //   },
-    // })
+    lightAppJssdk.map.getLocation({
+      success: function (data) {
+        //成功
+        that.latitude = String(data.latitude)
+        that.longitude = String(data.longitude)
+        that.mapInit()
+      },
+      fail: function (err) {
+        //错误
+        that.mapInit()
+      },
+    })
 
     // 2. 开发使用
-    that.mapInit()
+    // that.mapInit()
   },
   created() {
     window.jumpDetailTap = (id) => {