1// (c) 2023 W2 Co.,Ltd. 2 3/** 4 * ååã©ã³ãã³ã° 5 */ 6class SectionCommonDirTopRankingProducts { 7 constructor() { 8 } 9 /** 10 * ã»ã¯ã·ã§ã³å®è¡ 11 * @param {any} liquidParam liquidããã®ãã©ã¡ã¼ã¿ã¼ 12 */ 13 run(liquidParam) { 14 this.addComponent(liquidParam); 15 } 16 /** 17 * ã³ã³ãã¼ãã³ã追å 18 */ 19 addComponent(liquidParam) { 20 const component = { 21 // text/x-templateè¦ç´ ã®id 22 template: '#top-ranking-products', 23 data() { 24 return lib.vue.product.ProductRankingModel.create(this.productRankingId); 25 }, 26 methods: { 27 /** 28 * æç» 29 * @param {...any} args 弿° 30 */ 31 draw(...args) { 32 lib.vue.product.ProductRankingService.get(liquidParam, this, args) 33 .then((result) => { 34 // æç»å¾ã®ä»»æã®å¦çãè¨è¿° 35 }); 36 }, 37 /** 38 * æå¹ãªãã£ã³ãã¼ã³ã¢ã¤ã³ã³ãªã¹ããåå¾ 39 * @param {...any} args 弿° 40 * @returns {Array} æå¹ãªãã£ã³ãã¼ã³ã¢ã¤ã³ã³ãªã¹ã 41 */ 42 getEnabledCampaignIconList(...args) { 43 const productItem = args[0]; 44 return productItem.campaignIconList.filter(c => c.isEnabled); 45 }, 46 }, 47 // ã³ã³ãã¼ãã³ãã®å¼æ° 48 props: { 49 productRankingId: { 50 type: String, 51 }, 52 displayCount: { 53 type: Number, 54 } 55 }, 56 watch: { 57 }, 58 computed: { 59 }, 60 created() { 61 }, 62 mounted() { 63 this.draw(); 64 }, 65 }; 66 g_vueManager.setComponent('top-ranking-products', component); 67 } 68}
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.