增加新模块

This commit is contained in:
何江明
2025-05-10 18:17:24 +08:00
parent 7e7a096151
commit 8217069b9a
427 changed files with 2069 additions and 1941 deletions
+10 -3
View File
@@ -36,7 +36,14 @@ const _sfc_main = {
};
const resp = await api_product.searchList(params);
if (resp && resp.bizcode === 100) {
this.productList = resp.data;
const data = resp.data || [];
if (data && data.length !== 0) {
data.map((item) => {
const priceN = item.price.split("-");
item.priceN = priceN[0];
});
}
this.productList = data;
}
this.productListLoading = false;
},
@@ -109,8 +116,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}),
c: common_vendor.t(item.title),
d: common_vendor.t(item.adPrice),
e: common_vendor.t(item.adPrice - item.price),
f: common_vendor.t(item.price),
e: common_vendor.t((item.adPrice - item.priceN).toFixed(2)),
f: common_vendor.t(item.priceN),
g: index,
h: common_vendor.o(($event) => $options.jumpInfo(item), index)
};
@@ -47,4 +47,8 @@
.price_lj_warp.data-v-7539d408 {
background: #CE2300FF;
color: #FFF6ED;
}
.price_ds_warp.data-v-7539d408 {
color: #FFFFFF;
margin-top: 10rpx;
}