const util = require('../../utils/util.js'); const app = getApp() Page({ data: { cloudId: 0 }, onLoad: function(option){ this.setData({ cloudId: option.id }) }, backList: function(){ setTimeout(function() { wx.reLaunch({ url: '../cloud/cloud' }) }, 200) }, onShareAppMessage: function(res){ return { title: '接收人确认', path: 'pages/detail/receiver?id=' + this.data.cloudId , // 分享后打开的页面 imageUrl: '/images/share/timg.png', success: function(res){ // wx.reLaunch({ // url: '../cloud/cloud' // }) setTimeout(function() { wx.reLaunch({ url: '../cloud/cloud' }) }, 200) // var that = this; // wx.request({ // url: app.globalData.serverUrl + '/cloudcard/orderChecking?id=' + that.data.cloudId, // data: { // id : that.data.cloudId // }, // method:"GET", // success(res) { // wx.reLaunch({ // url: '../cloud/cloud' // }) // }, // fail: function (res) { // wx.reLaunch({ // url: '../cloud/cloud' // }) // } // }) }, fail: function(res){ setTimeout(function() { wx.reLaunch({ url: '../cloud/cloud' }) }, 200) } } } })