代码优化
This commit is contained in:
@@ -66,7 +66,6 @@
|
||||
<script setup>
|
||||
import { reactive, ref, watch } from 'vue';
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import { $status } from '@/commons/table-status.js'
|
||||
|
||||
import { getShopTable } from '@/http/api/table.js'
|
||||
import { getShopArea} from '@/http/api/area.js'
|
||||
@@ -149,7 +148,7 @@
|
||||
* @param {Object} key
|
||||
*/
|
||||
function returnStutasText(key) {
|
||||
const item = $status[key]
|
||||
const item = uni.$dict.tableStatus[key]
|
||||
return item ? item.label : ''
|
||||
}
|
||||
|
||||
@@ -158,7 +157,7 @@
|
||||
* @param {Object} key
|
||||
*/
|
||||
function returnStutasColor(key) {
|
||||
const item = $status[key]
|
||||
const item = uni.$dict.tableStatus[key]
|
||||
return item ? item.type : ''
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<view class="list-tight-top">
|
||||
<template v-if="lingshi.show">
|
||||
<view id="lingshi" class="lingshi u-m-b-32" @tap="toLinshi">
|
||||
<uni-icons type="plus-filled" size="24" :color="color.ColorMain"></uni-icons>
|
||||
<uni-icons type="plus-filled" size="24" :color="$utils.ColorMain"></uni-icons>
|
||||
<view class="u-m-t-24 color-main">临时菜</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -122,7 +122,6 @@
|
||||
import myCar from './components/car'
|
||||
|
||||
import util from './util.js';
|
||||
import color from '@/commons/color.js';
|
||||
import go from '@/commons/utils/go.js';
|
||||
import { getNowCart } from '@/pagesCreateOrder/util.js'
|
||||
import storageManage from '@/commons/utils/storageManage.js'
|
||||
|
||||
Reference in New Issue
Block a user