Commit e56baf6a by 黄森林

修改bug

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