i
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import Taro from "@tarojs/taro";
|
||||
import { orderVerify, activeOrderVerify } from "@/api/admin";
|
||||
|
||||
// url参数转对象
|
||||
// const urlParse = (url: string) => {
|
||||
@@ -35,20 +34,8 @@ const scanCode = () => {
|
||||
success: async (res) => {
|
||||
try {
|
||||
const mer_type = JSON.parse(Taro.getStorageSync("mer_type"));
|
||||
let data;
|
||||
if (mer_type === 1) {
|
||||
data = await activeOrderVerify({
|
||||
oid: res.result,
|
||||
});
|
||||
} else {
|
||||
data = await orderVerify({
|
||||
oid: res.result,
|
||||
});
|
||||
|
||||
}
|
||||
Taro.showToast({
|
||||
title: data.msg,
|
||||
icon: "none",
|
||||
Taro.navigateTo({
|
||||
url: `/pages/admin/verify/verify_list/index?oid=${res.result}&mer_type=${mer_type}`,
|
||||
});
|
||||
} catch (error) {
|
||||
Taro.showToast({
|
||||
|
||||
Reference in New Issue
Block a user