Toggle navigation
Toggle navigation
This project
Loading...
Sign in
liuloulou
/
yohobuy-portal-fe2
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
ZhongW
9 years ago
Commit
7a4e5f2a8511c1643d48442319c832cd6f9dc620
1 parent
6cfe850c
商家端APP升级提醒配置中url修改
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
code/apps/operations/views/shopsVersionUpdate/Index.html
code/static/js.jquery/module/operations/shopsVersionUpdate/Index.js
code/apps/operations/views/shopsVersionUpdate/Index.html
View file @
7a4e5f2
...
...
@@ -60,10 +60,8 @@
<
input
id
=
"url"
class
=
"form-control"
value
=
"[[url]]"
type
=
"text"
disabled
=
"disabled"
style
=
"cursor:default"
required
prompt
=
"app文件"
>
<
/div
>
<
div
class
=
"col-sm-4"
style
=
"position: relative"
>
<
input
id
=
"appFile"
name
=
"appFile"
class
=
"btn btn-default excel-upload"
type
=
"file"
style
=
"position: absolute; top: 0;left: 0;"
>
<
div
id
=
"fileBtn"
class
=
"file-name btn btn-default"
>
请选择文件
<
/div
>
<
div
class
=
"col-sm-4"
style
=
"position: relative"
>
<
div
id
=
"fileBtn"
class
=
"btn btn-info"
style
=
"display:none"
>
安卓路径
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"form-group"
>
...
...
code/static/js.jquery/module/operations/shopsVersionUpdate/Index.js
View file @
7a4e5f2
...
...
@@ -5,7 +5,7 @@ var $ = require('jquery'),
common
=
require
(
'../../../common/common'
);
var
VersionData
=
{};
const
iphoneUrl
=
"
http://www.pgyer.com/apiv1/app/install?_api_key=96ad2e5ad6e718a25cf33184375e8447&aId=c6f11a046941fa1dc09480a7123a3019&password=yoho9646
"
;
const
iphoneUrl
=
"
itms-services://?action=download-manifest&url=https://cdn.yoho.cn/applist/yohovendor/ios/manifest.plist
"
;
new
common
.
dropDown
({
el
:
"#clientType"
});
...
...
@@ -111,12 +111,19 @@ $(document).on("change", ".observe", function () {
if
(
name
==
"clientType"
)
{
if
(
val
==
"iphone"
||
val
==
"ipad"
)
{
$
(
"#url"
).
val
(
iphoneUrl
);
$
(
"#url"
).
attr
(
"disabled"
,
"disabled"
);
$
(
"#appFile"
).
hide
();
$
(
"#fileBtn"
).
hide
();
}
else
{
$
(
"#url"
).
val
(
""
);
}
else
if
(
val
==
"android"
)
{
$
(
"#url"
).
val
(
"http://cdn.yoho.cn/applist/yohovendor/android/yhvendor081902.apk"
);
$
(
"#appFile"
).
show
();
$
(
"#fileBtn"
).
show
();
$
(
"#url"
).
removeAttr
(
"disabled"
);
}
else
{
$
(
"#url"
).
val
(
""
);
$
(
"#url"
).
attr
(
"disabled"
,
"disabled"
);
$
(
"#appFile"
).
hide
();
$
(
"#fileBtn"
).
hide
();
}
}
});
...
...
Please
register
or
login
to post a comment