Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
纵之格
ShopXO
提交
d4895a60
ShopXO
项目概览
纵之格
/
ShopXO
通知
394
Star
16
Fork
11
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d4895a60
编写于
4月 18, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
应用
上级
e2038f62
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
30 addition
and
24 deletion
+30
-24
application/plugins/petscms/Pets.php
application/plugins/petscms/Pets.php
+6
-2
application/plugins/view/petscms/pets/saveinfo.html
application/plugins/view/petscms/pets/saveinfo.html
+14
-12
application/plugins/view/petscms/petsadmin/saveinfo.html
application/plugins/view/petscms/petsadmin/saveinfo.html
+10
-10
未找到文件。
application/plugins/petscms/Pets.php
浏览文件 @
d4895a60
...
...
@@ -118,8 +118,12 @@ class Pets extends Controller
}
unset
(
$params
[
'id'
]);
}
$this
->
assign
(
'data'
,
$data
);
// 是否绑定
$this
->
assign
(
'pest_no'
,
empty
(
$params
[
'pest_no'
])
?
''
:
$params
[
'pest_no'
]);
unset
(
$params
[
'pest_no'
]);
$this
->
assign
(
'params'
,
$params
);
$this
->
assign
(
'data'
,
$data
);
$this
->
assign
(
'pets_attribute_status_list'
,
Service
::
$pets_attribute_status_list
);
$this
->
assign
(
'pets_attribute_is_text_list'
,
Service
::
$pets_attribute_is_text_list
);
$this
->
assign
(
'pets_attribute_gender_list'
,
Service
::
$pets_attribute_gender_list
);
...
...
@@ -174,7 +178,7 @@ class Pets extends Controller
// 用户
$params
[
'user_id'
]
=
$this
->
user
[
'id'
];
return
Service
::
Pe
st
Save
(
$params
);
return
Service
::
Pe
ts
Save
(
$params
);
}
/**
...
...
application/plugins/view/petscms/pets/saveinfo.html
浏览文件 @
d4895a60
...
...
@@ -30,10 +30,10 @@
<!-- 基础 -->
<div
class=
"base-view"
>
{{if empty($data['id']) and !empty($p
arams['pest_no']
)}}
{{if empty($data['id']) and !empty($p
est_no
)}}
<div
class=
"am-form-group"
>
<label>
编号
<span
class=
"am-form-group-label-tips"
>
宠物绑定
</span></label>
<input
type=
"text"
name=
"pest_no"
placeholder=
"编号"
maxlength=
"60"
data-validation-message=
"编号格式 1~60 个字符之间"
class=
"am-radius"
value=
"{{$p
arams.p
est_no}}"
readonly=
"true"
/>
<input
type=
"text"
name=
"pest_no"
placeholder=
"编号"
maxlength=
"60"
data-validation-message=
"编号格式 1~60 个字符之间"
class=
"am-radius"
value=
"{{$pest_no}}"
readonly=
"true"
/>
</div>
{{/if}}
...
...
@@ -114,6 +114,18 @@
<div
class=
"plug-file-upload-submit"
data-view-tag=
"ul.goods-photo-view"
>
+上传相册
</div>
</div>
{{if empty($pest_no)}}
<div
class=
"am-form-group"
>
<label>
状态
<span
class=
"am-form-group-label-tips-must"
>
必选
</span></label>
<select
name=
"status"
class=
"am-radius chosen-select"
data-placeholder=
"可选择..."
data-validation-message=
"请选择状态"
required
>
<option
value=
""
>
可选择...
</option>
{{foreach $pets_attribute_status_list as $v}}
<option
value=
"{{$v.value}}"
{{
if
isset
($
data
['
status
'])
and
$
data
['
status
']
eq
$
v
['
value
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
{{/foreach}}
</select>
</div>
{{/if}}
<!-- 宠物简介 -->
<div
class=
"am-form-group"
>
<label>
宠物简介
<span
class=
"am-form-group-label-tips"
>
选填
</span></label>
...
...
@@ -181,16 +193,6 @@
</div>
</div>
<div
class=
"am-form-group"
>
<label>
状态
<span
class=
"am-form-group-label-tips-must"
>
必选
</span></label>
<select
name=
"status"
class=
"am-radius chosen-select"
data-placeholder=
"可选择..."
data-validation-message=
"请选择状态"
required
>
<option
value=
""
>
可选择...
</option>
{{foreach $pets_attribute_status_list as $v}}
<option
value=
"{{$v.value}}"
{{
if
isset
($
data
['
status
'])
and
$
data
['
status
']
eq
$
v
['
value
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
{{/foreach}}
</select>
</div>
<div
class=
"am-form-group am-form-group-refreshing"
>
<input
type=
"hidden"
name=
"id"
value=
"{{if !empty($data['id'])}}{{$data.id}}{{/if}}"
/>
<button
type=
"submit"
class=
"am-btn am-btn-primary am-radius btn-loading-example am-btn-sm am-btn-block"
data-am-loading=
"{loadingText:'处理中...'}"
>
提交
</button>
...
...
application/plugins/view/petscms/petsadmin/saveinfo.html
浏览文件 @
d4895a60
...
...
@@ -88,6 +88,16 @@
<div
class=
"plug-file-upload-submit"
data-view-tag=
"ul.goods-photo-view"
>
+上传相册
</div>
</div>
<div
class=
"am-form-group"
>
<label>
状态
</label>
<select
name=
"status"
class=
"am-radius chosen-select"
data-placeholder=
"可选择..."
data-validation-message=
"请选择状态"
>
<option
value=
""
>
可选择...
</option>
{{foreach $pets_attribute_status_list as $v}}
<option
value=
"{{$v.value}}"
{{
if
isset
($
data
['
status
'])
and
$
data
['
status
']
eq
$
v
['
value
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
{{/foreach}}
</select>
</div>
<!-- 宠物简介 -->
<div
class=
"am-form-group"
>
<label>
宠物简介
</label>
...
...
@@ -155,16 +165,6 @@
</div>
</div>
<div
class=
"am-form-group"
>
<label>
状态
</label>
<select
name=
"status"
class=
"am-radius chosen-select"
data-placeholder=
"可选择..."
data-validation-message=
"请选择状态"
>
<option
value=
""
>
可选择...
</option>
{{foreach $pets_attribute_status_list as $v}}
<option
value=
"{{$v.value}}"
{{
if
isset
($
data
['
status
'])
and
$
data
['
status
']
eq
$
v
['
value
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
{{/foreach}}
</select>
</div>
<div
class=
"am-form-group am-form-group-refreshing"
>
<input
type=
"hidden"
name=
"id"
value=
"{{if !empty($data['id'])}}{{$data.id}}{{/if}}"
/>
<input
type=
"hidden"
name=
"user_id"
value=
"{{if !empty($data['user_id'])}}{{$data.user_id}}{{/if}}"
/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录