2025-03-20 08:46:07 +08:00
|
|
|
"use strict";
|
|
|
|
|
const common_vendor = require("../../common/vendor.js");
|
2025-05-07 09:54:33 +08:00
|
|
|
const api_product = require("../../api/product.js");
|
2025-03-20 08:46:07 +08:00
|
|
|
const _sfc_main = {
|
|
|
|
|
name: "choiceness",
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2025-05-07 09:54:33 +08:00
|
|
|
productList: []
|
2025-03-20 08:46:07 +08:00
|
|
|
};
|
|
|
|
|
},
|
2025-05-07 09:54:33 +08:00
|
|
|
mounted() {
|
|
|
|
|
this.getSearchList();
|
|
|
|
|
},
|
2025-03-20 08:46:07 +08:00
|
|
|
methods: {
|
|
|
|
|
//
|
|
|
|
|
jumpInfo(item) {
|
|
|
|
|
common_vendor.index.navigateTo({
|
|
|
|
|
url: "/pages/productInfo/productInfo?id=" + item.id
|
|
|
|
|
});
|
2025-05-07 09:54:33 +08:00
|
|
|
},
|
|
|
|
|
async getSearchList() {
|
|
|
|
|
const params = {
|
|
|
|
|
isRecomm: true,
|
|
|
|
|
page: 1,
|
|
|
|
|
pageSize: 66
|
|
|
|
|
};
|
|
|
|
|
const resp = await api_product.searchList(params);
|
|
|
|
|
common_vendor.index.__f__("log", "at components/choiceness/choiceness.vue:51", "resp", resp);
|
|
|
|
|
if (resp && resp.bizcode === 100) {
|
|
|
|
|
this.productList = resp.data;
|
|
|
|
|
}
|
2025-03-20 08:46:07 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
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",
|
2025-05-07 09:54:33 +08:00
|
|
|
width: "24",
|
|
|
|
|
height: "6",
|
2025-03-20 08:46:07 +08:00
|
|
|
bgColor: "#f1f6ff00"
|
|
|
|
|
}),
|
|
|
|
|
b: common_vendor.p({
|
|
|
|
|
src: "/static/common/jingxuan_right.png",
|
2025-05-07 09:54:33 +08:00
|
|
|
width: "24",
|
|
|
|
|
height: "6",
|
2025-03-20 08:46:07 +08:00
|
|
|
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"
|
|
|
|
|
}),
|
2025-05-07 09:54:33 +08:00
|
|
|
c: common_vendor.t(item.title),
|
2025-03-20 08:46:07 +08:00
|
|
|
d: common_vendor.t(item.price),
|
2025-05-07 09:54:33 +08:00
|
|
|
e: item.id,
|
|
|
|
|
f: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
|
2025-03-20 08:46:07 +08:00
|
|
|
};
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
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
|