|
@@ -208,11 +208,11 @@
|
|
|
}
|
|
|
$("#show_invoice").on("click",function () {
|
|
|
var url = $("#show_invoice").attr("href_");
|
|
|
- if (isAndroid) {
|
|
|
- location.href = "/jyapp/front/viewPdf?file="+ url;
|
|
|
- } else {
|
|
|
- JyObj.openExternalLink(url,'电子发票');
|
|
|
- }
|
|
|
+ //if (isAndroid) {
|
|
|
+ // location.href = "/jyapp/front/viewPdf?file="+ url;
|
|
|
+ //} else {
|
|
|
+ JyObj.openExternalLink(url,'电子发票');
|
|
|
+ //}
|
|
|
})
|
|
|
function download(download_url) {
|
|
|
if (isAndroid) {
|
|
@@ -278,7 +278,9 @@
|
|
|
$("#process li").addClass("active")
|
|
|
$("#processing").hide()
|
|
|
$("#change").show()
|
|
|
- r.data.url= r.data.url.replace("http","https");
|
|
|
+ if(r.data.url.indexOf("https")<0){
|
|
|
+ r.data.url = r.data.url.replace("http","https");
|
|
|
+ }
|
|
|
download_url = r.data.url
|
|
|
$("#show_invoice").attr('href_',r.data.url);
|
|
|
if (r.data.invoice_changed == 1){
|