代码优化
This commit is contained in:
@@ -81,7 +81,7 @@
|
||||
|
||||
<view class="u-flex color-999 " @tap="delproGroupVo(index)">
|
||||
<uni-icons type="minus-filled" :size="16"
|
||||
:color="color.ColorRed"></uni-icons>
|
||||
:color="$utils.ColorRed"></uni-icons>
|
||||
<view class="u-m-l-10">删除套餐组</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -90,7 +90,7 @@
|
||||
<view class="u-flex color-main u-font-24 u-m-l-24"
|
||||
@click="proGroupVoAddGoods(index,item.goods)">
|
||||
<up-icon name="plus" :size="12"
|
||||
:color="color.ColorMain"></up-icon>
|
||||
:color="$utils.ColorMain"></up-icon>
|
||||
<view class="font-bold">添加商品</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -150,7 +150,7 @@
|
||||
</view>
|
||||
<up-icon @click="proGroupVoGoodsDel(index,goodsIndex)"
|
||||
size="14" name="trash"
|
||||
:color="color.ColorMain"></up-icon>
|
||||
:color="$utils.ColorMain"></up-icon>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -173,7 +173,7 @@
|
||||
<template v-if="FormData.groupType==1">
|
||||
<view class="bg-fff u-flex u-p-t-24 u-p-b-24 border-r-12 "
|
||||
@tap="proGroupVoPush">
|
||||
<uni-icons type="plus-filled" :color="color.ColorMain"
|
||||
<uni-icons type="plus-filled" :color="$utils.ColorMain"
|
||||
:size="20"></uni-icons>
|
||||
<view class="u-m-l-16">添加套餐组</view>
|
||||
</view>
|
||||
@@ -181,7 +181,7 @@
|
||||
<template v-else>
|
||||
<view class="bg-fff u-flex u-p-t-24 u-p-b-24 border-r-12 "
|
||||
@tap="proGroupVoAddGoods()">
|
||||
<uni-icons type="plus-filled" :color="color.ColorMain"
|
||||
<uni-icons type="plus-filled" :color="$utils.ColorMain"
|
||||
:size="20"></uni-icons>
|
||||
<view class="u-m-l-16">添加商品</view>
|
||||
</view>
|
||||
@@ -423,29 +423,13 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
computed,
|
||||
onBeforeUnmount,
|
||||
reactive,
|
||||
ref,
|
||||
watch,
|
||||
nextTick
|
||||
} from 'vue';
|
||||
import {
|
||||
onLoad,
|
||||
onShow,
|
||||
onReady
|
||||
} from '@dcloudio/uni-app';
|
||||
import {
|
||||
ColorMain
|
||||
} from '@/commons/color.js'
|
||||
import { computed, onBeforeUnmount, reactive, ref, watch, nextTick } from 'vue';
|
||||
import { onLoad, onShow, onReady } from '@dcloudio/uni-app';
|
||||
|
||||
import dayjs from "dayjs";
|
||||
import {
|
||||
formatPrice
|
||||
} from "@/commons/utils/format.js";
|
||||
import { formatPrice } from "@/commons/utils/format.js";
|
||||
|
||||
import go from '@/commons/utils/go.js';
|
||||
import color from '@/commons/color.js';
|
||||
|
||||
import chooseGoods from './components/choose-goods'
|
||||
import chooseGuige from './components/choose-guige'
|
||||
@@ -458,7 +442,7 @@
|
||||
|
||||
import { hasPermission } from '@/commons/utils/hasPermission.js';
|
||||
|
||||
import { $types, $defaultSku } from '@/commons/goodsData.js'
|
||||
import { $defaultSku } from '@/commons/goodsData.js'
|
||||
|
||||
import {
|
||||
getCategoryList,
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-m-t-24">
|
||||
<uni-data-checkbox :selectedColor="color.ColorMain" multiple v-model="item.cycleChecked"
|
||||
<uni-data-checkbox :selectedColor="$utils.ColorMain" multiple v-model="item.cycleChecked"
|
||||
:localdata="cycle"></uni-data-checkbox>
|
||||
</view>
|
||||
<view class="u-m-t-24">
|
||||
@@ -50,7 +50,6 @@
|
||||
import { onLoad, onReady } from '@dcloudio/uni-app';
|
||||
import { computed, ref } from 'vue';
|
||||
import go from '@/commons/utils/go.js';
|
||||
import color from '@/commons/color.js'
|
||||
import { getProductDetail } from '@/http/api/product.js'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user