Commit cf06e821 authored by 黄奎's avatar 黄奎

页面修改

parent ef39cdbc
<style> <style>
.courserefund_Div{ .courserefund_Div {
color:#000; color: #000;
width:193px; width: 193px;
text-align: center; text-align: center;
z-index:-99; z-index: -99;
padding:10px; padding: 10px;
} }
.courserefund_Div>div{
margin-bottom:10px; .courserefund_Div>div {
font-size:13px; margin-bottom: 10px;
font-size: 13px;
} }
</style> </style>
<template> <template>
<div class="page-content"> <div class="page-content">
...@@ -19,8 +21,8 @@ ...@@ -19,8 +21,8 @@
<div>您的退款协议《{{ProtocolNum}}</div> <div>您的退款协议《{{ProtocolNum}}</div>
<div>请长按识别二维码,查阅并签字</div> <div>请长按识别二维码,查阅并签字</div>
</div> </div>
<q-table :pagination="pageMsg" :loading="loading" style="margin-top:-251px" no-data-label="暂无相关数据" flat class="sticky-column-table" <q-table :pagination="pageMsg" :loading="loading" style="margin-top:-251px" no-data-label="暂无相关数据" flat
separator="none" title="退课协议" :data="dataList" :columns="columns" row-key="name"> class="sticky-column-table" separator="none" title="退课协议" :data="dataList" :columns="columns" row-key="name">
<template v-slot:top="props"> <template v-slot:top="props">
<div class="col-2 q-table__title">退课协议</div> <div class="col-2 q-table__title">退课协议</div>
<q-space /> <q-space />
...@@ -183,16 +185,15 @@ ...@@ -183,16 +185,15 @@
rowsPerPage: 12, rowsPerPage: 12,
}, },
billObj: {}, billObj: {},
imgUrl:'http://192.168.20.24:8300/upfile/temporary/20210805/637637591390867572.jpg', imgUrl: 'http://192.168.20.24:8300/upfile/temporary/20210805/637637591390867572.jpg',
getBlob:'', getBlob: '',
ProtocolNum:'' ProtocolNum: ''
} }
}, },
created() { created() {
this.initAuth(); this.initAuth();
}, },
mounted() { mounted() {},
},
methods: { methods: {
//显示退课详情 //显示退课详情
showBackBill(item) { showBackBill(item) {
...@@ -267,29 +268,34 @@ ...@@ -267,29 +268,34 @@
}); });
}) })
}, },
//复制生成二维码 //复制生成二维码
CopyUrl(item) { CopyUrl(item) {
let locationName = window.location.hostname;
var domain = "http://localhost:8181/#/";
var newUrl = '/courseRefundH5?Id=' + item.Id
if (locationName.indexOf('oytour') !== -1) {
domain = "http://edu.oytour.com/#/";
}
let msg = { let msg = {
url: '/courseRefundH5', url: domain + newUrl,
width: 430 width: 430
} }
//小奎子不要删 CreateWeChatCode(msg).then((res) => {
// CreateWeChatCode(msg).then((res) => { if (res.Code == 1) {
// console.log(res,'数据'); let address = process.env.API;
// if (res.Code == 1) { let aOne = address.split('/api')[0];
// let address = process.env.API; this.imgUrl = aOne + res.Data;
// let aOne = address.split('/api')[0]; }
// this.imgUrl = aOne + res.Data; });
// }
// });
this.ProtocolNum = item.ProtocolNum; this.ProtocolNum = item.ProtocolNum;
 this.getBlob = this.getAnyFileBlob(this.imgUrl); this.getBlob = this.getAnyFileBlob(this.imgUrl);
setTimeout(() => { setTimeout(() => {
let canvasID = document.getElementById("proToCol"); let canvasID = document.getElementById("proToCol");
let a = document.createElement("a"); let a = document.createElement("a");
html2canvas(canvasID, { html2canvas(canvasID, {
useCORS: true, //【重要】开启跨域配置 useCORS: true, //【重要】开启跨域配置
allowTaint: true, //允许跨域图片 allowTaint: true, //允许跨域图片
backgroundColor: "#FFFFFF", backgroundColor: "#FFFFFF",
scale: 1.3, scale: 1.3,
taintTest: false //是否在渲染前测试图片 taintTest: false //是否在渲染前测试图片
......
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