"use strict"; const pages_service_questions = require("./questions.js"); const common_vendor = require("../../common/vendor.js"); const _sfc_main = { data() { return { categories: pages_service_questions.QUESTIONS, selectedCategory: null, chatList: [], scrollTop: 0 }; }, methods: { selectCategory(cat) { this.selectedCategory = cat; this.chatList = []; }, selectQuestion(q) { this.chatList = []; this.chatList.push({ type: "question", text: q[0] }); this.chatList.push({ type: "answer", text: q[1] }); } } }; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return common_vendor.e({ a: common_vendor.f($data.categories, (cat, k0, i0) => { return { a: common_vendor.t(cat.category), b: cat.category, c: common_vendor.o(($event) => $options.selectCategory(cat), cat.category) }; }), b: $data.selectedCategory }, $data.selectedCategory ? { c: common_vendor.f($data.selectedCategory.questions, (q, index, i0) => { return { a: common_vendor.t(q[0]), b: index, c: common_vendor.o(($event) => $options.selectQuestion(q), index) }; }), d: common_vendor.f($data.chatList, (msg, index, i0) => { return { a: common_vendor.t(msg.text), b: index, c: common_vendor.n(msg.type) }; }) } : {}); } const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]); wx.createPage(MiniProgramPage); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/service/service.js.map