营销:适配商城装修组件【拼团】(待重写)

This commit is contained in:
owen
2023-12-01 21:00:39 +08:00
parent cfc04d9c82
commit 8755d64683
4 changed files with 98 additions and 31 deletions
@@ -100,12 +100,12 @@
// 购买按钮样式
const buyStyle = computed(() => {
let btnBuy = props.data.btnBuy;
if (btnBuy.type === 'text') {
if (btnBuy?.type === 'text') {
return {
background: `linear-gradient(to right, ${btnBuy.bgBeginColor}, ${btnBuy.bgEndColor})`,
};
}
if (btnBuy.type === 'img') {
if (btnBuy?.type === 'img') {
return {
width: '54rpx',
height: '54rpx',