You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
3.9 KiB
99 lines
3.9 KiB
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const api_chat = require("../../api/chat.js");
|
|
require("../../utils/request/index.js");
|
|
require("../../utils/request/http.js");
|
|
require("../../enums/requestEnums.js");
|
|
require("../../utils/request/cancel.js");
|
|
require("../../stores/user.js");
|
|
require("../../api/user.js");
|
|
require("../../enums/constantEnums.js");
|
|
require("../../hooks/useShareMessage.js");
|
|
require("../../router/index.js");
|
|
require("../../utils/cache.js");
|
|
require("../../api/task.js");
|
|
require("../../utils/util.js");
|
|
require("../../stores/navigationBarTitle.js");
|
|
require("../../stores/app.js");
|
|
require("../../api/app.js");
|
|
require("../../mixins/share.js");
|
|
require("../../utils/auth.js");
|
|
require("../../config/index.js");
|
|
if (!Array) {
|
|
const _easycom_u_search2 = common_vendor.resolveComponent("u-search");
|
|
const _easycom_u_image2 = common_vendor.resolveComponent("u-image");
|
|
const _easycom_router_navigate2 = common_vendor.resolveComponent("router-navigate");
|
|
const _easycom_tabbar2 = common_vendor.resolveComponent("tabbar");
|
|
(_easycom_u_search2 + _easycom_u_image2 + _easycom_router_navigate2 + _easycom_tabbar2)();
|
|
}
|
|
const _easycom_u_search = () => "../../uni_modules/vk-uview-ui/components/u-search/u-search.js";
|
|
const _easycom_u_image = () => "../../uni_modules/vk-uview-ui/components/u-image/u-image.js";
|
|
const _easycom_router_navigate = () => "../../node-modules/uniapp-router-next/components/router-navigate/router-navigate.js";
|
|
const _easycom_tabbar = () => "../../components/tabbar/tabbar.js";
|
|
if (!Math) {
|
|
(_easycom_u_search + _easycom_u_image + _easycom_router_navigate + _easycom_tabbar)();
|
|
}
|
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
__name: "ai_creation",
|
|
setup(__props) {
|
|
const keyword = common_vendor.ref("");
|
|
const data = common_vendor.ref([]);
|
|
const getData = async () => {
|
|
data.value = await api_chat.getCreationLists({
|
|
keyword: keyword.value
|
|
});
|
|
};
|
|
common_vendor.onShow(() => {
|
|
getData();
|
|
});
|
|
common_vendor.onPullDownRefresh(async () => {
|
|
await getData();
|
|
common_vendor.index.stopPullDownRefresh();
|
|
});
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: _ctx.$theme.navColor,
|
|
b: _ctx.$theme.navBgColor,
|
|
c: _ctx.$theme.pageStyle,
|
|
d: common_vendor.o(($event) => getData()),
|
|
e: common_vendor.o(($event) => keyword.value = $event),
|
|
f: common_vendor.p({
|
|
placeholder: "请输入关键词搜索",
|
|
height: "72",
|
|
["bg-color"]: "#fff",
|
|
["show-action"]: false,
|
|
modelValue: keyword.value
|
|
}),
|
|
g: common_vendor.f(data.value, (category, k0, i0) => {
|
|
return common_vendor.e({
|
|
a: !(category.model.length == 0 && category.name == "我的收藏")
|
|
}, !(category.model.length == 0 && category.name == "我的收藏") ? {
|
|
b: common_vendor.t(category.name)
|
|
} : {}, {
|
|
c: common_vendor.f(category.model, (item, k1, i1) => {
|
|
return {
|
|
a: "e73e0ac8-2-" + i0 + "-" + i1 + "," + ("e73e0ac8-1-" + i0 + "-" + i1),
|
|
b: common_vendor.p({
|
|
src: item.image,
|
|
width: "76",
|
|
height: "76",
|
|
["border-radius"]: "8rpx"
|
|
}),
|
|
c: common_vendor.t(item.name),
|
|
d: common_vendor.t(item.tips),
|
|
e: "e73e0ac8-1-" + i0 + "-" + i1,
|
|
f: common_vendor.p({
|
|
to: `/packages/pages/create/create?id=${item.id}`
|
|
}),
|
|
g: item.id
|
|
};
|
|
}),
|
|
d: category.id
|
|
});
|
|
})
|
|
};
|
|
};
|
|
}
|
|
});
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/uniapp/uniapp/src/pages/ai_creation/ai_creation.vue"]]);
|
|
wx.createPage(MiniProgramPage);
|
|
|