1class ScriptOrderQuantity extends Script { 2 constructor(params) { 3 super(params) 4 this.$dom = document.querySelector(`#${this.attrId}`) 5 this.$orderUnit = this.$dom.querySelector('.unit-detail-order-quantity') 6 this.$orderNum = this.$dom.querySelector('.unit-detail-order-quantity__num') 7 this.proId = window.app.info.page.content_id 8 } 9 init() { } 10 _getOrderNum() { 11 if (window.app.info.productDetail.order > 0) this.$orderNum.innerHTML = `${window.app.info.productDetail.order}` 12 } 13 14 initShowOrderQuantity() { 15 if (!this.$orderUnit) return 16 // æ¾ç¤º 17 if (window.app.info.productDetail.config.display_order_number) { 18 this.$orderUnit.classList.remove('d-none') 19 this._getOrderNum() 20 }else { 21 // éè 22 this.$orderUnit.parentElement.classList.add('d-none') 23 } 24 } 25 26 render() { 27 this.initShowOrderQuantity() 28 } 29}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.