|
|
@@ -239,7 +239,7 @@
|
|
|
<h3 style="font-weight: bold">购买须知:</h3>
|
|
|
<el-form-item label="有效期" prop="effectiveDateType">
|
|
|
<el-radio-group v-model="storeInfoModel.effectiveDateType" class="ml-4">
|
|
|
- <el-radio v-for="status in expirationDateList" :value="status.value" :key="status.value">
|
|
|
+ <el-radio v-for="status in expirationDateStatusList" :value="status.value" :key="status.value">
|
|
|
{{ status.label }}
|
|
|
</el-radio>
|
|
|
</el-radio-group>
|
|
|
@@ -866,17 +866,17 @@ const storeStatusList = ref([
|
|
|
{ value: 1, label: "设置售卖时间" }
|
|
|
]);
|
|
|
|
|
|
-// 每人限购设置列表
|
|
|
+// 每人限购设置
|
|
|
const perList = ref([
|
|
|
{ value: 0, label: "不限量" },
|
|
|
{ value: 1, label: "自定义限购数量" }
|
|
|
]);
|
|
|
-// 每人限购设置列表
|
|
|
-const expirationDateList = ref([
|
|
|
+// 有效期设置
|
|
|
+const expirationDateStatusList = ref([
|
|
|
{ value: 0, label: "指定天数" },
|
|
|
{ value: 1, label: "指定时间段内可用" }
|
|
|
]);
|
|
|
-// 每人限购设置列表
|
|
|
+// 有效期设置
|
|
|
const unavailableDatesList = ref([
|
|
|
{ value: 0, label: "全部日期可用" },
|
|
|
{ value: 1, label: "限制日期" },
|
|
|
@@ -897,8 +897,8 @@ const weekdayList = ref([
|
|
|
// 节日选项列表
|
|
|
const holidayList: any = ref([]);
|
|
|
|
|
|
-// 菜品选项列表(这里需要根据实际API获取,暂时使用示例数据)
|
|
|
-const dishOptions = ref([]);
|
|
|
+// 菜品选项列表
|
|
|
+const dishOptions: any = ref([]);
|
|
|
|
|
|
// 套餐内容(数组,每个元素是一个分组)
|
|
|
const lifeGroupBuyThalis = ref([
|
|
|
@@ -1567,7 +1567,7 @@ const openDishDialog = async (groupIndex: number, dishIndex: number) => {
|
|
|
currentDishIndex.value = dishIndex;
|
|
|
dishSearchKeyword.value = "";
|
|
|
const params = {
|
|
|
- storeId: 361,
|
|
|
+ storeId: 104,
|
|
|
phoneId: 18641153170,
|
|
|
dishType: 0
|
|
|
};
|
|
|
@@ -1738,6 +1738,7 @@ const handleSubmit = (type?) => {
|
|
|
}
|
|
|
if (params.disableDateType == 1) {
|
|
|
params.disableDateValue = params.unavailableWeekdays.join(",") + ";" + params.unavailableHolidays.join(",");
|
|
|
+ // params.disableDateValue = [params.unavailableWeekdays, params.unavailableHolidays];
|
|
|
delete params.unavailableWeekdays;
|
|
|
delete params.unavailableHolidays;
|
|
|
} else if (params.disableDateType == 2) {
|
|
|
@@ -2400,7 +2401,7 @@ const handleImageParam = (list: any[], result: any[]) => {
|
|
|
.dish-item-selected {
|
|
|
background-color: #ecf5ff;
|
|
|
border-color: #409eff;
|
|
|
- border-width: 2px;
|
|
|
+ border-width: 1px;
|
|
|
}
|
|
|
.dish-item-selected:hover {
|
|
|
background-color: #d9ecff;
|