Authored by ZhongW

商家端APP升级提醒配置中url修改

... ... @@ -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">
... ...
... ... @@ -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();
}
}
});
... ...