|
@@ -207,22 +207,6 @@
|
|
|
<div class="application-wrap">
|
|
|
<main class="application-content">
|
|
|
<div class="content-wrap" style="display: none;">
|
|
|
- <!-- <div class="content-card">
|
|
|
- <div class="card-text">
|
|
|
- <p class="wechat-title">请认准官方唯一认证公众号:</p>
|
|
|
- <p class="wechat-name">{{$gzh_name}}</p>
|
|
|
- <p class="wechat-step">
|
|
|
- 打开微信 → 右上角+号 → 添加朋友 → 公众号
|
|
|
- </p>
|
|
|
- <button class="copy-text" type="button">
|
|
|
- {{$gzh_code}}
|
|
|
- </button>
|
|
|
- <button type="button" class="copy-button" id="copy" data-clipboard-text="">
|
|
|
- 一键复制公众号
|
|
|
- </button>
|
|
|
- <img src="https://cdn-novel.iycdm.com/quickapp/static/1.gif" />
|
|
|
- </div>
|
|
|
- </div> -->
|
|
|
<div class="error-tips">对不起,暂时无法唤醒快应用!</div>
|
|
|
</div>
|
|
|
</main>
|
|
@@ -236,10 +220,7 @@
|
|
|
<p>正在打开快应用...</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <p class="toast-wrap" style="display: none"></p>
|
|
|
</div>
|
|
|
-<script type="text/javascript" src="https://cdn-novel.iycdm.com/quickapp/static/clipboard.js" async="async">
|
|
|
-</script>
|
|
|
<script type="text/javascript" src="https://statres.quickapp.cn/quickapp/js/routerinline.min.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
//获取url参数
|
|
@@ -251,40 +232,6 @@
|
|
|
if (r != null) return unescape(r[2]);
|
|
|
return null;
|
|
|
}
|
|
|
- //生成三位随机数
|
|
|
- function ranMath() {
|
|
|
- return Math.random().toString(36).substr(2, 3).toUpperCase();
|
|
|
- }
|
|
|
- //没有打开快应用注册h5事件及其方法
|
|
|
- var wePage = {
|
|
|
- showToast: function (text) {
|
|
|
- $(".toast-wrap")
|
|
|
- .text(text)
|
|
|
- .show();
|
|
|
- setTimeout(function () {
|
|
|
- $(".toast-wrap").hide();
|
|
|
- }, 2000);
|
|
|
- },
|
|
|
- lisen: function () {
|
|
|
- var _self = this;
|
|
|
- $(".copy-button").on("click", function () {
|
|
|
- var clip = new ClipboardJS("#copy");
|
|
|
- clip.on("success", function (e) {
|
|
|
- _self.showToast("复制成功");
|
|
|
- });
|
|
|
-
|
|
|
- clip.on("error", function (e) {
|
|
|
- _self.showToast("复制失败");
|
|
|
- });
|
|
|
- });
|
|
|
- var code = '{{$gzh_code}}' + '/' + ranMath();
|
|
|
- $('.copy-text').text(code);
|
|
|
- $('.copy-button').attr('data-clipboard-text', code);
|
|
|
- },
|
|
|
- init: function () {
|
|
|
- this.lisen();
|
|
|
- }
|
|
|
- };
|
|
|
//全局变量
|
|
|
var glob = {
|
|
|
ua: window.navigator.userAgent.toLocaleLowerCase(),
|
|
@@ -313,7 +260,6 @@
|
|
|
}
|
|
|
//显示公众号落地页
|
|
|
function showH5Page() {
|
|
|
- wePage.init();
|
|
|
var time = QYY.isIos ? 0 : 5000;
|
|
|
setTimeout(function () {
|
|
|
$(".content-wrap").show();
|