|
@@ -449,7 +449,7 @@
|
|
|
<el-radio-button label="3">电商</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
</div>
|
|
|
- <div>
|
|
|
+ <div v-if="cropOptions.cropClassify == '2'">
|
|
|
<el-button class="crop-button" style="width: 220px; margin-bottom: 10px; margin-left: 10px;" :type="cropOptions.fixedValue == '259:377' ? 'primary' : 'default'" @click="fixedChange('259:377')">
|
|
|
小一寸259x377px | 2.2x3.3cm
|
|
|
<p style="opacity: 0.6; margin-top: 6px;">驾驶证、体检表等</p>
|
|
@@ -471,20 +471,23 @@
|
|
|
<p style="opacity: 0.6; margin-top: 6px;">公务员、部分签证</p>
|
|
|
</el-button>
|
|
|
</div>
|
|
|
- <div class="handle-title">裁剪尺寸</div>
|
|
|
- <div class="handle-item">
|
|
|
- <label class="handle-label">宽度:</label>
|
|
|
- <el-input-number size="small" :min="1" v-model="virtualWidth" @change="cropWidthChange"></el-input-number> px
|
|
|
- </div>
|
|
|
- <div class="handle-item">
|
|
|
- <label class="handle-label">高度:</label>
|
|
|
- <el-input-number size="small" :min="1" v-model="virtualHeight" @change="cropHeightChange"></el-input-number> px
|
|
|
- </div>
|
|
|
- <div class="handle-item">
|
|
|
- <label class="handle-label">锁定比例:</label>
|
|
|
- <el-checkbox v-model="cropOptions.fixed"></el-checkbox>
|
|
|
- <span style="font-size: 12px; color: #666;">(原始尺寸{{cropOptions.imgInfo.originalWidth}}:{{cropOptions.imgInfo.originalHeight}})</span>
|
|
|
- </div>
|
|
|
+ <template v-if="cropOptions.cropClassify == '1'">
|
|
|
+ <div class="handle-title">裁剪尺寸</div>
|
|
|
+ <div class="handle-item">
|
|
|
+ <label class="handle-label">宽度:</label>
|
|
|
+ <el-input-number size="small" :min="1" v-model="virtualWidth" @change="cropWidthChange"></el-input-number> px
|
|
|
+ </div>
|
|
|
+ <div class="handle-item">
|
|
|
+ <label class="handle-label">高度:</label>
|
|
|
+ <el-input-number size="small" :min="1" v-model="virtualHeight" @change="cropHeightChange"></el-input-number> px
|
|
|
+ </div>
|
|
|
+ <div class="handle-item">
|
|
|
+ <label class="handle-label">锁定比例:</label>
|
|
|
+ <el-checkbox v-model="cropOptions.fixed"></el-checkbox>
|
|
|
+ <span style="font-size: 12px; color: #666;">(原始尺寸{{cropOptions.imgInfo.originalWidth}}:{{cropOptions.imgInfo.originalHeight}})</span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<div style="text-align: center;">
|