30783
This commit is contained in:
@@ -179,6 +179,8 @@
|
|||||||
<el-input
|
<el-input
|
||||||
size="small"
|
size="small"
|
||||||
placeholder="请输入标题"
|
placeholder="请输入标题"
|
||||||
|
maxlength="128"
|
||||||
|
show-word-limit
|
||||||
v-model="linkForm.linkTitle">
|
v-model="linkForm.linkTitle">
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -186,17 +188,21 @@
|
|||||||
<el-input
|
<el-input
|
||||||
size="small"
|
size="small"
|
||||||
placeholder="请输入链接"
|
placeholder="请输入链接"
|
||||||
|
maxlength="2048"
|
||||||
|
show-word-limit
|
||||||
v-model="linkForm.linkUrl">
|
v-model="linkForm.linkUrl">
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="描述" style="width: 100%;" prop="linkDesc" :rules="[{ required: true, message: '请输入描述', trigger: 'blur' }]">
|
<el-form-item label="描述" style="width: 100%;" prop="linkDesc">
|
||||||
<el-input
|
<el-input
|
||||||
size="small"
|
size="small"
|
||||||
placeholder="请输入描述"
|
placeholder="请输入描述"
|
||||||
|
maxlength="512"
|
||||||
|
show-word-limit
|
||||||
v-model="linkForm.linkDesc">
|
v-model="linkForm.linkDesc">
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="封面图" prop="linkPicUrl" style="width: 100%;" :rules="[{ required: true, message: '请上传封面图', trigger: 'change' }]">
|
<el-form-item label="封面图" prop="linkPicUrl" style="width: 100%;">
|
||||||
<ai-uploader :instance="instance" v-model="linkForm.linkPicUrl" :limit="1"></ai-uploader>
|
<ai-uploader :instance="instance" v-model="linkForm.linkPicUrl" :limit="1"></ai-uploader>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -472,7 +478,7 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.fileList.push({
|
this.fileList.push({
|
||||||
...this.linkForm,
|
...this.linkForm,
|
||||||
linkPicUrl: this.linkForm.linkPicUrl[0].url,
|
linkPicUrl: this.linkForm.linkPicUrl.length ? this.linkForm.linkPicUrl[0].url : '',
|
||||||
msgType: '4'
|
msgType: '4'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -36,8 +36,8 @@
|
|||||||
<div class="msg-wrapper msg-link" v-if="item.msgType === '4'">
|
<div class="msg-wrapper msg-link" v-if="item.msgType === '4'">
|
||||||
<h2>{{ item.linkTitle }}</h2>
|
<h2>{{ item.linkTitle }}</h2>
|
||||||
<div class="msg-right">
|
<div class="msg-right">
|
||||||
<p>{{ item.linkDesc }}</p>
|
<p v-if="item.linkDesc">{{ item.linkDesc }}</p>
|
||||||
<img :src="item.linkPicUrl" />
|
<img v-if="item.linkPicUrl" :src="item.linkPicUrl" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="msg-wrapper msg-miniapp" v-if="item.msgType === '5'">
|
<div class="msg-wrapper msg-miniapp" v-if="item.msgType === '5'">
|
||||||
|
|||||||
Reference in New Issue
Block a user