コールドウーロン ブラウン | 1 Month、1箱2枚
¥2,190.00
${function() {
const price = +data.price;
const compareAtPrice = +data.compare_at_price;
const compareAtPriceHtml = price < compareAtPrice
? ` `
: '';
if (!!price) {
return `
${compareAtPriceHtml}
`;
} else {
return `
`;
}
}()}
度数
Please select
${data.targetOption || ''}
${function() {
const variants = data.originData.product.variants;
const currentOptionName = "\u5ea6\u6570";
const currentPosition = 'option' + 1;
const values = ["0.00\uff08\u5ea6\u306a\u3057\uff09","-1.00","-1.25","-1.50","-1.75","-2.00","-2.25","-2.50","-2.75","-3.00","-3.25","-3.50","-3.75","-4.00","-4.25","-4.50","-4.75","-5.00","-5.25","-5.50","-6.00","-6.50","-7.00","-7.50","-8.00"] || [];
return values.map(value => {
let variant = variants.find(item => {
let temp = false
if (item.option1 && !item.option2) {
temp = item.option1 === value
}
if (item.option1 && item.option2) {
temp = (item.option1 === value && item.option2 === value)
}
return temp
})
let soldOut = false
if (variant) {
soldOut = !(variant?.available && variant?.available_quantity > 0)
}
const disabled = data.originData.name == currentOptionName && data.originData.disabledValues.includes(value) ? 'disabled' : '';
let selected = '';
if (disabled != 'disabled' && data.originData.selectedValues[currentOptionName] == value) {
selected = 'selected';
}
return `
${value}${soldOut ?'Out of Stock' : ''}
`;
}).join('');
}()}
数量
${index + 1}
`;
}).join('')}
10+
`;
}()}