start.blade.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="user-scalable=no" />
  7. <meta name="viewport"
  8. content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,viewport-fit=cover" />
  9. <script src="//cdn-novel.iycdm.com/static/jquery-3.4.1.min.js" type="text/javascript"></script>
  10. <script type="text/javascript" src="//statres.quickapp.cn/quickapp/js/routerinline.min.js"></script>
  11. </head>
  12. <body>
  13. <style>
  14. html,
  15. body,
  16. p,
  17. div,
  18. section {
  19. margin: 0;
  20. padding: 0;
  21. }
  22. img {
  23. width: 100%;
  24. -webkit-tap-highlight-color: transparent;
  25. }
  26. a {
  27. color: currentColor;
  28. -webkit-tap-highlight-color: transparent;
  29. }
  30. .application-content {
  31. padding: 12px;
  32. max-width: 100%;
  33. transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  34. }
  35. .application-content .content-wrap {
  36. width: 100%;
  37. margin-right: auto;
  38. margin-left: auto;
  39. }
  40. .content-card {
  41. border-radius: 5px;
  42. max-width: 100%;
  43. outline: none;
  44. text-decoration: none;
  45. transition-property: box-shadow, opacity;
  46. box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
  47. 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  48. padding: 16px;
  49. font-size: 14px;
  50. line-height: 20px;
  51. }
  52. .card-text {
  53. text-align: center;
  54. }
  55. .card-text .wechat-title {
  56. color: red;
  57. font-weight: 700;
  58. margin-bottom: 16px;
  59. font-size: 18px;
  60. }
  61. .card-text .wechat-name {
  62. color: teal;
  63. font-weight: 700;
  64. font-size: 24px;
  65. line-height: 40px;
  66. margin-bottom: 16px;
  67. }
  68. .card-text .wechat-step {
  69. color: #000;
  70. font-weight: 900;
  71. font-size: 18px;
  72. line-height: 24px;
  73. margin-bottom: 16px;
  74. }
  75. .card-text .copy-text {
  76. height: 28px;
  77. min-width: 50px;
  78. padding: 0 12px;
  79. color: #009688;
  80. caret-color: #009688;
  81. border: 1px solid #009688;
  82. background-color: #fff;
  83. border-radius: 5px;
  84. font-size: 20px;
  85. margin: 0 auto 16px;
  86. display: block;
  87. }
  88. .card-text .copy-button {
  89. height: 36px;
  90. min-width: 64px;
  91. padding: 0 16px;
  92. background-color: #ff5252;
  93. border-radius: 5px;
  94. border: 1px solid #ff5252;
  95. color: #fff;
  96. font-size: 20px;
  97. line-height: 36px;
  98. display: block;
  99. margin: 0 auto 16px;
  100. box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
  101. 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  102. }
  103. .toast-wrap {
  104. position: fixed;
  105. top: 50%;
  106. left: 50%;
  107. -webkit-transform: translate(-50%, -50%);
  108. transform: translate(-50%, -50%);
  109. padding: 5px 10px;
  110. color: #fff;
  111. font-size: 14px;
  112. text-align: center;
  113. background: rgba(0, 0, 0, 0.8);
  114. border-radius: 4px;
  115. }
  116. .hw-guide {
  117. width: 100%;
  118. height: 100%;
  119. position: absolute;
  120. top: 0;
  121. left: 0;
  122. display: none;
  123. }
  124. .hw-guide img {
  125. width: 100%;
  126. }
  127. .hw-guide .btn-know {
  128. width: 180px;
  129. height: 40px;
  130. line-height: 40px;
  131. text-align: center;
  132. border: none;
  133. outline: none;
  134. background: linear-gradient(0deg,
  135. rgba(255, 210, 0, 1),
  136. rgba(255, 239, 75, 1));
  137. border-radius: 10px;
  138. text-align: center;
  139. font-size: 14px;
  140. font-family: PingFang-SC-Bold;
  141. font-weight: bold;
  142. color: rgba(255, 93, 123, 1);
  143. position: absolute;
  144. top: 62%;
  145. left: 50%;
  146. margin-left: -90px;
  147. }
  148. .open-gif {
  149. position: absolute;
  150. background: rgba(0, 0, 0, 0.5);
  151. top: 0;
  152. left: 0;
  153. width: 100%;
  154. height: 100%;
  155. }
  156. .open-gif .open-conetent {
  157. width: 53vw;
  158. position: absolute;
  159. height: 0;
  160. top: 0;
  161. bottom: 0;
  162. left: 0;
  163. right: 0;
  164. margin: auto;
  165. background-color: #f7f5eb;
  166. border-radius: 10px;
  167. overflow: hidden;
  168. text-align: center;
  169. }
  170. .open-gif .open-conetent img {
  171. width: 36%;
  172. display: inline-block;
  173. margin-top: 12%;
  174. }
  175. .open-gif .open-conetent p {
  176. margin-top: 8%;
  177. font-size: 14px;
  178. }
  179. .error-tips{
  180. text-align: center;
  181. margin-top: 40%;
  182. }
  183. .error-tips img{
  184. width:48%;
  185. maegin-top:30%;
  186. }
  187. .error-button{
  188. width: 200px;
  189. height: 40px;
  190. background:rgba(239,89,82,1);
  191. border-radius:20px;
  192. color:#fff;
  193. font-weight: bold;
  194. font-size: 16px;
  195. line-height: 40px;
  196. text-align: center;
  197. margin-top: 14%;
  198. margin-left: auto;
  199. margin-right: auto;
  200. }
  201. .wx-button {
  202. width: 200px;
  203. height: 40px;
  204. background:rgba(239,89,82,1);
  205. border-radius:20px;
  206. color:#fff;
  207. font-weight: bold;
  208. font-size: 16px;
  209. line-height: 40px;
  210. text-align: center;
  211. margin-top: 14%;
  212. margin-left: auto;
  213. margin-right: auto;
  214. }
  215. </style>
  216. <div class="application-wrap">
  217. <main class="application-content">
  218. <p id="wechat-gzhname" style="opacity:0;width:0;height:0;">yuzhuwz</p>
  219. <div class="content-wrap" style="display: none;">
  220. <div class="error-tips"><img src="https://cdn-novel.iycdm.com/quickapp/static/net-error.jpg" /></div>
  221. <div class="error-button" onclick="location.reload();">点我继续阅读</div>
  222. @if ($show_gzh==1)
  223. <div class="wx-button clip" data-clipboard-action="copy" data-clipboard-target="#wechat-gzhname" >点击复制公众号继续阅读</div>
  224. @endif
  225. </div>
  226. </main>
  227. <div class="hw-guide">
  228. <img src="https://cdn-novel.iycdm.com/quickapp/static/guide.jpg " />
  229. <div class="btn-know">知道了</div>
  230. </div>
  231. <div class="open-gif">
  232. <div class="open-conetent">
  233. <img src="https://cdn-novel.iycdm.com/quickapp/static/gidf.gif" />
  234. <p>正在打开快应用...</p>
  235. </div>
  236. </div>
  237. </div>
  238. <script type="text/javascript">
  239. !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return function(n){var o={};function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=n,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}}(),a=o(n(1)),c=o(n(3)),u=o(n(4));function o(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function o(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return n.resolveOptions(e),n.listenClick(t),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(o,c.default),i(o,[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===r(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,u.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return s("action",t)}},{key:"defaultTarget",value:function(t){var e=s("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return s("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),o}();function s(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}t.exports=l},function(t,e,n){"use strict";var o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}}(),a=n(2),c=(o=a)&&o.__esModule?o:{default:o};var u=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return i(e,[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":r(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),e}();t.exports=u},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,a=o.length;i<a;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=n},function(t,e,n){var d=n(5),h=n(6);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!d.string(e))throw new TypeError("Second argument must be a String");if(!d.fn(n))throw new TypeError("Third argument must be a Function");if(d.node(t))return s=e,f=n,(l=t).addEventListener(s,f),{destroy:function(){l.removeEventListener(s,f)}};if(d.nodeList(t))return a=t,c=e,u=n,Array.prototype.forEach.call(a,function(t){t.addEventListener(c,u)}),{destroy:function(){Array.prototype.forEach.call(a,function(t){t.removeEventListener(c,u)})}};if(d.string(t))return o=t,r=e,i=n,h(document.body,o,r,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,r,i,a,c,u,l,s,f}},function(t,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var a=n(7);function i(t,e,n,o,r){var i=function(e,n,t,o){return function(t){t.delegateTarget=a(t.target,n),t.delegateTarget&&o.call(e,t)}}.apply(this,arguments);return t.addEventListener(n,i,r),{destroy:function(){t.removeEventListener(n,i,r)}}}t.exports=function(t,e,n,o,r){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return i(t,e,n,o,r)}))}},function(t,e){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}}])});
  240. </script>
  241. <script type="text/javascript">
  242. var clipboard = new ClipboardJS('.clip');
  243. clipboard.on('success', function (e) {
  244. window.location.href="weixin://dl/officialaccounts";
  245. });
  246. </script>
  247. <script type="text/javascript">
  248. //获取url参数
  249. function getQueryString(name) {
  250. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
  251. var r = decodeURIComponent(window.location.search)
  252. .substr(1)
  253. .match(reg);
  254. if (r != null) return unescape(r[2]);
  255. return null;
  256. }
  257. //添加input
  258. function clipbroad() {
  259. }
  260. //全局变量
  261. var glob = {
  262. ua: window.navigator.userAgent.toLocaleLowerCase(),
  263. isHuaWei: /huawei|honor/.test(window.navigator.userAgent.toLowerCase()),
  264. isOpenApp: false,
  265. obAvailable: false //机型是否支持快应用
  266. };
  267. //快应用配置
  268. var QYY = {
  269. isWx: /micromessenger/.test(glob.ua), //是否微信环境
  270. isIos: /iphone|ipod|ipad/.test(glob.ua), //是否是ios
  271. entry: "views/Reader", //拉起快应用阅读器页面
  272. packName: "{{ $package }}", //快应用包名
  273. bid: "{{$hash_bid}}", //书籍id
  274. cid: "{{$cid}}", //章节id
  275. send_order_id: "{{$send_order_id}}",//派单ID
  276. };
  277. //判断机型是否支持快应用
  278. try {
  279. channelReady(function (bAvailable) {
  280. glob.obAvailable = bAvailable;
  281. });
  282. } catch (e) {
  283. glob.obAvailable = false;
  284. }
  285. //显示公众号落地页
  286. function showH5Page() {
  287. var time = QYY.isIos ? 0 : 5000;
  288. //2S后自动刷新
  289. /* setTimeout(function () {
  290. if(!getQueryString('isResh')){
  291. location.href= window.location.href + '?isResh=1'
  292. }
  293. },1700) */
  294. //5秒显示失败页面
  295. setTimeout(function () {
  296. $(".content-wrap").show();
  297. showPop(false);
  298. }, time);
  299. }
  300. //是否显示拉起快应用弹窗
  301. function showPop(show) {
  302. if (show) {
  303. $(".open-gif").show();
  304. } else {
  305. $(".open-gif").hide();
  306. }
  307. }
  308. //打开快应用逻辑
  309. function openQyy() {
  310. var parmas = {
  311. bid: QYY.bid,
  312. chapter_id: QYY.cid,
  313. send_order_id: QYY.send_order_id
  314. };
  315. try {
  316. if(QYY.isWx){
  317. appRouter(QYY.packName, "/" + QYY.entry, parmas);
  318. }else{
  319. routerAHap(parmas);
  320. //appRouter(QYY.packName, "/" + QYY.entry, parmas);
  321. }
  322. //尝试直接拉起
  323. } catch (e) {
  324. //唤醒失败 尝试url sheme唤醒
  325. try {
  326. appRouter(QYY.packName, "/" + QYY.entry, parmas);
  327. } catch (er) {
  328. routerAHap(parmas);
  329. }
  330. }
  331. }
  332. //URL唤醒快应用
  333. function routerAHap(data) {
  334. var parmas = $.param(data);
  335. var ohapa = document.createElement("a");
  336. ohapa.href = "https://hapjs.org/app/" + QYY.packName + "/" + QYY.entry + "?" + parmas;
  337. ohapa.setAttribute(
  338. "style",
  339. "position: absolute;left: -1000rem;height: 1rem;width: 1rem;overflow: hidden"
  340. );
  341. document.body.appendChild(ohapa);
  342. ohapa.click();
  343. }
  344. //初始化
  345. function startDeep() {
  346. showH5Page();
  347. !QYY.isIos && openQyy();
  348. }
  349. //华为h5流程
  350. var hwPage = {
  351. init: function () {
  352. this.lisen();
  353. $(".hw-guide").css("height", $(".hw-guide").width() * 1.778);
  354. $(".hw-guide").show();
  355. },
  356. lisen: function () {
  357. $(".btn-know").on("click", function () {
  358. $(".hw-guide").hide();
  359. showPop(true);
  360. startDeep();
  361. });
  362. }
  363. };
  364. $(function () {
  365. //页面流程开始
  366. //处理弹出框的高度
  367. $(".open-conetent").height($(".open-conetent").width() * 0.75);
  368. //华为手机显示提示页
  369. // if (glob.isHuaWei) {
  370. // setTimeout(function () {
  371. // hwPage.init();
  372. // showPop(false);
  373. // }, 3000);
  374. // } else {}
  375. setTimeout(function(){
  376. startDeep();
  377. },400)
  378. });
  379. </script>
  380. </body>
  381. </html>