|
|
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- const common_api = require("../../common/api.js");
- const common_assets = require("../../common/assets.js");
- const citySelect = () => "../../components/cityselect/index.js";
- const lineBg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAANCAYAAAC3mX7tAAAAAXNSR0IArs4c6QAAAbxJREFUOE+lk0FrE1EUhc+ZDOhMigjZdNcWdCPJqNCdlkZw4TKL2mVwkKLQ/gAFRcEu/AEKuumDrEopNEsXSlNoV+2iTYIbBdNdNwGpmRmFyVx5oQk6mYSpvt1799z7zTnvDQPlBAJcRGxZOLXotn7Gz8ftZePaROCZP+IaEh36a04LxFS8mMmgcKFcb54H9Kvi5LtdNIZ6BMf0lVMDMD88UJ7abuP1eUDeWuEZyVcJPZ/oKeclgRcJxRMrG17l4udOGthZbF8ATMb1IvKcXiU/y66xnziM2LQf1O+nAfnq+hYgpSStCeMmdcFXzi6AWyMGrlvZcGmUs54T31QQLIzo37Pd+u0eKFD5osDYHvPlJyLyNopYnbgUtrSuc2pOG4aUSC4nxTWYFXHOfni02wPp5anCO4KP0sSUViOQ91m38VjrByDZLprBt/ZHkAkvMO3oP3QiO9ZM7i7v1MK/QHoj6sblQLrV/4ZpCDMluoff++iBo/6Bdua32m/+NUYdlz2dW+k7GQnqF84eyOqY1xjPcw8Rn+iLTwp6yFFcpP8zhLxHsgjBFRrI9WKO0AbxVURqMOVDttw8GHeTvwFKoZ4cmcUYJAAAAABJRU5ErkJggg==";
- const _sfc_main = {
- components: {
- citySelect
- },
- data() {
- return {
- city: "长沙市",
- keyword: "",
- lineBg,
- nav: [
- {
- img: "../../static/image/nav1.png",
- name: "闲置散居农房"
- },
- {
- img: "../../static/image/nav2.png",
- name: "集体建设用地"
- },
- {
- img: "../../static/image/nav3.png",
- name: "鱼塘"
- },
- {
- img: "../../static/image/nav4.png",
- name: "林地"
- },
- {
- img: "../../static/image/nav5.png",
- name: "经营性建设用地"
- },
- {
- img: "../../static/image/nav6.png",
- name: "耕地"
- },
- {
- img: "../../static/image/nav7.png",
- name: "出租房"
- },
- {
- img: "../../static/image/nav8.png",
- name: "二手房"
- }
- ],
- list: [
- {
- name: "近期热销"
- },
- {
- name: "城市"
- },
- {
- name: "分区"
- },
- {
- name: "闲置资源分类"
- }
- ]
- };
- },
- mounted() {
- this.getHttpData();
- },
- methods: {
- getHttpData() {
- const res = common_api.fetchMenu();
- console.log(res);
- },
- handleAreaChange() {
- this.$refs.citySelectRef.open();
- },
- handleCityChange(e) {
- console.info(e);
- this.city = e.city.label;
- },
- onDetail(event) {
- common_vendor.index.navigateTo({
- url: "/pages_subpack/detail/index"
- });
- }
- }
- };
- if (!Array) {
- const _easycom_uv_icon2 = common_vendor.resolveComponent("uv-icon");
- const _easycom_uv_search2 = common_vendor.resolveComponent("uv-search");
- const _easycom_uv_tabs2 = common_vendor.resolveComponent("uv-tabs");
- const _component_citySelect = common_vendor.resolveComponent("citySelect");
- (_easycom_uv_icon2 + _easycom_uv_search2 + _easycom_uv_tabs2 + _component_citySelect)();
- }
- const _easycom_uv_icon = () => "../../uni_modules/uv-icon/components/uv-icon/uv-icon.js";
- const _easycom_uv_search = () => "../../uni_modules/uv-search/components/uv-search/uv-search.js";
- const _easycom_uv_tabs = () => "../../uni_modules/uv-tabs/components/uv-tabs/uv-tabs.js";
- if (!Math) {
- (_easycom_uv_icon + _easycom_uv_search + _easycom_uv_tabs)();
- }
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
- return {
- a: common_vendor.t($data.city),
- b: common_vendor.p({
- name: "arrow-down-fill"
- }),
- c: common_vendor.o(($event) => $options.handleAreaChange()),
- d: common_vendor.o(($event) => $data.keyword = $event),
- e: common_vendor.p({
- showAction: false,
- bgColor: "transparent",
- placeholder: "请输入租房信息",
- modelValue: $data.keyword
- }),
- f: common_assets._imports_0,
- g: common_vendor.f($data.nav, (item, index, i0) => {
- return {
- a: item.img,
- b: common_vendor.t(item.name),
- c: index
- };
- }),
- h: common_assets._imports_1,
- i: common_vendor.p({
- list: $data.list,
- activeStyle: {
- color: "#000000"
- },
- inactiveStyle: {
- color: "#666666"
- },
- lineColor: `url(${$data.lineBg}) 100% 100%`
- }),
- j: common_vendor.f(20, (item, index, i0) => {
- return {
- a: "380a2403-3-" + i0,
- b: common_vendor.o(($event) => $options.onDetail(item), index),
- c: index
- };
- }),
- k: common_assets._imports_0$1,
- l: common_vendor.p({
- name: "eye"
- }),
- m: common_vendor.sr("citySelectRef", "380a2403-4"),
- n: common_vendor.o($options.handleCityChange),
- o: common_vendor.p({
- zIndex: 0
- })
- };
- }
- const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
- wx.createPage(MiniProgramPage);
|