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
66f6a5e0
Commit
66f6a5e0
authored
Dec 29, 2017
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
3c806950
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
index.html
application/index/view/version/index.html
+7
-1
AppVersion.php
application/model/AppVersion.php
+2
-1
version.js
public/resource/js/version.js
+3
-3
No files found.
application/index/view/version/index.html
View file @
66f6a5e0
...
...
@@ -56,12 +56,18 @@
<div
class=
"form-group show_select_page"
>
<label
class=
"col-sm-3 control-label"
style=
"text-align: right"
>
上传包:
</label>
<
!--<
label class="col-sm-3 control-label" style="text-align: right">上传包:</label>
<div class="col-sm-9">
<input readonly="readonly" type="text" name="cover_image" class="form-control"
style="width: 150px !important;display: inline-block"
id="cover_image" class="require" placeholder="请选择包"/>
<button class="banner_img btn btn-default" type="button">选择包</button>
</div>-->
<label
class=
"col-sm-3 control-label"
style=
"text-align: right"
>
下载地址:
</label>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control btn6"
name=
"cover_image"
id=
"cover_image"
style=
"width: 220px;"
placeholder=
"下载地址"
>
</div>
</div>
<div
class=
"form-group"
>
...
...
application/model/AppVersion.php
View file @
66f6a5e0
...
...
@@ -22,7 +22,8 @@ class AppVersion extends Model
$type
=
$type
==
'android'
?
1
:
0
;
$param
[
"type"
]
=
$type
;
$param
[
"is_del"
]
=
0
;
return
$this
->
field
(
"id,version_no,type,create_time,intro,CONCAT('"
.
CK_IMG_URL
.
"' , app_path) as app_path"
)
// return $this->field("id,version_no,type,create_time,intro,CONCAT('".CK_IMG_URL."' , app_path) as app_path")
return
$this
->
field
(
"id,version_no,type,create_time,intro, app_path"
)
->
where
(
$param
)
->
order
(
"id desc"
)
->
limit
(
1
)
...
...
public/resource/js/version.js
View file @
66f6a5e0
...
...
@@ -13,9 +13,9 @@ define (['doT', 'text!temp/version_template_tpl.html', 'ckfinder', 'ckfinderStar
},
event
:
function
()
{
/*上传图片控件*/
$
(
".banner_img"
).
click
(
function
()
{
/*
$ (".banner_img").click (function () {
BrowseServer ('cover_image');
});
});
*/
$
(
"#save"
).
click
(
function
()
{
...
...
@@ -35,7 +35,7 @@ define (['doT', 'text!temp/version_template_tpl.html', 'ckfinder', 'ckfinderStar
return
false
;
}
if
(
params
.
type
===
"android"
&&
params
.
app_path
==
null
||
!
params
.
version_no
)
{
alert
(
"
上传的包路径
不能为空"
);
alert
(
"
下载地址
不能为空"
);
return
false
;
}
...
...
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