|
@@ -22,7 +22,10 @@
|
|
<text class="label">/月</text>
|
|
<text class="label">/月</text>
|
|
</view>
|
|
</view>
|
|
<view class="project-label">距离您2km</view>
|
|
<view class="project-label">距离您2km</view>
|
|
- <uni-icons class="wx-icon" type="weixin" size="38" color="#43b156"></uni-icons>
|
|
|
|
|
|
+ <button type="default" class="wx-icon" open-type="share">
|
|
|
|
+ <uni-icons type="weixin" open-type="share" size="38" color="#43b156">
|
|
|
|
+ </uni-icons>
|
|
|
|
+ </button>
|
|
</view>
|
|
</view>
|
|
<view class="house-label house-article">{{detail.comment}}</view>
|
|
<view class="house-label house-article">{{detail.comment}}</view>
|
|
<view class="house-content">
|
|
<view class="house-content">
|
|
@@ -156,7 +159,8 @@
|
|
readNumer: 0,
|
|
readNumer: 0,
|
|
commentSize: 0,
|
|
commentSize: 0,
|
|
comment: []
|
|
comment: []
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ shareButton: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(body) {
|
|
onLoad(body) {
|
|
@@ -172,6 +176,11 @@
|
|
let time = endTime - this.startTime;
|
|
let time = endTime - this.startTime;
|
|
if (time > 10000) this.createVisitor();
|
|
if (time > 10000) this.createVisitor();
|
|
},
|
|
},
|
|
|
|
+ onShareAppMessage(res) {
|
|
|
|
+ return {
|
|
|
|
+ title: this.detail.name || '',
|
|
|
|
+ }
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
init() {
|
|
init() {
|
|
getHouseDetailById(this.houseId).then(res => {
|
|
getHouseDetailById(this.houseId).then(res => {
|
|
@@ -303,6 +312,13 @@
|
|
userId: this.$store.getters.user.userId,
|
|
userId: this.$store.getters.user.userId,
|
|
projectItemTargetRoomId: this.houseId
|
|
projectItemTargetRoomId: this.houseId
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ share() {
|
|
|
|
+ //根据id获取
|
|
|
|
+ uni.createSelectorQuery().select('#shareButton').node().exec(res => {
|
|
|
|
+ //res[0].node未获取到的指定的dom元素对象
|
|
|
|
+ console.log("res", res[0].node)
|
|
|
|
+ })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
}
|
|
}
|
|
@@ -387,6 +403,12 @@
|
|
top: 0;
|
|
top: 0;
|
|
right: 30rpx;
|
|
right: 30rpx;
|
|
transform: translateY(50%);
|
|
transform: translateY(50%);
|
|
|
|
+ line-height: 1;
|
|
|
|
+ background: transparent;
|
|
|
|
+
|
|
|
|
+ &::after {
|
|
|
|
+ display: none;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|