From b9ac8b0b2459f76ec52d840bd9c658ce9aceb30e Mon Sep 17 00:00:00 2001 From: Enzo <1284707383@qq.com> Date: Fri, 10 Sep 2021 10:01:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=88=86=E8=B4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 18 +- common/http.js | 2 +- common/uploadFile.js | 2 +- components/zwy-calendar/zwy-calendar.vue | 87 ++++++++- main.js | 1 + manifest.json | 2 +- pages/goodsDetail/index.vue | 17 +- pages/order/confirm_atonce.vue | 169 +++++++++++++----- pages/order/confirm_order.vue | 114 ++++++------ .../u-column-notice/u-column-notice.vue | 4 +- .../components/u-notice-bar/u-notice-bar.vue | 1 + 11 files changed, 295 insertions(+), 122 deletions(-) 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 @@