From 2a8e7b80e36b56653192832b34a9132f459ce7f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=B6=E6=AC=A3?= Date: Thu, 22 Nov 2018 14:29:32 +0800 Subject: [PATCH] Update index.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决菜单选事件提交后菜单总是变成扫描二维码的错误 --- application/wechat/view/menu/index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/application/wechat/view/menu/index.html b/application/wechat/view/menu/index.html index bb460f7a0..0d077e224 100644 --- a/application/wechat/view/menu/index.html +++ b/application/wechat/view/menu/index.html @@ -259,6 +259,13 @@ }); } }); + //解决菜单选事件提交后菜单总是变成扫描二维码的错误 + $edit.find('input').on('click', function () { + $span.data(this.name, $(this).val() || $(this).html()); + if (type === 'event') { + this.value === $span.data('content'); + } + }); // 显示参数编辑器 $('.editor-content-input').html($edit); // 跳转网页处理选择器切换,事件监听 @@ -352,4 +359,4 @@ padding-top: 40px } -{/block} \ No newline at end of file +{/block}