diff --git a/App.vue b/App.vue index 39caf38..3f53fb7 100644 --- a/App.vue +++ b/App.vue @@ -8,15 +8,29 @@ customBarH: 0, // 标题导航栏高度 windowHeight: 0, // 窗口可用高度,窗口总高度 - 状态栏的高度 }, - onLaunch: function() { + onLaunch: function(e) { this.disableConsole(); this.getSystemInfo(); this.getUserInfo(); }, - onShow: function() { + onShow(e) { // #ifdef MP-WEIXIN this.getUpdateWexin(); // 小程序更新检查 // #endif + setTimeout(() => { + if(e.referrerInfo.extraData) { + + uni.$emit('payState',{msg:e.referrerInfo.extraData.backPayState}) + uni.$emit('order_id',{msg:e.referrerInfo.extraData.order_id}) + + console.log('订单状态',e.referrerInfo.extraData.backPayState) + console.log('订单id',e.referrerInfo.extraData.order_id) + + // uni.setStorageSync('order_id',e.referrerInfo.extraData.order_id) + // uni.setStorageSync('backPayState',e.referrerInfo.extraData.backPayState) + } + },500) + }, methods: { // 获取手机设备信息 diff --git a/common/http.js b/common/http.js index 57b7257..eb42767 100644 --- a/common/http.js +++ b/common/http.js @@ -93,7 +93,7 @@ function $http(url, data = {}, options = {}){ var accountInfo = wx.getAccountInfoSync(); var autoappid = accountInfo.miniProgram.appId; - options.appid = autoappid || 'wxeb58570b5e04d147' + options.appid = autoappid || 'wxb35ef055a4dd8ad4'; console.log('请求',options.appid) diff --git a/common/uploadFile.js b/common/uploadFile.js index 85d0d08..c9925bc 100644 --- a/common/uploadFile.js +++ b/common/uploadFile.js @@ -33,7 +33,7 @@ const uploadFile = function (filePath, successc, failc) { var accountInfo = wx.getAccountInfoSync(); var autoappid = accountInfo.miniProgram.appId; - var uploadappid = autoappid || 'wxeb58570b5e04d147'; + var uploadappid = autoappid || 'wxb35ef055a4dd8ad4'; console.log('上次',uploadappid) diff --git a/components/zwy-calendar/zwy-calendar.vue b/components/zwy-calendar/zwy-calendar.vue index 7445d14..832d410 100644 --- a/components/zwy-calendar/zwy-calendar.vue +++ b/components/zwy-calendar/zwy-calendar.vue @@ -1,11 +1,16 @@