mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-07 20:48:09 +08:00
fix: 样式扩展增加显示商品属性的方法
This commit is contained in:
parent
7cbf6e6163
commit
8fe550f83f
@ -45,4 +45,12 @@ $(function () {
|
|||||||
window.showTableImage = function (image, circle, size, title) {
|
window.showTableImage = function (image, circle, size, title) {
|
||||||
return $.layTable.showImage(image, circle, size, title);
|
return $.layTable.showImage(image, circle, size, title);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 显示商品规格
|
||||||
|
window.showSpec = function (spec) {
|
||||||
|
let names = [];
|
||||||
|
return layui.each(spec.split(';;'), function (i, vv) {
|
||||||
|
names.push(vv.split('::').pop());
|
||||||
|
}), names.join(' ');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
@ -45,4 +45,12 @@ $(function () {
|
|||||||
window.showTableImage = function (image, circle, size, title) {
|
window.showTableImage = function (image, circle, size, title) {
|
||||||
return $.layTable.showImage(image, circle, size, title);
|
return $.layTable.showImage(image, circle, size, title);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 显示商品规格
|
||||||
|
window.showSpec = function (spec) {
|
||||||
|
let names = [];
|
||||||
|
return layui.each(spec.split(';;'), function (i, vv) {
|
||||||
|
names.push(vv.split('::').pop());
|
||||||
|
}), names.join(' ');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
Loading…
x
Reference in New Issue
Block a user