Commit 572fc0f4 authored by 袁玲利's avatar 袁玲利

Merge branch 'v_req_8.2' of https://git.xiaopay.net/lizhishu/xzf_uniapp-wechat-web into v_req_8.2

parents bceba90f b692d4af
...@@ -309,7 +309,7 @@ ...@@ -309,7 +309,7 @@
} }
return (false); return (false);
} }
import html2cancas from "html2canvas" // import html2cancas from "html2canvas"
import Canlendar from '@/components/canlendar.vue' import Canlendar from '@/components/canlendar.vue'
// 时间处理模块 // 时间处理模块
import moment from 'moment' import moment from 'moment'
...@@ -445,7 +445,7 @@ ...@@ -445,7 +445,7 @@
}, },
toImage: function() { toImage: function() {
this.$nextTick(() => { this.$nextTick(() => {
html2cancas(document.getElementsByClassName("campusReport")[0], { html2canvas(document.getElementsByClassName("campusReport")[0], {
useCORS: true, useCORS: true,
// 解决截图不完整问题 // 解决截图不完整问题
scale: 1, scale: 1,
......
...@@ -1169,7 +1169,7 @@ ...@@ -1169,7 +1169,7 @@
</template> </template>
<script> <script>
import html2cancas from "html2canvas" // import html2cancas from "html2canvas"
var gHost = "https://" + window.location.host; var gHost = "https://" + window.location.host;
if (window.location.protocol != "https:") { if (window.location.protocol != "https:") {
gHost = "https://fpdev.xiaopay.net"; gHost = "https://fpdev.xiaopay.net";
...@@ -1618,7 +1618,7 @@ ...@@ -1618,7 +1618,7 @@
}, },
toImage: function() { toImage: function() {
this.$nextTick(() => { this.$nextTick(() => {
html2cancas(document.getElementsByClassName("tainer")[0], { html2canvas(document.getElementsByClassName("tainer")[0], {
useCORS: true, useCORS: true,
// 解决截图不完整问题 // 解决截图不完整问题
scale: 1, scale: 1,
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<title> <title>
<%= htmlWebpackPlugin.options.title %> <%= htmlWebpackPlugin.options.title %>
</title> </title>
<script src="https://xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/src/js/html2canvas.js"></script>
<script src="//xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/src/js/jquery-1.8.0.min.js" async="async"></script> <script src="//xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/src/js/jquery-1.8.0.min.js" async="async"></script>
<script src="//xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/src/js/weui.min.js" async="async"></script> <script src="//xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/src/js/weui.min.js" async="async"></script>
<script src="//xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/src/js/jweixin-1.6.0.js"></script> <script src="//xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/src/js/jweixin-1.6.0.js"></script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment