|
@@ -141,6 +141,36 @@
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ },
|
|
|
+ onShareTimeline(){
|
|
|
+ if(this.id){
|
|
|
+ return {
|
|
|
+ title: '智泊e家-'+this.floorlockInfo.name,
|
|
|
+ path: '/pages/index/main/lockInfo?id='+this.id ,
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ return {
|
|
|
+ title: '智泊e家',
|
|
|
+ path: '/pages/index/index' ,
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ onShareAppMessage(res) {
|
|
|
+ if (res.from === 'button') { // 来自页面内分享按钮
|
|
|
+ //.log(res.target)
|
|
|
+ }
|
|
|
+ if(this.id){
|
|
|
+ return {
|
|
|
+ title: '智泊e家-'+this.floorlockInfo.name,
|
|
|
+ path: '/pages/index/main/lockInfo?id='+this.id ,
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ return {
|
|
|
+ title: '智泊e家',
|
|
|
+ path: '/pages/index/index' ,
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
onReady() {
|
|
|
this.setIntervalId = setInterval(() => {
|