Commit ce4b9a3c by 冷斌

fix bug

parent 3136fc18
<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2014 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: Dean <zxxjjforever@163.com>
// +----------------------------------------------------------------------
namespace Appapi\Controller;
use Common\Controller\HomebaseController;
class ProfitController extends HomebaseController
{
public function index()
{
$uid=I("uid");
$token=I("token");
if(checkToken($uid,$token)==700){
$this->assign("reason",'您的登陆状态失效,请重新登陆!');
$this->display(':error');
exit;
}
$this->display();
}
public function login()
{
$this->display();
}
}
......@@ -93,7 +93,7 @@
} else {
let info = d.info[0];
sessionStorage.setItem("user_info",JSON.stringify(info));
window.location.href = '/index.php?g=Appapi&m=Level&a=index&uid='+info.id+'&token=' + info.token;
window.location.href = '/index.php?g=Appapi&m=Profit&a=index&uid='+info.id+'&token=' + info.token;
}
}else{
layer.msg(data.msg);
......
<!DOCTYPE html>
<html lang="en">
<head>
<title>我的收益</title>
<tc_include file="Appapi/Public/head2"/>
</head>
<body>
<div class="app" id="app" style="padding-top: 0;">
<div class="my_Profit">
<div class="body">
<div class="bgBox">
<img src="__PUBLIC__/appapi/pay/img/shouyibg.png" >
</div>
<div></div>
<div class="menuBox">
<img src="__PUBLIC__/appapi/img/diamond_32@2x.png" >
<span style="color: #fff">剩余钻石:</span>
<br />
<span style="color: #fff">1000</span>
<div class="menuItem">
<div class="menuHd">
<img src="__PUBLIC__/appapi/pay/img/zhib.png" >
<div class="menutile">直播魅力</div>
</div>
<div class="menuBd">
<p>提现</p>
<img src="../img/more.png" >
</div>
</div>
<div class="menuItem">
<div class="menuHd">
<img src="__PUBLIC__/appapi/pay/img/yaoq.png" >
<div class="menutile">邀请魅力</div>
</div>
<div class="menuBd">
<p>提现</p>
<img src="__PUBLIC__/appapi/pay/img/more.png" >
</div>
</div>
<div class="menuItem">
<div class="menuHd">
<img src="__PUBLIC__/appapi/pay/img/jiazu.png" >
<div class="menutile">家族魅力</div>
</div>
<div class="menuBd">
<p>提现</p>
<img src="__PUBLIC__/appapi/pay/img/more.png" >
</div>
</div>
</div>
</div>
</div>
</div>
<script>
var vm = new Vue({
el: '#app',
data: {
//数据集
phone: '', // 手机号
yzm: '', // 验证码
is_Submit: 1, // 1信息不全 2可以提交
},
methods: {
//事件
checked(){
if(this.phone && this.yzm){
this.is_Submit = 2
}else{
this.is_Submit = 1
}
},
subMit() {
}
},
watch: {
//数据监测函数
},
created: function() {
//加载触发函数
}
});
</script>
</body>
</html>
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