index.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <extend name="Public:mogubase" />
  2. <block name="content">
  3. <script src="__PUBLIC__/js/jquery/jquery-2.0.3.min.js"></script>
  4. <link rel="stylesheet" type="text/css" href="__PUBLIC__/mogu/base-22357a5508.css" />
  5. <link rel="stylesheet" href="__PUBLIC__/mogu/myCenter-f802cffc3b.css" />
  6. <style>
  7. .user-charge{
  8. color:#333;
  9. position:absolute;
  10. top:37px;
  11. right:40px;
  12. }
  13. .pd-right-6{
  14. line-height:27px;
  15. font-size:13px;
  16. background:url(https://mall.shiziyu888.com/dan/Common/image/jian_right.png) no-repeat 100%;
  17. background-size:13px auto;
  18. color:#fff;
  19. padding-right:13px;
  20. background-position-x: right;
  21. }
  22. </style>
  23. <script type="text/javascript"> window.use_screen_base = '750'; (function(a,b){var c="orientationchange"in b?"orientationchange":"resize",d=use_screen_base.indexOf("_mate"),e=parseInt(use_screen_base),f=a.documentElement,g=function(){var a=f.clientWidth,c=b.innerWidth;f.style.fontSize=100*(c/e)+"px"};if(/iPad.*OS|iPhone.*OS/.test(navigator.userAgent)&&d>0){var h=a.querySelectorAll("meta[name=viewport]"),i=b.devicePixelRatio;i=i!=1?2:1,h[0]&&h[0].setAttribute("content","width=device-width, user-scalable=no, minimum-scale="+1/i+", maximum-scale="+1/i+", initial-scale="+1/i)}g(),b.addEventListener(c,g,!1),delete use_screen_base})(document,window); </script>
  24. <div class="wrap">
  25. <div class="userInfo">
  26. <div class="img_wrap" style="position:relative;">
  27. <div class="img_innner">
  28. <img src="{$member_info.avatar}" />
  29. </div>
  30. <div class="user-charge" onclick="location.href = '{:U('User/myscore')}'">
  31. <div class="pd-right-6">
  32. 积分:{$member_info.score}
  33. </div>
  34. </div>
  35. </div>
  36. <p>{$member_info.name}</p>
  37. <div class="list">
  38. <a href="{:U('User/myvoucherlist')}"><span class="couponIcon"></span>优惠券</a>
  39. <a href="{:U('User/address')}"><span class="addressIcon"></span>收货地址</a>
  40. <a href="{:U('User/myfavgoods')}"><span class="num" id="myLove">{$fav_goodscount}</span>收藏的宝贝</a>
  41. <?php if($is_open_commiss == 1){ ?>
  42. <?php if($member_info['comsiss_flag'] == 0){ ?>
  43. <a href="javascript:;" id="btn2"><span class="tuanIcon"></span>升级为团长</a>
  44. <?php }else{ ?>
  45. <a href="{:U('tuanbonus/groupleaderindex')}"><span class="tuanIcon"></span>超级团长</a>
  46. <?php } ?>
  47. <?php }else{ ?>
  48. <?php } ?>
  49. </div>
  50. </div>
  51. <div class="orderTab">
  52. <a href="{:U('Order/index')}" class="order_status all" data-type="all"><span></span>全部订单</a>
  53. <a href="{:U('Order/index', array('type' => 3))}" class="order_status payment" data-type="created"><span></span>待付款</a>
  54. <a href="{:U('Order/index', array('type' => 4))}" class="order_status send"><span></span>待收货</a>
  55. <a href="{:U('Order/index', array('type' => 6))}" class="order_status get" ><span></span>待评价</a>
  56. <a href="{:U('Order/index', array('type' => 12))}" class="order_status refund" data-type="refund_orders"><span></span>售后</a>
  57. </div>
  58. <div class="recommend-hd" onclick="location.href='{:U('Group/pinlist')}'">
  59. 我的拼团
  60. <span class="arrow"></span>
  61. </div>
  62. <?php if($is_open_fissionsharing == 1){ ?>
  63. <div class="recommend-hd" onclick="location.href='{:U('Sharebonus/tuanbonus_index')}'">
  64. 分享订单
  65. <span class="arrow"></span>
  66. </div>
  67. <?php } ?>
  68. {~W('Product/related_usecenter_goods_list')}
  69. <style>
  70. .recommend .goods-props span{line-height: .35rem;}
  71. </style>
  72. </div>
  73. <div class="popup-mask" style="display: none;position: fixed; width: 100%;height: auto;top: 50%;z-index: 999999999; background: rgba(0, 0, 0, 0);">
  74. <div class="popup-main" style="max-width: 50%; height: auto;margin: auto;background-color: rgba(0,0,0,.8);color: #f0f0f0;font-size: 16px;padding: 10px;text-align: center;border-radius: 5px;box-shadow: 0 0 24px -1px #383838; background: rgba(41, 49, 61, 0.701961);">
  75. <div class="popup-content"><div style="color:#fff;font-size:26px;margin:0"></div>
  76. </div>
  77. </div>
  78. </div>
  79. <script>
  80. var can_sub = true;
  81. function show_mask(title)
  82. {
  83. $('.popup-content div').html(title);
  84. $('.popup-mask').fadeIn(1500,function(){
  85. $('.popup-mask').fadeOut(1500);
  86. })
  87. }
  88. $(function(){
  89. $('#btn2').click(function(){
  90. if(!can_sub)
  91. {
  92. return false;
  93. }
  94. can_sub = false;
  95. $.ajax({
  96. url:"{:U('Tuanbonus/apply')}",
  97. type:'get',
  98. dataType:'json',
  99. success:function(ret){
  100. if(ret.code == 1)
  101. {
  102. show_mask('申请成功');
  103. } else {
  104. show_mask(ret.msg);
  105. }
  106. }
  107. });
  108. });
  109. })
  110. </script>
  111. <style>
  112. .recommend .goods-item{margin-bottom:.1rem;}
  113. .waterfall-container:after{clear:both;content:".";display:block;visibility:hidden;height:0}
  114. .recommend-hd .arrow {
  115. margin-right: .2rem;
  116. border-top: 1px solid #999;
  117. border-left: 1px solid #999;
  118. width: .2rem;
  119. height: .2rem;
  120. background-color: transparent;
  121. -webkit-transform: rotate(135deg);
  122. display: inline-block;
  123. margin-left: .1rem;
  124. top: .3rem;
  125. }
  126. .userInfo .list .tuanIcon {
  127. width: .3rem;
  128. height: .33rem;
  129. background: url(__PUBLIC__/image/chao_tuan.png) no-repeat 0 0;
  130. background-size: .39rem;
  131. }
  132. </style>
  133. <div style="height:49px;"></div>
  134. <include file="Public:foot_pinduoduo" />
  135. <style>
  136. .go-top{display:none;}
  137. .footer .nav-controller i{margin-bottom: 6px;}
  138. </style>
  139. </block>