Commit 49b163ea by 陈玉桐

test

parent 41039864
...@@ -23,12 +23,6 @@ ...@@ -23,12 +23,6 @@
<span @click="croppSure">完成</span> <span @click="croppSure">完成</span>
</div> </div>
</div> </div>
<div class="preview-box">
<div>预览:</div>
<div :style="previews.div" class="preview">
<img :src="previews.url" :style="previews.img">
</div>
</div>
<!-- 21天模板 --> <!-- 21天模板 -->
<div id="posterCon" class="posterCon_21" v-if="days==21||days==150"> <div id="posterCon" class="posterCon_21" v-if="days==21||days==150">
<div id="posterBox"> <div id="posterBox">
...@@ -73,7 +67,7 @@ ...@@ -73,7 +67,7 @@
</div> </div>
<div id="addpicBox"> <div id="addpicBox">
<img @click="selectPic" src="../assets/addpicBlack.png"> <img @click="selectPic" src="../assets/addpicBlack.png">
<img :src="uploadPic" :style="previews.img" v-show="uploadPic"> <img :src="uploadPic" v-show="uploadPic">
</div> </div>
<div id="posterBom"> <div id="posterBom">
<div id="posterBomWrap" :style="{background: backgroundColor}"> <div id="posterBomWrap" :style="{background: backgroundColor}">
...@@ -355,8 +349,12 @@ export default { ...@@ -355,8 +349,12 @@ export default {
console.log(msg) console.log(msg)
}, },
croppSure() {//裁剪完成 croppSure() {//裁剪完成
this.uploadPic = this.previews.url this.$refs.cropper.getCropData(data=>{
this.cropperShow = false this.option.img = ''
this.previews = {}
this.uploadPic = data
this.cropperShow = false
})
}, },
create() { create() {
......
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