From b979f770975350e547f8ac7fd6dbee6cefc4cdca Mon Sep 17 00:00:00 2001 From: TianYu <332368756@qq.com> Date: Mon, 29 May 2023 09:51:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-app/App.vue | 1 - yudao-ui-app/libs/pay.js | 4 ++-- yudao-ui-app/pages/goods_cashier/index.vue | 1 - yudao-ui-app/pages/index/index.vue | 2 +- yudao-ui-app/utils/request.js | 1 - 5 files changed, 3 insertions(+), 6 deletions(-) diff --git a/yudao-ui-app/App.vue b/yudao-ui-app/App.vue index 8d3bbc918..3985d9038 100644 --- a/yudao-ui-app/App.vue +++ b/yudao-ui-app/App.vue @@ -219,7 +219,6 @@ // 获取推广员ID setSpreadId() { const spreadId = this.$route.query.spreadId || '' - console.log('spreadId', spreadId) if (spreadId) { this.$store.commit("SET_SPREADID", spreadId); } diff --git a/yudao-ui-app/libs/pay.js b/yudao-ui-app/libs/pay.js index 1f09568a4..0fcc8b728 100644 --- a/yudao-ui-app/libs/pay.js +++ b/yudao-ui-app/libs/pay.js @@ -42,9 +42,9 @@ const unityPay = (options) => { } _options.payInfo.openid = openId if (_options.payType === 'WXPAY') { - _options.payInfo.payChannel = '微信支付' + _options.payInfo.payChannel = 'public' } else if (_options.payType === 'ALIPAY') { - _options.payInfo.payChannel = '支付宝' + _options.payInfo.payChannel = 'appAliPay' } uni.showLoading({ title: '支付中', diff --git a/yudao-ui-app/pages/goods_cashier/index.vue b/yudao-ui-app/pages/goods_cashier/index.vue index edfed8233..554554211 100644 --- a/yudao-ui-app/pages/goods_cashier/index.vue +++ b/yudao-ui-app/pages/goods_cashier/index.vue @@ -198,7 +198,6 @@ payType: that.paytype, createOrderFun: wechatOrderPay, payResultHandle: (res) => { - console.log(res) return { jsapiResult: res.jsapiConfig, body: res.body diff --git a/yudao-ui-app/pages/index/index.vue b/yudao-ui-app/pages/index/index.vue index 18246ba30..1e66621ad 100644 --- a/yudao-ui-app/pages/index/index.vue +++ b/yudao-ui-app/pages/index/index.vue @@ -208,7 +208,7 @@ followHid: true, followCode: false, logoUrl: "", - bannerList: {}, + bannerList: [], imgUrls: [], itemNew: [], menus: [], diff --git a/yudao-ui-app/utils/request.js b/yudao-ui-app/utils/request.js index dcd6a5386..152718363 100644 --- a/yudao-ui-app/utils/request.js +++ b/yudao-ui-app/utils/request.js @@ -26,7 +26,6 @@ function baseRequest(url, method, data, { if (!noAuth) { //登录过期自动登录 if (!store.state.app.token && !checkLogin()) { - console.log(store.state.app.token,checkLogin(),123123) toLogin(); return Promise.reject({ msg: '未登录'