pay1.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport"
  6. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8. <meta name="viewport" content="initial-scale=1">
  9. {php echo register_jssdk(false);}
  10. <script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
  11. <script>
  12. (function (doc, win) {
  13. var docEl = doc.documentElement,
  14. resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
  15. recalc = function () {
  16. var clientWidth = docEl.clientWidth;
  17. if (!clientWidth) return;
  18. if(clientWidth>=375){
  19. // 这里的640 取决于设计稿的宽度
  20. docEl.style.fontSize = '100px';
  21. }else{
  22. docEl.style.fontSize = 100 * (clientWidth / 375) + 'px';
  23. }
  24. };
  25. if (!doc.addEventListener) return;
  26. win.addEventListener(resizeEvt, recalc, false);
  27. recalc();
  28. })(document, window);
  29. wx.ready(function () {
  30. sharedata = {
  31. title: '{$title}',
  32. desc: '{$description}',
  33. link: '{$_W['siteurl']}&fromopenid={$openid}',
  34. imgUrl: '{$_W['uniaccount']['logo']}',
  35. success: function(){
  36. alert('分享成功!');
  37. },
  38. cancel: function(){
  39. }
  40. };
  41. wx.onMenuShareAppMessage(sharedata);
  42. });
  43. </script>
  44. <!--<link rel="stylesheet" href="css/pay1.css">-->
  45. <title>{$_W['account']['name']}支付中心</title>
  46. </head>
  47. <style>
  48. @font-face {
  49. font-family: 'iconfont'; /* project id 757364 */
  50. src: url('//at.alicdn.com/t/font_757364_j2u5y42zlrm.eot');
  51. src: url('//at.alicdn.com/t/font_757364_j2u5y42zlrm.eot?#iefix') format('embedded-opentype'),
  52. url('//at.alicdn.com/t/font_757364_j2u5y42zlrm.woff') format('woff'),
  53. url('//at.alicdn.com/t/font_757364_j2u5y42zlrm.ttf') format('truetype'),
  54. url('//at.alicdn.com/t/font_757364_j2u5y42zlrm.svg#iconfont') format('svg');
  55. }
  56. .iconfont{
  57. font-family:"iconfont" !important;
  58. font-size:0.16rem;font-style:normal;
  59. -webkit-font-smoothing: antialiased;
  60. -webkit-text-stroke-width: 0.002rem;
  61. -moz-osx-font-smoothing: grayscale;
  62. }
  63. body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button,
  64. input, textarea, th, td {
  65. margin: 0;
  66. padding: 0;
  67. }
  68. body, button, input, select, textarea {
  69. font: 12px/1.5 tahoma, arial, \5b8b\4f53;
  70. }
  71. h1, h2, h3, h4, h5, h6 {
  72. font-size: 100%;
  73. }
  74. address, cite, dfn, em, var {
  75. font-style: normal;
  76. }
  77. code, kbd, pre, samp {
  78. font-family: couriernew, courier, monospace;
  79. }
  80. small {
  81. font-size: 12px;
  82. }
  83. ul, ol {
  84. list-style: none;
  85. }
  86. a {
  87. text-decoration: none;
  88. }
  89. a:hover {
  90. text-decoration: underline;
  91. }
  92. sup {
  93. vertical-align: text-top;
  94. }
  95. sub {
  96. vertical-align: text-bottom;
  97. }
  98. legend {
  99. color: #000;
  100. }
  101. fieldset, img {
  102. border: 0;
  103. }
  104. button, input, select, textarea {
  105. font-size: 100%;
  106. }
  107. table {
  108. border-collapse: collapse;
  109. border-spacing: 0;
  110. }
  111. html,body{-webkit-text-size-adjust: 100%;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}
  112. body{
  113. background: #fff;
  114. }
  115. .top-box{
  116. width: 100%;
  117. }
  118. .product-box{
  119. width: 100%;
  120. /*background: #e0e2ed;*/
  121. text-align: center;
  122. line-height: 0.4rem;
  123. }
  124. .title{
  125. width: 100%;
  126. text-align: center;
  127. color: #655e56;
  128. font-size:0.2rem;
  129. background: #fff;
  130. font-family: cursive;
  131. }
  132. .buy-button{
  133. border: 0.01rem solid #fff;
  134. outline: 0;
  135. -webkit-appearance: none;
  136. background-color:#fff;
  137. border-radius: 0.04rem;
  138. width: 1rem;
  139. height: 0.3rem;
  140. }
  141. .product{
  142. width: 100%;
  143. height: 0.5rem;
  144. text-align: center;
  145. line-height: 0.5rem;
  146. font-size: 0.14rem;
  147. margin-top: 0.1rem;
  148. color: #d55dff;
  149. font-weight: 500;
  150. }
  151. .img3 .product{
  152. font-size: 0.18rem;
  153. }
  154. .img2 .btn-box{
  155. display: none;
  156. }
  157. .img4 .btn-box{
  158. display: none;
  159. }
  160. .btn-box{
  161. margin-top: 0.1rem;
  162. }
  163. .fans{
  164. width:100%;
  165. margin: 0 auto;
  166. /*font-size: 0.14rem;*/
  167. color:#262626;
  168. text-align: center;
  169. /*border-radius: 0.1rem;*/
  170. }
  171. .vip{
  172. width: 100%;
  173. font-size:0.5rem;
  174. text-align: center;
  175. line-height: 0.5rem;
  176. font-weight: bold;
  177. /*font-family: cursive;*/
  178. }
  179. .container{
  180. width: 100%;
  181. margin: 0 auto;
  182. margin-bottom: 0.1rem;
  183. }
  184. .slide{
  185. width: 100%;
  186. min-height: 1.8rem;
  187. overflow: hidden;
  188. position: relative;
  189. }
  190. .slide .img{
  191. overflow: hidden;
  192. position: absolute;
  193. transition: width 0.4s,height 0.4s,top 0.4s,left 0.4s,z-index 0.4s;
  194. border-radius:0.09rem;
  195. }
  196. .slide .img img{
  197. width: calc(100% - 0.14rem);
  198. height: calc(100% - 0.14rem);
  199. margin: 0.07rem;
  200. }
  201. .slide .img1{
  202. width: 40%;
  203. height: 40%;
  204. top: 30%;
  205. left: -50%;
  206. z-index: 1;
  207. }
  208. .slide .img2{
  209. width: 60%;
  210. height: 60%;
  211. top: 20%;
  212. left: -20%;
  213. z-index: 2;
  214. }
  215. .slide .img3{
  216. width: 80%;
  217. height: 80%;
  218. top: 10%;
  219. left: 10%;
  220. z-index: 3;
  221. }
  222. .slide .img4{
  223. width: 60%;
  224. height: 60%;
  225. top: 20%;
  226. left: 60%;
  227. z-index: 2;
  228. }
  229. .slide .img5{
  230. width: 40%;
  231. height: 40%;
  232. top: 30%;
  233. left: 110%;
  234. z-index: 1;
  235. }
  236. .slide-bt{
  237. position: absolute;
  238. left: 50%;
  239. bottom: 1%;
  240. z-index: 10;
  241. }
  242. .slide-bt span{
  243. width: 0.24rem;
  244. height: 0.08rem;
  245. background: #c9caca;
  246. float: left;
  247. margin: 0.05rem;
  248. border-radius: 0.04rem;
  249. }
  250. .slide .slide-bt .on{
  251. background: #ffd200;
  252. }
  253. .state{
  254. width: 96%;
  255. height: 0.6rem;
  256. padding: 0 0.1rem;
  257. line-height:0.3rem;
  258. margin: 0 auto;
  259. font-size: 0.16rem;
  260. margin-top: 0.3rem;
  261. font-family: serif;
  262. color:#5f5e5e;
  263. }
  264. .dh-btn{
  265. width:95%;
  266. margin: 0 auto;
  267. display: flex;
  268. justify-content: space-between;
  269. margin-top: 0.3rem;
  270. text-align: center;
  271. line-height: 0.4rem;
  272. padding-bottom:0.1rem;
  273. }
  274. .dh-left{
  275. width: 40%;
  276. height: 0.4rem;
  277. border: 0.01rem solid #bfb4bd;
  278. border-radius: 0.1rem;
  279. box-shadow:0.01rem 0.03rem 0.06rem #d1d6d6;
  280. }
  281. .dh-right{
  282. width: 40%;
  283. height: 0.4rem;
  284. border-radius: 0.1rem;
  285. border: 0.01rem solid #bfb4bd;
  286. box-shadow:0.01rem 0.03rem 0.06rem #d1d6d6;
  287. }
  288. .fans-box{
  289. width:95%;
  290. margin:0 auto;
  291. overflow:hidden;
  292. height:0.2rem;
  293. /*background: #9ee6df;*/
  294. /*border: 0.02rem solid #1bffc5;*/
  295. margin-top: 0.1rem;
  296. }
  297. .box{ height:35px; background:#000; overflow:hidden;margin-top:0.3rem}
  298. .t_news{ height:19px; color:#fff; padding-left:10px; margin:8px 0; overflow:hidden; position:relative;}
  299. .t_news b{ line-height:19px; font-weight:bold; display:inline-block;}
  300. .news_li,.swap{ line-height:19px; display:inline-block; position:absolute; top:0; left:72px;z-index: 99999}
  301. .news_li a,.swap a{ color:#fff;}
  302. .swap{top:19px;}
  303. </style>
  304. <body>
  305. <!--顶部图片-->
  306. <div class="top-box">
  307. <img src="{$_W['attachurl']}{$payimg}" alt="" style="width:100%">
  308. </div>
  309. <!--商品-->
  310. <div class="product-box">
  311. <!--选择商品标题-->
  312. <div class="title">左右滑动或点击选择产品</div>
  313. <!--商品卡片-->
  314. <div class="container">
  315. <div id="slide" class="slide" class="index-slide" alt="star">
  316. {loop $navmsg $index $items}
  317. <div class="img" style="background: url('{$_W['attachurl']}{$items['add1']}')no-repeat center center/ 100% auto;">
  318. <!--产品标题-->
  319. <div class="product">{$items['title']} {$items['jiage']}元</div>
  320. <div class="vip">{$items['type']}</div>
  321. <!--购买按钮-->
  322. <div class="btn-box">
  323. <button type="button" class="buy-button" onclick="javascript:window.location='{php echo $this->createMobileUrl('pay');}&jsonid={$jsonid}&money={$items['jiage']}&title={$items['title']}'">点击购买</button>
  324. </div>
  325. </div>
  326. {/loop}
  327. <div class="slide-bt"></div>
  328. </div>
  329. </div>
  330. </div>
  331. <div class="weui-footer weui-footer_fixed-bottom">
  332. <p class="weui-footer__links">
  333. <a href="javascript:window.location='tel:{$webcall}';" class="weui-footer__link">{$webcall}</a>
  334. </p>
  335. <p class="weui-footer__text"></p>
  336. </div>
  337. </div>
  338. <div style="background: #fff;box-shadow:0.023rem 0.06rem 0.09rem rgb(209,209,209);border-radius: 0.12rem;width:97%;margin: 0 auto;border: 0.01rem solid #d2d2d2">
  339. {if count($fromlist)>0}
  340. <div class="fans" style="">
  341. <div style="margin:0 auto;font-size:0.2rem;padding: 0.1rem 0;color: #262626;">您目前有{php echo count($fromlist)}位粉丝</div>
  342. <div class="fans-box" style="">
  343. {loop $fromlist $index $items}
  344. {if $items['avartar']<>''}
  345. <img style="width:0.2rem;height: 0.2rem;border-radius: 50%;display: block;float: left;margin-right: 0.1rem;" src="{$items['avartar']}"/>
  346. {/if}
  347. {/loop}
  348. </div>
  349. </div>
  350. {/if}
  351. <div class="state">粉丝活动说明:已购买客户,有多少粉丝送多少天时长,粉丝购买全年法律赠送一个月时长</div>
  352. <!--按钮-->
  353. <div class="dh-btn">
  354. <div class="dh-left"><i class="iconfont">&#xe797;</i>兑换时长</div>
  355. <div class="dh-right"><i class="iconfont">&#xe7c5;</i>我也要粉丝</div>
  356. </div>
  357. </div>
  358. <!--实时轮播-->
  359. <div class="box">
  360. <div class="t_news">
  361. <b>最新播报:</b>
  362. <ul class="news_li">
  363. {loop $bobao $items}
  364. <li><a href="#" style="color:#fff">{$items['title']}</a></li>
  365. {/loop}
  366. </ul>
  367. <ul class="swap"></ul>
  368. </div>
  369. </div>
  370. </body>
  371. <script>
  372. var autoLb = false; //autoLb=true为开启自动轮播
  373. var autoLbtime = 1; //autoLbtime为轮播间隔时间(单位秒)
  374. var touch = true; //touch=true为开启触摸滑动
  375. var slideBt = true; //slideBt=true为开启滚动按钮
  376. var slideNub; //轮播图片数量
  377. //窗口大小改变时改变轮播图宽高
  378. $(window).resize(function(){
  379. $(".slide").height($(".slide").width()*0.56);
  380. });
  381. $(function(){
  382. $(".slide").height($(".slide").width()*0.56);
  383. slideNub = $(".slide .img").size(); //获取轮播图片数量
  384. for(i=0;i<slideNub;i++){
  385. $(".slide .img:eq("+i+")").attr("data-slide-imgId",i);
  386. }
  387. //根据轮播图片数量设定图片位置对应的class
  388. if(slideNub==1){
  389. for(i=0;i<slideNub;i++){
  390. $(".slide .img:eq("+i+")").addClass("img3");
  391. }
  392. }
  393. if(slideNub==2){
  394. for(i=0;i<slideNub;i++){
  395. $(".slide .img:eq("+i+")").addClass("img"+(i+3));
  396. }
  397. }
  398. if(slideNub==3){
  399. for(i=0;i<slideNub;i++){
  400. $(".slide .img:eq("+i+")").addClass("img"+(i+2));
  401. }
  402. }
  403. if(slideNub>3&&slideNub<6){
  404. for(i=0;i<slideNub;i++){
  405. $(".slide .img:eq("+i+")").addClass("img"+(i+1));
  406. }
  407. }
  408. if(slideNub>=6){
  409. for(i=0;i<slideNub;i++){
  410. if(i<5){
  411. $(".slide .img:eq("+i+")").addClass("img"+(i+1));
  412. }else{
  413. $(".slide .img:eq("+i+")").addClass("img5");
  414. }
  415. }
  416. }
  417. //根据轮播图片数量设定轮播图按钮数量
  418. if(slideBt){
  419. for(i=1;i<=slideNub;i++){
  420. $(".slide-bt").append("<span data-slide-bt='"+i+"' onclick='tz("+i+")'></span>");
  421. }
  422. $(".slide-bt").width(slideNub*34);
  423. $(".slide-bt").css("margin-left","-"+slideNub*17+"px");
  424. }
  425. //自动轮播
  426. if(autoLb){
  427. setInterval(function(){
  428. right();
  429. }, autoLbtime*1000);
  430. }
  431. if(touch){
  432. k_touch();
  433. }
  434. slideLi();
  435. imgClickFy();
  436. });
  437. //右滑动
  438. function right(){
  439. var fy = new Array();
  440. for(i=0;i<slideNub;i++){
  441. fy[i]=$(".slide .img[data-slide-imgId="+i+"]").attr("class");
  442. }
  443. for(i=0;i<slideNub;i++){
  444. if(i==0){
  445. $(".slide .img[data-slide-imgId="+i+"]").attr("class",fy[slideNub-1]);
  446. }else{
  447. $(".slide .img[data-slide-imgId="+i+"]").attr("class",fy[i-1]);
  448. }
  449. }
  450. imgClickFy();
  451. slideLi();
  452. };
  453. //左滑动
  454. function left(){
  455. var fy = new Array();
  456. for(i=0;i<slideNub;i++){
  457. fy[i]=$(".slide .img[data-slide-imgId="+i+"]").attr("class");
  458. }
  459. for(i=0;i<slideNub;i++){
  460. if(i==(slideNub-1)){
  461. $(".slide .img[data-slide-imgId="+i+"]").attr("class",fy[0]);
  462. }else{
  463. $(".slide .img[data-slide-imgId="+i+"]").attr("class",fy[i+1]);
  464. }
  465. }
  466. imgClickFy();
  467. slideLi();
  468. };
  469. //轮播图片左右图片点击翻页
  470. function imgClickFy(){
  471. $(".slide .img").removeAttr("onclick");
  472. $(".slide .img2").attr("onclick","left()");
  473. $(".slide .img4").attr("onclick","right()");
  474. };
  475. //修改当前最中间图片对应按钮选中状态
  476. function slideLi(){
  477. var slideList = parseInt($(".slide .img3").attr("data-slide-imgId")) + 1;
  478. $(".slide-bt span").removeClass("on");
  479. $(".slide-bt span[data-slide-bt="+slideList+"]").addClass("on");
  480. };
  481. //轮播按钮点击翻页
  482. function tz(id){
  483. var tzcs = id - (parseInt($(".slide .img3").attr("data-slide-imgId")) + 1);
  484. if(tzcs>0){
  485. for(i=0;i<tzcs;i++){
  486. setTimeout(function(){
  487. right();
  488. },1);
  489. }
  490. }
  491. if(tzcs<0){
  492. tzcs=(-tzcs);
  493. for(i=0;i<tzcs;i++){
  494. setTimeout(function(){
  495. left();
  496. },1);
  497. }
  498. };
  499. slideLi();
  500. };
  501. //触摸滑动模块
  502. function k_touch() {
  503. var _start = 0, _end = 0, _content = document.getElementById("slide");
  504. _content.addEventListener("touchstart", touchStart, false);
  505. _content.addEventListener("touchmove", touchMove, false);
  506. _content.addEventListener("touchend", touchEnd, false);
  507. function touchStart(event) {
  508. var touch = event.targetTouches[0];
  509. _start = touch.pageX;
  510. }
  511. function touchMove(event) {
  512. var touch = event.targetTouches[0];
  513. _end = (_start - touch.pageX);
  514. }
  515. function touchEnd(event) {
  516. if (_end < -100) {
  517. left();
  518. _end=0;
  519. }else if(_end > 100){
  520. right();
  521. _end=0;
  522. }
  523. }
  524. };
  525. // JavaScript Document
  526. function b(){
  527. t = parseInt(x.css('top'));
  528. y.css('top','19px');
  529. x.animate({top: t - 19 + 'px'},'slow'); //19为每个li的高度
  530. if(Math.abs(t) == h-19){ //19为每个li的高度
  531. y.animate({top:'0px'},'slow');
  532. z=x;
  533. x=y;
  534. y=z;
  535. }
  536. setTimeout(b,3000);//滚动间隔时间 现在是3秒
  537. }
  538. $(document).ready(function(){
  539. $('.swap').html($('.news_li').html());
  540. x = $('.news_li');
  541. y = $('.swap');
  542. h = $('.news_li li').length * 19; //19为每个li的高度
  543. setTimeout(b,3000);//滚动间隔时间 现在是3秒
  544. });
  545. //获取粉丝数量
  546. var fansize;
  547. fansize=$(".fans-box img").length;
  548. //点击弹出提示
  549. $(".dh-left").click(function () {
  550. if(fansize<30) {
  551. alert("满30个粉丝即可兑换1个月免费法律顾问")
  552. }
  553. });
  554. //分享
  555. $(".dh-right").click(function () {
  556. alert("正在为您生成专属分享海报...");
  557. window.location='{php echo $this->createMobileUrl("2weima");}';
  558. })
  559. </script>
  560. </html>