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 * GA4 ç¨ååãªã¹ã JSON ã®åå¾ 48 * @param {...any} args 弿° 49 * @returns {string} JSON æåå 50 */ 51 getGoogleAnalyticsItemListJson(...args) { 52 return lib.vue.product.ProductListService.getGoogleAnalyticsItemListJson(args); 53 }, 54 }, 55 // ã³ã³ãã¼ãã³ãã®å¼æ° 56 props: { 57 productRankingId: { 58 type: String, 59 }, 60 displayCount: { 61 type: Number, 62 } 63 }, 64 watch: { 65 }, 66 computed: { 67 }, 68 created() { 69 }, 70 mounted() { 71 this.draw(); 72 }, 73 }; 74 g_vueManager.setComponent('top-ranking-products', component); 75 } 76}
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.