修改成7天体验
This commit is contained in:
parent
c6a3a9da2e
commit
9b3e474023
@ -44,7 +44,7 @@
|
||||
v-if="fansChannel === 1"
|
||||
@click="createOneDay"
|
||||
>
|
||||
生成1天体验计划
|
||||
生成7天体验计划
|
||||
</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -140,6 +140,7 @@ import { listRecipesPlanByCusId } from "@/api/custom/recipesPlan";
|
||||
import { addRecipesPlan } from "@/api/custom/recipesPlan";
|
||||
import PlanPauseDrawer from "./PlanPauseDrawer";
|
||||
import VueQr from "vue-qr";
|
||||
import dayjs from "dayjs";
|
||||
const logo = require("@/assets/logo/logo_b.png");
|
||||
export default {
|
||||
name: "RecipesPlanDrawer",
|
||||
@ -167,7 +168,7 @@ export default {
|
||||
},
|
||||
fanPickerOptions: {
|
||||
disabledDate(time) {
|
||||
return time.getTime() < Date.now();
|
||||
return time.getTime() < Date.now() - 24 * 60 * 60 * 1000;
|
||||
},
|
||||
},
|
||||
};
|
||||
@ -240,9 +241,9 @@ export default {
|
||||
addRecipesPlan({
|
||||
cusId: id,
|
||||
startNumDay: 1,
|
||||
endNumDay: 1,
|
||||
endNumDay: 7,
|
||||
startDate: this.form.startDate,
|
||||
endDate: this.form.startDate,
|
||||
endDate: dayjs(this.form.startDate).add(6, "day").format("YYYY-MM-DD"),
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code === 200) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user