Commit cf06e821 authored by 黄奎's avatar 黄奎

页面修改

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