This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export default definePageConfig({
|
||||
navigationBarTitleText: "订单详情",
|
||||
navigationStyle: "custom",
|
||||
// navigationStyle: "custom",
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view>
|
||||
<back-component title="订单详情" />
|
||||
<view class="card" style="margin-top: 115px">
|
||||
<!-- <back-component title="订单详情" /> -->
|
||||
<view class="card" style="margin-top: 15px">
|
||||
<view class="header">
|
||||
<view>
|
||||
<text>台号: {{ data.seat }}</text>
|
||||
@@ -64,6 +64,7 @@
|
||||
<nut-cell title="下单数量" :desc="String(data.count)"></nut-cell>
|
||||
<nut-cell title="订单金额" :desc="String(data.payments)"></nut-cell>
|
||||
<nut-cell title="应收金额" :desc="String(data.payments)"></nut-cell>
|
||||
<nut-cell title="赠送游戏豆" :desc="String(data.gift_pulse)"></nut-cell>
|
||||
<nut-cell
|
||||
v-if="data.status !== 0"
|
||||
title="实收金额"
|
||||
@@ -89,7 +90,7 @@ import { ref } from "vue";
|
||||
import Taro from "@tarojs/taro";
|
||||
import Footer from "../components/Footer.vue";
|
||||
import { getAfterOrder } from "@/api/admin";
|
||||
import BackComponent from "../../../../../components/Back.vue";
|
||||
// import BackComponent from "../../../../../components/Back.vue";
|
||||
|
||||
const data = ref<any>({});
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import { onUnmounted, ref } from "vue";
|
||||
import Taro from "@tarojs/taro";
|
||||
import { getAfterOrder } from "@/api/admin";
|
||||
|
||||
@@ -23,6 +23,7 @@ const info = ref<any>({});
|
||||
|
||||
Taro.useLoad((e) => {
|
||||
info.value = e;
|
||||
console.log(e);
|
||||
code.value = Taro.getStorageSync("pay_code");
|
||||
time_id.value = setInterval(async () => {
|
||||
const { data } = await getAfterOrder({
|
||||
@@ -36,6 +37,7 @@ Taro.useLoad((e) => {
|
||||
icon: "success",
|
||||
});
|
||||
setTimeout(() => {
|
||||
Taro.removeStorageSync("pay_code");
|
||||
Taro.navigateTo({
|
||||
url: `/pages/admin/add_order/pending_order/pending_order_detail/index?oid=${info.value.oid}&bid=${info.value.bid}`,
|
||||
});
|
||||
@@ -47,6 +49,10 @@ Taro.useLoad((e) => {
|
||||
Taro.useDidHide(() => {
|
||||
clearInterval(time_id.value);
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
clearInterval(time_id.value);
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user