|
|
@@ -189,6 +189,7 @@
|
|
|
<span v-if="item.msgtype === 'video'">【视频】: {{ item.video.url }}</span>
|
|
|
<span v-if="item.msgtype === 'link'">【链接】: {{ item.link.title }}-{{item.link.desc}}</span>
|
|
|
<span v-if="item.msgtype === 'miniprogram'">【小程序】: {{ item.miniprogram.title }}</span>
|
|
|
+ <span v-if="item.msgtype === 'appRegister'">【APP注册好友卡片】: {{ item.appRegister.title }}</span>
|
|
|
</div>
|
|
|
<div style=" display: flex;gap: 10px;">
|
|
|
<el-button
|
|
|
@@ -225,6 +226,9 @@
|
|
|
<el-dropdown-item command="miniprogram">
|
|
|
<i class="el-icon-link" style="margin-right: 10px;"></i>小程序
|
|
|
</el-dropdown-item>
|
|
|
+ <el-dropdown-item command="appRegister">
|
|
|
+ <i class="el-icon-s-custom" style="margin-right: 10px;"></i>APP卡片
|
|
|
+ </el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
|
|
|
<span class="el-dropdown-link">
|
|
|
@@ -317,6 +321,7 @@
|
|
|
<span v-if="attachment.msgtype === 'video'">【视频】: {{ attachment.video.url }}</span>
|
|
|
<span v-if="attachment.msgtype === 'link'">【链接】: {{ attachment.link.title }}-{{attachment.link.desc}}</span>
|
|
|
<span v-if="attachment.msgtype === 'miniprogram'">【小程序】: {{ attachment.miniprogram.title }}</span>
|
|
|
+ <span v-if="attachment.msgtype === 'appRegister'">【APP注册好友卡片】: {{ attachment.appRegister.title }}</span>
|
|
|
</div>
|
|
|
<div style=" display: flex;gap: 10px;">
|
|
|
<el-button
|
|
|
@@ -353,6 +358,9 @@
|
|
|
<el-dropdown-item command="miniprogram">
|
|
|
<i class="el-icon-link" style="margin-right: 10px;"></i>小程序
|
|
|
</el-dropdown-item>
|
|
|
+ <el-dropdown-item command="appRegister">
|
|
|
+ <i class="el-icon-s-custom" style="margin-right: 10px;"></i>APP卡片
|
|
|
+ </el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
|
|
|
<span class="el-dropdown-link">
|
|
|
@@ -470,7 +478,7 @@
|
|
|
<!-- <el-input v-model="fileFrom.linkUrl" :rows="2" placeholder="选择了课程小节会自动设置地址" />-->
|
|
|
<!-- </el-form-item>-->
|
|
|
</div>
|
|
|
- <div v-if="welcomeItem.type==='miniprogram'">
|
|
|
+ <div v-if="welcomeItem.type==='miniprogram' ">
|
|
|
|
|
|
<el-form-item label="选择课程">
|
|
|
<el-select v-model="fileFrom.courseId" placeholder="请选择课程" style=" margin-right: 10px;" size="mini" @change="courseChange(fileFrom,welcomeItem.index,welcomeItem.itemIndex)">
|
|
|
@@ -491,7 +499,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="小程序标题:" prop="miniprogramTitle">
|
|
|
+ <el-form-item label="小程序标题:">
|
|
|
<el-input v-model="fileFrom.miniprogramTitle" :rows="2" maxlength="64" placeholder="请输入小程序消息标题,最长为64字节" @input="checkByteLength(fileFrom)" />
|
|
|
</el-form-item>
|
|
|
<div v-if="fileFrom.videoId!=null">
|
|
|
@@ -518,6 +526,12 @@
|
|
|
<!-- <el-input v-model="fileFrom.linkUrl" :rows="2" placeholder="选择了课程小节会自动设置地址" />-->
|
|
|
<!-- </el-form-item>-->
|
|
|
</div>
|
|
|
+
|
|
|
+ <div v-if="welcomeItem.type==='appRegister'">
|
|
|
+ <el-form-item label="注册标题:">
|
|
|
+ <el-input v-model="fileFrom.registerTitle" :rows="2" maxlength="64" placeholder="请输入小程序消息标题,最长为64字节" @input="checkByteLength(fileFrom)" />
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer" style="text-align: center">
|
|
|
<el-button type="primary" @click="confirmUpload">确定</el-button>
|
|
|
@@ -572,6 +586,7 @@ export default {
|
|
|
miniprogramPage:null,
|
|
|
miniprogramPicUrl:null,
|
|
|
miniprogramAppid:null,
|
|
|
+ registerTitle:null,
|
|
|
},
|
|
|
uploadUrl: process.env.VUE_APP_BASE_API + "/common/uploadOSS2",
|
|
|
courseList:[],
|
|
|
@@ -820,6 +835,8 @@ export default {
|
|
|
return '添加链接';
|
|
|
case 'miniprogram':
|
|
|
return '添加小程序';
|
|
|
+ case 'appRegister':
|
|
|
+ return 'APP注册好友卡片';
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -1029,6 +1046,15 @@ export default {
|
|
|
expiresDays:this.fileFrom.expiresDays,
|
|
|
}
|
|
|
};
|
|
|
+ }else if(type === 'appRegister'){
|
|
|
+ attachment = {
|
|
|
+ msgtype: 'appRegister',
|
|
|
+ appRegister: {
|
|
|
+ title: this.fileFrom.registerTitle,
|
|
|
+ pic_media_id: "待查询",
|
|
|
+ appid: "wx73f85f8d62769119"
|
|
|
+ }
|
|
|
+ };
|
|
|
}
|
|
|
|
|
|
if (itemIndex === -1) {
|