LAPTOP-UBJMM5MG\user 11 hónapja%!(EXTRA string=óta)
szülő
commit
025a8c45b4

+ 2 - 2
js_sdk/http.js

@@ -976,9 +976,9 @@ export function findBillManagementMoreForCollect(data) {
 }
 
 // 查看园区详情
-export function getParkBriefById(data) {
+export function getByGroupId(data) {
     return $http.post(
-        '/wx/parkBrief/getById',
+        '/wx/parkBrief/getByGroupId',
         data, {}
     )
 }

+ 14 - 2
pages/index/components/enterpriseSide.vue

@@ -89,9 +89,9 @@
     <div class="contactInfo">
       <div class="infoBox">
         <span class="infoTitle">客服电话(24小时)</span>
-        <span class="phoneNumber">0510-680**808</span>
+        <span class="phoneNumber">{{phone}}</span>
       </div>
-      <image :src="phoneCall" class="phoneCall"></image>
+      <image :src="phoneCall" class="phoneCall" @tap="call"></image>
     </div>
   </div>
 </template>
@@ -110,6 +110,7 @@ export default {
   name: "enterpriseSide",
   data() {
     return {
+      phone:'0510-680**808',
       selectGroup:{},
       noticeList:[],
       faMsg:'home',
@@ -217,6 +218,17 @@ export default {
     changeImg(index){
       // this.current = index.detail.current+1
     },
+    call(){
+      uni.makePhoneCall({
+        phoneNumber: this.phone, // 电话号码
+        success: function () {
+          console.log('拨打电话成功');
+        },
+        fail: function () {
+          console.log('拨打电话失败');
+        }
+      });
+    },
     getParkList(){
       ParkInfoControllerListAll().then(res=>{
         this.array = res

+ 23 - 9
pages/subPackages/aboutThePark/index.vue

@@ -1,9 +1,8 @@
 <template>
     <div class="aboutThePark">
        <div class="whiteBoard">
-          <img src="../housingResources/testImg.png" class="testImg">
-         <div class="info">
-           {{form.content}}
+          <img :src="briefImg.url" class="testImg">
+         <div class="info" v-html="form.content">
          </div>
        </div>
        <div class="whiteBoard">
@@ -12,37 +11,52 @@
             <span class="callName">招商电话:</span>
             <span class="callNumber">{{ form.attractPhone }}</span>
           </span>
-           <img src="https://www.idea-co-sf.com/gardenProduct/image/phoneIcon.png" class="phoneIcon">
+           <img src="https://www.idea-co-sf.com/gardenProduct/image/phoneIcon.png" class="phoneIcon" @tap="call">
          </div>
        </div>
     </div>
 </template>
 
 <script>
-import { getParkBriefById } from "@/js_sdk/http";
+import { getByGroupId } from "../../../js_sdk/http";
 
 export default {
   name: "index",
   data(){
     return{
+      briefImg: [],
       form:{
 
       }
     }
   },
+  mounted(){
+    this.getById()
+  },
   onLoad(options){
-     this.getById()
+
   },
   methods:{
     getById(){
       const data = {
         groupId : JSON.parse(uni.getStorageSync('selectGroup')).groupId
       }
-      getParkBriefById(data).then((res)=>{
-        this.form = res.data
+      getByGroupId(data).then((res)=>{
+        this.form = res
+        this.briefImg = JSON.parse(res.briefImg)
       })
     },
-
+    call(){
+      uni.makePhoneCall({
+        phoneNumber: this.form.attractPhone, // 电话号码
+        success: function () {
+          console.log('拨打电话成功');
+        },
+        fail: function () {
+          console.log('拨打电话失败');
+        }
+      });
+    }
   }
 }
 </script>