<template>
  <view>
    <back-component />
    <view class="container">
      <view class="card">
        <view
          class="comm"
          @click="navTo('/pages/admin/add_order/add_table/index')"
        >
          <text class="title">开始点单</text>
          <image src="./static/dc.png"></image>
          <text class="sub">线上点单后结系统</text>
        </view>
        <view class="line"></view>
        <view
          class="comm"
          @click="navTo('/pages/admin/add_order/pending_order/index')"
        >
          <text class="title">我的订单</text>
          <image src="./static/ddan.png"></image>
          <text class="sub">查看我点餐的订单</text>
        </view>
      </view>
    </view>
  </view>
</template>

<script setup lang="ts">
import Taro from "@tarojs/taro";
import BackComponent from "../../../components/Back.vue";

const navTo = (path: string) => {
  Taro.navigateTo({
    url: path,
  });
};
</script>

<style lang="scss">
@import "./index.scss";
</style>
