处理待办事项
This commit is contained in:
61
unpackage/dist/dev/mp-weixin/pages/todo/todoAdd.js
vendored
Normal file
61
unpackage/dist/dev/mp-weixin/pages/todo/todoAdd.js
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_index = require("../../api/index.js");
|
||||
if (!Array) {
|
||||
const _easycom_nut_textarea2 = common_vendor.resolveComponent("nut-textarea");
|
||||
const _easycom_nut_form_item2 = common_vendor.resolveComponent("nut-form-item");
|
||||
const _easycom_nut_button2 = common_vendor.resolveComponent("nut-button");
|
||||
const _easycom_nut_form2 = common_vendor.resolveComponent("nut-form");
|
||||
(_easycom_nut_textarea2 + _easycom_nut_form_item2 + _easycom_nut_button2 + _easycom_nut_form2)();
|
||||
}
|
||||
const _easycom_nut_textarea = () => "../../uni_modules/nutui-uni/components/textarea/textarea.js";
|
||||
const _easycom_nut_form_item = () => "../../uni_modules/nutui-uni/components/formitem/formitem.js";
|
||||
const _easycom_nut_button = () => "../../uni_modules/nutui-uni/components/button/button.js";
|
||||
const _easycom_nut_form = () => "../../uni_modules/nutui-uni/components/form/form.js";
|
||||
if (!Math) {
|
||||
(_easycom_nut_textarea + _easycom_nut_form_item + _easycom_nut_button + _easycom_nut_form)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "todoAdd",
|
||||
setup(__props) {
|
||||
const form = common_vendor.reactive({
|
||||
content: ""
|
||||
});
|
||||
const onSubmit = () => {
|
||||
common_vendor.index.__f__("log", "at pages/todo/todoAdd.vue:41", "form====>", form);
|
||||
api_index.fetchAddTodo(form).then((res) => {
|
||||
common_vendor.index.showToast({
|
||||
icon: "none",
|
||||
title: "新增待办事项成功"
|
||||
});
|
||||
setTimeout(() => {
|
||||
common_vendor.index.switchTab({
|
||||
url: "/pages/todo/todoList"
|
||||
});
|
||||
}, 500);
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.o(($event) => form.content = $event),
|
||||
b: common_vendor.p({
|
||||
rows: 3,
|
||||
placeholder: "请输入待办事项",
|
||||
type: "text",
|
||||
modelValue: form.content
|
||||
}),
|
||||
c: common_vendor.p({
|
||||
label: "待办事项"
|
||||
}),
|
||||
d: common_vendor.o(onSubmit),
|
||||
e: common_vendor.p({
|
||||
type: "primary",
|
||||
block: true
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2d99a30c"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/todo/todoAdd.js.map
|
||||
Reference in New Issue
Block a user