Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jamesyang1999
ShopXO
提交
235c8435
ShopXO
项目概览
jamesyang1999
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
235c8435
编写于
10月 29, 2018
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ct
上级
56ec6821
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
149 addition
and
0 deletion
+149
-0
service/Application/Admin/View/Default/AlipayLifeMessage/MessageNav.html
...tion/Admin/View/Default/AlipayLifeMessage/MessageNav.html
+7
-0
service/Application/Admin/View/Default/AlipayLifeMessage/SaveInfoContent.html
...Admin/View/Default/AlipayLifeMessage/SaveInfoContent.html
+101
-0
service/Public/Admin/Default/Js/AlipayLifeMessage.js
service/Public/Admin/Default/Js/AlipayLifeMessage.js
+41
-0
未找到文件。
service/Application/Admin/View/Default/AlipayLifeMessage/MessageNav.html
0 → 100644
浏览文件 @
235c8435
<ul
class=
"am-nav am-nav-pills table-nav m-b-10"
>
<foreach
name=
"alipay_life_message_send_type_list"
item=
"v"
>
<li
<
if
condition=
"$send_type eq $v['value']"
>
class="am-active"
</if>
data-type="{{$v.value}}">
<a
href=
"{{:U('Admin/AlipayLifeMessage/SaveInfo', array_merge($params, ['send_type'=>$v['value']]))}}"
>
{{$v.name}}
</a>
</li>
</foreach>
</ul>
\ No newline at end of file
service/Application/Admin/View/Default/AlipayLifeMessage/SaveInfoContent.html
0 → 100644
浏览文件 @
235c8435
<include
file=
"Public/Header"
/>
<!-- right content start -->
<div
class=
"content-right"
>
<div
class=
"content"
>
<!-- form start -->
<form
class=
"am-form form-validation view-save"
action=
"{{:U('Admin/AlipayLifeMessage/Save')}}"
method=
"POST"
request-type=
"ajax-url"
request-value=
"{{:U('Admin/AlipayLifeMessage/Index')}}"
enctype=
"multipart/form-data"
>
<input
type=
"hidden"
name=
"max_file_size"
value=
"{{:MyC('home_max_limit_image', 2048000)}}"
/>
<legend>
<span
class=
"fs-16"
>
{{:L('alipay_life_message_add_name')}}
</span>
<a
href=
"{{:U('Admin/AlipayLifeMessage/Index')}}"
class=
"fr fs-14 m-t-5 am-icon-mail-reply"
>
{{:L('common_operation_back')}}
</a>
</legend>
<!-- table nav start -->
<include
file=
"Nav"
/>
<!-- table nav end -->
<div
class=
"am-form-group"
>
<label>
{{:L('alipay_life_message_send_type_text')}}
</label>
<select
name=
"send_type"
class=
"am-radius c-p chosen-select"
data-placeholder=
"{{:L('common_select_can_choose')}}"
data-validation-message=
"{{:L('alipay_life_message_send_type_format')}}"
disabled
required
>
<option
value=
""
>
{{:L('common_select_can_choose')}}
</option>
<foreach
name=
"alipay_life_message_send_type_list"
item=
"v"
>
<option
value=
"{{$v.value}}"
<
if
condition=
"isset($send_type) and $v['value'] eq $send_type"
>
selected
</if>
>{{$v.name}}
</option>
</foreach>
</select>
</div>
<if
condition=
"$send_type eq 1"
>
<empty
name=
"params.alipay_life_id"
>
<div
class=
"am-form-group"
>
<label>
{{:L('alipay_life_message_category_text')}}
</label>
<select
name=
"alipay_life_category_id"
class=
"am-radius c-p chosen-select"
multiple=
"multiple"
data-placeholder=
"{{:L('common_select_can_choose')}}"
data-validation-message=
"{{:L('alipay_life_message_category_format')}}"
required
>
<foreach
name=
"alipay_life_category"
item=
"v"
>
<option
value=
"{{$v.id}}"
>
{{$v.name}}
</option>
</foreach>
</select>
</div>
</empty>
<notempty
name=
"params.alipay_life_id"
>
<div
class=
"am-form-group"
>
<label>
{{:L('alipay_life_message_life_text')}}
</label>
<select
name=
"alipay_life_id"
class=
"am-radius c-p chosen-select"
data-placeholder=
"{{:L('common_select_can_choose')}}"
data-validation-message=
"{{:L('alipay_life_message_life_format')}}"
<
notempty
name=
"params.alipay_life_id"
>
disabled
</notempty>
required>
<foreach
name=
"alipay_life_list"
item=
"v"
>
<option
value=
"{{$v.id}}"
<
if
condition=
"$params['alipay_life_id'] eq $v['id']"
>
selected
</if>
>{{$v.name}}
</option>
</foreach>
</select>
</div>
</notempty>
<else
/>
<div
class=
"am-form-group"
>
<label>
{{:L('alipay_life_message_user_text')}}
</label>
<input
type=
"hidden"
name=
"user_id"
value=
"{{$params.user_id}}"
/>
<input
type=
"hidden"
name=
"alipay_life_user_id"
value=
"{{$params.alipay_life_user_id}}"
/>
<input
type=
"text"
class=
"am-radius"
value=
"{{$alipay_openid}}"
disabled
/>
</div>
</if>
<div
class=
"am-form-group"
>
<label>
{{:L('alipay_life_message_title_text')}}
</label>
<input
type=
"text"
name=
"title"
placeholder=
"{{:L('alipay_life_message_title_text')}}"
maxlength=
"80"
data-validation-message=
"{{:L('alipay_life_message_title_format')}}"
class=
"am-radius"
required
/>
</div>
<div
class=
"am-form-group"
>
<label>
{{:L('alipay_life_message_content_text')}}
</label>
<textarea
rows=
"5"
name=
"content"
class=
"am-radius"
placeholder=
"{{:L('alipay_life_message_content_text')}}"
data-validation-message=
"{{:L('alipay_life_message_content_format')}}"
maxlength=
"250"
required
></textarea>
</div>
<if
condition=
"$nav_type eq 1"
>
<div
class=
"am-form-group am-form-file"
>
<label
class=
"block"
>
{{:L('alipay_life_message_image_url_text')}}
</label>
<button
type=
"button"
class=
"am-btn am-btn-default am-btn-sm am-radius"
>
<i
class=
"am-icon-cloud-upload"
></i>
{{:L('common_select_images_text')}}
</button>
<input
type=
"text"
name=
"image_url"
class=
"am-radius js-choice-one original-images-url original-icon-images-url"
data-choice-one-to=
'input[name="file_image_url"]'
data-validation-message=
"{{:L('alipay_life_message_image_url_format')}}"
readonly=
"readonly"
required
/>
<input
type=
"file"
name=
"file_image_url"
multiple
data-validation-message=
"{{:L('alipay_life_message_image_url_format')}}"
accept=
"image/gif,image/jpeg,image/jpg,image/png"
class=
"js-choice-one images-file-event file_image_url-tag"
data-choice-one-to=
".original-icon-images-url"
data-tips-tag=
"#form-icon-tips"
data-image-tag=
"#form-img-icon"
required
/>
<div
id=
"form-icon-tips"
class=
"m-t-5"
></div>
<img
src=
"{{$image_host}}/Public/Admin/Default/Images/default-images.png"
id=
"form-img-icon"
class=
"block m-t-5 am-img-thumbnail am-radius"
width=
"100"
height=
"100"
data-default=
"{{$image_host}}/Public/Admin/Default/Images/default-images.png"
/>
</div>
<div
class=
"am-form-group"
>
<label>
{{:L('alipay_life_message_url_text')}}
</label>
<input
type=
"text"
name=
"url"
placeholder=
"{{:L('alipay_life_message_url_text')}}"
data-validation-message=
"{{:L('alipay_life_message_url_format')}}"
class=
"am-radius"
maxlength=
"255"
required
/>
</div>
<div
class=
"am-form-group"
>
<label>
{{:L('alipay_life_message_action_name_text')}}
</label>
<input
type=
"text"
name=
"action_name"
placeholder=
"{{:L('alipay_life_message_action_name_text')}}"
data-validation-message=
"{{:L('alipay_life_message_action_name_format')}}"
class=
"am-radius"
maxlength=
"60"
/>
</div>
</if>
<div
class=
"am-form-group"
>
<input
type=
"hidden"
name=
"type"
value=
"{{$nav_type}}"
/>
<button
type=
"submit"
class=
"am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100"
data-am-loading=
"{loadingText:'{{:L('common_form_loading_tips')}}'}"
>
{{:L('common_operation_save')}}
</button>
</div>
</form>
<!-- form end -->
</div>
</div>
<!-- right content end -->
<!-- footer start -->
<include
file=
"Public/Footer"
/>
<!-- footer end -->
\ No newline at end of file
service/Public/Admin/Default/Js/AlipayLifeMessage.js
0 → 100644
浏览文件 @
235c8435
$
(
function
()
{
// 添加元素到右侧
function
RightElementAdd
(
value
,
name
)
{
if
(
$
(
'
ul.ul-right
'
).
find
(
'
.items-li-
'
+
value
).
length
==
0
)
{
var
html
=
'
<li class="items-li-
'
+
value
+
'
"><span class="name" data-value="
'
+
value
+
'
">
'
+
name
+
'
</span><i class="am-icon-trash-o am-fr"></i></li>
'
;
$
(
'
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
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录