goods.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <style>
  2. .panel-recharge h3 {
  3. margin-bottom: 15px;
  4. margin-top: 10px;
  5. color: #444;
  6. font-size: 16px;
  7. }
  8. .row-recharge > div {
  9. margin-bottom: 10px;
  10. }
  11. .row-recharge > div > label {
  12. width: 100%;
  13. height: 40px;
  14. display: block;
  15. font-size: 14px;
  16. line-height: 40px;
  17. color: #999;
  18. background: #fff;
  19. -webkit-border-radius: 3px;
  20. -moz-border-radius: 3px;
  21. border-radius: 3px;
  22. cursor: pointer;
  23. text-align: center;
  24. border: 1px solid #ddd;
  25. margin-bottom: 20px;
  26. font-weight: 400;
  27. }
  28. .row-recharge > div > label.active {
  29. border-color: #0d95e8;
  30. color: #0d95e8;
  31. }
  32. .row-recharge > div > label:hover {
  33. z-index: 4;
  34. border-color: #27b0d6;
  35. color: #27b0d6;
  36. }
  37. .panel-recharge .custommoney {
  38. border: none;
  39. height: 100%;
  40. width: 100%;
  41. display: inherit;
  42. line-height: 100%;
  43. }
  44. .row-recharge > div {
  45. height: 40px;
  46. line-height: 40px;
  47. }
  48. .row-recharge > div input.form-control {
  49. border: none;
  50. }
  51. .row-paytype div input {
  52. display: none;
  53. }
  54. .row-paytype img {
  55. height: 22px;
  56. margin: 8px;
  57. vertical-align: inherit;
  58. }
  59. .btn-recharge {
  60. height: 40px;
  61. line-height: 40px;
  62. font-size: 14px;
  63. padding: 0;
  64. }
  65. </style>
  66. <div id="content-container" class="container">
  67. <div class="row">
  68. <div class="col-md-3">
  69. {include file="common/sidenav" /}
  70. </div>
  71. <div class="col-md-9">
  72. <div class="panel panel-default panel-recharge">
  73. <div class="panel-body">
  74. <h2 class="page-header">商城<span><small class="text-danger"> 账户余额:{$user.money}</small></span></h2>
  75. <div class="alert alert-info-light">
  76. 商城流量1元等于<?php echo $site['rate_traffic'] / (1024*1024*1024)?>G
  77. </div>
  78. <div class="clearfix"></div>
  79. <form action="{:url('recharge/submit')}" method="post" onsubmit="return false;">
  80. <input type="hidden" name="paytype" value="{$addonConfig.defaultpaytype}">
  81. <input type="hidden" name="money" value="{$addonConfig.defaultmoney}">
  82. <h3>购买流量包</h3>
  83. <div class="row row-recharge row-money">
  84. {foreach name="moneyList" id="money"}
  85. <div class="col-xs-6 col-sm-4 col-md-3 col-lg-2">
  86. <label class="{:$money.default?'active':''}" data-type="fixed" data-value="{$money.value}">
  87. ¥{$money.value}
  88. </label>
  89. </div>
  90. {/foreach}
  91. </div>
  92. <h3>支付方式</h3>
  93. <div class="row row-recharge row-paytype">
  94. <div class="col-xs-6 col-sm-4 col-md-4 col-lg-2 text-center">
  95. <label class="active" data-value="yue">
  96. <img src="__CDN__/assets/img/yue.png" alt="">
  97. </label>
  98. </div>
  99. </div>
  100. <div class="row row-recharge" style="margin:20px -15px 0 -15px;">
  101. <div class="col-xs-6 col-sm-4 col-md-4 col-lg-2">
  102. <input type="submit" class="btn btn-success btn-recharge btn-block buy" value="购买"/>
  103. </div>
  104. </div>
  105. </form>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. </div>