From 3654afedcc36121bee64e8bbcadaa6bf88d8f09c Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 15 Jan 2023 19:09:13 +0800 Subject: [PATCH] =?UTF-8?q?mp=EF=BC=9A=E4=BF=AE=E5=A4=8D=20WxMaterialSelec?= =?UTF-8?q?t=20=E7=BB=84=E4=BB=B6=E7=9A=84=E9=9F=B3=E4=B9=90=20tab?= =?UTF-8?q?=EF=BC=8C=E6=97=A0=E6=B3=95=E9=80=89=E6=8B=A9=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E7=B4=A0=E6=9D=90=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/mp/components/wx-reply/main.vue | 739 +++++++++--------- yudao-ui-admin/src/views/mp/menu/index.vue | 169 ++-- 2 files changed, 437 insertions(+), 471 deletions(-) diff --git a/yudao-ui-admin/src/views/mp/components/wx-reply/main.vue b/yudao-ui-admin/src/views/mp/components/wx-reply/main.vue index 6b8c80fc4..5940da391 100644 --- a/yudao-ui-admin/src/views/mp/components/wx-reply/main.vue +++ b/yudao-ui-admin/src/views/mp/components/wx-reply/main.vue @@ -137,7 +137,7 @@ - + @@ -158,7 +158,7 @@ - + @@ -176,398 +176,369 @@ diff --git a/yudao-ui-admin/src/views/mp/menu/index.vue b/yudao-ui-admin/src/views/mp/menu/index.vue index 793945656..9fe597583 100644 --- a/yudao-ui-admin/src/views/mp/menu/index.vue +++ b/yudao-ui-admin/src/views/mp/menu/index.vue @@ -73,68 +73,68 @@ SOFTWARE.
-
- 删除当前菜单 -
-
- 菜单名称: - -
-
- - -
- 跳转链接: - -
-
-
- 小程序的 appid : - -
-
- 小程序的页面路径: - -
-
- 小程序的备用网页: - -
-

tips:需要和公众号进行关联才可以把小程序绑定带微信菜单上哟!

-
-
- -
- - - - -
-
- - - 素材库选择 - - -
- - - -
-
-
- -
+
+ 删除当前菜单
+
+ 菜单名称: + +
+
+ + +
+ 跳转链接: + +
+
+
+ 小程序的 appid : + +
+
+ 小程序的页面路径: + +
+
+ 小程序的备用网页: + +
+

tips:需要和公众号进行关联才可以把小程序绑定带微信菜单上哟!

+
+
+ +
+ + + + +
+
+ + + 素材库选择 + + +
+ + + +
+
+
+ +
+
@@ -183,12 +183,10 @@ export default { nameMaxLength: 0, // 菜单名称最大长度;1 级是 4 字符;2 级是 7 字符; showConfigureContent: true, // 是否展示配置内容;如果有子菜单,就不显示配置内容 hackResetWxReplySelect: false, // 重置 WxReplySelect 组件 - tempObj: {}, // 右边临时变量,作为中间值牵引关系 tempSelfObj: { // 一些临时值放在这里进行判断,如果放在 tempObj,由于引用关系,menu 也会多了多余的参数 }, - visible2: false, //素材内容 "选择素材"按钮弹框显示隐藏 - tableData:[], //素材内容弹框数据, + dialogNewsVisible: false, // 跳转图文时的素材选择弹窗 menuOptions: [{ value: 'view', label: '跳转网页' @@ -220,7 +218,6 @@ export default { value: 'location_select', label: '选择地理位置' }], - dialogNewsVisible: false, // 公众号账号列表 accounts: [], @@ -357,13 +354,13 @@ export default { if (!item.children || item.children.length <= 0) { this.$set( item, 'children',[]) this.$delete( item, 'type') + this.$delete( item, 'menuKey') this.$delete( item, 'miniProgramAppId') this.$delete( item, 'miniProgramPagePath') this.$delete( item, 'url') this.$delete( item, 'reply') // TODO 芋艿:需要搞的属性弄下 - this.$delete( item, 'key') this.$delete( item, 'article_id') this.$delete( item, 'textContent') this.showConfigureContent = false @@ -470,31 +467,29 @@ export default { } return result; }, - - // TODO 芋艿:未归类 - - deleteTempObj(){ + // ======================== 菜单编辑(素材选择) ======================== + openMaterial() { + this.dialogNewsVisible = true + }, + selectMaterial(item){ + if(item.content.articles.length>1){ + this.$alert('您选择的是多图文,将默认跳转第一篇', '提示', { + confirmButtonText: '确定' + }) + } + this.dialogNewsVisible = false + this.tempObj.article_id = item.articleId + this.tempObj.mediaName = item.name + this.tempObj.url = item.url + item.mediaType = this.tempObj.mediaType + item.content.articles = item.content.articles.slice(0,1) + this.tempObj.content = item.content + }, + deleteTempObj() { this.$delete(this.tempObj,'repName') this.$delete(this.tempObj,'repUrl') this.$delete(this.tempObj,'content') }, - openMaterial(){ - this.dialogNewsVisible = true - }, - selectMaterial(item){ - if(item.content.articles.length>1){ - this.$alert('您选择的是多图文,将默认跳转第一篇', '提示', { - confirmButtonText: '确定' - }) - } - this.dialogNewsVisible = false - this.tempObj.article_id = item.articleId - this.tempObj.mediaName = item.name - this.tempObj.url = item.url - item.mediaType = this.tempObj.mediaType - item.content.articles = item.content.articles.slice(0,1) - this.tempObj.content = item.content - }, }, }