zhengkaixin 3 mesi fa
parent
commit
2a2f2b8d63
3 ha cambiato i file con 60 aggiunte e 0 eliminazioni
  1. 15 0
      pages/index/index.vue
  2. 30 0
      pages/index/main/lockInfo.vue
  3. 15 0
      pages/index/main/parkingDetails.vue

+ 15 - 0
pages/index/index.vue

@@ -92,6 +92,21 @@
 		onReady() {
 			this.$refs.refLogin.findByOpenId()
 			
+		},
+		onShareTimeline(){
+			return {
+				title: '智泊e家',
+				path: '/pages/index/index' ,
+			}
+		},
+		onShareAppMessage(res) {
+			if (res.from === 'button') { // 来自页面内分享按钮
+				//.log(res.target)
+			}
+			return {
+				title: '智泊e家',
+				path: '/pages/index/index' 
+			}
 		},
 		computed: {
 			otherList() {

+ 30 - 0
pages/index/main/lockInfo.vue

@@ -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(() => {

+ 15 - 0
pages/index/main/parkingDetails.vue

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