|
|
@@ -114,12 +114,12 @@ var app = new Vue({
|
|
|
var id = $(this).attr('data-id');
|
|
|
var opts = {
|
|
|
scale: 12, // 添加的scale 参数
|
|
|
- // width: 119,
|
|
|
- // height: 169,
|
|
|
+ width: 119,
|
|
|
+ height: 169,
|
|
|
background: '#fff',
|
|
|
};
|
|
|
|
|
|
-
|
|
|
+ console.log($("#pic_preview_" + k).html());
|
|
|
html2canvas($previewImg, opts).then(function (canvas) {
|
|
|
const context = canvas.getContext('2d');
|
|
|
context.translate(0.5, 0.5);
|