From 204c2b477477f50f1b7e9383eb1212441fa08f11 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期三, 05 七月 2023 11:34:19 +0800 Subject: [PATCH] no message --- public/html/fengqiangbang.html | 130 ++++++++++++++++++++++++++---------------- 1 files changed, 80 insertions(+), 50 deletions(-) diff --git a/public/html/fengqiangbang.html b/public/html/fengqiangbang.html index 0ba3c93..afa67c8 100644 --- a/public/html/fengqiangbang.html +++ b/public/html/fengqiangbang.html @@ -59,7 +59,7 @@ a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-color:rgba(0,0,0,0);tap-highlight-color:transparent;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}html{font-family:Arial,PingFang SC,-apple-system,BlinkMacSystemFont,Segoe UI,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none} .list-container{ position: relative; - padding-top: 10px; + padding-top: 0.7rem; } .top-bg{ width: 100%;position: absolute;top:0; @@ -288,24 +288,45 @@ 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%; } + .reloadbg + { + display: flex; + justify-content: center; + height: 1.3rem; + } + .appback + { + height: 0.5rem; + position: absolute; + left: 0.4rem; + z-index: 999; + top:0.2rem; + } + .appback-img + { + height: 100%; + } </style> </head> <body> <div class="box"> - - <div class="list"> - - + + <div class="list" id="fqList"> + <!-- <div class="appback"> + <image @click="topBack()" class="appback-img" src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/h5return_backIcon.png"></image> + </div> --> <img src="https://jpdy.ffquan.cn/static/header_bg.12963398.png" class="top-bg" alt=""> - <div class="list-container" id="fqList"> + <div class="list-container"> <div v-if="loading" class="loading"> <span>鍔犺浇涓�...</span> </div> @@ -421,9 +442,6 @@ </div> </div> </div> - - - </div> </div> </div> @@ -454,7 +472,7 @@ ss:0, cid:0, type:1, - //posturl:'http://dfg.shop.com', + //posturl:'http://dfg.shop.com', // posturl:'http://dfgapp.ushopvip.com', posturl:'http://appapitest.ushopvip.com', platlist:[ @@ -488,6 +506,14 @@ console.log("鍒板簳浜�111"); }, methods:{ + topBack:function() + { + uni.postMessage({ + data: { + action: 'back' + } + }); + }, getItemDetail:function(items) { var _this = this; @@ -509,58 +535,62 @@ touch:function() { const box = document.querySelector('.box') - const list = document.querySelector('.list') + const list = document.querySelector('.list'); // 鎸変笅灞忓箷鐨勪綅缃� let touchStartPosition = 0 // touchstart浜嬩欢 box.addEventListener('touchstart', function (e) { - let touch = e.touches[0] - touchStartPosition = touch.pageY - // console.log(touchStartPosition) + 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<0) - { - return; - } - var scroll = document.getElementsByClassName('contscore') - var srollPos = $('.contscore').scrollTop(); //婊氬姩鏉¤窛椤堕儴璺濈(椤甸潰瓒呭嚭绐楀彛鐨勯珮搴�) - if(srollPos>0) - { - return; - } - list.style.top =pySize + 'px'; - // 瀹炵幇骞虫粦鐨勬粦鍔� - touchStartPosition = touch.pageY + + 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) + let top = list.offsetTop + if (top > 70) { + // 鍦ㄦ澶勮皟鐢ㄥ埛鏂板悗鐨勫洖璋� + console.log('鍒锋柊'); + location.reload(); } - },1) - } + 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) + } }) }, scrollLoad: function() { -- Gitblit v1.9.3