From a810bbcec57a61b809b7644297f26926376cba96 Mon Sep 17 00:00:00 2001
From: 刘朕 <liuzhen@bronet.cn>
Date: Tue, 27 Aug 2019 10:11:55 +0800
Subject: [PATCH] 页面生成图片优化

---
 public/themes/simpleboot3/portal/order_salesman/get_all.html | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/public/themes/simpleboot3/portal/order_salesman/get_all.html b/public/themes/simpleboot3/portal/order_salesman/get_all.html
index bd64278..748b516 100755
--- a/public/themes/simpleboot3/portal/order_salesman/get_all.html
+++ b/public/themes/simpleboot3/portal/order_salesman/get_all.html
@@ -1419,11 +1419,11 @@
 <script>
     var count = "{$count}";
     var allow = true;
+    var img_url = '';
+    var k= $("#orderlist").offset().top;
     order2canvas();
     function order2canvas() {
         if(count > 0 && allow) {
-            var img_url = '';
-            var k= $("#orderlist").offset().top;
             var canvas2 = document.createElement("canvas");
             let
                 _canvas = document.querySelector('#orderlist');
@@ -1473,6 +1473,7 @@
     }
     $('#view_canvas').click(function(){
         if(!$('#view_canvas').hasClass('disabled')) {
+            alert(img_url);
             wx.previewImage({
                 current: img_url, // 当前显示图片的http链接
                 urls: [img_url] // 需要预览的图片http链接列表
--
libgit2 0.24.0