43 lines
1.6 KiB
JavaScript
43 lines
1.6 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../../common/vendor.js");
|
|
const utils_commUtils = require("../../../utils/commUtils.js");
|
|
if (!Array) {
|
|
const _component_layout_default_uni = common_vendor.resolveComponent("layout-default-uni");
|
|
_component_layout_default_uni();
|
|
}
|
|
const isOpen = false;
|
|
const _sfc_main = {
|
|
__name: "knowledge",
|
|
setup(__props) {
|
|
const question = common_vendor.ref("");
|
|
const questions = common_vendor.ref([]);
|
|
function submitQuestion() {
|
|
if (question.value.trim()) {
|
|
questions.value.push(question.value);
|
|
question.value = "";
|
|
}
|
|
}
|
|
function toggleContent() {
|
|
this.isOpen = !isOpen;
|
|
}
|
|
return (_ctx, _cache) => {
|
|
return common_vendor.e({
|
|
a: common_vendor.unref(utils_commUtils.imgUrl)("@/static/service/1726016191895.png"),
|
|
b: !_ctx.isOpen
|
|
}, !_ctx.isOpen ? {
|
|
c: question.value,
|
|
d: common_vendor.o(($event) => question.value = $event.detail.value),
|
|
e: common_vendor.o(submitQuestion),
|
|
f: common_vendor.unref(utils_commUtils.imgUrl)("@/static/service/1726020804039.png"),
|
|
g: common_vendor.o(toggleContent)
|
|
} : {}, {
|
|
h: common_vendor.unref(utils_commUtils.imgUrl)("@/static/service/1726038575406.png"),
|
|
i: common_vendor.unref(utils_commUtils.imgUrl)("@/static/service/1726016220244.png"),
|
|
j: common_vendor.unref(utils_commUtils.imgUrl)("@/static/service/1726016243633.png")
|
|
});
|
|
};
|
|
}
|
|
};
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-160719f0"]]);
|
|
wx.createPage(MiniProgramPage);
|