2025-08-29 09:51:02 +08:00
|
|
|
"use strict";
|
|
|
|
|
const common_vendor = require("../../../common/vendor.js");
|
2026-01-30 09:54:26 +08:00
|
|
|
require("../../../common/libraries/getPageConfig.js");
|
2026-04-01 14:27:31 +08:00
|
|
|
const common_libraries_public = require("../../../common/libraries/public.js");
|
2026-04-07 10:09:25 +08:00
|
|
|
const common_libraries_userUserLogin = require("../../../common/libraries/userUserLogin.js");
|
2026-01-15 19:26:00 +08:00
|
|
|
require("../../../common/store/useWeAppAuthStore.js");
|
|
|
|
|
require("../../../gen/Apis.js");
|
|
|
|
|
require("../../../common/libraries/request.js");
|
|
|
|
|
require("../../../common/store/useWorkStore.js");
|
2026-01-30 09:54:26 +08:00
|
|
|
require("../../../common/libraries/setTabBar.js");
|
2026-01-15 19:26:00 +08:00
|
|
|
require("../../../common/libraries/apiLoading.js");
|
2025-08-29 09:51:02 +08:00
|
|
|
if (!Array) {
|
|
|
|
|
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
|
|
|
|
|
_easycom_uni_icons2();
|
|
|
|
|
}
|
|
|
|
|
const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
|
|
|
|
|
if (!Math) {
|
|
|
|
|
_easycom_uni_icons();
|
|
|
|
|
}
|
2025-12-15 18:19:04 +08:00
|
|
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
|
|
|
__name: "AiInput",
|
|
|
|
|
setup(__props) {
|
2026-04-01 14:27:31 +08:00
|
|
|
const handleAiPage = (i) => {
|
|
|
|
|
common_vendor.index.navigateTo({
|
|
|
|
|
url: `/pages/ai/chat?message=${i == null ? void 0 : i.message}`
|
|
|
|
|
});
|
|
|
|
|
};
|
2025-12-15 18:19:04 +08:00
|
|
|
const handleInputChange = () => {
|
2026-04-07 10:09:25 +08:00
|
|
|
var _a;
|
|
|
|
|
if (!((_a = common_libraries_userUserLogin.getUserLogin) == null ? void 0 : _a.onBindPhone())) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2026-04-01 11:19:46 +08:00
|
|
|
common_vendor.index.navigateTo({
|
|
|
|
|
url: "/pages/ai/chat"
|
|
|
|
|
});
|
2025-12-15 18:19:04 +08:00
|
|
|
};
|
|
|
|
|
return (_ctx, _cache) => {
|
|
|
|
|
return {
|
2026-04-01 11:19:46 +08:00
|
|
|
a: common_vendor.p({
|
2025-12-15 18:19:04 +08:00
|
|
|
type: "arrow-right",
|
|
|
|
|
size: "20",
|
2026-04-02 10:29:32 +08:00
|
|
|
color: "#A4A4A4"
|
2026-04-01 11:19:46 +08:00
|
|
|
}),
|
2026-04-01 14:27:31 +08:00
|
|
|
b: common_vendor.o(handleInputChange),
|
|
|
|
|
c: common_vendor.f(common_vendor.unref(common_libraries_public.quickActions), (i, index, i0) => {
|
|
|
|
|
return {
|
|
|
|
|
a: `/static/svg/${i.icon}`,
|
|
|
|
|
b: common_vendor.t(i.label),
|
|
|
|
|
c: `item_${index}`,
|
|
|
|
|
d: common_vendor.o(($event) => handleAiPage(i), `item_${index}`)
|
|
|
|
|
};
|
|
|
|
|
})
|
2025-12-15 18:19:04 +08:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b68fefb8"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/pages/index/components/AiInput.vue"]]);
|
2025-08-29 09:51:02 +08:00
|
|
|
wx.createComponent(Component);
|