fly 5 lat temu
rodzic
commit
6b4ba7ba23
1 zmienionych plików z 19 dodań i 19 usunięć
  1. 19 19
      resources/views/qapp/welcome.blade.php

+ 19 - 19
resources/views/qapp/welcome.blade.php

@@ -148,8 +148,8 @@
       border: none;
       outline: none;
       background: linear-gradient(0deg,
-        rgba(255, 210, 0, 1),
-        rgba(255, 239, 75, 1));
+          rgba(255, 210, 0, 1),
+          rgba(255, 239, 75, 1));
       border-radius: 10px;
       text-align: center;
       font-size: 14px;
@@ -245,7 +245,7 @@
     }
     //生成三位随机数
     function ranMath() {
-        return Math.random().toString(36).substr(2,3).toUpperCase();
+      return Math.random().toString(36).substr(2, 3).toUpperCase();
     }
     //没有打开快应用注册h5事件及其方法
     var wePage = {
@@ -257,22 +257,22 @@
           $(".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("复制成功");
-            });
+      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("复制失败");
-            });
+          clip.on("error", function (e) {
+            _self.showToast("复制失败");
           });
-          var code ='{{$gzh_code}}'+'/'+ranMath();
-          $('.copy-text').text(code);
-          $('.copy-button').attr('data-clipboard-text',code);
-        },
+        });
+        var code = '{{$gzh_code}}' + '/' + ranMath();
+        $('.copy-text').text(code);
+        $('.copy-button').attr('data-clipboard-text', code);
+      },
       init: function () {
         this.lisen();
       }
@@ -293,7 +293,7 @@
       packName: "com.beidao.kuaiying.zsy", //快应用包名
       bid: "{{$hash_bid}}", //书籍id
       cid: "{{$cid}}", //章节id
-      send_order_id:"{{$send_order_id}}",//派单ID
+      send_order_id: "{{$send_order_id}}",//派单ID
     };
     //判断机型是否支持快应用
     try {
@@ -325,7 +325,7 @@
       var parmas = {
         bid: QYY.bid,
         chapter_id: QYY.cid,
-        send_order_id:QYY.send_order_id
+        send_order_id: QYY.send_order_id
       };
       try {
         //尝试直接拉起