myscore.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  1. <extend name="Public:pinduoduobase" />
  2. <block name="content">
  3. <style>
  4. .head-box {
  5. display: -webkit-box;
  6. display: -ms-flexbox;
  7. display: -webkit-flex;
  8. display: -moz-box;
  9. display: flex;
  10. width: 100%;
  11. height: 90px;
  12. background: linear-gradient(#fef7f8, #ffcbda);
  13. }
  14. .head-line{
  15. padding-top:20px;
  16. margin:0px auto;
  17. }
  18. .score_text{
  19. text-align: center;
  20. color:#3e3e3e;
  21. font-size:14px;
  22. }
  23. .score_num{
  24. text-align: center;
  25. color:#ff6699;
  26. font-size:25px;
  27. }
  28. .nav_left{
  29. float:left;
  30. margin-top:12.5px;
  31. margin-bottom:12.5px;
  32. margin-left:12.5px;
  33. height:46px;
  34. }
  35. .left_image{
  36. float:left;
  37. width:46px;
  38. }
  39. .left_image image{
  40. width:46px;
  41. height:46px;
  42. }
  43. .left_text{
  44. float:left;
  45. margin-left: 10px;
  46. }
  47. .text_name{
  48. height:26px;
  49. line-height:26px;
  50. font-size:14px;
  51. color:#000;
  52. }
  53. .text_desc{
  54. height:20px;
  55. line-height: 20px;
  56. font-size:12px;
  57. color:#a0a0a0;
  58. }
  59. .nav_right{
  60. float: right;
  61. background-color:#ff6699;
  62. border-radius: 3px;
  63. margin-top:21px;
  64. margin-right:12.5px;
  65. padding:5px;
  66. padding-left:10px;
  67. }
  68. .go_buy{
  69. color:#fff;
  70. background:url(https://mall.shiziyu888.com/dan/Common/image/jian_right.png) no-repeat 100%;
  71. background-size:13px auto;
  72. padding-right:15px;
  73. }
  74. page{
  75. background-color: #f0f1f4;
  76. }
  77. .nav_box{
  78. background-color: #fff;
  79. }
  80. .nav_box:after{display:block;clear:both;content:"";visibility:hidden;height:0;}
  81. .score_list_box{
  82. margin-top: 8px;
  83. background-color: #fff;
  84. }
  85. .score_nav::after{
  86. display:block;clear:both;content:"";visibility:hidden;height:0;
  87. }
  88. .score_nav_li{
  89. float:left;
  90. width:33.333%;
  91. height:43px;
  92. line-height: 43px;
  93. text-align: center;
  94. }
  95. .score_nav_li.cur{
  96. margin-bottom: -1px;
  97. border-bottom:1px solid #ff6699;
  98. }
  99. .score_nav_li text{
  100. color:#000;
  101. font-size: 14px;
  102. font-weight: 500;
  103. }
  104. .score_list{
  105. padding:0px 13px;
  106. }
  107. .score_li{
  108. border-bottom:1px solid #f4f4f4;
  109. padding:12px 0px;
  110. }
  111. .score_li:after{
  112. display:block;clear:both;content:"";visibility:hidden;height:0;
  113. }
  114. .score_li_left{
  115. float:left;
  116. height:48px;
  117. }
  118. .score_detail_name{
  119. height:25px;
  120. line-height: 25px;
  121. font-size: 15px;
  122. color:#101010;
  123. }
  124. .score_detail_time{
  125. height:23px;
  126. line-height: 23px;
  127. color:#929292;
  128. font-size:13px;
  129. }
  130. .score_li_right{
  131. float:right;
  132. height:48px;
  133. line-height:48px;
  134. }
  135. .score_li_right span{
  136. font-size: 19px;
  137. color: #101010;
  138. }
  139. .like-tip,.loading,.nomore {
  140. text-align: center;
  141. margin: 10px 0;
  142. font-size: 13px
  143. }
  144. #tuan_list p{
  145. margin-top: 200px;
  146. font-size: 18px;
  147. text-align: center;
  148. }
  149. body{background-color:#fff;}
  150. </style>
  151. <style>
  152. .score_tip{
  153. position:absolute;
  154. right:10px;
  155. top:20px;
  156. }
  157. .bg-fill {
  158. background-color: rgba(0,0,0,.7);
  159. width: 100%;
  160. height: 100%;
  161. left: 0;
  162. top: 0;
  163. position: fixed;
  164. z-index: 10001;
  165. }
  166. #assist-free-coupon-rules-alert, #flash_groups_rules_alert {
  167. -webkit-box-pack: center;
  168. top: 0;
  169. left: 0;
  170. right: 0;
  171. z-index: 10002;
  172. bottom: 64px;
  173. }
  174. #assist-free-coupon-rules-alert {
  175. position: fixed;
  176. display: -webkit-box;
  177. display: -ms-flexbox;
  178. display: flex;
  179. display: -webkit-flex;
  180. -ms-flex-pack: center;
  181. justify-content: center;
  182. -webkit-justify-content: center;
  183. -webkit-box-align: center;
  184. -ms-flex-align: center;
  185. align-items: center;
  186. -webkit-align-items: center;
  187. }
  188. #assist-free-coupon-rules-alert .content-wrapper {
  189. position: relative;
  190. display: block;
  191. width: 77%;
  192. max-height: 100vh;
  193. max-width: 640px;
  194. margin: auto;
  195. background: #fff;
  196. border-radius: 8px;
  197. overflow-y: hidden;
  198. }
  199. #assist-free-coupon-confirm-alert .content-wrapper .detail, #assist-free-coupon-rules-alert .content-wrapper .detail, #flash_groups_rules_alert .content-wrapper .detail {
  200. word-wrap: break-word;
  201. word-break: normal;
  202. cursor: default;
  203. -webkit-touch-callout: none;
  204. -moz-user-select: none;
  205. -ms-user-select: none;
  206. }
  207. #assist-free-coupon-rules-alert .content-wrapper .detail {
  208. padding: 25px 20px;
  209. text-align: left;
  210. -webkit-user-select: none;
  211. user-select: none;
  212. }
  213. #assist-free-coupon-rules-alert .content-wrapper .detail .title {
  214. text-align: center;
  215. font-size: 17px;
  216. line-height: 1;
  217. color: #151516;
  218. padding-bottom: 2.5px;
  219. }
  220. #assist-free-coupon-rules-alert .content-wrapper .detail .desc .li {
  221. font-size: 15px;
  222. line-height: 26px;
  223. color: #58595b;
  224. }
  225. </style>
  226. <div id="jsalert-assist_free_coupon_rules666" style="display:none;">
  227. <div class='bg-fill bg-fill2'></div>
  228. <div id='assist-free-coupon-rules-alert' class='assist-free-coupon-rules-alert'>
  229. <div class='content-wrapper'>
  230. <div class='detail'>
  231. <div class='title'>积分说明</div>
  232. <div class='desc'>
  233. <?php foreach($integral_rules_str as $li){ ?>
  234. <div class='li'>
  235. {$li}
  236. </div>
  237. <?php } ?>
  238. </div>
  239. </div>
  240. </div>
  241. </div>
  242. </div>
  243. <style>
  244. .official-activity, .statement-btn {
  245. line-height:18px;
  246. font-size:10px;
  247. color:#3b003d;
  248. border-radius:10px;
  249. position:absolute;
  250. top:10px;
  251. right:12.5px;
  252. }
  253. .rule-btn2 {
  254. width: auto;
  255. height: 20px;
  256. line-height: 2px;
  257. font-size: 10px;
  258. color: #726a6a;
  259. background: #ffd3df;
  260. padding: 10px 15px;
  261. border-radius: 3px;
  262. }
  263. .rule-btn3{
  264. background: #fae0e7;
  265. }
  266. .offcial-jifen{
  267. top:62px;
  268. }
  269. </style>
  270. <div class='head-box'>
  271. <div class='head-line'>
  272. <div class="score_text">可用积分</div>
  273. <div class='score_num'>{$member_info.score}</div>
  274. </div>
  275. <div class="official-activity score_tip_show">
  276. <div class="rule-btn2 rule-btn3">积分说明</div>
  277. </div>
  278. <div class="official-activity offcial-jifen" onclick='location.href = "{:U("User/me_score_order")}";'>
  279. <div class="rule-btn2">兑换记录</div>
  280. </div>
  281. <div class="score_tip" style="display:none;">
  282. <a href="javascript:;">
  283. <img src="__PUBLIC__/images/score_tip.png" style="width:20px;" />
  284. </a>
  285. </div>
  286. </div>
  287. <div class='nav_box' onclick='location.href = "{:U("Index/index")}";'>
  288. <div class='nav_left'>
  289. <div class='left_image'>
  290. <img src='https://mall.shiziyu888.com/dan/Common/image/bao_score.png' ></img>
  291. </div>
  292. <div class='left_text'>
  293. <div class='text_name'>
  294. 购物赚积分
  295. </div>
  296. <div class='text_desc'>
  297. 买越多赚越多
  298. </div>
  299. </div>
  300. </div>
  301. <div class='nav_right'>
  302. <text class='go_buy'>去购物</text>
  303. </div>
  304. </div>
  305. <div class='nav_box' onclick='location.href = "{:U("Integral/index")}";'>
  306. <div class='nav_left' style="margin-top:0px;">
  307. <div class='left_image'>
  308. <img src='__PUBLIC__/images/score_to_gift.png' ></img>
  309. </div>
  310. <div class='left_text'>
  311. <div class='text_name'>
  312. 积分换好礼
  313. </div>
  314. <div class='text_desc'>
  315. 积分越多换越多
  316. </div>
  317. </div>
  318. </div>
  319. <div class='nav_right' style="margin-top:8.5px;">
  320. <text class='go_buy'>去兑换</text>
  321. </div>
  322. </div>
  323. <div class='score_list_box'>
  324. <div class='score_nav'>
  325. <div class='score_nav_li cur' onclick='go_nav_menu(this)' data-type="all">
  326. <text>明细</text>
  327. </div>
  328. <div class='score_nav_li' onclick='go_nav_menu(this)' data-type="in">
  329. <text>收入</text>
  330. </div>
  331. <div class='score_nav_li' onclick='go_nav_menu(this)' data-type="out">
  332. <text>支出</text>
  333. </div>
  334. </div>
  335. <div class='score_list' id="tuan_list">
  336. <volist name="list" id="d">
  337. <div class='score_li' >
  338. <div class='score_li_left'>
  339. <div class='score_detail_name'>
  340. <?php echo $d['typename']; ?>
  341. </div>
  342. <div class='score_detail_time'>
  343. <?php echo $d['addtime']; ?>
  344. </div>
  345. </div>
  346. <div class='score_li_right'>
  347. <span><?php echo $d['score']; ?></span>
  348. </div>
  349. </div>
  350. </volist>
  351. <?php if(empty($list)){ ?>
  352. <p>您还没有积分明细</p>
  353. <?php } ?>
  354. </div>
  355. </div>
  356. <div class="center" id="center_pullup" style="display:none;">
  357. <span><img class="img_rotate" src="__PUBLIC__/pinduoduo/assets/img/pull_loading_8eba142.png"/>
  358. </span><span class="orders_text"></span>
  359. </div>
  360. <div style="height:50px;"></div>
  361. <include file="Public:foot_pinduoduo" />
  362. <style>
  363. .like-item-goods-start{
  364. border:1px solid #ff6699;
  365. background-color: #ff6699;
  366. }
  367. .like-item-goods-price{
  368. color:#ff6699;
  369. }
  370. .container{background-color:#fff;}
  371. .coupon-tabbar .coupon-tab {
  372. width:49%;
  373. }
  374. .center {
  375. width: 170px;
  376. margin: 0 auto;
  377. text-align: center;
  378. }
  379. .img_rotate {
  380. width: 30px;
  381. height: 30px;
  382. margin-top: 7px;
  383. margin-right: 5px;
  384. -webkit-animation: loading 1s linear 0s infinite;
  385. }
  386. @-webkit-keyframes loading {
  387. 0% {
  388. -webkit-transform: rotate(0);
  389. }
  390. 100% {
  391. -webkit-transform: rotate(360deg);
  392. }
  393. }
  394. .orders_text {
  395. line-height: 45px;
  396. font-weight: 700;
  397. font-size: 15px;
  398. }
  399. </style>
  400. <script>
  401. var offset = 0;
  402. var _pa = 2;
  403. var is_can_next = 1;
  404. var cur_url = "{:U('User/myscore')}";
  405. var req_step = 1;
  406. var type = 'all';
  407. function no_data()
  408. {
  409. if(type == 'all')
  410. {
  411. $('#tuan_list').html( '<p>您还没有积分明细</p>' );
  412. }else if(type == 'in'){
  413. $('#tuan_list').html( '<p>您还没有积分收入</p>' );
  414. }else if(type == 'out'){
  415. $('#tuan_list').html( '<p>您还没有积分支出</p>' );
  416. }
  417. }
  418. function loaddata()
  419. {
  420. var totalheight = parseFloat($(window).height()) + parseFloat($(window).scrollTop()); //浏览器的高度加上滚动条的高度
  421. if ($(document).height() <= totalheight+200) //当文档的高度小于或者等于总的高度的时候,开始动态加载数据
  422. {
  423. if(is_can_next == 1)//加载数据
  424. {
  425. is_can_next = 0;
  426. nextpage();
  427. }
  428. }
  429. }
  430. function go_nav_menu(obj)
  431. {
  432. var s_type = $(obj).attr('data-type');
  433. $(obj).addClass('cur').siblings().removeClass('cur');
  434. type = s_type;
  435. _pa = 1;
  436. is_can_next = 0;
  437. $('#tuan_list').html('');
  438. nextpage();
  439. }
  440. function nextpage()
  441. {
  442. $('#center_pullup').show();
  443. $.ajax(
  444. {
  445. url: cur_url,
  446. type:'get',
  447. data:{page:_pa,type:type,is_ajax:1},
  448. dataType: 'json',
  449. success: function(result){
  450. if(result.code == 1)
  451. {
  452. $('#tuan_list').append(result.html);
  453. $('#center_pullup').hide();
  454. _pa++;
  455. is_can_next = 1;
  456. } else if(result.code == 0) {
  457. if(_pa == 1)
  458. {
  459. no_data();
  460. }
  461. $('#center_pullup').remove();
  462. }
  463. }
  464. }
  465. );
  466. }
  467. $(function(){
  468. $(window).scroll( function() {
  469. loaddata();
  470. });
  471. $('.score_tip_show').click(function(){
  472. $('#jsalert-assist_free_coupon_rules666').show();
  473. })
  474. $('#jsalert-assist_free_coupon_rules666').click(function(){
  475. $('#jsalert-assist_free_coupon_rules666').hide();
  476. })
  477. })
  478. </script>
  479. </block>