This commit is contained in:
2023-08-19 21:37:22 +08:00
parent 61f840059b
commit 8b5de95140
16 changed files with 749 additions and 518 deletions

View File

@@ -10,7 +10,7 @@
<script setup lang="ts">
import Taro from "@tarojs/taro";
import { orderVerify } from "@/api/admin";
import { orderVerify, activeOrderVerify } from "@/api/admin";
// url参数转对象
// const urlParse = (url: string) => {
@@ -34,9 +34,17 @@ const scanCode = () => {
scanType: ["qrCode"],
success: async (res) => {
try {
const data = await orderVerify({
oid: res.result,
});
const user = JSON.parse(Taro.getStorageSync("userInfo"));
let data;
if (user.mer_type === 1) {
data = await activeOrderVerify({
oid: res.result,
});
} else {
data = await orderVerify({
oid: res.result,
});
}
Taro.showToast({
title: data.msg,
icon: "none",