123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- if (!Array) {
- const _easycom_u_index_anchor2 = common_vendor.resolveComponent("u-index-anchor");
- const _easycom_u_index_item2 = common_vendor.resolveComponent("u-index-item");
- const _easycom_u_index_list2 = common_vendor.resolveComponent("u-index-list");
- (_easycom_u_index_anchor2 + _easycom_u_index_item2 + _easycom_u_index_list2)();
- }
- const _easycom_u_index_anchor = () => "../../node-modules/uview-plus/components/u-index-anchor/u-index-anchor.js";
- const _easycom_u_index_item = () => "../../node-modules/uview-plus/components/u-index-item/u-index-item.js";
- const _easycom_u_index_list = () => "../../node-modules/uview-plus/components/u-index-list/u-index-list.js";
- if (!Math) {
- (_easycom_u_index_anchor + _easycom_u_index_item + _easycom_u_index_list)();
- }
- const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
- __name: "index",
- setup(__props) {
- var _a;
- (_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$api;
- const config = common_vendor.ref({ logoUrl: [] });
- const indexList = common_vendor.ref(["A", "B", "C", "D", "E", "F", "G", "H", "I", "J"]);
- const itemArr = common_vendor.ref([
- [{ title: "奥迪", url: [], type: "0" }, { title: "爱驰", url: [], type: "0" }, { title: "阿斯顿·马丁", url: [], type: "0" }],
- [{ title: "宝马", url: [], type: "0" }, { title: "本田", url: [], type: "0" }, { title: "比亚迪", url: [], type: "0" }, { title: "奔腾", url: [], type: "0" }],
- [{ title: "长安", url: [], type: "0" }, { title: "长城", url: [], type: "0" }, { title: "创维", url: [], type: "0" }],
- [{ title: "大众", url: [], type: "0" }, { title: "东风", url: [], type: "0" }, { title: "大运", url: [], type: "0" }],
- [{ title: "长安", url: [], type: "0" }, { title: "长城", url: [], type: "0" }, { title: "创维", url: [], type: "0" }],
- [{ title: "长安", url: [], type: "0" }, { title: "长城", url: [], type: "0" }, { title: "创维", url: [], type: "0" }],
- [{ title: "长安", url: [], type: "0" }, { title: "长城", url: [], type: "0" }, { title: "创维", url: [], type: "0" }],
- [{ title: "长安", url: [], type: "0" }, { title: "长城", url: [], type: "0" }, { title: "创维", url: [], type: "0" }],
- [{ title: "长安", url: [], type: "0" }, { title: "长城", url: [], type: "0" }, { title: "创维", url: [], type: "0" }],
- [{ title: "长安", url: [], type: "0" }, { title: "长城", url: [], type: "0" }, { title: "创维", url: [], type: "0" }]
- ]);
- const list = common_vendor.ref([
- { title: "奥迪", url: [], type: "0" },
- { title: "本田", url: [], type: "0" },
- { title: "别克", url: [], type: "0" },
- { title: "奥迪", url: [], type: "0" },
- { title: "大众", url: [], type: "0" },
- { title: "长城", url: [], type: "0" },
- { title: "福特", url: [], type: "0" },
- { title: "丰田", url: [], type: "0" },
- { title: "长安", url: [], type: "0" },
- { title: "日产", url: [], type: "0" }
- ]);
- common_vendor.onLoad(async () => {
- await searchConfig();
- await search();
- });
- const searchConfig = async () => {
- config.value = common_vendor.index.getStorageSync("config");
- };
- const search = async () => {
- };
- const toCommon = (item) => {
- common_vendor.index.$emit("toRoute", item);
- common_vendor.index.navigateBack({
- delta: 1
- // 返回的页面数
- });
- };
- return (_ctx, _cache) => {
- return {
- a: common_vendor.f(list.value, (item, index, i0) => {
- return {
- a: item.url && item.url.length > 0 ? item.url[0].url : "/static/logo.png",
- b: common_vendor.t(item.title),
- c: index,
- d: common_vendor.o(($event) => toCommon(item), index)
- };
- }),
- b: _ctx.header,
- c: common_vendor.f(itemArr.value, (item, index, i0) => {
- return {
- a: "bd19021e-2-" + i0 + "," + ("bd19021e-1-" + i0),
- b: common_vendor.p({
- color: "#333333",
- ["bg-color"]: "#f9f9f9",
- text: indexList.value[index]
- }),
- c: common_vendor.f(item, (cell, index2, i1) => {
- return {
- a: common_vendor.t(cell.title),
- b: common_vendor.o(($event) => toCommon(cell))
- };
- }),
- d: item.url && item.url.length > 0 ? item.url[0].url : "/static/logo.png",
- e: "bd19021e-1-" + i0 + ",bd19021e-0",
- f: index
- };
- }),
- d: common_vendor.p({
- ["index-list"]: indexList.value,
- sticky: false,
- activeColor: "#ffbc00"
- })
- };
- };
- }
- });
- const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-bd19021e"], ["__file", "D:/project/二手车/car_applet/pagesHome/brand/index.vue"]]);
- wx.createPage(MiniProgramPage);
|