From 6d49fdb33d5000eb1e1cfb778fe01c6a71446267 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期五, 30 六月 2023 11:40:57 +0800 Subject: [PATCH] no message --- public/html/signin.html | 99 ++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 89 insertions(+), 10 deletions(-) diff --git a/public/html/signin.html b/public/html/signin.html index b329d72..9a1279b 100644 --- a/public/html/signin.html +++ b/public/html/signin.html @@ -19,10 +19,27 @@ <script> document.write("<link rel=\"stylesheet\" href=\"https://img.bc.haodanku.com/cms/signin.css?t=" + (Date.now() - Date.now() % (60 * 1000 * 30)) + "\"/>"); </script> + <style> + .box + { + position:absolute; + width: 100%; + height: 100%; + background: url(https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/h5loading.gif) no-repeat fixed top; + background-size: 70px 70px; + } + .list{ + position: relative; + top: 0; + width: 100%; + } + </style> </head> <body> -<div id="app" v-cloak> + <div class="box"> + <div class="list"> +<div id="app" style="background-color:#F10F04;padding-top:0.5rem" v-cloak> <template v-if="isexplain && issource"> <div class="main"> <!--<div class="banenr" v-on:click="openDirect"> @@ -74,7 +91,7 @@ </div> </div> - <ul class="shoplist" v-if="fristOrderItems.length>0"> + <ul class="shoplist contscore" v-if="fristOrderItems.length>0"> <li v-for="(item,index) in fristOrderItems"> <img class="shop-img" v-lazy="item.itempic" v-if="item.itempic"> <img class="shop-img" src="http://img.bc.haodanku.com/haodanku-activity/1596092443" v-else> @@ -177,6 +194,8 @@ <img style="width: 6rem;" src="http://img-haodanku-com.cdn.fudaiapp.com/FhYQl6NqvQIycYZS1DM9DLBELA72" alt=""> </div> </van-overlay> +</div> +</div> </div> <script src="https://cdn.staticfile.org/jquery/2.2.4/jquery.min.js"></script> <script src="https://cdn.staticfile.org/vue/2.6.10/vue.min.js"></script> @@ -311,8 +330,72 @@ mounted: function() { this.outerHeight = $(".banenr").outerHeight(true) + $(".secret-wrapper").outerHeight(true) + $(".list-wrapper>h6").outerHeight(true) + 2; this.taobaoscroll(); + this.touch(); }, methods: { + touch:function() + { + const box = document.querySelector('.box') + const list = document.querySelector('.list'); + // 鎸変笅灞忓箷鐨勪綅缃� + let touchStartPosition = 0 + + // touchstart浜嬩欢 + box.addEventListener('touchstart', function (e) { + let touch = e.touches[0] + touchStartPosition = touch.pageY + }) + // touchmove浜嬩欢 + box.addEventListener('touchmove', function (e) { + + let touch = e.touches[0] + // 鍒楄〃鐨則op鍊肩瓑浜庡垪琛ㄧ浉瀵逛簬box鐨勫亸绉婚噺+婊戝姩鐨勮窛绂� + let pySize= list.offsetTop + touch.pageY - touchStartPosition; + if(pySize>=110) + { + return; + } + if(pySize<0) + { + return; + } + var scroll = document.getElementsByClassName('contscore') + var srollPos = $('.contscore').scrollTop(); //婊氬姩鏉¤窛椤堕儴璺濈(椤甸潰瓒呭嚭绐楀彛鐨勯珮搴�) + if(srollPos>0) + { + return; + } + list.style.top =pySize + 'px'; + // 瀹炵幇骞虫粦鐨勬粦鍔� + touchStartPosition = touch.pageY + }) + // touchend浜嬩欢 + box.addEventListener('touchend', function (e) { + let top = list.offsetTop + + if (top > 70) { + // 鍦ㄦ澶勮皟鐢ㄥ埛鏂板悗鐨勫洖璋� + console.log('鍒锋柊'); + location.reload(); + } + + if(top<0) + { + list.style.top=0; + } + if (top > 0) { + // 閫氳繃瀹氭椂鍣ㄥ钩婊戠殑灏唋ist鐨則op = 0 + let timer = setInterval(() => { + top=top-5; + list.style.top = top + 'px' + if (top <= 0) { + list.style.top=0; + clearInterval(timer) + } + },1) + } + }) + }, toSignIn: function() { if(!this.sign_info.tpwd) { return; @@ -448,14 +531,8 @@ // copy(item.tpwd, "澶嶅埗鍙d护鎴愬姛,璇锋墦寮�娣樺疂涓嬪崟"); if(!isCoupon) { // 鐩存帴澶嶅埗 - //SpaUtils.copy(item.itemtitle, false); - //this.titleCopyTipsVisible = true; - uni.postMessage({ - data: { - action: 'totb', - tburl:item.az_link - } - }) + SpaUtils.copy(item.itemtitle, false); + this.titleCopyTipsVisible = true; return; } var that = this; @@ -478,6 +555,8 @@ success: function(data) { layer.close(load); if(data.code == "1") { + if(!isCoupon) { + } that.taoToken = data.data.taoword; if(isCoupon) { //that.popupFun(".tokenbox1"); -- Gitblit v1.9.3