{"title":"Apatite","description":"","products":[{"product_id":"2-33-ct-apatite-from-madagascar","title":"Apatite 2.33 Carats","description":"\u003cbody\u003e\n\n\n    \n        \u003cmeta charset=\"utf-8\"\u003e\n        \u003cstyle\u003e\n            .el-row {\n                box-sizing: border-box;\n                display: flex;\n                flex-wrap: wrap;\n                position: relative;\n            }\n\n            .el-col {\n                display: flex;\n                padding: 7px 5px;\n                align-items: flex-end;\n                box-sizing: border-box;\n                flex: 0 0 100%;\n                max-width: 100%;\n            }\n\n            @media screen and (min-width: 768px) {\n                .el-col {\n                    flex: 0 0 100%;\n                    max-width: 100%;\n                }\n            }\n\n            .info-tab {\n                display: flex;\n                flex-wrap: wrap;\n                margin: 5px 0 -5px;\n                color: #0000005e;\n                font-size: var(--font15);\n                font-family: var(--font-popMedium);\n            }\n\n            .info-tab span {\n                padding: 0 15px 0 0;\n                box-sizing: border-box;\n                line-height: 34px;\n                cursor: pointer;\n            }\n\n            .info-tab span.active {\n                color: #000;\n            }\n\n            .info-list-box {\n                margin-top: 10px;\n                border: solid rgba(157, 157, 157, .3);\n                border-width: 0 1px 1px 0;\n                line-height: 20px;\n                font-size: 14px;\n            }\n\n            .info-list-box .el-col {\n                display: flex;\n                padding: 0;\n                align-items: center;\n                border: solid rgba(157, 157, 157, .3);\n                border-width: 1px 0 0 1px;\n                box-sizing: border-box;\n            }\n\n            .info-list-box .el-col:nth-child(2n):nth-last-child(2) {\n                position: relative;\n            }\n\n            .info-list-box .el-col:nth-child(2n):nth-last-child(2)::after {\n                position: absolute;\n                content: \"\";\n                bottom: -1px;\n                left: -1px;\n                right: 0;\n                height: 1px;\n                background-color: rgba(157, 157, 157, .3);\n            }\n\n            .info-list-box label,\n            .info-list-box span {\n                padding: 7px 12px;\n                box-sizing: border-box;\n            }\n\n            .info-list-box label {\n                display: flex;\n                border-right: 1px solid rgba(157, 157, 157, .3);\n                align-items: center;\n                width: 120px;\n                height: 100%;\n                background: #F6F7FA;\n            }\n\n            .info-list-box span {\n                flex: 1;\n                word-break: break-all;\n            }\n        \u003c\/style\u003e\n    \n    \n        \u003cdiv\u003e\n            \u003cdiv id=\"lotNumber\"\u003eId: \u003c\/div\u003e\n            \u003cdiv class=\"el-row info-list-box\" id=\"infoListBox\"\u003e\u003c\/div\u003e\n        \u003c\/div\u003e\n\n        \u003cscript type=\"text\/javascript\"\u003e\n            \/\/ 需要显示的label字段，跟对应的参数\n            const labelList = [\n                { label: 'Stone type', prop: 'stoneType' },\n                { label: 'Dimensions', prop: 'dimensions' },\n                { label: 'Weight', prop: 'weight' },\n                { label: 'Shape', prop: 'shape' },\n                { label: 'Origin', prop: 'origin' },\n                { label: 'Color', prop: 'color' },\n                { label: 'Enhancement', prop: 'enhancement' }\n            ];\n            \/\/ 后台返回的对应值\n            const valList = \n        {\"stoneType\":\"Apatite\",\"dimensions\":\"L:9.04 W:7.04 H:5.27\",\"weight\":\"2.33\",\"shape\":\"Oval\",\"origin\":\"Madagascar\",\"color\":\"Greenish Blue\",\"enhancement\":\"Heat Treated\",\"clarity\":\"Very Slightly Included\",\"colorIntensity\":\"Intense\",\"cuttingStyle\":\"Faceted\",\"cut\":\"Mixed Brilliant\"};\n            \/\/ 获取DOM元素\n            const lotNumber = document.getElementById('lotNumber');\n            const infoListBox = document.getElementById('infoListBox');\n            \/\/ 更新信息列表\n            function updateInfoList(index) {\n                \/\/ 清空现有信息\n                infoListBox.innerHTML = '';\n                \/\/ 根据labelList创建信息项\n                labelList.forEach(item =\u003e {\n                    const colDiv = document.createElement('div');\n                    colDiv.className = 'el-col';\n                    const label = document.createElement('label');\n                    label.textContent = item.label;\n                    const span = document.createElement('span');\n                    span.textContent = valList[item.prop] || '';\n                    colDiv.appendChild(label);\n                    colDiv.appendChild(span);\n                    infoListBox.appendChild(colDiv);\n                });\n            }\n            \/\/ Lot Number\n            function getLotNumber() {\n                const span = document.createElement('span');\n                span.textContent = `JG081_4`;\n                lotNumber.appendChild(span);\n            }\n            \/\/ 初始化页面\n            function init() {\n                getLotNumber();\n                \/\/ 显示第一个标签的数据\n                updateInfoList(0);\n            }\n            \/\/ 页面加载时初始化\n            init();\n        \u003c\/script\u003e\n    \n\n        \u003c\/body\u003e","brand":"Jerry Gil \u0026 Company","offers":[{"title":"Default Title","offer_id":52908866273555,"sku":"JG081_4","price":233.0,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0254\/9622\/3819\/files\/image-1_d50853f0-01e6-4e85-892a-0fa9235448b0.jpg?v=1768987120"},{"product_id":"3-35-ct-tw-apatite-pair-from-madagascar","title":"Apatite Pair 3.35 Carats","description":"\u003cbody\u003e\n\n\n    \n        \u003cmeta charset=\"utf-8\"\u003e\n        \u003cstyle\u003e\n            .el-row {\n                box-sizing: border-box;\n                display: flex;\n                flex-wrap: wrap;\n                position: relative;\n            }\n\n            .el-col {\n                display: flex;\n                padding: 7px 5px;\n                align-items: flex-end;\n                box-sizing: border-box;\n                flex: 0 0 100%;\n                max-width: 100%;\n            }\n\n            @media screen and (min-width: 768px) {\n                .el-col {\n                    flex: 0 0 100%;\n                    max-width: 100%;\n                }\n            }\n\n            .info-tab {\n                display: flex;\n                flex-wrap: wrap;\n                margin: 5px 0 -5px;\n                color: #0000005e;\n                font-size: var(--font15);\n                font-family: var(--font-popMedium);\n            }\n\n            .info-tab span {\n                padding: 0 15px 0 0;\n                box-sizing: border-box;\n                line-height: 34px;\n                cursor: pointer;\n            }\n\n            .info-tab span.active {\n                color: #000;\n            }\n\n            .info-list-box {\n                margin-top: 10px;\n                border: solid rgba(157, 157, 157, .3);\n                border-width: 0 1px 1px 0;\n                line-height: 20px;\n                font-size: 14px;\n            }\n\n            .info-list-box .el-col {\n                display: flex;\n                padding: 0;\n                align-items: center;\n                border: solid rgba(157, 157, 157, .3);\n                border-width: 1px 0 0 1px;\n                box-sizing: border-box;\n            }\n\n            .info-list-box .el-col:nth-child(2n):nth-last-child(2) {\n                position: relative;\n            }\n\n            .info-list-box .el-col:nth-child(2n):nth-last-child(2)::after {\n                position: absolute;\n                content: \"\";\n                bottom: -1px;\n                left: -1px;\n                right: 0;\n                height: 1px;\n                background-color: rgba(157, 157, 157, .3);\n            }\n\n            .info-list-box label,\n            .info-list-box span {\n                padding: 7px 12px;\n                box-sizing: border-box;\n            }\n\n            .info-list-box label {\n                display: flex;\n                border-right: 1px solid rgba(157, 157, 157, .3);\n                align-items: center;\n                width: 120px;\n                height: 100%;\n                background: #F6F7FA;\n            }\n\n            .info-list-box span {\n                flex: 1;\n                word-break: break-all;\n            }\n        \u003c\/style\u003e\n    \n    \n        \u003cdiv\u003e\n            \u003cdiv id=\"lotNumber\"\u003eId: \u003c\/div\u003e\n            \u003cdiv class=\"info-tab\" id=\"infoTab\"\u003e\u003c\/div\u003e\n            \u003cdiv class=\"el-row info-list-box\" id=\"infoListBox\"\u003e\u003c\/div\u003e\n        \u003c\/div\u003e\n\n        \u003cscript type=\"text\/javascript\"\u003e\n            \/\/ 需要显示的label字段，跟对应的参数\n            const labelList = [\n                { label: 'Stone type', prop: 'stoneType' },\n                { label: 'Dimensions', prop: 'dimensions' },\n                { label: 'Weight', prop: 'weight' },\n                { label: 'Shape', prop: 'shape' },\n                { label: 'Origin', prop: 'origin' },\n                { label: 'Color', prop: 'color' },\n                { label: 'Enhancement', prop: 'enhancement' }\n            ];\n            \/\/ 后台返回的对应值\n            const valList = [\n        {\"stoneType\":\"Apatite\",\"dimensions\":\"L:8.97 W:6.79 H:3.84\",\"weight\":\"1.60\",\"shape\":\"Oval\",\"origin\":\"Madagascar\",\"color\":\"Greenish Blue\",\"enhancement\":\"Heat Treated\",\"clarity\":\"Very Very Slightly Included\",\"colorIntensity\":\"Medium Intense\",\"cuttingStyle\":\"Faceted\",\"cut\":\"Mixed Brilliant\"},{\"stoneType\":\"Apatite\",\"dimensions\":\"L:9.06 W:6.92 H:4.16\",\"weight\":\"1.75\",\"shape\":\"Oval\",\"origin\":\"Madagascar\",\"color\":\"Greenish Blue\",\"enhancement\":\"Heat Treated\",\"clarity\":\"Very Very Slightly Included\",\"colorIntensity\":\"Medium Intense\",\"cuttingStyle\":\"Faceted\",\"cut\":\"Mixed Brilliant\"}\n];\n            \/\/ 获取DOM元素\n            const lotNumber = document.getElementById('lotNumber');\n            const infoTab = document.getElementById('infoTab');\n            const infoListBox = document.getElementById('infoListBox');\n            \/\/ 创建标签\n            function createTabs() {\n                \/\/ 清空现有标签\n                infoTab.innerHTML = '';\n                \/\/ 根据valList创建标签\n                valList.forEach((item, index) =\u003e {\n                    const span = document.createElement('span');\n                    span.textContent = `Stone ${index + 1}`;\n                    if (index === 0) {\n                        span.classList.add('active');\n                    }\n                    \/\/ 添加点击事件\n                    span.addEventListener('click', function() {\n                        \/\/ 移除所有标签的active类\n                        document.querySelectorAll('.info-tab span').forEach(tab =\u003e {\n                            tab.classList.remove('active');\n                        });\n                        \/\/ 给当前点击的标签添加active类\n                        this.classList.add('active');\n                        \/\/ 更新信息列表\n                        updateInfoList(index);\n                    });\n                    infoTab.appendChild(span);\n                });\n            }\n            \/\/ 更新信息列表\n            function updateInfoList(index) {\n                \/\/ 清空现有信息\n                infoListBox.innerHTML = '';\n                \/\/ 获取当前数据\n                const currentData = valList[index];\n                \/\/ 根据labelList创建信息项\n                labelList.forEach(item =\u003e {\n                    const colDiv = document.createElement('div');\n                    colDiv.className = 'el-col';\n                    const label = document.createElement('label');\n                    label.textContent = item.label;\n                    const span = document.createElement('span');\n                    span.textContent = currentData[item.prop] || '';\n                    colDiv.appendChild(label);\n                    colDiv.appendChild(span);\n                    infoListBox.appendChild(colDiv);\n                });\n            }\n            \/\/ Lot Number\n            function getLotNumber() {\n                const span = document.createElement('span');\n                span.textContent = `JG081_1`;\n                lotNumber.appendChild(span);\n            }\n            \/\/ 初始化页面\n            function init() {\n                getLotNumber();\n                \/\/ 创建标签\n                createTabs();\n                \/\/ 显示第一个标签的数据\n                updateInfoList(0);\n            }\n            \/\/ 页面加载时初始化\n            init();\n        \u003c\/script\u003e\n    \n\n        \u003c\/body\u003e","brand":"Jerry Gil \u0026 Company","offers":[{"title":"Default Title","offer_id":52908870140179,"sku":"JG081_1","price":419.0,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0254\/9622\/3819\/files\/image-1_c18e719a-5bd0-4a8c-8271-1c0bcc7e9f5c.jpg?v=1768045083"},{"product_id":"3-49-ct-tw-apatite-pair-from-madagascar","title":"Apatite Pair 3.49 Carats","description":"\u003cbody\u003e\n\n\n    \n        \u003cmeta charset=\"utf-8\"\u003e\n        \u003cstyle\u003e\n            .el-row {\n                box-sizing: border-box;\n                display: flex;\n                flex-wrap: wrap;\n                position: relative;\n            }\n\n            .el-col {\n                display: flex;\n                padding: 7px 5px;\n                align-items: flex-end;\n                box-sizing: border-box;\n                flex: 0 0 100%;\n                max-width: 100%;\n            }\n\n            @media screen and (min-width: 768px) {\n                .el-col {\n                    flex: 0 0 100%;\n                    max-width: 100%;\n                }\n            }\n\n            .info-tab {\n                display: flex;\n                flex-wrap: wrap;\n                margin: 5px 0 -5px;\n                color: #0000005e;\n                font-size: var(--font15);\n                font-family: var(--font-popMedium);\n            }\n\n            .info-tab span {\n                padding: 0 15px 0 0;\n                box-sizing: border-box;\n                line-height: 34px;\n                cursor: pointer;\n            }\n\n            .info-tab span.active {\n                color: #000;\n            }\n\n            .info-list-box {\n                margin-top: 10px;\n                border: solid rgba(157, 157, 157, .3);\n                border-width: 0 1px 1px 0;\n                line-height: 20px;\n                font-size: 14px;\n            }\n\n            .info-list-box .el-col {\n                display: flex;\n                padding: 0;\n                align-items: center;\n                border: solid rgba(157, 157, 157, .3);\n                border-width: 1px 0 0 1px;\n                box-sizing: border-box;\n            }\n\n            .info-list-box .el-col:nth-child(2n):nth-last-child(2) {\n                position: relative;\n            }\n\n            .info-list-box .el-col:nth-child(2n):nth-last-child(2)::after {\n                position: absolute;\n                content: \"\";\n                bottom: -1px;\n                left: -1px;\n                right: 0;\n                height: 1px;\n                background-color: rgba(157, 157, 157, .3);\n            }\n\n            .info-list-box label,\n            .info-list-box span {\n                padding: 7px 12px;\n                box-sizing: border-box;\n            }\n\n            .info-list-box label {\n                display: flex;\n                border-right: 1px solid rgba(157, 157, 157, .3);\n                align-items: center;\n                width: 120px;\n                height: 100%;\n                background: #F6F7FA;\n            }\n\n            .info-list-box span {\n                flex: 1;\n                word-break: break-all;\n            }\n        \u003c\/style\u003e\n    \n    \n        \u003cdiv\u003e\n            \u003cdiv id=\"lotNumber\"\u003eId: \u003c\/div\u003e\n            \u003cdiv class=\"info-tab\" id=\"infoTab\"\u003e\u003c\/div\u003e\n            \u003cdiv class=\"el-row info-list-box\" id=\"infoListBox\"\u003e\u003c\/div\u003e\n        \u003c\/div\u003e\n\n        \u003cscript type=\"text\/javascript\"\u003e\n            \/\/ 需要显示的label字段，跟对应的参数\n            const labelList = [\n                { label: 'Stone type', prop: 'stoneType' },\n                { label: 'Dimensions', prop: 'dimensions' },\n                { label: 'Weight', prop: 'weight' },\n                { label: 'Shape', prop: 'shape' },\n                { label: 'Origin', prop: 'origin' },\n                { label: 'Color', prop: 'color' },\n                { label: 'Enhancement', prop: 'enhancement' }\n            ];\n            \/\/ 后台返回的对应值\n            const valList = [\n        {\"stoneType\":\"Apatite\",\"dimensions\":\"L:8.78 W:6.84 H:4.18\",\"weight\":\"1.68\",\"shape\":\"Oval\",\"origin\":\"Madagascar\",\"color\":\"Greenish Blue\",\"enhancement\":\"Heat Treated\",\"clarity\":\"Very Very Slightly Included\",\"colorIntensity\":\"Intense\",\"cuttingStyle\":\"Faceted\",\"cut\":\"Mixed Brilliant\"},{\"stoneType\":\"Apatite\",\"dimensions\":\"L:8.80 W:7.01 H:4.31\",\"weight\":\"1.81\",\"shape\":\"Oval\",\"origin\":\"Madagascar\",\"color\":\"Greenish Blue\",\"enhancement\":\"Heat Treated\",\"clarity\":\"Very Very Slightly Included\",\"colorIntensity\":\"Intense\",\"cuttingStyle\":\"Faceted\",\"cut\":\"Mixed Brilliant\"}\n];\n            \/\/ 获取DOM元素\n            const lotNumber = document.getElementById('lotNumber');\n            const infoTab = document.getElementById('infoTab');\n            const infoListBox = document.getElementById('infoListBox');\n            \/\/ 创建标签\n            function createTabs() {\n                \/\/ 清空现有标签\n                infoTab.innerHTML = '';\n                \/\/ 根据valList创建标签\n                valList.forEach((item, index) =\u003e {\n                    const span = document.createElement('span');\n                    span.textContent = `Stone ${index + 1}`;\n                    if (index === 0) {\n                        span.classList.add('active');\n                    }\n                    \/\/ 添加点击事件\n                    span.addEventListener('click', function() {\n                        \/\/ 移除所有标签的active类\n                        document.querySelectorAll('.info-tab span').forEach(tab =\u003e {\n                            tab.classList.remove('active');\n                        });\n                        \/\/ 给当前点击的标签添加active类\n                        this.classList.add('active');\n                        \/\/ 更新信息列表\n                        updateInfoList(index);\n                    });\n                    infoTab.appendChild(span);\n                });\n            }\n            \/\/ 更新信息列表\n            function updateInfoList(index) {\n                \/\/ 清空现有信息\n                infoListBox.innerHTML = '';\n                \/\/ 获取当前数据\n                const currentData = valList[index];\n                \/\/ 根据labelList创建信息项\n                labelList.forEach(item =\u003e {\n                    const colDiv = document.createElement('div');\n                    colDiv.className = 'el-col';\n                    const label = document.createElement('label');\n                    label.textContent = item.label;\n                    const span = document.createElement('span');\n                    span.textContent = currentData[item.prop] || '';\n                    colDiv.appendChild(label);\n                    colDiv.appendChild(span);\n                    infoListBox.appendChild(colDiv);\n                });\n            }\n            \/\/ Lot Number\n            function getLotNumber() {\n                const span = document.createElement('span');\n                span.textContent = `JG081_2`;\n                lotNumber.appendChild(span);\n            }\n            \/\/ 初始化页面\n            function init() {\n                getLotNumber();\n                \/\/ 创建标签\n                createTabs();\n                \/\/ 显示第一个标签的数据\n                updateInfoList(0);\n            }\n            \/\/ 页面加载时初始化\n            init();\n        \u003c\/script\u003e\n    \n\n        \u003c\/body\u003e","brand":"Jerry Gil \u0026 Company","offers":[{"title":"Default Title","offer_id":52908870172947,"sku":"JG081_2","price":436.0,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0254\/9622\/3819\/files\/image-1_5253ec2f-2a7a-4bb5-a083-e670b429f435.jpg?v=1768045085"}],"url":"https:\/\/www.jerrygil.com\/collections\/apatite\/2-to-3-carats.oembed","provider":"Jerry Gil \u0026 Company","version":"1.0","type":"link"}