diff --git a/service/Application/Admin/View/Default/AlipayLifeMessage/MessageNav.html b/service/Application/Admin/View/Default/AlipayLifeMessage/MessageNav.html new file mode 100644 index 000000000..521014383 --- /dev/null +++ b/service/Application/Admin/View/Default/AlipayLifeMessage/MessageNav.html @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/service/Application/Admin/View/Default/AlipayLifeMessage/SaveInfoContent.html b/service/Application/Admin/View/Default/AlipayLifeMessage/SaveInfoContent.html new file mode 100644 index 000000000..7245ac9e1 --- /dev/null +++ b/service/Application/Admin/View/Default/AlipayLifeMessage/SaveInfoContent.html @@ -0,0 +1,101 @@ + + + +
+
+ +
+ + + {{:L('alipay_life_message_add_name')}} + {{:L('common_operation_back')}} + + + + + + +
+ + +
+ + +
+ + +
+
+ + +
+ + +
+
+ +
+ + + + +
+
+ +
+ + +
+ +
+ + +
+ + +
+ + + + +
+ +
+ +
+ + +
+ +
+ + +
+
+
+ + +
+ + +
+
+ + + + + \ No newline at end of file diff --git a/service/Public/Admin/Default/Js/AlipayLifeMessage.js b/service/Public/Admin/Default/Js/AlipayLifeMessage.js new file mode 100644 index 000000000..b13ff9b87 --- /dev/null +++ b/service/Public/Admin/Default/Js/AlipayLifeMessage.js @@ -0,0 +1,41 @@ +$(function() +{ + // 添加元素到右侧 + function RightElementAdd(value, name) + { + if($('ul.ul-right').find('.items-li-'+value).length == 0) + { + var html = '
  • '+name+'
  • '; + $('ul.ul-right').append(html); + } + } + // 左侧点击到右侧 + $('ul.ul-left i.am-icon-angle-right').on('click', function() + { + var value = $(this).prev().data('value'); + var name = $(this).prev().text(); + RightElementAdd(value, name); + $(this).parent().remove(); + return false; + }); + + // 左侧全部移动到右侧 + $('.selected-all').on('click', function() + { + $('ul.ul-left li').each(function(k, v) + { + var value = $(this).find('span.name').data('value'); + var name = $(this).find('span.name').text(); + RightElementAdd(value, name); + $(this).remove(); + }); + }); + + // 右侧删除 + $('ul.ul-right i.am-icon-trash-o').on('click', function() + { + $(this).parent().remove(); + return false; + }); + +}); \ No newline at end of file