|
@@ -55,24 +55,19 @@
|
|
|
<p> 添加图片:</p>
|
|
<p> 添加图片:</p>
|
|
|
<div class="img-warp">
|
|
<div class="img-warp">
|
|
|
<div class="img-item">
|
|
<div class="img-item">
|
|
|
- <image-upload @fileAction="listenFile">
|
|
|
|
|
- </image-upload>
|
|
|
|
|
|
|
+ <upload/>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="img-item">
|
|
<div class="img-item">
|
|
|
- <image-upload @fileAction="listenFile">
|
|
|
|
|
- </image-upload>
|
|
|
|
|
|
|
+ <upload/>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="img-item">
|
|
<div class="img-item">
|
|
|
- <image-upload @fileAction="listenFile">
|
|
|
|
|
- </image-upload>
|
|
|
|
|
|
|
+ <upload/>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="img-item">
|
|
<div class="img-item">
|
|
|
- <image-upload @fileAction="listenFile">
|
|
|
|
|
- </image-upload>
|
|
|
|
|
|
|
+ <upload/>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="img-item">
|
|
<div class="img-item">
|
|
|
- <image-upload @fileAction="listenFile">
|
|
|
|
|
- </image-upload>
|
|
|
|
|
|
|
+ <upload/>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<p class="tip clearfix">提示:最多可上传五张图片,每张大小不超过500KB,仅支持JPG、PNG、GIF格式.</p>
|
|
<p class="tip clearfix">提示:最多可上传五张图片,每张大小不超过500KB,仅支持JPG、PNG、GIF格式.</p>
|
|
@@ -129,7 +124,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
- import ImageUpload from '~components/common/image-upload/imageUpload.vue'
|
|
|
|
|
|
|
+ import upload from '~components/common/upload/upload.vue'
|
|
|
import Page from '~components/common/page/pageComponent.vue'
|
|
import Page from '~components/common/page/pageComponent.vue'
|
|
|
export default {
|
|
export default {
|
|
|
name: 'messageBoard',
|
|
name: 'messageBoard',
|
|
@@ -141,7 +136,6 @@
|
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
|
dialogVisible: false
|
|
dialogVisible: false
|
|
|
},
|
|
},
|
|
|
- dialogImageUrl: [],
|
|
|
|
|
showHistory: true,
|
|
showHistory: true,
|
|
|
isOpen: true,
|
|
isOpen: true,
|
|
|
isLogin: false,
|
|
isLogin: false,
|
|
@@ -152,8 +146,8 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
components: {
|
|
components: {
|
|
|
- ImageUpload,
|
|
|
|
|
- Page
|
|
|
|
|
|
|
+ Page,
|
|
|
|
|
+ upload
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
messageBoardInfo () {
|
|
messageBoardInfo () {
|
|
@@ -179,19 +173,10 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- lookImg () {
|
|
|
|
|
-// this.isHide = true
|
|
|
|
|
- this.$emit('imgEvent', true)
|
|
|
|
|
- },
|
|
|
|
|
listenPage (page) {
|
|
listenPage (page) {
|
|
|
this.pageParams.page = page
|
|
this.pageParams.page = page
|
|
|
this.$emit('pageEvent', page)
|
|
this.$emit('pageEvent', page)
|
|
|
},
|
|
},
|
|
|
- listenFile (url) {
|
|
|
|
|
- let obj = {}
|
|
|
|
|
- obj.img = url
|
|
|
|
|
- this.dialogImageUrl.push(obj)
|
|
|
|
|
- },
|
|
|
|
|
isOpendMessage () {
|
|
isOpendMessage () {
|
|
|
this.$emit('openBoardEvent', false)
|
|
this.$emit('openBoardEvent', false)
|
|
|
},
|
|
},
|
|
@@ -224,8 +209,6 @@
|
|
|
} else if (!this.messageBoard.userTel && !this.messageBoard.email) {
|
|
} else if (!this.messageBoard.userTel && !this.messageBoard.email) {
|
|
|
this.$message.info('请填写任意一种联系方式')
|
|
this.$message.info('请填写任意一种联系方式')
|
|
|
} else {
|
|
} else {
|
|
|
- console.log(this.isMobile)
|
|
|
|
|
- console.log(this.isEmail)
|
|
|
|
|
if (this.isMobile === false) {
|
|
if (this.isMobile === false) {
|
|
|
this.$message.info('请输入正确的手机号码')
|
|
this.$message.info('请输入正确的手机号码')
|
|
|
} else if (this.isEmail === false) {
|
|
} else if (this.isEmail === false) {
|
|
@@ -374,6 +357,7 @@
|
|
|
.messageBoard .modal-body .form-message label{
|
|
.messageBoard .modal-body .form-message label{
|
|
|
margin-right: 25px;
|
|
margin-right: 25px;
|
|
|
}
|
|
}
|
|
|
|
|
+ /*查看图片*/
|
|
|
.messageBoard .modal-body .form-message .img-warp{
|
|
.messageBoard .modal-body .form-message .img-warp{
|
|
|
position: relative;
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
@@ -385,8 +369,9 @@
|
|
|
position: relative;
|
|
position: relative;
|
|
|
float: left;
|
|
float: left;
|
|
|
margin-right: 23px;
|
|
margin-right: 23px;
|
|
|
- width: 84px;
|
|
|
|
|
|
|
+ width: 82px;
|
|
|
height: 70px;
|
|
height: 70px;
|
|
|
|
|
+ overflow: hidden;
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
border: #C9C9C9 1px solid;
|
|
border: #C9C9C9 1px solid;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
@@ -394,21 +379,15 @@
|
|
|
.messageBoard .modal-body .form-message div.img-item:last-child{
|
|
.messageBoard .modal-body .form-message div.img-item:last-child{
|
|
|
margin-right: 0;
|
|
margin-right: 0;
|
|
|
}
|
|
}
|
|
|
- .messageBoard .modal-body .form-message div.img-item input[type="file"]{
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- top: 0;
|
|
|
|
|
- left: -20px;
|
|
|
|
|
- width: 84px;
|
|
|
|
|
- height: 70px;
|
|
|
|
|
- opacity: 0;
|
|
|
|
|
- }
|
|
|
|
|
.messageBoard .modal-body .form-message div.img-item img{
|
|
.messageBoard .modal-body .form-message div.img-item img{
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
max-width: 80px;
|
|
max-width: 80px;
|
|
|
- max-height: 60px;
|
|
|
|
|
|
|
+ max-height: 78px;
|
|
|
z-index: 10;
|
|
z-index: 10;
|
|
|
margin-top: 4px;
|
|
margin-top: 4px;
|
|
|
}
|
|
}
|
|
|
|
|
+ /*查看图片*/
|
|
|
|
|
+
|
|
|
.messageBoard .modal-body .form-message p.tip{
|
|
.messageBoard .modal-body .form-message p.tip{
|
|
|
text-align: left;
|
|
text-align: left;
|
|
|
color: #999;
|
|
color: #999;
|
|
@@ -609,7 +588,4 @@
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
margin: 0;
|
|
margin: 0;
|
|
|
}
|
|
}
|
|
|
- body,textarea,button.btn{
|
|
|
|
|
- font-family: "MicrosoftYaHei Regual", "微软雅黑" !important;
|
|
|
|
|
- }
|
|
|
|
|
</style>
|
|
</style>
|