|
|
@@ -30,6 +30,8 @@
|
|
|
</div>
|
|
|
<div v-if="prodType === '二宫格'" class="previewClass" :style="{width: previewWidth + 'px', height: previewHeight + 'px', borderWidth: previewWidth * 0.02325 + 'px'}">
|
|
|
</div>
|
|
|
+ <div v-if="prodType === '游戏'" class="previewClass" :style="{width: previewWidth + 'px', height: previewHeight + 'px', borderWidth: previewWidth * 0.048 + 'px'}">
|
|
|
+ </div>
|
|
|
<el-image ref="previewImageRef" :src="previewPicUrl" alt="" @load="previewLoad" style="width: 100%; height: 100%"/>
|
|
|
</div>
|
|
|
<!--<div class="parent">
|
|
|
@@ -49,7 +51,8 @@
|
|
|
const prodSize = {'小卡': {width: 709, height: 1087, clientScale:0.5, bloodRadio: 0.0242}, '方卡':{width: 1252, height: 1252, clientScale:0.5}, '拍立得':{width: 709, height: 1087, clientScale:0.5, bloodRadio: 0.0242},
|
|
|
'直拍封面':{width: 732, height: 1252, clientScale:0.5, bloodRadio: 0.0465}, '书签': {width: 638, height: 1819, clientScale:0.4, bloodRadio: 0.0264},'明信片':{width: 1252, height: 1819, clientScale:0.4, bloodRadio: 0.0261},
|
|
|
'徽章':{width: 839, height: 839, clientScale:0.5, bloodRadio: 0.0813, bloodRadius:100},'票根':{width: 709, height: 1489, clientScale:0.5, bloodRadio: 0.0465},
|
|
|
- '手幅':{width: 1252, height: 3614, clientScale:0.25, bloodRadio: 0.0255},'二宫格':{width: 1252, height: 732, clientScale:0.25, bloodRadio: 0.05}}
|
|
|
+ '手幅':{width: 1252, height: 3614, clientScale:0.25, bloodRadio: 0.0255},'二宫格':{width: 1252, height: 732, clientScale:0.25, bloodRadio: 0.05}
|
|
|
+ ,'游戏': {width: 803, height: 1098, clientScale:0.5, bloodRadio: 0.0242}}
|
|
|
export default {
|
|
|
name: "CanvasPreview",
|
|
|
data() {
|