feat(custom): 新增用户协议
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-03-15 16:06:24 +08:00
parent 5844762b25
commit aef52631e7
11 changed files with 113 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
export default definePageConfig({
navigationBarTitleText: "订单详情",
navigationStyle: "custom",
// navigationStyle: "custom",
});

View File

@@ -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>({});

View File

@@ -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">