|
@@ -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>
|