|  |  | @@ -1,3 +1,4 @@ | 
		
	
		
			
			|  |  |  | const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px'; | 
		
	
		
			
			|  |  |  | var config = require("../../config/config.js"); | 
		
	
		
			
			|  |  |  | var app = getApp(); | 
		
	
		
			
			|  |  |  | const Http = require("../../utils/HttpBasics"); | 
		
	
	
		
			
				|  |  | @@ -5,6 +6,7 @@ const util = require("../../utils/util"); | 
		
	
		
			
			|  |  |  | const imgurl = require("../../utils/imgurl"); | 
		
	
		
			
			|  |  |  | Page({ | 
		
	
		
			
			|  |  |  | data: { | 
		
	
		
			
			|  |  |  | navigationBarHeight, | 
		
	
		
			
			|  |  |  | fenxiangUrl: imgurl.fenxiang.url, | 
		
	
		
			
			|  |  |  | clockUrl: imgurl.clock.url, | 
		
	
		
			
			|  |  |  | teljpgUrl: imgurl.teljpg.url, | 
		
	
	
		
			
				|  |  | @@ -80,18 +82,19 @@ Page({ | 
		
	
		
			
			|  |  |  | goToTranser(){ | 
		
	
		
			
			|  |  |  | this.onShareAppMessage(); | 
		
	
		
			
			|  |  |  | // wx.navigateTo({ | 
		
	
		
			
			|  |  |  | //   url: '/pages/index/index?couponChannelId=' + this.data.cardDetail.couponChannelId + '&cuserId=' + this.data.cardDetail.cuserId + '&couponId=' + this.data.cardDetail.couponId, | 
		
	
		
			
			|  |  |  | //   url: '/pages/index/index?couponChannelId=316424281708658688&cuserId=316369316574887936&couponId=316424281708658688&coverImg=https://iformall-net.s3.cn-northwest-1.amazonaws.com.cn/456/90d50e2d-547c-43e1-a801-2f6e15f622d2.jpg&userName=轻泉漪溪&avatarUrl=https://wx.qlogo.cn/mmopen/vi_32/oibIKqnzXT21eZJdjKVKY91A36FqLbD3ibEFc2oxIC4iahLniccDQKVu1Tgp4kJupxRZjtEpW0ravJ9QW1HuncGVjA/132&couponOrderId=316424688259530752&updateDate=1564553135000', | 
		
	
		
			
			|  |  |  | // }) | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | onShareAppMessage: function (res) { | 
		
	
		
			
			|  |  |  | if (res.from === 'button') { | 
		
	
		
			
			|  |  |  | console.log(res,3333333333333333333333) | 
		
	
		
			
			|  |  |  | console.log(this.data.cardDetail) | 
		
	
		
			
			|  |  |  | console.log(111) | 
		
	
		
			
			|  |  |  | // 来自页面内转发按钮 | 
		
	
		
			
			|  |  |  | let _this = this; | 
		
	
		
			
			|  |  |  | return { | 
		
	
		
			
			|  |  |  | title: _this.data.userName + '赠送您一张' + _this.data.cardDetail.title, | 
		
	
		
			
			|  |  |  | path: '/pages/index/index?couponChannelId=' + this.data.cardDetail.couponChannelId + '&cuserId=' + this.data.cardDetail.ownerId + '&couponId=' + this.data.cardDetail.couponId + '&coverImg=' + this.data.cardDetail.coverImg + '&userName=' + this.data.userName + '&avatarUrl=' + this.data.avatarUrl + '&couponOrderId=' + this.data.cardDetail.id + '&updateDate=' + this.data.cardDetail.updateDate, | 
		
	
		
			
			|  |  |  | imageUrl: this.data.cardDetail.coverImg, | 
		
	
		
			
			|  |  |  | path: '/pages/index/index?couponChannelId=' + _this.data.cardDetail.couponChannelId + '&cuserId=' + _this.data.cardDetail.ownerId + '&couponId=' + _this.data.cardDetail.couponId + '&coverImg=' + _this.data.cardDetail.coverImg + '&userName=' + _this.data.userName + '&avatarUrl=' + _this.data.avatarUrl + '&couponOrderId=' + _this.data.cardDetail.id + '&updateDate=' + _this.data.cardDetail.updateDate, | 
		
	
		
			
			|  |  |  | imageUrl: _this.data.cardDetail.coverImg, | 
		
	
		
			
			|  |  |  | success: function (res) { | 
		
	
		
			
			|  |  |  | // 转发成功 | 
		
	
		
			
			|  |  |  | }, | 
		
	
	
		
			
				|  |  | 
 |