Commit 976e927c authored by houdong's avatar houdong

战法二期版本

parent 9a2f3c49
......@@ -43,20 +43,27 @@
<script>
//点用户名和头像跳转到该大赛的旧的交易页
flag=0;
// $('.user-head,.head-r-t').click(function(){
// if(flag==1)return;
// flag=1;
// $.post("/PkTop/getGoTradeInfo", {'userId':$(this).attr('pId'),'userName':$(this).attr('pName')}, function (res) {
// if (res.status == 1) {
// flag=0;
// // alert(res.data);
// if(mfrom[1] > 0){
// AppBridge.goTrade(res.data);
// }
// }
// });
// });
$(".username").unbind();
$(".username").click(function () {
if(typeof($(this).attr("goTradeInfo"))!="undefined"){
if(mfrom[1]>0){
var appParam=$(this).attr('goTradeInfo');
AppBridge.goTrade(appParam);
}else{
console.log('app外访问');
}
}
});
$(".stock_name").unbind();
$(".stock_name").click(function () {
if(typeof($(this).attr("goStockDetails"))!="undefined"){
if(mfrom[0]>0){
var appParam=$(this).attr('goStockDetails');
AppBridge.goStockDetails(eval('appParam'));
}else{
console.log('app外访问');
}
}
})
</script>
......@@ -41,7 +41,7 @@
AppBridge.init();
//页面默认刷新
var userId="{$user.userID}";//这个userid 一定是从session或者cookie里验证后获取到的。
var mfrom=isAPP();
</script>
</head>
<body style="min-height: 100%;background-color: #C60000;">
......
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