From 35788173b8fd4b18708a8aa4c36c3fa157bad61a Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Mon, 21 Oct 2024 18:15:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E7=94=9F=E6=B4=BB=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=96=B0=E7=9A=84=E6=94=AF=E4=BB=98=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/local_store.js | 5 +++++ bundle_b/pages/local_shop/local_pay.vue | 28 ++++++++++++++++++++++++- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/api/local_store.js b/api/local_store.js index eaa6d56..e09ea16 100644 --- a/api/local_store.js +++ b/api/local_store.js @@ -60,3 +60,8 @@ export function getPostStationList(data) { return request.post("LocalStore/getPostStationList", data) } +export function payTest(data) { + return request.post("abutment/payTest", data) +} + + diff --git a/bundle_b/pages/local_shop/local_pay.vue b/bundle_b/pages/local_shop/local_pay.vue index a03db7a..73cc2fd 100644 --- a/bundle_b/pages/local_shop/local_pay.vue +++ b/bundle_b/pages/local_shop/local_pay.vue @@ -173,6 +173,9 @@ localShopPayWeixin, localBalance } from '@/api/user.js' + import { + payTest + } from '@/api/local_store.js' import { getLocalShopById } from "@/api/shop" @@ -399,7 +402,29 @@ mask: true }) - localShopPayWeixin({ + // localShopPayWeixin({ + // money: this.money, + // lid: this.lstore_id, + // user_id: this.user_id, + // spec_item_id: this.spec_item_id, + // goods_num: this.goods ? this.goods.goods_num : 1, + // lsg_order_id: this.lsg_order_id, + // remark: this.remark, + // post_station_id: this.post_station_id, + // post_station_time: this.post_station_time + // }).then((result) => { + // if (result.code == 1) { + // const pay = { + // nonceStr: result.data.nonceStr, + // package: result.data.package, + // paySign: result.data.paySign, + // signType: result.data.signType, + // timeStamp: result.data.timeStamp, + // } + // this.handleWechatPay(pay); + // } + // }) + payTest({ money: this.money, lid: this.lstore_id, user_id: this.user_id, @@ -438,6 +463,7 @@ // 微信支付 handleWechatPay(data) { wxpay(data).then(res => { + console.log('res=', res) this.handPayResult(res) }).catch(err => { console.log('err=', err)