Commit f59acc98 by 冷斌

fix bug

parent fb166004
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
.header .coin{ .header .coin{
font-weight:bold; font-weight:bold;
} }
.header .user-id{ .header .user-id{
float:right; float:right;
line-height:40px; line-height:40px;
...@@ -50,10 +50,10 @@ ...@@ -50,10 +50,10 @@
height:10px; height:10px;
} }
.content{ .content{
} }
.list{ .list{
} }
.list li{ .list li{
padding:10px 15px; padding:10px 15px;
...@@ -62,14 +62,14 @@ ...@@ -62,14 +62,14 @@
.list li.on{ .list li.on{
border:1px solid #FED25C; border:1px solid #FED25C;
} }
.list li:after{ .list li:after{
content:"."; content:".";
display:block; display:block;
height:0; height:0;
clear:both; clear:both;
visibility:hidden; visibility:hidden;
overflow:hidden; overflow:hidden;
} }
.list li .li-left{ .list li .li-left{
float:left; float:left;
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
.footer{ .footer{
text-align:center; text-align:center;
} }
.footer a{ .footer a{
color:#3e97f8; color:#3e97f8;
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
</head> </head>
<body > <body >
<div class="header"> <div class="header">
充值账号(输入): <span class=""><input type="text" name="uid" value="{$userinfo['uid']}" data-uid="0"/> <span class="coin" id="userinfo" style="display: none;"><img src="" id="avatar"><span id="nice_name" style="margin-left: 20px;">{$userinfo['user_nicename']}</span></span> </span> 充值账号(输入): <span class=""><input type="text" name="uid" value="{$userinfo['uid']}" data-uid="0"/> <span class="coin" id="userinfo" style="display: none;"><img src="" id="avatar"><span id="nice_name" style="margin-left: 20px;">{$userinfo['user_nicename']}</span></span> </span>
</div> </div>
<div class="header"> <div class="header">
余额(萌豆): <span class="coin" id="coin">0</span> 余额(萌豆): <span class="coin" id="coin">0</span>
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
<div class="line"></div> <div class="line"></div>
<div class="line"></div> <div class="line"></div>
<div class="content"> <div class="content">
<ul class="list"> <ul class="list">
<volist name="chargelist" id="v"> <volist name="chargelist" id="v">
...@@ -140,9 +140,9 @@ ...@@ -140,9 +140,9 @@
</ul> </ul>
</div> </div>
<div class="footer"> <div class="footer">
</div> </div>
<script src="__PUBLIC__/share/js/jquery-1.10.1.min.js"></script> <script src="__PUBLIC__/share/js/jquery-1.10.1.min.js"></script>
<script> <script>
var isiPad = /iPad/i.test(navigator.userAgent); var isiPad = /iPad/i.test(navigator.userAgent);
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
var that = this; var that = this;
console.log($(this).val()); console.log($(this).val());
$.ajax({ $.ajax({
url:'/wxshare/index.php/pay/getUserInfo', url:'/wxshare/index.php?g=home&c=pay&a=getUserInfo',
data:{ uid: $(this).val() }, data:{ uid: $(this).val() },
dataType:'json', dataType:'json',
success:function(data){ success:function(data){
...@@ -184,17 +184,18 @@ ...@@ -184,17 +184,18 @@
error:function(e){ error:function(e){
console.log(e); console.log(e);
} }
}) })
}); });
$(".content .list li").on("click",function(){ $(".content .list li").on("click",function(){
var money=$(this).attr("data-price"); var money=$(this).attr("data-price");
var chargeid=$(this).attr("data-id"); var chargeid=$(this).attr("data-id");
var uid = $("input[name='uid']").attr("data-uid"); var uid = $("input[name='uid']").attr("data-uid");
if(uid){ if(uid){
$.ajax({ $.ajax({
url:'/wxshare/index.php/pay/getOrderId', // url:'/wxshare/index.php/pay/getOrderId',
url:'/wxshare/index.php?g=home&c=share&a=getOrderId',
data:{ chargeid: chargeid,uid: uid }, data:{ chargeid: chargeid,uid: uid },
dataType:'json', dataType:'json',
success:function(data){ success:function(data){
...@@ -209,12 +210,12 @@ ...@@ -209,12 +210,12 @@
error:function(e){ error:function(e){
console.log(e); console.log(e);
} }
}) })
}else{ }else{
alert("请填写用户ID"); alert("请填写用户ID");
} }
}) })
}) })
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment