Files
frontend-app/unpackage/dist/dev/mp-weixin/components/choiceness/choiceness.js
T
2025-03-20 08:46:07 +08:00

94 lines
2.6 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
name: "choiceness",
data() {
return {
productList: [
{
id: 1,
url: "/static/common/product_def2.png",
name: "美的双开门冰箱大容量多层速冷冰箱",
price: "7088.",
priceDouble: "00",
sell: "1.4万",
type: 0
},
{
id: 2,
url: "/static/common/product_def2.png",
name: "西门子双开门家庭冰箱大开口设计",
price: "7088.",
priceDouble: "00",
sell: "1.4万",
type: 1
//1 哈希优选
},
{
id: 2,
url: "/static/common/product_def2.png",
name: "西门子双开门家庭冰箱大开口设计",
price: "7088.",
priceDouble: "00",
sell: "1.4万",
type: 1
//1 哈希优选
}
]
};
},
methods: {
//
jumpInfo(item) {
common_vendor.index.__f__("log", "at components/choiceness/choiceness.vue:62", "item", item);
common_vendor.index.navigateTo({
url: "/pages/productInfo/productInfo?id=" + item.id
});
}
}
};
if (!Array) {
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
_easycom_up_image2();
}
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
if (!Math) {
_easycom_up_image();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.p({
src: "/static/common/jingxuan_left.png",
width: "50",
height: "12",
bgColor: "#f1f6ff00"
}),
b: common_vendor.p({
src: "/static/common/jingxuan_right.png",
width: "50",
height: "12",
bgColor: "#f1f6ff00"
}),
c: common_vendor.f($data.productList, (item, k0, i0) => {
return {
a: "3619806e-2-" + i0,
b: common_vendor.p({
src: item.url,
width: "100%",
height: "140",
bgColor: "#f1f6ff00"
}),
c: common_vendor.t(item.name),
d: common_vendor.t(item.price),
e: common_vendor.t(item.priceDouble),
f: common_vendor.t(item.sell),
g: item.id,
h: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
};
})
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3619806e"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/choiceness/choiceness.js.map