小程序产品页面优化,及添加忽略文件

This commit is contained in:
Dev
2026-09-21 16:27:14 +08:00
parent 8591e5e99f
commit bd24456aa3
24 changed files with 513 additions and 768 deletions
@@ -1,5 +1,5 @@
Component({
externalClasses: ['wr-sold-out', 'wr-class'],
externalClasses: ['wr-class'],
options: { multipleSlots: true },
@@ -9,10 +9,6 @@ Component({
type: Boolean,
value: false,
},
jumpArray: {
type: Array,
value: [],
},
isStock: {
type: Boolean,
value: true,
@@ -21,46 +17,17 @@ Component({
type: Boolean,
value: false,
}, // 是否开启按钮插槽
shopCartNum: {
type: Number, // 购物车气泡数量
},
buttonType: {
type: Number,
value: 0,
},
minDiscountPrice: {
type: String,
value: '',
},
minSalePrice: {
type: String,
value: '',
},
},
data: {
fillPrice: false,
},
methods: {
toAddCart() {
const { isStock, soldout } = this.properties;
if (soldout || !isStock) return;
// this.triggerEvent('toAddCart');
},
toBuyNow(e) {
const { isStock, soldout } = this.properties;
if (soldout || !isStock) return;
this.triggerEvent('toBuyNow', e);
},
toNav(e) {
const { url } = e.currentTarget.dataset;
return this.triggerEvent('toNav', {
e,
url,
});
},
},
});