测试扫码支付

This commit is contained in:
weiwei committed 2025-03-20 18:56:50 +08:00
1 parent b1f0b230e3
commit 3576ec1206
3 files changed
+6 -13

No files matched your search

+2 -9
View File
@@ -61,7 +61,7 @@ const state = reactive<{ wallet: any; userInfo: any; menuList: MenuItem[] }>({
wallet: [],
userInfo: {},
menuList: [
{ text: "扫一扫", icon: "/static/icon/service_3.png", router: "" },
{ text: "扫一扫", icon: "/static/icon/scan.png", router: "" },
{ text: "钱包管理", icon: "/static/icon/service_3.png", router: "/pages/wallet/list" },
// { text: "包厢预定", icon: "/static/icon/service_4.png", router: "/pages/boxes/apply-list" },
// { text: "外来人员就餐", icon: "/static/icon/service_1.png", router: "/pages/apply/foreign-list" },
@@ -177,16 +177,10 @@ const doLogout = async () => {
// 扫一扫
const doScanCode = async () => {
console.log("ssss")
try {
const res: any = await (window as any).dd.scan({ type: "all" })
console.log(res)
uni.showToast({
title: res,
icon: "none",
})
usePayStore().setPayData(JSON.stringify(res))
usePayStore().setPayData(res.text)
router.jump("/pages/pay/scanPay")
} catch (error: any) {
uni.showToast({
@@ -194,7 +188,6 @@ const doScanCode = async () => {
icon: "none",
})
}
console.log("eee")
}
const onTabMenu = async (v: MenuItem, i: number) => {