assist_bargain_coupon_detail.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640
  1. <extend name="Public:pinduoduobase" />
  2. <block name="content">
  3. <link rel="stylesheet" href="__PUBLIC__/pin/assets/css/react_boot_30305e74e4b4d863454d94cab029e844.css">
  4. <link rel="stylesheet" href="__PUBLIC__/pin/assets/css/react_common_e1852e5ddc660dd79bef5eb49d18af1d.css">
  5. <link rel="stylesheet" href="__PUBLIC__/pin/assets/css/react_commercial_bargain_6db21a60a93d84d59dc0bbd52d770f69.css">
  6. <script src="__PUBLIC__/pin/js/clocktime_coupon.js"></script>
  7. <div id="main">
  8. <section class="main-view container red-bg revision" style="overflow: hidden;">
  9. <div class="cb-detail-container">
  10. <img class="bargain-bg" src="__PUBLIC__/image/bargain_bg_v3.png" />
  11. <div>
  12. <button class="rule-btn">活动规则</button>
  13. </div>
  14. <div role="button" class="bargain-base-info">
  15. <img class="avatar" src="{$member_info.avatar}" alt="avatar" />
  16. <p class="nickname">{$member_info.uname}</p>
  17. <p class="info-hint">我发现一件好货,来一起砍价0元拿吧</p>
  18. <div class="goods-info">
  19. <img src="{$goods_info.image}" alt="goods" />
  20. <div class="right">
  21. <p class="goods-name">{$goods_info.name}</p>
  22. <p class="price"><i>¥</i>
  23. {$goods_info.price}
  24. </p>
  25. </div>
  26. <span class="sold-quantity">{$goods_info.seller_count}人已0元拿</span>
  27. </div>
  28. </div>
  29. <div class="bargain-status">
  30. <div class="status">
  31. <p class="amount">
  32. 已砍
  33. <i class="already"><?php echo round($bargain_info['total_money']-$bargain_info['deal_money'],2); ?></i>
  34. 元,还差
  35. <i class="remain"><?php echo $bargain_info['deal_money']; ?></i>
  36. 元</p>
  37. <?php if($bargain_info['state'] == 1){ ?>
  38. <button class="button go_kan_list">砍价成功,重砍一个</button>
  39. <?php }else if($bargain_info['end_time'] > time()){ ?>
  40. <?php if($is_me && $bargain_info['is_share'] == 0){ ?>
  41. <button class="button go_share">分享给好友,多砍一刀</button>
  42. <?php } ?>
  43. <?php if($is_me && $bargain_info['is_share'] == 1){ ?>
  44. <button class="button go_share">喊好友砍一刀</button>
  45. <?php } ?>
  46. <?php if(!$is_me && $has_kan){ ?>
  47. <button class="button go_kan_list">我也要砍价</button>
  48. <?php } ?>
  49. <?php if(!$is_me && !$has_kan){ ?>
  50. <button class="button kan_bargain">帮他砍一刀</button>
  51. <?php } ?>
  52. <?php }else{ ?>
  53. <button class="button go_kan_list">砍价失败,重砍一个</button>
  54. <?php } ?>
  55. <?php if($bargain_info['end_time'] > time() && $bargain_info['state'] == 0){ ?>
  56. <p class="count-down " >
  57. <!-- react-text: 40 -->
  58. <!-- /react-text -->
  59. <span class="millisecond-countdown">
  60. <span class="clock_div" endtime="<?php echo date('m/d/Y H:i:s', $bargain_info['end_time']);?>">
  61. </span>
  62. </span>
  63. <!-- react-text: 50 -->结束,快来砍价吧~
  64. </p>
  65. <?php } ?>
  66. </div>
  67. <div role="button" class="mask black-mask" style="display:none;">
  68. <img class="arrow" src="http://mobile.yangkeduo.com/assets/img/arrow-3bc881bf3f.png" alt="arrow" />
  69. <div class="hint-hew-combo with-arrow">
  70. <p class="hint-1">
  71. <!-- react-text: 66 -->你已砍
  72. <!-- /react-text --><i class="already"><?php echo round($bargain_info['total_money']-$bargain_info['deal_money'],2); ?></i>
  73. <!-- react-text: 68 -->元啦,赶快分享给好友吧
  74. </p>
  75. <?php if($bargain_info['is_share'] == 1){ ?>
  76. <p class="hint-2" id="share_tip">喊好友帮你砍价吧~</p>
  77. <?php }else{ ?>
  78. <p class="hint-2" id="share_tip">分享成功后可以多砍一刀哦</p>
  79. <?php } ?>
  80. </div>
  81. </div>
  82. </div>
  83. <div role="button" class="bargain-group">
  84. <p class="title">砍价帮</p>
  85. <ul class="bg-list " id="bg-list">
  86. <?php $i =1;foreach($kan_order_list as $val){ ?>
  87. <li class="user-item" <?php if($i>2){ ?> style="display:none;" <?php } ?> >
  88. <img src="<?php echo $val['avatar']; ?>" alt="avatar" />
  89. <div class="text">
  90. <p class="nickname"><?php echo $val['nickname']; ?></p>
  91. <p class="hint">来一起砍价0元拿</p>
  92. </div>
  93. <div class="amount">
  94. <div class="knives knives-1">
  95. <div class="knife"></div>
  96. </div>
  97. 砍掉
  98. <i class="detail "><?php echo $val['kan_money']; ?></i>
  99. </div>
  100. </li>
  101. <?php $i++; } ?>
  102. </ul>
  103. <?php if( count($kan_order_list) >=14 ){ ?>
  104. <p class="bottom-note" >&middot; 只显示最近15个好友砍价记录 &middot;</p>
  105. <?php }?>
  106. <?php if(count($kan_order_list) >=3) { ?>
  107. <p role="button" class="draw-label draw-up" >
  108. 查看更多
  109. <i class="draw-icon down " ></i>
  110. </p>
  111. <p role="button" class="draw-label draw-down" style="display:none;">
  112. 收起
  113. <i class="draw-icon up " style="background:none;"></i>
  114. </p>
  115. <?php } ?>
  116. </div>
  117. </div>
  118. <div id="bargain-recommend-list" class="react-base-list-wrapper cb-recommend-container bargain-recommend-list" style="display: block;">
  119. <div role="button" class="recommend-list-title">
  120. 看看其他活动
  121. </div>
  122. <?php foreach($related_goods as $goods){ ?>
  123. <div class="goods-item-container" onclick="location.href='{:U('/goods/'.$goods['goods_id'])}'">
  124. <div class="goods-item gap-right">
  125. <img class="std-goods-image-square goods-pic" src="<?php echo $goods['image']; ?>" />
  126. <div class="goods-name">
  127. <?php echo $goods['name']; ?>
  128. </div>
  129. <div class="goods-detail">
  130. <b class="price-icon">¥</b>
  131. <b class="price"><?php echo $goods['price']; ?></b>
  132. <div class="info">
  133. <span>
  134. <!-- react-text: 80 -->已拼
  135. <?php echo $goods['seller_count']; ?>
  136. <!-- react-text: 82 -->件
  137. <!-- /react-text --></span>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. <?php } ?>
  143. </div>
  144. <div class="bc-fc"></div>
  145. <div>
  146. <div class="official-activity">
  147. <?php echo C('SITE_TITLE'); ?>官方活动
  148. </div>
  149. </div>
  150. </section>
  151. </div>
  152. <div id="jsalert-assist_free_coupon_rules1516799938453" style="display:none;">
  153. <div class="bg-fill bg-fill2"></div>
  154. <div id="assist-free-coupon-rules-alert" class="assist-free-coupon-rules-alert">
  155. <div class="content-wrapper">
  156. <div class="detail">
  157. <div class="title"><?php echo C('SITE_NAME'); ?>官方活动</div>
  158. <ul class="desc">
  159. <?php foreach($kan_description_str as $val){ ?>
  160. <li><?php echo $val; ?></li>
  161. <?php } ?>
  162. </ul>
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. <div id="jsalert-assist_notice" style="display:none;">
  168. <div class="bg-fill bg-fill2"></div>
  169. <div id="assist-free-coupon-rules-alert" class="assist-free-coupon-rules-alert">
  170. <div class="content-wrapper">
  171. <div class="detail">
  172. <div class="title">关注公众号,我们一起砍价0元拿</div>
  173. <ul class="desc">
  174. <li><img src="/Uploads/image/<?php echo C('notice_qrcode'); ?>" width="100%" /></li>
  175. </ul>
  176. </div>
  177. </div>
  178. </div>
  179. </div>
  180. <div id="jsalert-assist_free_coupon_rules666" style="display:none;">
  181. <div class="bg-fill bg-fill2"></div>
  182. <div id="assist-free-coupon-rules-alert" class="assist-free-coupon-rules-alert">
  183. <div class="content-wrapper">
  184. <div class="detail">
  185. <div class="title">活动规则</div>
  186. <ul class="desc">
  187. <?php foreach($kan_rules_str as $val){ ?>
  188. <li><?php echo $val; ?></li>
  189. <?php } ?>
  190. </ul>
  191. </div>
  192. </div>
  193. </div>
  194. </div>
  195. <div class="">
  196. <style>
  197. .pin-spinner-2 {
  198. display: none;
  199. position: fixed;
  200. width: .66rem;
  201. height: .66rem;
  202. top: 35%;
  203. margin: 0 auto;
  204. left: 0;
  205. right: 0;
  206. z-index: 999999999;
  207. }
  208. .ps-inner-box {
  209. width: 100%;
  210. height: 100%;
  211. }
  212. .ps-rotate-img {
  213. width: .25rem;
  214. height: .25rem;
  215. margin: auto;
  216. left: 0;
  217. right: 0;
  218. top: 0;
  219. bottom: 0;
  220. animation: rotateImg 2.5s linear infinite;
  221. -webkit-animation: rotateImg 2.5s linear infinite;
  222. z-index: 9999999999;
  223. position: absolute;
  224. }
  225. .ps-rotate-msg {
  226. width: 100%;
  227. font-size: .15rem;
  228. text-align: center;
  229. /*height: 11px;*/
  230. color: #ffffff;
  231. position: relative;
  232. bottom: .12rem;
  233. }
  234. .spinner-background {
  235. width: 100%;
  236. height: 100%;
  237. position: fixed;
  238. top: 0;
  239. bottom: 0;
  240. left: 0;
  241. right: 0;
  242. z-index: 9999999999;
  243. }
  244. #ps-background {
  245. display: none;
  246. position: absolute;
  247. width: 100%;
  248. height: 100%;
  249. opacity: 0.8;
  250. background-color: #000;
  251. border-radius: .06rem;
  252. }
  253. .pin-spinner-wrapper-no-message {
  254. display: block;
  255. top: 50%;
  256. margin-top: -.65rem;
  257. width: .66rem;
  258. height: .66rem;
  259. }
  260. .pin-spinner-wrapper-no-message .ps-rotate-msg {
  261. display: none;
  262. bottom: 0;
  263. }
  264. .pin-spinner-wrapper-no-message .ps-rotate-img {
  265. width: .25rem;
  266. height: .25rem;
  267. bottom: 0;
  268. top: 0;
  269. }
  270. .pin-spinner-wrapper-message {
  271. display: block;
  272. top: 50%;
  273. margin-top: -.82rem;
  274. width: 1rem;
  275. height: 1rem;
  276. }
  277. .pin-spinner-wrapper-message .ps-rotate-msg {
  278. display: block;
  279. bottom: .32rem;
  280. }
  281. .pin-spinner-wrapper-message .ps-rotate-img {
  282. width: .39rem;
  283. height: .39rem;
  284. bottom: .43rem;
  285. top: .18rem;
  286. }
  287. @media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
  288. .pin-spinner-wrapper-no-message {
  289. margin-top: -.82rem;
  290. }
  291. .pin-spinner-wrapper-message {
  292. margin-top: -.99rem;
  293. }
  294. }
  295. @keyframes rotateImg {
  296. 0% {
  297. transform: rotateZ(0deg);
  298. }
  299. 50% {
  300. transform: rotateZ(180deg);
  301. }
  302. 100% {
  303. transform: rotateZ(360deg);
  304. }
  305. }
  306. @-webkit-keyframes rotateImg {
  307. 0% {
  308. -webkit-transform: rotateZ(0deg);
  309. }
  310. 50% {
  311. -webkit-transform: rotateZ(180deg);
  312. }
  313. 100% {
  314. -webkit-transform: rotateZ(360deg);
  315. }
  316. }
  317. </style>
  318. <div id="pin-spinner" class="pin-spinner-2">
  319. <div id="ps-background"></div>
  320. <div class="ps-inner-box">
  321. <img id="imgInit" class="ps-rotate-img" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAzCAYAAAA6oTAqAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsSAAALEgHS3X78AAAGwElEQVRo3u2af4wdVRXHP2/XLm1BTMCCtGNLEQS6nUoVEiIwUEkMDTGZBqq0JOrQSBSE4sMKhEMW5aQCtg0W6w9Qp4Gm/A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anjF87zDO+1vMpT9Ey37AfcHZRordWYA4jj+LMbz/9nzvLbf9tvBO0XbJi+MSyc4AAAAAElFTkSuQmCC">
  322. </div>
  323. <div id="msgInit" class="ps-rotate-msg"></div>
  324. </div>
  325. </div>
  326. <include file="Widget:pin_notify" />
  327. <include file="Public:foot_lazy" />
  328. <include file="Widget:pin_toast" />
  329. <script src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  330. <script>
  331. wx.config({
  332. debug: false,
  333. appId: '{$signPackage.appId}',
  334. timestamp: {$signPackage.timestamp},
  335. nonceStr: '{$signPackage.nonceStr}',
  336. signature: '{$signPackage.signature}',
  337. jsApiList: [
  338. 'onMenuShareTimeline','onMenuShareAppMessage'
  339. ]
  340. });
  341. wx.ready(function () {
  342. wx.onMenuShareTimeline({
  343. title: '{$indexsharetitle}', // 分享标题
  344. link: '{$url}', // 分享链接
  345. imgUrl: '{$share_logo}', // 分享图标
  346. success: function () {
  347. // 用户确认分享后执行的回调函数
  348. share_success();
  349. },
  350. cancel: function () {
  351. // 用户取消分享后执行的回调函数
  352. }
  353. });
  354. wx.onMenuShareAppMessage({
  355. title: '{$indexsharetitle}', // 分享标题
  356. desc: '{$indexsharesummary}', // 分享描述
  357. link: '{$url}', // 分享链接
  358. imgUrl: '{$share_logo}', // 分享图标
  359. type: '', // 分享类型,music、video或link,不填默认为link
  360. dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空
  361. success: function () {
  362. // 用户确认分享后执行的回调函数
  363. share_success();
  364. },
  365. cancel: function () {
  366. // 用户取消分享后执行的回调函数
  367. }
  368. });
  369. });
  370. </script>
  371. <style>
  372. .qrcode-share-title-0{
  373. line-height:36px;
  374. }
  375. .center {
  376. width: 170px;
  377. margin: 0 auto;
  378. text-align: center;
  379. }
  380. .img_rotate {
  381. width: 30px;
  382. height: 30px;
  383. margin-top: 7px;
  384. margin-right: 5px;
  385. -webkit-animation: loading 1s linear 0s infinite;
  386. }
  387. @-webkit-keyframes loading {
  388. 0% {
  389. -webkit-transform: rotate(0);
  390. }
  391. 100% {
  392. -webkit-transform: rotate(360deg);
  393. }
  394. }
  395. .orders_text {
  396. line-height: 45px;
  397. font-weight: 700;
  398. font-size: 15px;
  399. }
  400. .m-addr-main .m-addr-close:before{
  401. position: absolute;
  402. top: 3px;
  403. left: 10px;
  404. }
  405. </style>
  406. <script>
  407. var offset = 0;
  408. var _pa = 2;
  409. var is_can_next = 1;
  410. var cur_url = "{:U('Subject/assist_bargain_coupon')}";
  411. var req_step = 1;
  412. var goods_id = 0;
  413. var sku_arr_str = '';
  414. var address_id = 0;
  415. var need_optionc = [];
  416. var is_bang_kan = 0;
  417. var bargain_id = "{$bargain_info.id}";
  418. var mult_sku_option = new Array();
  419. //$('.sku-specs').length
  420. var ajaxarea_url='{:U("/c_getarea")}';
  421. $(function(){
  422. //sku-spec-value-selected kan_bargain
  423. //kan_bargain showTip('请填写手机');
  424. lxfEndtime();
  425. $('.draw-up').click(function(){
  426. $('.draw-up').hide();
  427. $('.draw-down').show();
  428. $('.user-item').show();
  429. //user-item 展示全部
  430. })
  431. $('.draw-down').click(function(){
  432. $('.draw-down').hide();
  433. $('.draw-up').show();
  434. $('.user-item').each(function(){
  435. if( $(this).index() > 1)
  436. {
  437. $(this).hide();
  438. }
  439. })
  440. })
  441. $('.kan_bargain').click(function(){
  442. if(is_bang_kan == 1){
  443. location.href = "{:U('Subject/assist_bargain_coupon')}";
  444. return false;
  445. }
  446. $.ajax({
  447. url:"{:U('Subject/kan_others_bargain')}",
  448. type:'get',
  449. data:{id:bargain_id},
  450. dataType:'json',
  451. success:function(ret){
  452. if(ret.code ==0)
  453. {
  454. is_bang_kan = 1;
  455. var order_detail = ret.order_detail;
  456. var bargain_order = ret.bargain_order;
  457. $('.already').html(bargain_order.kan_money);
  458. $('.remain').html(bargain_order.deal_money);
  459. $('#bg-list').prepend(ret.li_html);
  460. showTip('您帮砍了'+order_detail.kan_money+'元');
  461. $('.button').html('我也要砍价 ');
  462. }
  463. else if(ret.code ==5)
  464. {
  465. $('#jsalert-assist_notice').show();
  466. return false;
  467. }
  468. else {
  469. showTip(ret.msg);
  470. }
  471. }
  472. })
  473. })
  474. $('.go_share').click(function(){
  475. $('.black-mask').show();
  476. })
  477. $('.black-mask').click(function(){
  478. $('.black-mask').hide();
  479. })
  480. $('.go_kan_list').click(function(){
  481. location.href ="{:U('Subject/assist_bargain_coupon')}";
  482. return false;
  483. })
  484. $('.rule-btn').click(function(){
  485. $('#jsalert-assist_free_coupon_rules666').show();
  486. })
  487. $('.official-activity').click(function(){
  488. $('#jsalert-assist_free_coupon_rules1516799938453').show();
  489. })
  490. $('.assist-free-coupon-rules-alert').click(function(){
  491. $('#jsalert-assist_free_coupon_rules1516799938453').hide();
  492. $('#jsalert-assist_free_coupon_rules666').hide();
  493. //$('#jsalert-assist_notice').hide();
  494. })
  495. $('.sku-spec-value').on('click',function(){
  496. console.log(32);
  497. });
  498. $('.address-popup-title-close').click(function(){
  499. $('#address-popup').hide();
  500. })
  501. $('.add-btn').click(function(){
  502. })
  503. $('.m-addr-close').click(function(){
  504. $('#m-addr-mask').hide();
  505. })
  506. $('.afc-rules-button').click(function(){
  507. $('#jsalert-assist_free_coupon_rules1516799938453').show();
  508. })
  509. $('#qrcode-share').click(function(){
  510. $('#qrcode-share').hide();
  511. });
  512. $("#qrcode_share_img").click(function(event){
  513. event.stopPropagation();
  514. });
  515. })
  516. function share_success()
  517. {
  518. $.ajax({
  519. url:"{:U('Subject/share_success_kan')}",
  520. type:'get',
  521. data:{id:bargain_id},
  522. dataType:'json',
  523. success:function(ret){
  524. if(ret.code ==0)
  525. {
  526. is_bang_kan = 1;
  527. var order_detail = ret.order_detail;
  528. var bargain_order = ret.bargain_order;
  529. $('.already').html(bargain_order.kan_money);
  530. $('.remain').html(bargain_order.deal_money);
  531. $('#bg-list').prepend(ret.li_html);
  532. //button 分享成功,多砍了一刀x元
  533. $('.go_share').html('喊好友砍一刀 ');
  534. $('.black-mask').hide();
  535. showTip('分享成功,多砍了一刀'+order_detail.kan_money+'元');
  536. }
  537. else {
  538. }
  539. }
  540. })
  541. }
  542. function close_sku()
  543. {
  544. $('#sku_selector').hide();
  545. }
  546. $(function(){
  547. $(window).scroll( function() {
  548. //loaddata();
  549. });
  550. })
  551. </script>
  552. </block>