He Doesn't Know
フィルム ブラウン | 1 Day、1箱10枚
${function() {
const price = +data.price;
const compareAtPrice = +data.compare_at_price;
const compareAtPriceHtml = price < compareAtPrice
? `
`
: '';
if (!!price) {
return `
${compareAtPriceHtml}
`;
} else {
return `
`;
}
}()}
More Styles From The Collection
度数
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","-5.75","-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('');
}()}
数量
${function() {
let max = data.max || (9999) || 1;
if(max <= 0){
max = 1;
}
const isGreaterThanTen = max > 9;
const quantity = data.quantity > 0 ? data.quantity : 1;
return `
${Array(isGreaterThanTen ? 9 : max).fill().map((value, index) => {
const selected = quantity == (index + 1) ? 'selected' : '';
return `${index + 1}
`;
}).join('')}
10+
`;
}()}