Browse Source

支付没有微信应用提示

wangshan 5 years ago
parent
commit
5d96bec866

+ 3 - 0
src/jfw/modules/app/src/main.go

@@ -37,6 +37,9 @@ func main() {
 		if strings.HasSuffix(r.URL.String(), ".apk") {
 			w.Header().Set("Content-Type", "application/vnd.android.package-archive")
 		}
+		if strings.HasSuffix(r.URL.String(), ".xlsx") {
+			w.Header().Set("Content-Type", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
+		}
 		http.StripPrefix("/jyapp/res/", http.FileServer(http.Dir("web/staticres/jyapp/res"))).ServeHTTP(w, r)
 	})
 	xweb.RunBase(":"+Sysconfig["webport"].(string), mux1)

+ 4 - 0
src/jfw/modules/app/src/web/templates/dataExport/dataExport_payOrder.html

@@ -846,6 +846,10 @@
 					$("#easyAlert").remove();
 				}
 			}
+			//
+            function showToast (content) {
+              EasyAlert.show(content,"",3000);
+            }
 		</script>
 <!--百度统计end-->
 {{include "/common/baiducc.html"}}

+ 45 - 0
src/jfw/modules/app/src/web/templates/dataExport/dataExport_toMyOrder.html

@@ -347,6 +347,20 @@
 			    -webkit-transform: scaleY(.5);
 			    transform: scaleY(.5);
 			}
+			.easyalert {
+			    position: fixed;
+			    background-color: rgba(0,0,0,0.7);
+			    top: 50%;
+			    color: #fff;
+			    z-index: 999;
+			    border-radius: 6px;
+			    padding: 17px 20px;
+			    font-size: 15px;
+			    line-height: 22px;
+			    max-width: 260px;
+			    text-align: center;
+			    display: none;
+			}
 		</style>
 		<div class="app-layout-header">
 			<span class="app-back jyapp-icon jyapp-icon-zuojiantou"></span>
@@ -806,6 +820,7 @@
 			            $(".loading_").hide();
 			            canpay = true;
 					})
+					
 				})
 				
 		        var interval
@@ -1305,6 +1320,36 @@
 			}
 			*/
 		
+			//提示框
+			var EasyAlert = {
+				timeout: null,
+				waitTime: 1000,
+				show: function(text, css, waitTime) {
+					if (this.timeout != null) {
+						clearTimeout(this.timeout);
+						this.hide();
+						this.timeout = null;
+					}
+					var thisClass = this;
+					this.timeout = setTimeout(function() {
+						thisClass.hide();
+						thisClass.timeout = null;
+					}, waitTime ? waitTime : this.waitTime);
+					$("body").append('<div class="easyalert" id="easyAlert">' + text + '</div>');
+					$("#easyAlert").css({
+						"left": "50%",
+						"margin-top": -($("#easyAlert").outerHeight() / 2),
+						"margin-left": -($("#easyAlert").outerWidth() / 2)
+					}).show();
+				},
+				hide: function() {
+					$("#easyAlert").remove();
+				}
+			}
+			//
+            function showToast (content) {
+              EasyAlert.show(content,"",3000);
+            }
 		</script>
 <!--百度统计end-->
 {{include "/common/baiducc.html"}}

+ 44 - 0
src/jfw/modules/app/src/web/templates/dataExport/dataExport_toOrderDetail.html

@@ -195,6 +195,20 @@
 		    -webkit-transform: scaleY(.5);
 		    transform: scaleY(.5);
 		}
+		.easyalert {
+		    position: fixed;
+		    background-color: rgba(0,0,0,0.7);
+		    top: 50%;
+		    color: #fff;
+		    z-index: 999;
+		    border-radius: 6px;
+		    padding: 17px 20px;
+		    font-size: 15px;
+		    line-height: 22px;
+		    max-width: 260px;
+		    text-align: center;
+		    display: none;
+		}
 	</style>
 		<script>
 			var pay_way="wx_app";
@@ -516,6 +530,36 @@
 	            return n+n2;
 	        }
 			
+			//提示框
+			var EasyAlert = {
+				timeout: null,
+				waitTime: 1000,
+				show: function(text, css, waitTime) {
+					if (this.timeout != null) {
+						clearTimeout(this.timeout);
+						this.hide();
+						this.timeout = null;
+					}
+					var thisClass = this;
+					this.timeout = setTimeout(function() {
+						thisClass.hide();
+						thisClass.timeout = null;
+					}, waitTime ? waitTime : this.waitTime);
+					$("body").append('<div class="easyalert" id="easyAlert">' + text + '</div>');
+					$("#easyAlert").css({
+						"left": "50%",
+						"margin-top": -($("#easyAlert").outerHeight() / 2),
+						"margin-left": -($("#easyAlert").outerWidth() / 2)
+					}).show();
+				},
+				hide: function() {
+					$("#easyAlert").remove();
+				}
+			}
+			//
+            function showToast (content) {
+              EasyAlert.show(content,"",3000);
+            }
 		</script>		
 		<div class="app-layout-header">
 			<span class="app-back jyapp-icon jyapp-icon-zuojiantou"></span>