i
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user