231 lines
6.1 KiB
JavaScript
231 lines
6.1 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const CustomTabBar = () => "../../components/custom-tab-bar.js";
|
|
const _sfc_main = {
|
|
components: { CustomTabBar },
|
|
data() {
|
|
return {
|
|
swiperList: [
|
|
"/static/home/banner04.png"
|
|
],
|
|
currentNum: 0,
|
|
sortList: [
|
|
{
|
|
id: 1,
|
|
icon: "/static/union/bh.png",
|
|
name: "百货"
|
|
},
|
|
{
|
|
id: 2,
|
|
icon: "/static/union/fs.png",
|
|
name: "服饰"
|
|
},
|
|
{
|
|
id: 3,
|
|
icon: "/static/union/wj.png",
|
|
name: "五金"
|
|
},
|
|
{
|
|
id: 4,
|
|
icon: "/static/union/sm.png",
|
|
name: "数码"
|
|
},
|
|
{
|
|
id: 5,
|
|
icon: "/static/union/jd.png",
|
|
name: "酒店"
|
|
},
|
|
{
|
|
id: 6,
|
|
icon: "/static/union/xc.png",
|
|
name: "洗车"
|
|
},
|
|
{
|
|
id: 7,
|
|
icon: "/static/union/yy.png",
|
|
name: "影院"
|
|
},
|
|
{
|
|
id: 8,
|
|
icon: "/static/union/sh.png",
|
|
name: "商行"
|
|
},
|
|
{
|
|
id: 9,
|
|
icon: "/static/union/bld.png",
|
|
name: "便利店"
|
|
},
|
|
{
|
|
id: 10,
|
|
icon: "/static/union/yb.png",
|
|
name: "饮吧"
|
|
}
|
|
],
|
|
rateValue: 4,
|
|
contentList: [
|
|
{
|
|
id: 1,
|
|
name: "好又多便利店",
|
|
rate: 4,
|
|
//
|
|
price: 12,
|
|
num: 1854,
|
|
tabs: ["便利店", "建业路/英协花园"],
|
|
address: "200m"
|
|
},
|
|
{
|
|
id: 2,
|
|
name: "好又多便利店",
|
|
rate: 4,
|
|
//
|
|
price: 12,
|
|
num: 1854,
|
|
tabs: ["便利店", "建业路/英协花园"],
|
|
address: "200m"
|
|
},
|
|
{
|
|
id: 3,
|
|
name: "好又多便利店",
|
|
rate: 4,
|
|
//
|
|
price: 12,
|
|
num: 1854,
|
|
tabs: ["便利店", "建业路/英协花园"],
|
|
address: "200m"
|
|
},
|
|
{
|
|
id: 4,
|
|
name: "好又多便利店",
|
|
rate: 4,
|
|
//
|
|
price: 12,
|
|
num: 1854,
|
|
tabs: ["便利店", "建业路/英协花园"],
|
|
address: "200m"
|
|
}
|
|
]
|
|
};
|
|
},
|
|
onShow() {
|
|
},
|
|
methods: {}
|
|
};
|
|
if (!Array) {
|
|
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
|
const _easycom_up_search2 = common_vendor.resolveComponent("up-search");
|
|
const _easycom_up_swiper2 = common_vendor.resolveComponent("up-swiper");
|
|
const _easycom_up_rate2 = common_vendor.resolveComponent("up-rate");
|
|
const _component_CustomTabBar = common_vendor.resolveComponent("CustomTabBar");
|
|
(_easycom_up_image2 + _easycom_up_search2 + _easycom_up_swiper2 + _easycom_up_rate2 + _component_CustomTabBar)();
|
|
}
|
|
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
|
const _easycom_up_search = () => "../../uni_modules/uview-plus/components/u-search/u-search.js";
|
|
const _easycom_up_swiper = () => "../../uni_modules/uview-plus/components/u-swiper/u-swiper.js";
|
|
const _easycom_up_rate = () => "../../uni_modules/uview-plus/components/u-rate/u-rate.js";
|
|
if (!Math) {
|
|
(_easycom_up_image + _easycom_up_search + _easycom_up_swiper + _easycom_up_rate)();
|
|
}
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return common_vendor.e({
|
|
a: common_vendor.p({
|
|
src: "/static/common/address3.png",
|
|
width: "16",
|
|
height: "18",
|
|
bgColor: "#f1f6ff00"
|
|
}),
|
|
b: common_vendor.p({
|
|
src: "/static/common/right.png",
|
|
width: "18",
|
|
height: "18",
|
|
bgColor: "#f1f6ff00"
|
|
}),
|
|
c: common_vendor.p({
|
|
shape: "square",
|
|
bgColor: "#EEEEEEFF",
|
|
color: "#666666FF",
|
|
showAction: false,
|
|
placeholder: "搜索"
|
|
}),
|
|
d: common_vendor.t($data.currentNum + 1),
|
|
e: common_vendor.t($data.swiperList.length),
|
|
f: common_vendor.o((e) => $data.currentNum = e.current),
|
|
g: common_vendor.p({
|
|
list: $data.swiperList,
|
|
height: "120",
|
|
radius: "10",
|
|
bgColor: "#ffffff00"
|
|
}),
|
|
h: common_vendor.f($data.sortList, (item, k0, i0) => {
|
|
return {
|
|
a: "04033f11-4-" + i0,
|
|
b: common_vendor.p({
|
|
src: item.icon,
|
|
width: "40",
|
|
height: "32",
|
|
bgColor: "#f1f6ff00"
|
|
}),
|
|
c: common_vendor.t(item.name),
|
|
d: item.id
|
|
};
|
|
}),
|
|
i: common_vendor.p({
|
|
src: "/static/common/address3.png",
|
|
width: "10",
|
|
height: "12",
|
|
bgColor: "#f1f6ff00"
|
|
}),
|
|
j: common_vendor.p({
|
|
src: "/static/common/buttom.png",
|
|
width: "10",
|
|
height: "12",
|
|
bgColor: "#f1f6ff00"
|
|
}),
|
|
k: common_vendor.p({
|
|
src: "/static/common/buttom.png",
|
|
width: "10",
|
|
height: "12",
|
|
bgColor: "#f1f6ff00"
|
|
}),
|
|
l: $data.contentList && $data.contentList.length !== 0
|
|
}, $data.contentList && $data.contentList.length !== 0 ? {
|
|
m: common_vendor.f($data.contentList, (item, k0, i0) => {
|
|
return {
|
|
a: "04033f11-8-" + i0,
|
|
b: common_vendor.t(item.name),
|
|
c: "04033f11-9-" + i0,
|
|
d: common_vendor.o(($event) => item.rate = $event, item.id),
|
|
e: common_vendor.p({
|
|
size: "14",
|
|
modelValue: item.rate
|
|
}),
|
|
f: common_vendor.t(item.price),
|
|
g: common_vendor.t(item.num),
|
|
h: common_vendor.t(item.tabs.join(" ")),
|
|
i: "04033f11-10-" + i0,
|
|
j: common_vendor.t(item.address),
|
|
k: item.id
|
|
};
|
|
}),
|
|
n: common_vendor.p({
|
|
src: "/static/common/bianlidian.jpg",
|
|
width: "80",
|
|
height: "80",
|
|
bgColor: "#f1f6ff00",
|
|
radius: "10"
|
|
}),
|
|
o: common_vendor.p({
|
|
src: "/static/common/address3.png",
|
|
width: "10",
|
|
height: "12",
|
|
bgColor: "#f1f6ff00"
|
|
})
|
|
} : {}, {
|
|
p: common_vendor.p({
|
|
tabIndex: 2
|
|
})
|
|
});
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-04033f11"]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/hash_union/hash_union.js.map
|