Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
710af31d
Commit
710af31d
authored
Aug 02, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
94ebbd76
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
9 deletions
+15
-9
index.html
application/index/view/version/index.html
+8
-8
AppVersion.php
application/model/AppVersion.php
+1
-1
version.js
public/resource/js/version.js
+5
-0
version_template_tpl.html
public/resource/template/version_template_tpl.html
+1
-0
No files found.
application/index/view/version/index.html
View file @
710af31d
...
@@ -71,14 +71,14 @@
...
@@ -71,14 +71,14 @@
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
<div
class=
"radio"
style=
"display: inline-block"
>
<div
class=
"radio"
style=
"display: inline-block"
>
<label>
<label>
<input
type=
"radio"
name=
"
options
Radios"
id=
"is_update_1"
value=
"0"
<input
type=
"radio"
name=
"
isUpdate
Radios"
id=
"is_update_1"
value=
"0"
checked
>
强制更新
checked
>
强制更新
</label>
</label>
</div>
</div>
<div
class=
"radio"
style=
"display: inline-block"
>
<div
class=
"radio"
style=
"display: inline-block"
>
<label>
<label>
<input
type=
"radio"
name=
"
options
Radios"
id=
"is_update_2"
<input
type=
"radio"
name=
"
isUpdate
Radios"
id=
"is_update_2"
value=
"1"
>
非强制更新
value=
"1"
>
非强制更新
</label>
</label>
</div>
</div>
...
@@ -122,12 +122,12 @@
...
@@ -122,12 +122,12 @@
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<thead>
<tr>
<tr>
<th
class=
"text-center"
style=
"width:15%;"
>
发布时间
</th>
<th
class=
"text-center"
>
发布时间
</th>
<th
class=
"text-center"
style=
"width:8%;"
>
app类型
</th>
<th
class=
"text-center"
>
app类型
</th>
<th
class=
"text-center"
style=
"width:8%;"
>
版本号
</th>
<th
class=
"text-center"
>
版本号
</th>
<th
class=
"text-center"
style=
"width:5%;"
>
强制更新
</th>
<th
class=
"text-center"
>
强制更新
</th>
<th
class=
"text-center"
style=
"width:14%;"
>
下载地址
</th>
<th
class=
"text-center"
>
下载地址
</th>
<th
class=
"text-center"
style=
"width:50%;"
>
发布简述
</th>
<th
class=
"text-center"
>
发布简述
</th>
</tr>
</tr>
</thead>
</thead>
<tbody
id=
"sublet_list"
class=
"text-center"
>
<tbody
id=
"sublet_list"
class=
"text-center"
>
...
...
application/model/AppVersion.php
View file @
710af31d
...
@@ -37,7 +37,7 @@ class AppVersion extends Model
...
@@ -37,7 +37,7 @@ class AppVersion extends Model
public
function
getVersionList
()
public
function
getVersionList
()
{
{
$param
[
"is_del"
]
=
0
;
$param
[
"is_del"
]
=
0
;
return
$this
->
field
(
"id,version_no,IF(type = 1,'ios','android') as type ,create_time,intro,app_path,is_update"
)
return
$this
->
field
(
"id,version_no,IF(type = 1,'ios','android') as type ,create_time,intro,app_path,
IF(is_update = 1,'是','否') as
is_update"
)
->
where
(
$param
)
->
where
(
$param
)
->
order
(
"id desc"
)
->
order
(
"id desc"
)
->
select
();
->
select
();
...
...
public/resource/js/version.js
View file @
710af31d
...
@@ -25,6 +25,7 @@ define(['doT', 'text!temp/version_template_tpl.html', 'ckfinder', 'ckfinderStart
...
@@ -25,6 +25,7 @@ define(['doT', 'text!temp/version_template_tpl.html', 'ckfinder', 'ckfinderStart
params
.
version_no
=
$
(
"#version_no"
).
val
();
params
.
version_no
=
$
(
"#version_no"
).
val
();
params
.
app_path
=
$
(
"#cover_image"
).
val
();
params
.
app_path
=
$
(
"#cover_image"
).
val
();
params
.
intro
=
$
(
"#intro"
).
val
();
params
.
intro
=
$
(
"#intro"
).
val
();
params
.
isUpdate
=
$
(
"input[name = isUpdateRadios]:checked"
).
val
();
if
(
!
params
.
type
||
params
.
type
==
null
)
{
if
(
!
params
.
type
||
params
.
type
==
null
)
{
alert
(
"类型不能为空"
);
alert
(
"类型不能为空"
);
...
@@ -38,6 +39,10 @@ define(['doT', 'text!temp/version_template_tpl.html', 'ckfinder', 'ckfinderStart
...
@@ -38,6 +39,10 @@ define(['doT', 'text!temp/version_template_tpl.html', 'ckfinder', 'ckfinderStart
alert
(
"下载地址不能为空"
);
alert
(
"下载地址不能为空"
);
return
false
;
return
false
;
}
}
if
(
!
params
.
isUpdate
||
params
.
isUpdate
==
null
)
{
alert
(
"是否强制更新不能为空"
);
return
false
;
}
Version
.
addVersion
(
params
);
Version
.
addVersion
(
params
);
});
});
...
...
public/resource/template/version_template_tpl.html
View file @
710af31d
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"type"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"type"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"version_no"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"version_no"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"is_update"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"app_path"
]
||
'---'
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"app_path"
]
||
'---'
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"intro"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"intro"
]
%
]
<
/td
>
<
/tr
>
<
/tr
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment