feat:支付选择优惠券
This commit is contained in:
1 parent
bce6da0a0f
commit
150b8b3ac7
15 files changed
+591
-106
No files matched your search
@@ -1,8 +1,13 @@
|
||||
import { router } from ".."
|
||||
import { getUrlParamsObj } from "../utils/app"
|
||||
import { getUrlParamsObj, isDevEnv } from "../utils/app"
|
||||
|
||||
export function useScanCode(actModalShow) {
|
||||
async function scanCodeAction(): Promise<string | undefined> {
|
||||
if (isDevEnv()) {
|
||||
const testQrCode = "https://stgl.pj.gov.cn/h5/#/pages/pay/scanPay?id=1931916121241079810"
|
||||
uni.showModal({ content: "开发环境不是浙政钉和诗画环境,扫码仅供测试" })
|
||||
return Promise.resolve(testQrCode)
|
||||
}
|
||||
const scanResult = await new Promise<string>((resolve, reject) => {
|
||||
uni.scanCode({
|
||||
success: (res) => {
|
||||
|
||||
Reference in new issue
Block a user