|
|
@@ -98,7 +98,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <button class="btn" @click="confirm">提交</button>
|
|
|
+ <el-button>
|
|
|
+ <button class="btn" @click="confirm">提交</button></el-button>
|
|
|
</form>
|
|
|
</div>
|
|
|
<div class="msg-table" v-else-if="!showHistory && user.userUU">
|
|
|
@@ -219,12 +220,21 @@
|
|
|
this.isEmail = (/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/).test(this.messageBoard.email)
|
|
|
},
|
|
|
confirm () {
|
|
|
- // alert(message)
|
|
|
- /* let imgs = []
|
|
|
- if (message) {
|
|
|
- imgs[index] = {'img': message.img}
|
|
|
- } */
|
|
|
this.$store.dispatch('uploadMessageBoardInformation', {question: this.messageBoard.question, role: this.messageBoard.role, submitTitle: '【优软商城】IC电子元器件现货采购交易平台商城', submitUrl: window.location.href, type: this.messageBoard.type, imgs: this.dialogImageUrl, userTel: '13333333333'})
|
|
|
+ if (!this.messageBoard.question) {
|
|
|
+ alert('您还没有填写反馈内容')
|
|
|
+ }
|
|
|
+ if (!this.messageBoard.role) {
|
|
|
+ alert('请选择您的身份信息')
|
|
|
+ }
|
|
|
+ if (!this.messageBoard.type) {
|
|
|
+ alert('请选择一种反馈类型')
|
|
|
+ }
|
|
|
+ if (!this.user) {
|
|
|
+ if (!this.messageBoard.userTel && !this.messageBoard.email) {
|
|
|
+ alert('请填写任意一种联系方式')
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|