<div ms-controller=‘new_collage8‘>
<div id="head" class="pr tc bgcfefefe">
<div class="headbox h49 lh49">
<img class="pa left10 top15 h18 cp zi2 back" src="images/back.png" onclick="back();"/>
<span class="f18 c070707">我得课程收入</span>
</div>
<div class="bbhhd"></div>
</div>
<div class="wrap">
<div class="pr h125 wp100" style="background-color: red">
<h2 style="color: white;padding: 24px">我的课程收入 (元)</h2>
<h1 style="color: white;margin-left: 7%;margin-top: -5%">{{price.nreflect}}</h1>
</div>
<div>
<!-- <table ms-if="!userinfo.vip && og" class="bgcfff wp100 bs0 h50 bt bb bceee mt-1" tapmode="bgcf1f1f1" ms-click="tovip()">
</table> -->
<table class="bgcfff wp100 bs0 h50 bt bb bceee mt-1" tapmode="bgcf1f1f1" ms-click="toinfo()" style="position:relative">
<tr>
<td class="f16 c222" style="padding-left: 10px;position:absolute;left:0;top:16px">已提现:{{price.reflect}}元 <span style="margin-left: 43%;position:absolute;right: -212px;top:-4px" ms-click="tixian()" >查看提现</span></td>
<td class="w6 pl10 pr20"><img class="w6" src="images/right.png" /></td>
</tr>
</table>
<table class="bgcfff wp100 bs0 h50 bt bb bceee mt-1" tapmode="bgcf1f1f1" ms-click="toinfo()" style="position:relative">
<tr>
<td class="f16 c222" style="padding-left: 10px;position:absolute;left:0;top:16px">订单明细<span style="margin-left: 43%;position:absolute; right: -268px;
top:-4px" ms-click="xiangqing()" >查看详情</span></td>
<td class="w6 pl10 pr20"><img class="w6" src="images/right.png" /></td>
</tr>
</table>
<!--
<table class="bgcfff wp100 bs0 h50 bt bb bceee mt-1" tapmode="bgcf1f1f1" ms-click="toinfo()">
<tr>
<td class="f16 c222" style="padding-left: 10px">订单明细<span style="margin-left: 61%" ms-click="xiangqing()">查看详情</span></td>
<td class="w6 pl10 pr20"><img class="w6" src="images/right.png" /></td>
</tr>
</table> -->
</div>
</div>
</div>
</div>
<script type="text/javascript">
(function(name) {
//avalon 开始
if(Main.ava[name] == undefined) {
Main.ava[name] = avalon.define({
$id: name,
id:0,
//配置开始
name: name,
zhuanlan:[],
//提现
price:{},
//订单详情页面
toinfoo: function(id) {
// alert(id);
towin(‘new_collage3‘, false, {
id: id,
});
},
//我购买的课
mai: function() {
towin(‘new_collage5‘, false, {});
},
//查看提现
tixian: function() {
towin(‘new_collage7‘, false, {});
},
//查看详情
xiangqing: function() {
towin(‘new_collage9‘, false, {});
},
});
}
//avalon 结束
//class 开始
var info = Main.ava[name];
var Cls = {
createNew: function() {
//实例化ajax类
var ajax_obj = ajaxCls.createNew();
var addajaxlist = ajax_obj.addajaxlist;
var ajaxgo = ajax_obj.ajaxgo;
//实例化ajax类 --结束
var Class = {}; //类
//模拟类开始-----------------------------------------------------------------start
var info = Main.ava[name];
//公有属性---------------------------------------------
var win_name = name;
Class.setbase = function() {
};
Class.go = function(objgo) {
//列表
addajaxlist(‘class_sr‘, {
}, function(data) {
if(data.status) {
//p(data);
var obj = data.data;
if(obj) {
info.price = obj;
} else {
info.price = [];
}
} else {
info.price = [];
$msg(data.msg);
}
});
ajaxgo(objgo);
p(name + ‘go‘);
};
//私有属性---------------------------------------------
//模拟类结束-----------------------------------------------------------------end
return Class;
}
}
Main.obj[name] = Cls.createNew();
Main.obj[name].setbase();
Main.obj[name].go();
//class 结束
//附加预先运行函数
})(‘new_collage8‘);
</script>