Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
cf06e821
Commit
cf06e821
authored
Aug 05, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
ef39cdbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
30 deletions
+36
-30
courserefund-form.vue
src/components/course/courserefund-form.vue
+36
-30
No files found.
src/components/course/courserefund-form.vue
View file @
cf06e821
<
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
//是否在渲染前测试图片
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment