1var lotteryVue = null; 2var getCouponsVue = null; 3var getCouponsSwiper = null; 4var staticUrl = GlobalConfig.staticUrl; 5 6$(function () { 7 8 // 建è¡çæ´»é¢å¸ 9 (function () { 10 if ($('#ccbGetCoupons').length) { 11 lotteryVue = new Vue({ 12 el: '#ccbGetCoupons', 13 data: { 14 staticUrl: GlobalConfig.staticUrl, 15 isShow: true, 16 isShowRules: false 17 }, 18 methods: { 19 close: function () { 20 if (this.isShowRules) { 21 this.isShowRules = false; 22 } else { 23 this.isShow = false; 24 } 25 } 26 } 27 }); 28 } 29 })(); 30 31 //æ°äººé¢å¸å¼¹çª 32 (function () { 33 if ($('#getCoupons').length) { 34 lotteryVue = new Vue({ 35 el: '#getCoupons', 36 data: { 37 staticUrl: GlobalConfig.staticUrl, 38 isShow: true, 39 isWeb: GlobalConfig.platform === 'web' 40 }, 41 created: function () { 42 }, 43 mounted: function () { 44 if (this.isWeb) { 45 // å¼¹çªbanner 46 if ($('#getCouponsSwiper').length) { 47 getCouponsSwiper = new Swiper('#getCouponsSwiper', { 48 autoplay: { 49 disableOnInteraction: false 50 }, 51 speed: 800, 52 effect: 'fadeIn', 53 loop: true, 54 pagination: { 55 el: '.pagination_banner', 56 clickable: true 57 }, 58 }); 59 } 60 } else { 61 // å¼¹çªbanner 62 if ($('#getCouponsSwiper').length) { 63 getCouponsSwiper = new Swiper('#getCouponsSwiper', { 64 autoplay: 5000, 65 loop: true, 66 pagination: '.pagination_banner', 67 autoplayDisableOnInteraction: false 68 }); 69 } 70 } 71 }, 72 methods: { 73 close: function () { 74 this.isShow = false; 75 } 76 } 77 }); 78 } 79 })(); 80 81 //ç§åå ¥å£ 82 (function () { 83 return false; 84 $('<div id="privateSphere" @mouseover="mouseover" @mouseleave="mouseleave" @click="toggleShow" v-cloak ' + 85 'style="position: fixed;z-index: 12;transition: transform .5s;cursor: pointer;right:0;" :style="style">' + 86 '<img src="' + staticUrl + 'images/temporary/home/privateSphere.png?2025022401" alt="ç§åå ¥å£"/>' + 87 // '<a :href="url" style="position: absolute;width:53%;height:38%;bottom: 3%;left:41%;"></a>' + 88 '</div>') 89 .appendTo('.container'); 90 new Vue({ 91 data: { 92 status: -1, 93 style: {}, 94 url: 'https://wwaf3a06bfd68b2970.groupcode.wshmi.com/H5/group-code?id=151567&tenantId=wwaf3a06bfd68b2970&utm_source=promo_link_5809', 95 96 isWeb: GlobalConfig.platform === 'web' 97 }, 98 created: function () { 99 this.initPos(); 100 }, 101 mounted: function () { 102 var that = this; 103 setTimeout(function () { 104 that.status = 0; 105 }, 0); 106 }, 107 methods: { 108 mouseover: function () { 109 if (!this.isWeb) { 110 return; 111 } 112 this.status = 1; 113 }, 114 mouseleave: function () { 115 if (!this.isWeb) { 116 return; 117 } 118 this.status = 0; 119 }, 120 //åå§åæ ·å¼ 121 initPos: function () { 122 var style; 123 if (this.isWeb) { 124 style = { 125 width: '355px', 126 height: '313px', 127 bottom: '180px', 128 transform: 'translate(100%,0)' 129 }; 130 } else { 131 style = { 132 width: '1.54rem', 133 height: '1.365rem', 134 bottom: 'calc(1rem + env(safe-area-inset-bottom))', 135 transform: 'translate(100%,0)' 136 }; 137 } 138 this.style = style; 139 }, 140 //忢æ¾ç¤º 141 toggleShow: function () { 142 if (this.isWeb) { 143 return; 144 } 145 this.status = this.status === 0 ? 1 : 0; 146 } 147 }, 148 watch: { 149 status: function (val) { 150 var transformX = [64, 0]; 151 this.style.transform = 'translate(' + transformX[val] + '%,0)'; 152 } 153 } 154 }).$mount('#privateSphere'); 155 })(); 156 157});
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.