index.html 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="divport" content="width=device-width, initial-scale=1.0">
  7. <link rel="stylesheet" href="/assets/frontend/recharge/reset.css">
  8. <link rel="stylesheet" href="/assets/frontend/recharge/icon.css">
  9. <title>充值</title>
  10. <style>
  11. .page {
  12. height: 100vh;
  13. }
  14. .content{
  15. padding-top: 0.10rem;
  16. display: flex;
  17. flex-direction: column;
  18. align-items: center;
  19. height: 100%;
  20. margin:0 auto;
  21. width: 8.00rem;
  22. background-color: #f8f8f8;
  23. }
  24. .phone-wrap {
  25. width: 7.50rem;
  26. padding:0 0.15rem 0.15rem;
  27. }
  28. .phone-item {
  29. width: 100%;
  30. height: 0.35rem;
  31. border-bottom: 1px solid #F1F1F1;
  32. justify-content: space-between;
  33. }
  34. .phone-item input {
  35. flex:1;
  36. font-size: 0.14rem;
  37. background-color: #f8f8f8;
  38. }
  39. .phone-item .phone-nick{
  40. color:#999999;
  41. font-size: 0.13rem;
  42. }
  43. .recharge-wrap {
  44. width: 7.50rem;
  45. padding: 0.15rem;
  46. padding-top: 0rpx;
  47. padding-bottom: 0rpx;
  48. }
  49. .recharge-title {
  50. font-size: 0.16rem;
  51. font-weight: bold;
  52. }
  53. .exchange-section {
  54. margin-top: 0.10rem;
  55. display: flex;
  56. flex-wrap: wrap;
  57. /* justify-content: space-between; */
  58. }
  59. .exchange-box {
  60. width: 1.25rem;
  61. height: 0.71rem;
  62. border: 0.01rem solid #7D73DC;
  63. border-radius: 0.10rem;
  64. margin-bottom: 0.15rem;
  65. color: #999999;
  66. align-items: center;
  67. justify-content: center;
  68. cursor: pointer;
  69. margin-right: 0.40rem;
  70. }
  71. .exchange-box:nth-child(4n){
  72. margin-right: 0;
  73. }
  74. .exchange-top {
  75. display: flex;
  76. align-items: center;
  77. }
  78. .exchange-pic {
  79. height: auto;
  80. width: 0.18rem;
  81. margin-right: 0.07rem;
  82. }
  83. .diamonds-num {
  84. font-size: 0.16rem;
  85. color: #261A00;
  86. }
  87. /* .actvie {
  88. color: #FFFFFF;
  89. } */
  90. .diamonds-name {
  91. font-size: 0.12rem;
  92. margin-left: 0.04rem;
  93. }
  94. .exchange-price {
  95. font-size: 0.12rem;
  96. margin-top: 0.10rem;
  97. }
  98. .current {
  99. background: linear-gradient(90deg, #629CFF, #7870F1);
  100. box-shadow: 0px 3px 5px 0px rgba(126, 114, 220, 0.59);
  101. color: #FFFFFF !important;
  102. }
  103. .current .diamonds-num{
  104. color: #FFFFFF;
  105. }
  106. .mode-wrap{
  107. width: 7.50rem;
  108. height: 1.15rem;
  109. padding: 0.15rem;
  110. padding-top:0rpx;
  111. }
  112. .mode-wrap .mode-title{
  113. font-size: 0.16rem;
  114. font-weight: bold;
  115. }
  116. .mode-item{
  117. width: 7.50rem;
  118. height: 0.20rem;
  119. justify-content: space-between;
  120. margin-top: 0.10rem;
  121. cursor: pointer;
  122. }
  123. .mode-left{
  124. font-size: 0.14rem;
  125. }
  126. .mode-left .zicon-weixin{
  127. font-size: 0.27rem;
  128. color: #46BB36;
  129. margin-right: 0.07rem;
  130. }
  131. .mode-left .zicon-alipay{
  132. color:#02A9F1;
  133. font-size: 0.27rem;
  134. margin-right: 0.07rem;
  135. }
  136. .pay-ic{
  137. font-size: 0.20rem;
  138. }
  139. .zicon-xuanze{
  140. color: #46BB36;
  141. }
  142. .zicon-xuanze1{
  143. color: #999;
  144. }
  145. .mode-tips{
  146. width: 7.50rem;
  147. align-items: flex-start;
  148. margin-top: 0.20rem;
  149. }
  150. .mode-tips .zicon-tishi{
  151. font-size: 0.14rem;
  152. color: #FFCE00;
  153. margin-top: 8rpx;
  154. }
  155. .mode-tips .mode-txt{
  156. /* width: 2.25rem; */
  157. margin-left: 0.05rem;
  158. color: #999999;
  159. font-size: 0.12rem;
  160. }
  161. .recharge-btn{
  162. width: 2.90rem;
  163. height: 0.40rem;
  164. background: #EEEEEE;
  165. border-radius: 0.20rem;
  166. margin: 0.50rem auto 0.10rem;
  167. font-size: 0.15rem;
  168. font-family: PingFang SC;
  169. font-weight: 500;
  170. cursor: pointer;
  171. }
  172. .recharge-btn.active{
  173. background: linear-gradient(90deg, #629CFF, #7870F1);
  174. color: #FFFFFF;
  175. }
  176. </style>
  177. <script>
  178. !(function(win, doc) {
  179. function setFontSize() {
  180. var docEl = doc.documentElement;
  181. var winWidth = docEl.clientWidth;
  182. doc.documentElement.style.fontSize = (winWidth / 1920) * 100 + "px";
  183. }
  184. var userAgent = navigator.userAgent;
  185. win.addEventListener("resize", function() {
  186. if (navigator.userAgent !== userAgent) {
  187. location.reload();
  188. }
  189. });
  190. setFontSize();
  191. })(window, document);
  192. </script>
  193. </head>
  194. <body>
  195. <div class="page">
  196. <div class="content">
  197. <form method="post" action="/index/recharge/recharge_pc">
  198. <div class="phone-wrap row">
  199. <div class="phone-item row">
  200. <input type="text" name="mobile" placeholder="请输入注册手机号" autofocus="true"/>
  201. <!--<span class="phone-nick" >昵称: 李大娃</span>-->
  202. </div>
  203. </div>
  204. <div class="recharge-wrap">
  205. <div class="recharge-title">充值金额</div>
  206. <select name="rc_id" class="exchange-section">
  207. {volist name='conf_list' id='vo'}
  208. <option value="{$vo.id}">充¥{$vo.money}得{$vo.gold}金币</option>
  209. {/volist}
  210. </select>
  211. <!--<div class="exchange-section">
  212. &lt;!&ndash; current为激活状态 @click="clickBox(index)"&ndash;&gt;
  213. <div class="exchange-box column current" >
  214. <div class="exchange-top">
  215. <img class="exchange-pic" src="/assets/frontend/recharge/images/b-b.png"></img>
  216. <div class="diamonds-num" >1000</div>
  217. <div class="diamonds-name">金币</div>
  218. </div>
  219. <div class="exchange-price">¥100.00</div>
  220. </div>
  221. <div class="exchange-box column" >
  222. <div class="exchange-top">
  223. <img class="exchange-pic" src="/assets/frontend/recharge/images/b-b.png"></img>
  224. <div class="diamonds-num actvie" >3000</div>
  225. <div class="diamonds-name">金币</div>
  226. </div>
  227. <div class="exchange-price">¥300.00</div>
  228. </div>
  229. <div class="exchange-box column" >
  230. <div class="exchange-top">
  231. <img class="exchange-pic" src="/assets/frontend/recharge/images/b-b.png"></img>
  232. <div class="diamonds-num actvie" >5000</div>
  233. <div class="diamonds-name">金币</div>
  234. </div>
  235. <div class="exchange-price">¥500.00</div>
  236. </div>
  237. </div>-->
  238. </div>
  239. <div class="mode-wrap" >
  240. <div class="mode-title">充值方式</div>
  241. <div class="mode-item row" data-type="wechat">
  242. <div class="mode-left row">
  243. <div class="zicon zicon-weixin"></div>
  244. <div>微信充值</div>
  245. </div>
  246. <div class="zicon pay-ic zicon-xuanze1"></div>
  247. </div>
  248. <div class="mode-item row" data-type="alipay">
  249. <div class="mode-left row">
  250. <div class="zicon zicon-alipay"></div>
  251. <div>支付宝充值</div>
  252. </div>
  253. <!-- <div class="zicon" :class="choosed ? 'zicon-xuanze' : 'zicon-xuanze1'" @click="changeIcon"></div> -->
  254. <div class="zicon pay-ic zicon-xuanze"></div>
  255. </div>
  256. <div class="mode-tips row">
  257. <div class="zicon zicon-tishi"></div>
  258. <div class="mode-txt">说明:充值前请确认您已满18周岁,金币充值成功后无法退款,不可提现。</div>
  259. </div>
  260. </div>
  261. <input type="submit" class="recharge-btn center active" value="立即充值" />
  262. <input type="hidden" name="pay_type" value="alipay" class="payType">
  263. <!--<div class="recharge-btn center active">立即充值</div>-->
  264. </form>
  265. </div>
  266. </div>
  267. </body>
  268. </html>
  269. <script src="/assets/frontend/recharge/jquery.min.js"></script>
  270. <script>
  271. $(".mode-item").click(function (e) {
  272. $(this).find(".pay-ic").removeClass("zicon-xuanze1").addClass("zicon-xuanze");
  273. $(this).siblings().find(".pay-ic").removeClass("zicon-xuanze").addClass("zicon-xuanze1");
  274. var type = $(this).data("type");
  275. $(".payType").val(type);
  276. console.log($(".payType").val());
  277. });
  278. </script>