|
@@ -55,8 +55,13 @@
|
|
|
<script>
|
|
|
function pay(url,mobile,type)
|
|
|
{
|
|
|
- $.get(url, {mobile:mobile,type:type}, function(t) {
|
|
|
- $("#pay").html(t);
|
|
|
+ $.getJSON(url + '&json=1', {mobile:mobile,type:type}, function(t) {
|
|
|
+ if (t.status == 1) {
|
|
|
+ $("#pay").html(t.data);
|
|
|
+ } else {
|
|
|
+ alert(t.msg);
|
|
|
+ }
|
|
|
+
|
|
|
})
|
|
|
}
|
|
|
$(function(){
|