Commit da287c82 by 陈超

A

parent ffc12930
...@@ -952,4 +952,14 @@ div::-webkit-scrollbar { ...@@ -952,4 +952,14 @@ div::-webkit-scrollbar {
height: 1.5rem; height: 1.5rem;
background:rgba(163,228,96,1); background:rgba(163,228,96,1);
border-radius: 0.75rem; border-radius: 0.75rem;
}
/* Promotion */
.promotion_top_hint {
height:28px;
background:rgba(251,255,247,1);
}
.promotion_input_container {
padding: 0.75rem;
} }
\ No newline at end of file
<include file="__THEME__/public_header_w3g"/> <include file="__THEME__/public_header_w3g"/>
<style media="screen">
.comment_list .li .list a{display: inline-block;}
.comment_list .li .fxp{float: left;}
.comment_list .li .fxp img{width: 80px;height: 80px;}
.comment_list .li .mynote{overflow: hidden;padding-left: 10px;;}
.comment_list .li .fbtime span:first-child{float: left;}
.comment_list .li .fbtime span:last-child{color: #00BED4;width: 100%;float: left;}
.comment_list .li .fbtime .time{color: #888;font-size: 12px;}
.comment_list .li .fbtime{overflow: hidden;}
.comment_list .li .fbtime .Operation-wd{display: none;position: fixed;background: rgba(0,0,0,0.1);left: 0px;top: 0;width: 100%;height: 100%;z-index: 10;}
.comment_list .li .fbtime .Operation-wd a{position: absolute;left: 0;bottom: 50px;width: 100%;background: #fff;display: block;}
.comment_list .li .fbtime .icon-gengduo{float: right;font-size: 18px;color: #333;margin-right: 20px;}
.comment_list .li .fbtime .Operation-wd a span{width: 100%;border-bottom: 1px solid #dcdcdc;height: 40px;line-height: 40px;text-align: center;display: block;color: #333;}
</style>
<div class="body"> <style type="text/css">
<div class="header2">
<a href="{:U('home/User/index')}" class="icon-back"></a>
<div>我的分享</div>
</div>
<div class="body"> </style>
<ul class="classlistnav">
<!-- <li class = "on"> <a href="javascript:;" type="getWenda" onclick=" navClick(this,'share')" >我的分享</a></li> -->
<!--<li> <a href="javascript:;" type="getAnswer" onclick=" navClick(this,'income')">我的分享收入余额</a></li>-->
</ul>
</div>
<div class="centerbox"> <div id="app">
<ul class="comment_list" style="padding-top:20px;">
<div class="layout_v">
</ul> <div class="promotion_top_hint text_12_400 color_999999">当前身份:普通推广员</div>
</div> <div class="promotion_input_container layout_h_v_c">
<div class="layout_v_b">
<span class="text_14_400 color_333333">收益金额</span>
<div class="layout_h">
<span class="text_26_600 color_333333">¥</span>
<span class="text_26_600 color_333333" style="margin-left: 0.5rem;">{{money}}</span>
</div>
</div>
</div>
</div>
</div> </div>
<if condition="$data['data']"> <script type="text/javascript">
<div class="loadding">
<if condition="$data['nowPage'] eq $data['totalPages']"> new Vue({
<div>再拉也没有了。。</div><else/>正在加载更多。。 el: "#app",
</if> data: function() {
</div> return {
</if> money: 0
<script> }
}
var type; })
var p;
var url="{:U('home/Home/getshare')}";
$(function(){
type="me"
//异步加载我购买的课程
$.ajax({
type:"POST",
url:url,
data:"p=1&type="+type,
dataType:"json",
success:function(data){
appendHtml(data,type);
}
});
});
//请求事件
function ajaxBang(url,type,callback){
$.ajax({
type: "GET",
url:"{:U('home/Home/getshare')}",
data:"p="+p+"&type="+type,
dataType:"json",
success:function(data){
appendHtml(data,type);
}
});
}
var type;
var p = 1;
$(function() {
$(".header").hide();
$(window).scroll(function () {
//已经滚动到上面的页面高度
var scrollTop = $(this).scrollTop();
//页面高度
var scrollHeight = $(document).height();
//浏览器窗口高度
var windowHeight = $(this).height();
//此处是滚动条到底部时候触发的事件,在这里写要加载的数据,或者是拉动滚动条的操作
if (scrollHeight - (scrollTop + windowHeight) < 60 ) {
if(!p || p >= "{$data['totalPages']}"){
$('.loadding').html('<div>再拉也没有了。。</div>');
return false;
}else{
p = p + 1;
ajaxBang();
}
}
});
});
function delShare(obj,sid) {
$.ajax({
type: "POST",
url:"{:U('course/VideoShare/delShare')}",
data:"sid="+sid,
dataType:"json",
success:function(e){
if(e.status == 1){
ui.success(e.info);
window.location.reload();
}else{
ui.error(e.info);
}
}
});
}
//头部点击事件
function navClick(cate,type){
$(".comment_list").html("");
type=type;
$("li").removeClass("on");
$(cate).parent("li").addClass("on");
p=1;
ajaxBang(url,type);
}
//追加html
function appendHtml(data){
if(data.count<1){
$(".comment_list").html("<div class='no-data'><img src='__THEME__/images/no-data.png'/></div>");
}else{
$(".comment_list").append(data.data);
}
if(data.income)
{
$(".comment_list").html("可兑换余额"+data.share_price+"积分");
$('.loadding').html('<div>再拉也没有了。。</div>')
return false;
}
if(!p || p >= data.totalPages){
$('.loadding').html('<div>再拉也没有了。。</div>')
return false;
}
}
function edit_box(obj){
$(".Operation-wd").show();
};
function mobliedelShare(obj,sid) {
ui.confirm('确定要删除该分享吗?', {
yes: function () {
$.ajax({
type: "POST",
url:"{:U('course/VideoShare/delShare')}",
data:"sid="+sid,
dataType:"json",
success:function(e){
if(e.status == 1){
ui.success(e.info);
window.location.reload();
}else{
ui.error(e.info);
}
}
});
}
});
}
</script> </script>
<!--footer-->
<include file="__THEME__/public_footer_w3g"/> <include file="__THEME__/public_footer_w3g"/>
...@@ -53,7 +53,6 @@ ...@@ -53,7 +53,6 @@
</div> </div>
</div> </div>
</div> </div>
<div class="layout_v center_bottom_part"> <div class="layout_v center_bottom_part">
<van-cell class="center_bottom_cell" title-class="text_14_400 color_333333 center_bottom_cell_text" title="我的收藏" is-link > <van-cell class="center_bottom_cell" title-class="text_14_400 color_333333 center_bottom_cell_text" title="我的收藏" is-link >
<template #icon> <template #icon>
...@@ -70,7 +69,7 @@ ...@@ -70,7 +69,7 @@
<van-icon name="__THEME__/img/upload.png" size="24"></van-icon> <van-icon name="__THEME__/img/upload.png" size="24"></van-icon>
</template> </template>
</van-cell> </van-cell>
<van-cell class="center_bottom_cell" title-class="text_14_400 color_333333 center_bottom_cell_text" title="推广中心" is-link > <van-cell @click="onCellTap('{:U('home/Home/share')}')" class="center_bottom_cell" title-class="text_14_400 color_333333 center_bottom_cell_text" title="推广中心" is-link >
<template #icon> <template #icon>
<van-icon name="__THEME__/img/promotion.png" size="24"></van-icon> <van-icon name="__THEME__/img/promotion.png" size="24"></van-icon>
</template> </template>
......
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