wangzhibo
2025-10-23 cad64c1de2c45856b0774933c5801b05b64984e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
"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