Commit e56baf6a by 黄森林

修改bug

parent 1317cd87
......@@ -76,8 +76,8 @@ export default {
if(left<0){
left = 0;
}
if(left+this.width > 500){
left = 500-this.width;
if(left+this.width > 300){
left = 300-this.width;
}
if(top<0){
top = 0;
......
......@@ -34,9 +34,8 @@
{{ text | dayjs}}
</template>
<template slot="picture" slot-scope="text">
<img :src="text" @click="imgClick(text)">
<!--<img @click="imgClick('http://yrym.winsun-aly.com/gdtel-xyzx-hhr/images/yrym-ruanyan-logo.png')" style="height: 50px" src="http://yrym.winsun-aly.com/gdtel-xyzx-hhr/images/yrym-ruanyan-logo.png">
--> </template>
<img style="width: 20%" :src="text" @click="imgClick(text)">
</template>
<template slot="enable" slot-scope="text">
<span v-if="text == 0">不启用</span>
<span v-if="text == 1">启用</span>
......@@ -66,7 +65,7 @@
:closable="false"
@close="pictureOnClose"
:visible="visiblepicture"
width="50%"
width="30%"
>
<div >
<img class="bg-img" :src="imgInfo">
......
......@@ -25,7 +25,7 @@
<a-input v-model="codeText"></a-input>
</a-form-item>
</a-col>-->
<a-col :span="9" v-if="images!=''">
<a-col :span="18" v-if="images!=''">
<a-form-item label="二维码大小:" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-slider id="code" v-model="codeWidth" :max="300" />
</a-form-item>
......@@ -72,7 +72,6 @@ export default {
},
methods: {
showModal(picture,url) {
/* picture = picture.replace('http://yrym.winsun-aly.com','/api');*/
this.codeText=url
this.getBase64(picture, 'jpeg', (base64) =>{
// 给原生img对象的src属性赋值
......@@ -81,7 +80,7 @@ export default {
});
setTimeout(() =>{
this.newCode()
},5);
},200);
},
onClose() {
this.visible = false;
......@@ -163,7 +162,6 @@ export default {
<style scoped lang="less">
.meun-box {
position: absolute;
left: 0;
right: 0;
height: 80px;
......@@ -171,7 +169,7 @@ export default {
}
.center-box {
padding-top: 100px;
padding-top: 0px;
}
.select-btn {
......@@ -198,7 +196,7 @@ export default {
}
.image-box {
width: 500px;
width: 300px;
height: auto;
overflow: hidden;
position: relative;
......
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