shaoguo 9 kuukautta sitten
vanhempi
sitoutus
64a73d559e

BIN
.DS_Store


BIN
hua_fei/.DS_Store


+ 8 - 0
hua_fei/.idea/.gitignore

@@ -0,0 +1,8 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml

+ 12 - 0
hua_fei/.idea/dataSources.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="DataSourceManagerImpl" format="xml" multifile-model="true">
+    <data-source source="LOCAL" name="huafei" uuid="5dc25393-7d0c-4132-8978-431382838b9f">
+      <driver-ref>sqlite.xerial</driver-ref>
+      <synchronize>true</synchronize>
+      <jdbc-driver>org.sqlite.JDBC</jdbc-driver>
+      <jdbc-url>jdbc:sqlite:$PROJECT_DIR$/config/huafei.sqlite3</jdbc-url>
+      <working-dir>$ProjectFileDir$</working-dir>
+    </data-source>
+  </component>
+</project>

+ 6 - 0
hua_fei/.idea/encodings.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="Encoding">
+    <file url="file://$PROJECT_DIR$/static/css/layer/layer.js" charset="UTF-8" />
+  </component>
+</project>

+ 8 - 0
hua_fei/.idea/hua_fei.iml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$" />
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 8 - 0
hua_fei/.idea/modules.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/hua_fei.iml" filepath="$PROJECT_DIR$/.idea/hua_fei.iml" />
+    </modules>
+  </component>
+</project>

+ 20 - 0
hua_fei/.idea/php.xml

@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="MessDetectorOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PHPCSFixerOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PHPCodeSnifferOptionsConfiguration">
+    <option name="highlightLevel" value="WARNING" />
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PhpProjectSharedConfiguration" php_language_level="7.3" />
+  <component name="PhpStanOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PsalmOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+</project>

+ 6 - 0
hua_fei/.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
+  </component>
+</project>

+ 7 - 0
hua_fei/2024-01-26pay.log

@@ -0,0 +1,7 @@
+01:44:38Array
+01:45:21{"code":"-1","msg":"pay\u7f3a\u5c11\u53c2\u6570"}
+01:48:12{"code":"-1","msg":"pay\u7f3a\u5c11\u53c2\u6570"}
+01:51:47{"code":"-1","msg":"pay\u7f3a\u5c11\u53c2\u6570"}
+01:54:40{"code":"-1","msg":"pay\u7f3a\u5c11\u53c2\u6570"}
+01:59:51{"code":"-1","msg":"pay\u7f3a\u5c11\u53c2\u6570"}
+02:28:45{"code":"-1","msg":"pay\u7f3a\u5c11\u53c2\u6570"}

+ 16 - 0
hua_fei/assets/images/loading.svg

@@ -0,0 +1,16 @@
+<svg width="38" height="38" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#fff">
+    <g fill="none" fill-rule="evenodd">
+        <g transform="translate(1 1)" stroke-width="2">
+            <circle stroke-opacity=".5" cx="18" cy="18" r="18"/>
+            <path d="M36 18c0-9.94-8.06-18-18-18">
+                <animateTransform
+                        attributeName="transform"
+                        type="rotate"
+                        from="0 18 18"
+                        to="360 18 18"
+                        dur="1s"
+                        repeatCount="indefinite"/>
+            </path>
+        </g>
+    </g>
+</svg>

+ 6 - 0
hua_fei/config/config.php

@@ -0,0 +1,6 @@
+<?php
+header("Content-type: text/html; charset=utf-8");
+if(empty(session_id()))session_start();
+include  WEB_ROOT_CONFIG."/db.php";
+include  WEB_ROOT_CONFIG."/functions.php";
+date_default_timezone_set("Asia/Shanghai");

+ 18 - 0
hua_fei/config/db.php

@@ -0,0 +1,18 @@
+<?php
+//连接sqlite数据库
+try {
+    $pdo=new PDO("sqlite:".WEB_ROOT_CONFIG."/huafei.sqlite3");
+    //设置错误报告模式为异常模式
+    $pdo->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
+
+//    $statement=$pdo->query("select * from users");
+
+//    while ($row=$statement->fetch(PDO::FETCH_ASSOC)) {
+//        echo "<pre>";
+//        var_dump($row);
+//        echo "</pre>";
+//    }
+}catch (Exception $e){
+    echo $e->getMessage();
+}
+

+ 45 - 0
hua_fei/config/functions.php

@@ -0,0 +1,45 @@
+<?php
+if(!function_exists("curl_request")) {
+    /**
+     * http请求
+     * @param string $url 请求url
+     * @param array $data 请求内容
+     * @param string $method 请求类型
+     * @param array $header 请求头
+     * @param boolean $https 是否是ssl
+     * @param int $timeout 超时时间
+     * @return string
+     */
+    function curl_request($url, $data = null, $method = 'post', $header = array("content-type: application/json"), $https = true, $timeout = 5)
+    {
+        $method = strtoupper($method);
+        $ch = curl_init();//初始化
+        curl_setopt($ch, CURLOPT_URL, $url);//访问的URL
+        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);//只获取页面内容,但不输出
+        curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);
+
+        if ($https) {
+            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);//https请求 不验证证书
+            curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);//https请求 不验证HOST
+        }
+        if ($method != "GET") {
+            if ($method == 'POST') {
+                curl_setopt($ch, CURLOPT_POST, true);//请求方式为post请求
+            }
+            if ($method == 'PUT' || strtoupper($method) == 'DELETE') {
+                curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method); //设置请求方式
+            }
+
+            curl_setopt($ch, CURLOPT_POSTFIELDS, $data);//请求数据
+        }
+
+        curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
+        curl_setopt($ch, CURLOPT_HTTPHEADER, $header); //模拟的header头
+        //curl_setopt($ch, CURLOPT_HEADER, false);//设置不需要头信息
+        $result = curl_exec($ch);//执行请求
+        curl_close($ch);//关闭curl,释放资源
+        return $result;
+    }
+
+
+}

BIN
hua_fei/config/huafei.sqlite3


+ 7 - 0
hua_fei/getProductList.php

@@ -0,0 +1,7 @@
+<?php
+header("Content-type: text/json; charset=utf-8");
+
+$data=$_GET;
+$res=curl_request("http://www.daihuwl.com/phoneCharge/default/getProductList?".http_build_query($data),
+    "","get",array("content-type: application/json","User-Agen:PostmanRuntime/7.36.1"),false);
+exit($res);

+ 40 - 36
hua_fei/home.html → hua_fei/home.php

@@ -1,4 +1,7 @@
-
+<?php
+$user_stmit=$pdo->query("select * from users where `id`=".$_SESSION['admin_id'].' limit 1');
+$user=$user_stmit->fetch(PDO::FETCH_ASSOC);
+?>
 <!doctype html>
 <html>
 
@@ -16,12 +19,12 @@
     <div class="myHeader">
         <div class="my_1">
             <img src="http://www.daihuwl.com/public/static/home/images/user.png" class="tx">
-            <span>13871312134</span>
-            <img src="http://www.daihuwl.com/public/static/home/images/go2.png" class="more">
+            <span><?= $user['phone'] ?></span>
+<!--            <img src="http://www.daihuwl.com/public/static/home/images/go2.png" class="more">-->
         </div>
         <div class="my_2">
-            <a href="/" class="L">充值</a>
-            <a href="/tixian.html" class="R">提现</a>
+            <a href="javascript:layer.msg('敬请期待')" class="L">充值</a>
+            <a href="javascript:layer.msg('敬请期待')" class="R">提现</a>
         </div>
     </div>
     <div class="clear"></div>
@@ -36,50 +39,50 @@
         </div>
     </div>
     <div class="clear"></div>
-    <div class="mybox_2">
-        <ul>
-            <li>
-                                <p><img src="http://www.daihuwl.com/public/static/home/icon/norz.png" style="width: 20px"></p><span>实名认证(未认证)</span>
-                            </li>
-            <li>
-                <p>¥0.00</p><span>账户余额</span>
-            </li>
-            <li>
-                <p>0人</p><span>我的团队</span>
-            </li>
-        </ul>
-    </div>
+<!--    <div class="mybox_2">-->
+<!--        <ul>-->
+<!--            <li>-->
+<!--                                <p><img src="http://www.daihuwl.com/public/static/home/icon/norz.png" style="width: 20px"></p><span>实名认证(未认证)</span>-->
+<!--                            </li>-->
+<!--            <li>-->
+<!--                <p>¥0.00</p><span>账户余额</span>-->
+<!--            </li>-->
+<!--            <li>-->
+<!--                <p>0人</p><span>我的团队</span>-->
+<!--            </li>-->
+<!--        </ul>-->
+<!--    </div>-->
     <div class="clear"></div>
     <div class="mybox_3">
         <ul>
-            <li><a href="/auth.html"><img src="http://www.daihuwl.com/public/static/home/icon/norz.png">
-                    <p>实名认证</p>
-                </a></li>
-            <li><a href="/skupload.html"><img src="http://www.daihuwl.com/public/static/home/icon/upload.png">
-                    <p>收款码上传</p>
-                </a></li>
-            <li><a href="/pricelog.html"><img src="http://www.daihuwl.com/public/static/home/icon/myorder.png">
+<!--            <li><a href="/auth.html"><img src="http://www.daihuwl.com/public/static/home/icon/norz.png">-->
+<!--                    <p>实名认证</p>-->
+<!--                </a></li>-->
+<!--            <li><a href="/skupload.html"><img src="http://www.daihuwl.com/public/static/home/icon/upload.png">-->
+<!--                    <p>收款码上传</p>-->
+<!--                </a></li>-->
+            <li><a href="javascript:layer.msg('敬请期待')"><img src="http://www.daihuwl.com/public/static/home/icon/myorder.png">
                     <p>资金明细</p>
                 </a></li>
-                <li><a href="/tixianlist.html"><img src="http://www.daihuwl.com/public/static/home/icon/tixian.png">
+                <li><a href="javascript:layer.msg('敬请期待')"><img src="http://www.daihuwl.com/public/static/home/icon/tixian.png">
                     <p>提现记录</p>
                 </a></li>
-            <li><a href="/order.html"><img src="http://www.daihuwl.com/public/static/home/icon/myhuafei.png">
+            <li><a href="/order"><img src="http://www.daihuwl.com/public/static/home/icon/myhuafei.png">
                     <p>话费订单</p>
                 </a></li>
-                <li><a href="/quanlist.html"><img src="http://www.daihuwl.com/public/static/home/icon/quan1.png">
+                <li><a href="javascript:layer.msg('敬请期待')"><img src="http://www.daihuwl.com/public/static/home/icon/quan1.png">
                     <p>优惠券</p>
                 </a></li>
-            <li><a href="/yaoqing.html"><img src="http://www.daihuwl.com/public/static/home/images/icon3.png">
+            <li><a href="javascript:layer.msg('敬请期待')"><img src="http://www.daihuwl.com/public/static/home/images/icon3.png">
                 <p>邀请好友</p></a>
             </li>
-            <li><a href="/teamlist.html"><img src="http://www.daihuwl.com/public/static/home/icon/team.png">
+            <li><a href="javascript:layer.msg('敬请期待')"><img src="http://www.daihuwl.com/public/static/home/icon/team.png">
                     <p>团队明细</p>
                 </a></li>
-            <li><a href="/upinfo.html"><img src="http://www.daihuwl.com/public/static/home/images/icon4.png">
+            <li><a href="javascript:layer.msg('敬请期待')"><img src="http://www.daihuwl.com/public/static/home/images/icon4.png">
                     <p>修改资料</p>
                 </a></li>
-                <li><a href="/explain.html"><img src="http://www.daihuwl.com/public/static/home/icon/shuoming.png">
+                <li><a href="javascript:layer.msg('敬请期待')"><img src="http://www.daihuwl.com/public/static/home/icon/shuoming.png">
                     <p>新手说明</p>
                 </a></li>
             <li><a href="javascript:void(0);" onclick="loginout()"><img src="http://www.daihuwl.com/public/static/home/icon/loginout.png">
@@ -100,14 +103,14 @@
   <div class="footer">
     <ul>
       <li  >
-        <a href="/">
+        <a href="/recharge">
         <img  src="http://www.daihuwl.com/public/static/home/images/f1.png"  >
         <p>充话费</p>
         </a>
       </li>
       
       <li >
-        <a href="/yaoqing.html">
+        <a href="javascript:layer.msg('敬请期待')">
         <img   src="http://www.daihuwl.com/public/static/home/images/f2.png"  >
         <p>分享好友</p>
         </a>
@@ -129,14 +132,14 @@
         layer.confirm('您确定要退出吗?', {
             btn: ['确定', '取消'] //按钮
         }, function() {
-            $.post("/loginout", { id: 1 }, function(data) {
+            $.post("/", { id: 1,a:"logout" }, function(data) {
 
                 if (data.code == 0) {
                     layer.msg(data.msg);
                 } else {
                     if (data.code == 1) {
                         layer.msg(data.msg, { icon: 1, time: 2000, shift: 6 }, function() {
-                            window.location.href = "/login.html";
+                            window.location.href = "/login";
                         });
                     }
                 }
@@ -153,3 +156,4 @@
 </body>
 
 </html>
+<script src="/static/js/common.min.js"></script>

+ 29 - 0
hua_fei/index.php

@@ -0,0 +1,29 @@
+<?php
+define("WEB_ROOT",__DIR__);
+define("WEB_ROOT_CONFIG",__DIR__."/config");
+include WEB_ROOT_CONFIG."/config.php";
+
+$type=trim($_SERVER['PATH_INFO']??"home",'/');
+
+if(isset($_POST['a']) && strtolower($_SERVER['REQUEST_METHOD'])=="post"){
+    header("Content-type: text/json; charset=utf-8");
+
+       if(!session_unset())exit(json_encode(array("code"=>0,"msg"=>"退出登录失败")));
+    exit(json_encode(array("code"=>1,"msg"=>"退出成功")));
+}
+
+
+
+if(!isset($_SESSION['admin_id']) && empty($_SESSION['admin_id']) && $type!="login" && $type!="register"){
+    header("location:/login");
+}elseif(($type=="login" || $type=="register") && isset($_SESSION['admin_id'])){
+    header("location:/home");
+
+}
+
+
+$file=WEB_ROOT."/{$type}.php";
+if(!is_file($file)){
+    exit("页面不存在");
+}
+include_once WEB_ROOT."/{$type}.php";

+ 26 - 3
hua_fei/login.html → hua_fei/login.php

@@ -1,3 +1,26 @@
+<?php
+$requestMethod = strtolower($_SERVER['REQUEST_METHOD']);
+if($requestMethod=="post"){
+    header("Content-type: text/json; charset=utf-8");
+
+    $phone=$_POST['phone']??"";
+    $pass=$_POST['pass']??"";
+    $statement=$pdo->prepare("select * from users where phone=? and password=?");
+    $statement->execute([$phone,$pass]);
+    $res=$statement->fetch(PDO::FETCH_ASSOC);
+
+    if(!$res){
+
+        exit(json_encode(['code'=>0,"msg"=>"账号或密码错误"]));
+    }
+   $_SESSION['admin_id']=$res['id'];
+
+    echo json_encode(['code'=>1,"msg"=>"登陆成功"]);
+  exit();
+}
+
+?>
+
 <!DOCTYPE html>
 <html>
 
@@ -27,7 +50,7 @@
             <input type="text" id="phone" placeholder="请输入手机号码" lay-verify="phone" oninput="value=value.replace(/[^\d]/g,'')">
             <input type="password" id="password" placeholder="请输入密码" lay-verify="required">
             <input type="button" value="登录" id="regBtn">
-            <a href="register.html">还没有账号?点击注册</a>
+            <a href="/register">还没有账号?点击注册</a>
         </div>
     </div>
     <div class="layui-trans layadmin-user-login-footer">
@@ -61,14 +84,14 @@
             layer.alert("密码不能为空");
             return false;
         }
-        $.post("/ajaxlogin", { phone: phone ,pass:password}, function(data) {
+        $.post("/login", { phone: phone ,pass:password}, function(data) {
 
             if (data.code == 0) {
                 layer.msg(data.msg);
             } else {
                 if (data.code == 1) {
                     layer.msg(data.msg, {time:2000,shift: 6 }, function () {
-                         window.location.href = "/home.html";
+                         window.location.href = "/home";
                     });
                 }
             }

+ 138 - 0
hua_fei/order.php

@@ -0,0 +1,138 @@
+<?php
+$user_id=$_SESSION['admin_id'];
+$stmit=$pdo->query("select * from recharge where user_id=".$user_id);
+
+?>
+<!doctype html>
+<html>
+
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width, maximum-scale=1.0, initial-scale=1.0, user-scalable=0" />
+    <link rel="stylesheet" href="/static/layer/layer.css?v=3.1.1" id="layuicss-layer">
+    <link type="text/css" rel="stylesheet" href="/static/css/home/style.css">
+    <style type="text/css">
+        .a3 {
+            float: right;
+            display: block;
+            background: #ff0000;
+            border: 1px solid #fb0404;
+            width: 70px;
+            height: 24px;
+            line-height: 24px;
+            text-align: center;
+            color: #fff;
+            border-radius: 5px;
+            font-size: 12px;
+            letter-spacing: 1px;
+            margin-top: 5px;
+            margin-right: 15px;
+        }
+    </style>
+</head>
+
+<body>
+<div class="header">
+    <div class="box">
+        <div class="L"><a onClick="javascript:history.back(-1)" class="goback"><img src="/static/image/goback.png" /></a></div>
+        <div class="C">
+            <p>话费订单</p>
+        </div>
+    </div>
+</div>
+<div class="clear"></div>
+<div class="hbox"></div>
+<div class="videoBox">
+    <!-- <div class="video_1">
+        <img src="/static/image/3.jpg">
+    </div> -->
+    <div class="titbox">
+        <p>充值订单</p>
+        <span>查看您所有的订单(点击状态可查看详细信息)</span>
+    </div>
+    <ul>
+        <?php while ($row=$stmit->fetch(PDO::FETCH_ASSOC)){?>
+        <li>
+            <div class="L">
+                <div class="date1"><img src="/static/image/date.png">
+                    <p><?= explode(" ",$row['created_at'])[0] ?></p>
+                </div>
+                <div class="date2"><?= explode(" ",$row['created_at'])[1]; ?></div>
+            </div>
+            <div class="C"><img src="/static/image/line.jpeg"></div>
+            <div class="R">
+                <div class="tit"><span>订单号:<?= $row['order_sn']; ?></span></div>
+                <div class="sub">
+                    <img src="/static/image/icon_1.png">
+                    <p>***<?= substr($row['phone'],-4); ?></p>
+                    <?php if($row['status']!=1){?>
+                    <a href="javascript:;" onclick="return layer.alert('充值号码:<?= $row['phone']; ?><br>充值金额:30<br>实际支付金额:30')" class="a3">支付失败</a>
+                    <a href="javascript:;" onclick="return layer.alert('充值号码:<?= $row['phone']; ?><br>充值金额:30<br>实际支付金额:30')" class="a3">充值失败</a>
+                    <?php }else{?>
+                        <a href="javascript:;" onclick="return layer.alert('充值号码:<?= $row['phone']; ?><br>充值金额:30<br>实际支付金额:30')" class="">支付成功</a>
+                        <a href="javascript:;" onclick="return layer.alert('充值号码:<?= $row['phone']; ?><br>充值金额:30<br>实际支付金额:30')" class="">充值成功</a>
+                    <?php } ?>
+                    <div style="clear: both"></div>
+                </div>
+            </div>
+        </li>
+        </li>
+        <?php }?>
+
+    </ul>
+</div>
+<div class="h54"></div>
+<div class="clear"></div>
+<div class="contact-kefu" style="text-align: center;">
+    <div class="kf-online">
+        <p>Copyright © 版权所有 长沙岱琥网络科技有限公司 <br> <a href="https://beian.miit.gov.cn/" target="_blank"
+                                                                 rel="noopener noreferrer nofollow"><i
+                    class="iconimg iconimg-beian"></i><span>湘ICP备2023024587号-1</span></a></p>
+    </div>
+</div>
+<script type="text/javascript" src="/static/js/jquery.min.js"></script>
+<script src="/static/layer/layer.js"></script>
+
+
+</body>
+
+</html>
+<script>
+    // 生成随机数
+    var randomNum = Math.floor(Math.random() * 10000);
+
+    // 获取link元素
+    var links = document.getElementsByTagName('link');
+    for (let i = 0; i <links.length ; i++) {
+        link=links[i];
+
+        var href = link.getAttribute('href');
+        // 添加随机数
+        link.setAttribute('href', href + '?v=' + randomNum);
+    }
+    // 获取原始href属性
+
+</script>
+
+
+
+<script>
+    // 生成随机数
+    var randomNum = Math.floor(Math.random() * 10000);
+    // 获取link元素
+    var scripts = document.getElementsByTagName('script');
+
+    for (let i = 0; i <scripts.length ; i++) {
+        try{
+            script=scripts[i];
+            // 获取原始href属性
+            var script1 = script.getAttribute('src');
+            script1.setAttribute('src', script1 + '?v=' + randomNum);
+        }catch (e){
+
+        }
+
+
+    }
+
+</script>

+ 53 - 0
hua_fei/pay.php

@@ -0,0 +1,53 @@
+<?php
+header("Content-type: text/json; charset=utf-8");
+$phone=str_replace(" ","",$_POST['phone']??"");
+$price=$_POST['price'];
+$order_sn=uniqid('order_sn');
+
+$admin_id=$_SESSION['admin_id'];
+$data=[
+    "user_id"=>$admin_id,
+    "price"=>$price,
+    "phone"=>$phone,
+    "order_sn"=>$order_sn,
+    "created_at"=>date("Y-m-d H:i:s"),
+    "updated_at"=>date("Y-m-d H:i:s"),
+];
+$statement=$pdo->prepare("insert into recharge(`user_id`,`price`,`phone`,`order_sn`,`created_at`,`updated_at`) values(?,?,?,?,?,?)");
+$res=$statement->execute(array_values($data));
+if(!$res)exit(json_encode(['code'=>0,"msg"=>"创建订单失败"]));
+$url  = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http";
+$url .= "://" . $_SERVER['HTTP_HOST'];
+$url .= $_SERVER['REQUEST_URI'];
+
+$request_data=[
+    "mch_id"=>"tongue",
+    "ptype"=>82,
+    "from_name"=>"测试",
+    "order_sn"=>$order_sn,
+    "money"=>$price,
+    "goods_desc"=>"测试",
+    "client_ip"=>$_SERVER['REMOTE_ADDR']??"127.0.0.1",
+    "format"=>"json",
+    "notify_url"=>"http://test.com",
+    "pay_backurl"=>$url,
+    "time"=>time(),
+];
+
+ksort($request_data);
+$request_data['key']="37cd2d09c84f6ff7f1d28960ef82c4e533a3c047";
+$request_data['sign']=md5(urldecode(http_build_query($request_data)));
+
+//unset($request_data['key']);
+//echo "<pre>";
+//var_dump(http_build_query($request_data));
+//var_dump($request_data);
+//echo "</pre>";
+//exit();
+$res=curl_request("http://47.236.143.199/?c=Pay",$request_data,"post",array("content-type: application/json"),false);
+$res=json_decode($res,true);
+file_put_contents(date("Y-m-d").'pay.log',date("H:i:s").json_encode($res)."\r\n",FILE_APPEND);
+if($res['code']!=1)exit(json_encode(['code'=>0,"msg"=>"下单失败"]));
+//exit(json_encode(['code'=>1,"msg"=>"","data"=>[
+//    "pay_url"=>$res['']
+//]]));

+ 44 - 39
hua_fei/index.html → hua_fei/recharge.php

@@ -1,3 +1,4 @@
+
 <!DOCTYPE html>
 <html style="font-size: 52.4px;">
 
@@ -32,6 +33,11 @@
     <!-- <script src="./index_files/awsc.js"></script> -->
     <!-- <script src="./index_files/webViewJSBridge.js"></script> -->
     <!-- <script src="https://cdn.bootcss.com/vConsole/3.3.0/vconsole.min.js"></script> -->
+
+
+
+
+
 </head>
 <!-- <script>
   var vConsole = new VConsole();
@@ -41,7 +47,7 @@
     <div id="main-box">
         <!--顶部菜单-->
         <div id="top-menu" style="display: none;">
-            <div class="scroll-inner"><a class="item cz active" href="javascript:;" data-url="/cz/recharge/index" data-isoutlink="1" data-isneeddigest="2"><i style="display: block;"></i>充值中心</a><a class="item video" href="javascript:;" data-url="/video/Default/index_list" data-isoutlink="1" data-isneeddigest="2"><i style="display: block;"></i>视频会员</a><a class="item otherIndustry" href="javascript:;" data-url="/otherIndustry/Default/index" data-isoutlink="1" data-isneeddigest="2"><i style="display: block;"></i>限时福利</a></div>
+            <div class="scroll-inner"><a class="item cz active" href="javascript:;" data-url="/cz/recharge/index" data-isoutlink="1" data-isneeddigest="2"><i style="display: block;"></i>充值中心</a><a class="item video" href="javascript:;" data-url="/order" data-isoutlink="1" data-isneeddigest="2"><i style="display: block;"></i>视频会员</a><a class="item otherIndustry" href="javascript:;" data-url="/otherIndustry/Default/index" data-isoutlink="1" data-isneeddigest="2"><i style="display: block;"></i>限时福利</a></div>
         </div>
 
         <div id="recharge-box">
@@ -91,7 +97,7 @@
                     <span class="location"></span>
                     <!-- <i class="iconfont close"><img src="/static/img/international_flow/icon-close.png" style="width: .28rem"></i> -->
                     <i class="iconfont iconclose close f18" style="vertical-align: middle; display: none;"></i>
-                    <a class="recharge-record" href="login.html">
+                    <a class="recharge-record" href="/order">
                         <img style="width: .41rem;margin-bottom: .05rem" src="static/picture/icon-record2.png">
                         <div class="recharge-record-text">充值记录</div>
                     </a>
@@ -337,41 +343,41 @@
             </div>
 
             <!--支付方式-->
-            <ul class="pay-way-wrap">
-                <li class="pay-weixin">
-                    <span><img src="static/picture/icon-wxpay.png" width="20">微信</span>
-                    <span class="value" value="wxpay"></span>
-                </li>
-                <li class="pay-alipay">
-                    <span><img src="static/picture/icon-alipay.png" width="20">支付宝</span>
-                    <span class="value active" value="alipay"></span>
-                </li>
-                <li class="pay-junka">
-                    <span><img src="static/picture/icon-junka.png" style="
-                        height: 20px;
-                        width: 40px;
-                    ">骏卡支付</span>
-                    <span class="value" value="jkpay"></span>
-                </li>
-                <style>
-                    .input-junka input {
-                        width: 100%;
-                        height: 1rem;
-                        background: none;
-                        border: 0;
-                        border-radius: 0;
-                        box-shadow: none;
-                        color: #333333;
-                        font-size: 0.36rem;
-                        padding-bottom: 0.17rem;
-                    }
-                </style>
-                <div class="input-junka">
-                    <input id="junKh" type="text" autocomplete="off" placeholder="请输入骏卡卡号">
-                    <input id="junKm" type="text" autocomplete="off" placeholder="请输入骏卡密码">
-                </div>
-
-            </ul>
+<!--            <ul class="pay-way-wrap">-->
+<!--                <li class="pay-weixin">-->
+<!--                    <span><img src="static/picture/icon-wxpay.png" width="20">微信</span>-->
+<!--                    <span class="value" value="wxpay"></span>-->
+<!--                </li>-->
+<!--                <li class="pay-alipay">-->
+<!--                    <span><img src="static/picture/icon-alipay.png" width="20">支付宝</span>-->
+<!--                    <span class="value active" value="alipay"></span>-->
+<!--                </li>-->
+<!--                <li class="pay-junka">-->
+<!--                    <span><img src="static/picture/icon-junka.png" style="-->
+<!--                        height: 20px;-->
+<!--                        width: 40px;-->
+<!--                    ">骏卡支付</span>-->
+<!--                    <span class="value" value="jkpay"></span>-->
+<!--                </li>-->
+<!--                <style>-->
+<!--                    .input-junka input {-->
+<!--                        width: 100%;-->
+<!--                        height: 1rem;-->
+<!--                        background: none;-->
+<!--                        border: 0;-->
+<!--                        border-radius: 0;-->
+<!--                        box-shadow: none;-->
+<!--                        color: #333333;-->
+<!--                        font-size: 0.36rem;-->
+<!--                        padding-bottom: 0.17rem;-->
+<!--                    }-->
+<!--                </style>-->
+<!--                <div class="input-junka">-->
+<!--                    <input id="junKh" type="text" autocomplete="off" placeholder="请输入骏卡卡号">-->
+<!--                    <input id="junKm" type="text" autocomplete="off" placeholder="请输入骏卡密码">-->
+<!--                </div>-->
+<!---->
+<!--            </ul>-->
             <div class="btn-box">
                 <button class="btn btn-block btn-pay">立即付款</button>
                 <!--阿里滑块验证-->
@@ -2188,7 +2194,6 @@
     </style>
     <!-- <script src="./index_files/onlinekf.min.js"></script> -->
 
-
 </body>
 
-</html>
+</html>

+ 24 - 6
hua_fei/register.html → hua_fei/register.php

@@ -1,3 +1,22 @@
+<?php
+$method_type=strtolower($_SERVER["REQUEST_METHOD"]);
+if($method_type=="post"){
+    header("Content-type: text/json; charset=utf-8");
+
+    $phone=$_POST['phone'];
+    $password=$_POST['pass'];
+    $time=date("Y-m-d H:i:s");
+    $user_stmit=$pdo->query("select * from users where `phone`=".$phone .' limit 1');
+    $user=$user_stmit->fetch(PDO::FETCH_ASSOC);
+    if(empty($user))exit(json_encode(['code'=>0,"msg"=>"改手机号已存在"]));
+    $stmit=$pdo->prepare("insert into users(`phone`,`password`,`created_at`, `updated_at`)values(?,?,?,?)");
+    $stmit->execute(array($phone,$password,$time,$time));
+    $id=$pdo->lastInsertId();
+    $_SESSION['admin_id']=$id;
+    exit(json_encode(array("code"=>1,"msg"=>"")));
+}
+
+?>
 <!DOCTYPE html>
 <html>
 
@@ -24,12 +43,11 @@
         <h1>注册</h1>
         <div class="loginForm">
             <input type="text" id="phone" placeholder="请输入手机号码" lay-verify="phone">
-            <input type="text" class="codeText" id="code" placeholder="请输入验证码" lay-verify="required">
-            <img src="static/picture/captcha.html" id="capt" class="codeBtn" onclick="this.src = this.src +Math.random()" style="width: 100%;height: 35px;" class="layadmin-user-login-codeimg">
+<!--            <img src="static/picture/captcha.html" id="capt" class="codeBtn" onclick="this.src = this.src +Math.random()" style="width: 100%;height: 35px;" class="layadmin-user-login-codeimg">-->
             <input type="password" id="password" placeholder="请输入密码" lay-verify="required">
             <input type="password" id="password_1" placeholder="请输入确认密码" lay-verify="required">
             <input type="button" value="注册" id="regBtn">
-            <a href="/login.html">已有账号?点击登录</a>
+            <a href="/login">已有账号?点击登录</a>
         </div>
     </div>
     <div class="layui-trans layadmin-user-login-footer">
@@ -37,7 +55,7 @@
         </div>
     <script type="text/javascript" src="static/js/jquery.min.js"></script>
     <script type="text/javascript" src="static/js/base.js"></script>
-    <script src="static/js/layer.js"></script>
+    <script src="/static/layer/layer.js"></script>
     <script type="text/javascript">
     function isPoneAvailable(poneInput) {
 
@@ -81,14 +99,14 @@
             layer.alert("两次密码不一致");
             return false;
         }
-        $.post("/ajaxregister", { phone: phone ,code:code,pass,pass}, function(data) {
+        $.post("/register", { phone: phone ,code:code,pass,pass}, function(data) {
 
             if (data.code == 0) {
                 layer.msg(data.msg);
             } else {
                 if (data.code == 1) {
                     layer.msg(data.msg, {time:2000,shift: 6 }, function () {
-                         window.location.href = "/login.html";
+                         window.location.href = "/recharge.html";
                     });
                 }
             }

+ 1234 - 0
hua_fei/static/css/home/style.css

@@ -0,0 +1,1234 @@
+@charset "utf-8";
+/* Style Reset */
+* {
+    margin: 0;
+    padding: 0
+}
+
+ul, ol, li, dl, dt, dd {
+    list-style: none;
+}
+
+a {
+    text-decoration: none;
+    outline: 0px;
+    color: #333
+}
+
+img {
+    border: 0;
+    max-width: 100%;
+}
+
+.ccsl {
+    overflow: hidden;
+    white-space: nowrap;
+    text-overflow: ellipsis;
+    display: block;
+}
+
+.clear {
+    clear: both;
+}
+
+body {
+    width: 100%;
+    max-width: 512px;
+    margin: 0 auto;
+    background: #fff;
+    font-size: 12px;
+    line-height: 24px;
+    color: #333;
+}
+
+.headerbox {
+    width: 100%;
+    max-width: 512px;
+    margin: 0 auto;
+    position: relative;
+    overflow: hidden
+}
+
+.headerbox img.bg {
+    display: block;
+    width: 100%
+}
+
+.headerbox .topBox {
+    position: absolute;
+    top: 10px;
+    width: 100%;
+    z-index: 1
+}
+
+.headerbox .topBox .L {
+    flex: 1;
+    height: 35px;
+    line-height: 35px;
+    background: #fff;
+    border-radius: 5px;
+}
+
+.headerbox .topBox .L img {
+    display: block;
+    float: left;
+    height: 25px;
+    margin: 5px;
+}
+
+.headerbox .topBox .L input {
+    height: 35px;
+    line-height: 35px;
+    outline: none;
+    float: left;
+    border: 0;
+    background: none;
+    color: #666;
+    width: 70%;
+    letter-spacing: 1px
+}
+
+.headerbox .topBox .R {
+    height: 35px;
+    padding-left: 10px;
+}
+
+.headerbox .topBox .R img {
+    display: block;
+    height: 25px;
+    margin-top: 5px;
+}
+
+
+.h54 {
+    width: 100%;
+    height: 54px;
+    overflow: hidden
+}
+
+.footerBox {
+    width: 100%;
+    max-width: 512px;
+    margin: 0 auto;
+}
+
+.footerBox .footer {
+    position: fixed;
+    width: 100%;
+    max-width: 512px;
+    bottom: 0;
+    height: 54px;
+    z-index: 999;
+}
+
+.footerBox .footer ul {
+    overflow: hidden;
+    border-top: 1px solid #E7E7E7;
+    box-sizing: border-box;
+    background: #fff
+}
+
+.footerBox .footer ul li {
+    width: 33%;
+    height: 54px;
+    float: left;
+    overflow: hidden
+}
+
+.footerBox .footer ul li a {
+    display: block;
+    overflow: hidden
+}
+
+.footerBox .footer ul li img {
+    height: 26px;
+    display: block;
+    margin: 0 auto;
+    margin-top: 3px
+}
+
+.footerBox .footer ul li p {
+    text-align: center;
+    height: 24px;
+    line-height: 24px;
+    color: #969696;
+    letter-spacing: 1px
+}
+
+.footerBox .footer ul li.on p {
+    color: #0E4ACD
+}
+
+
+.typebox {
+    overflow: hidden
+}
+
+.typebox ul {
+    overflow: hidden;
+    padding: 15px 0
+}
+
+.typebox ul li {
+    float: left;
+    width: 25%;
+}
+
+.typebox ul li img {
+    display: block;
+    margin: 0 auto;
+    height: 50px;
+}
+
+.typebox ul li p {
+    text-align: center;
+    line-height: 30px;
+    font-size: 13px;
+    letter-spacing: 1px
+}
+
+.allbox {
+    background: #F1F1F1;
+    width: 100%;
+    height: 10px
+}
+
+.courseBox {
+    padding: 0 15px;
+    overflow: hidden;
+    background: #fff
+}
+
+.courseBox .titbox {
+    display: flex;
+    height: 50px;
+    overflow: hidden
+}
+
+.courseBox .titbox img {
+    display: block;
+    height: 20px;
+    margin: 15px 0;
+}
+
+.courseBox .titbox p {
+    flex: 1;
+    height: 50px;
+    line-height: 50px;
+    font-size: 15px;
+    padding-left: 5px;
+    color: #000;
+    letter-spacing: 1px
+}
+
+.courseBox ul.ul_1 {
+    overflow: hidden;
+    border-bottom: 1px solid #eee;
+    padding-bottom: 15px
+}
+
+.courseBox ul.ul_1 li {
+    float: left;
+    width: 49%;
+}
+
+.courseBox ul.ul_1 li:nth-child(2n) {
+    margin-left: 2%
+}
+
+.courseBox ul.ul_1 li img {
+    display: block;
+    width: 100%;
+}
+
+.courseBox ul.ul_1 li .tit {
+    font-size: 14px;
+    line-height: 30px
+}
+
+.courseBox ul.ul_1 .price {
+    color: #F34B06;
+    height: 24px;
+    line-height: 24px;
+    font-size: 16px
+}
+
+.courseBox ul.ul_1 .price span {
+    float: right;
+    font-size: 12px;
+    color: #bbb;
+    padding-right: 5px
+}
+
+
+.courseBox ul.ul_2 {
+    overflow: hidden;
+    padding-bottom: 15px
+}
+
+.courseBox ul.ul_2 li {
+    overflow: hidden;
+    border-bottom: 1px solid #eee;
+    padding: 10px 0
+}
+
+.courseBox ul.ul_2 li:first-child {
+    padding-top: 0
+}
+
+.courseBox ul.ul_2 li:last-child {
+    border-bottom: none
+}
+
+.courseBox ul.ul_2 li .L {
+    float: left;
+    width: 100px;
+    height: 115px;
+    margin-right: 15px
+}
+
+.courseBox ul.ul_2 li .L img {
+    display: block;
+    width: 100px;
+    height: 115px;
+}
+
+.courseBox ul.ul_2 li .R {
+    flex: 1
+}
+
+.courseBox ul.ul_2 li .R .tit {
+    font-size: 14px;
+    padding-top: 10px;
+}
+
+.courseBox ul.ul_2 li .R .sub {
+    color: #bbb;
+}
+
+.courseBox ul.ul_2 li .R .pri {
+    padding-top: 20px;
+    font-size: 16px;
+    color: #F34B06
+}
+
+.courseBox ul.ul_2 li .R .pri a {
+    display: block;
+    float: right;
+    width: 100px;
+    height: 26px;
+    background: #0E4ACD;
+    color: #fff;
+    text-align: center;
+    line-height: 26px;
+    font-size: 12px;
+    border-radius: 15px;
+    letter-spacing: 1px
+}
+
+
+.header {
+    width: 100%;
+    max-width: 512px;
+    margin: 0 auto;
+}
+
+.header .box {
+    height: 46px;
+    position: fixed;
+    width: 100%;
+    max-width: 512px;
+    top: 0;
+    z-index: 9999;
+    border-bottom: 1px solid #eee;
+    background: #fff
+}
+
+.header .box .L {
+    position: absolute;
+    left: 0;
+    top: 0;
+    height: 46px;
+    padding-left: 15px;
+}
+
+.header .box .L img {
+    display: block;
+    height: 22px;
+    padding-top: 14px;
+}
+
+.header .box .C {
+    width: 100%;
+    height: 46px;
+    line-height: 46px;
+    text-align: center
+}
+
+.header .box .C p {
+    text-align: center;
+    font-size: 16px;
+    color: #333;
+    letter-spacing: 1px
+}
+
+.hbox {
+    width: 100%;
+    height: 46px;
+    overflow: hidden
+}
+
+.videoBox {
+    padding: 15px 0;
+    overflow: hidden
+}
+
+.videoBox .video_1 {
+    padding: 0 15px
+}
+
+.videoBox .video_1 img {
+    display: block;
+    width: 100%;
+}
+
+.videoBox .titbox {
+    padding: 15px 15px 5px;
+    overflow: hidden
+}
+
+.videoBox .titbox p {
+    font-size: 15px;
+    color: #000;
+    letter-spacing: 1px;
+}
+
+.videoBox .titbox span {
+    color: #999;
+    font-size: 12px;
+    letter-spacing: 1px;
+    padding-top: 3px;
+    display: block
+}
+
+.videoBox ul {
+    overflow: hidden;
+    padding: 10px 15px
+}
+
+.videoBox ul li {
+    width: 100%;
+    /*height: 90px;*/
+    box-shadow: #eee 0px 0px 10px 2px;
+    border-radius: 10px;
+    margin-bottom: 2%;
+    padding-top: 20px;
+    overflow: hidden;
+}
+
+.videoBox ul li .L {
+    float: left;
+    padding: 0 15px;
+}
+
+.videoBox ul li .L .date1 {
+    height: 30px;
+    line-height: 30px;
+}
+
+.videoBox ul li .L .date1 img {
+    display: block;
+    float: left;
+    width: 14px;
+    margin-top: 8px;
+}
+
+.videoBox ul li .L .date1 p {
+    float: left;
+    padding-left: 5px
+}
+
+.videoBox ul li .L .date2 {
+    font-size: 16px;
+    color: #000;
+    padding-left: 20px;
+    padding-top: 8px;
+    letter-spacing: 1px;
+    font-weight: bold
+}
+
+.videoBox ul li .C {
+    float: left;
+    padding-right: 15px
+}
+
+.videoBox ul li .C img {
+    display: block;
+    height: 70px
+}
+
+.videoBox ul li .R {
+    flex: 1;
+}
+
+.videoBox ul li .R .tit {
+    color: #000;
+    font-size: 14px;
+    letter-spacing: 1px
+}
+
+.videoBox ul li .R .sub {
+    padding-top: 15px;
+    padding-bottom: 3%;
+}
+
+.videoBox ul li .R .sub img {
+    display: block;
+    float: left;
+    width: 35px;
+    height: 35px;
+    border-radius: 100%
+}
+
+.videoBox ul li .R .sub p {
+    float: left;
+    height: 35px;
+    line-height: 35px;
+    padding-left: 10px
+}
+
+.videoBox ul li .R .sub a.a1 {
+    float: right;
+    display: block;
+    border: 1px solid #0E4ACD;
+    width: 70px;
+    height: 24px;
+    line-height: 24px;
+    text-align: center;
+    color: #0E4ACD;
+    border-radius: 5px;
+    font-size: 12px;
+    letter-spacing: 1px;
+    margin-top: 5px;
+    margin-right: 15px
+}
+
+.videoBox ul li .R .sub a.a2 {
+    float: right;
+    display: block;
+    background: #666;
+    border: 1px solid #666;
+    width: 70px;
+    height: 24px;
+    line-height: 24px;
+    text-align: center;
+    color: #fff;
+    border-radius: 5px;
+    font-size: 12px;
+    letter-spacing: 1px;
+    margin-top: 5px;
+    margin-right: 15px
+}
+
+
+.courseBox ul.ul_3 {
+    overflow: hidden;
+    padding: 15px 0
+}
+
+.courseBox ul.ul_3 li {
+    overflow: hidden;
+    border-bottom: 1px solid #eee;
+    padding: 10px 15px
+}
+
+.courseBox ul.ul_3 li:first-child {
+    padding-top: 0
+}
+
+.courseBox ul.ul_3 li:last-child {
+    border-bottom: none
+}
+
+.courseBox ul.ul_3 li .L {
+    float: left;
+    height: 80px;
+    margin-right: 15px
+}
+
+.courseBox ul.ul_3 li .L img {
+    display: block;
+    height: 80px;
+}
+
+.courseBox ul.ul_3 li .R {
+    flex: 1
+}
+
+.courseBox ul.ul_3 li .R .tit {
+    font-size: 14px;
+    padding-top: 5px;
+}
+
+.courseBox ul.ul_3 li .R .sub {
+    color: #bbb;
+}
+
+.courseBox ul.ul_3 li .R .xx {
+    overflow: hidden;
+    height: 30px;
+    line-height: 30px;
+}
+
+.courseBox ul.ul_3 li .R .xx span {
+    display: block;
+    float: left;
+    width: 70%;
+    height: 10px;
+    margin-top: 10px;
+    background: #E9ECF6;
+    border-radius: 10px;
+}
+
+.courseBox ul.ul_3 li .R .xx p {
+    float: right;
+    font-size: 12px;
+}
+
+
+.subscribebox {
+    padding: 0 15px;
+    overflow: hidden
+}
+
+.subscribebox .item {
+    overflow: hidden;
+    height: 60px;
+    display: flex;
+    padding: 10px 0;
+    border-bottom: 1px solid #eee
+}
+
+.subscribebox .item .L {
+    float: left;
+    width: 60px;
+    height: 60px;
+}
+
+.subscribebox .item .L img {
+    display: block;
+    width: 60px;
+    height: 60px;
+    border-radius: 100%
+}
+
+.subscribebox .item .C {
+    flex: 1;
+    padding: 0 10px;
+}
+
+.subscribebox .item .C p {
+    letter-spacing: 1px;
+    font-size: 14px;
+    padding-top: 5px;
+    color: #000
+}
+
+.subscribebox .item .C span {
+    color: #666;
+    font-size: 12px;
+    letter-spacing: 1px;
+}
+
+.subscribebox .item .R {
+    float: right;
+    height: 60px;
+    line-height: 60px;
+    font-size: 12px;
+    color: #666;
+}
+
+
+.myHeader {
+    width: 100%;
+    max-width: 512px;
+    background: url(../images/mybg.jpg) no-repeat;
+    background-size: 100% 100%
+}
+
+.myHeader .my_1 {
+    display: flex;
+    padding: 40px 0 30px;
+    width: 100%;
+    height: 76px;
+    line-height: 76px;
+    color: #fff;
+}
+
+.myHeader .my_1 .tx {
+    float: left;
+    display: block;
+    margin-right: 10px;
+    width: 70px;
+    height: 70px;
+    border: 3px solid #fff;
+    border-radius: 100%;
+    margin-left: 20px;
+}
+
+.myHeader .my_1 span {
+    flex: 1;
+    display: block;
+    font-size: 16px;
+    letter-spacing: 1px;
+}
+
+.myHeader .my_1 .more {
+    display: block;
+    float: right;
+    margin-right: 20px;
+    height: 24px;
+    margin-top: 26px
+}
+
+.myHeader .my_2 {
+    padding: 0 35px 20px;
+    overflow: hidden
+}
+
+.myHeader .my_2 a {
+    border: 1px solid #fff;
+    border-radius: 25px;
+    height: 36px;
+    line-height: 36px;
+    text-align: center;
+    color: #fff;
+    letter-spacing: 1px;
+    font-size: 14px;
+    display: block;
+    width: 40%
+}
+
+.myHeader .my_2 a.L {
+    float: left;
+}
+
+.myHeader .my_2 a.R {
+    float: right;
+}
+
+
+.mybox_1 {
+    overflow: hidden;
+    padding: 13px 15px 0
+}
+
+.mybox_1 .box {
+    display: flex;
+    box-shadow: #eee 0px 0px 10px 2px;
+    border-radius: 10px;
+    margin-bottom: 10px;
+    padding: 10px 0;
+    overflow: hidden
+}
+
+.mybox_1 .box .L {
+    float: left;
+    width: 50px;
+    margin-right: 10px;
+    margin-left: 10px
+}
+
+.mybox_1 .box .L img {
+    display: block;
+    width: 50px;
+    height: 50px;
+}
+
+.mybox_1 .box .C {
+    flex: 1
+}
+
+.mybox_1 .box .C p {
+    color: #000;
+    letter-spacing: 1px;
+    font-size: 15px
+}
+
+.mybox_1 .box .C span {
+    letter-spacing: 1px;
+    font-size: 12px;
+    color: #666;
+    display: block
+}
+
+.mybox_1 .box .R {
+    float: right;
+    padding-right: 15px
+}
+
+.mybox_1 .box .R a {
+    display: block;
+    border: 1px solid #3F81F1;
+    color: #3F81F1;
+    width: 65px;
+    height: 26px;
+    line-height: 26px;
+    text-align: center;
+    letter-spacing: 1px;
+    border-radius: 5px;
+    margin-top: 11px
+}
+
+
+.mybox_2 {
+    overflow: hidden;
+    padding: 10px 15px
+}
+
+.mybox_2 ul {
+    box-shadow: #eee 0px 0px 10px 2px;
+    border-radius: 10px;
+    margin-bottom: 10px;
+    padding: 10px 0;
+    overflow: hidden
+}
+
+.mybox_2 ul li {
+    width: 33.3%;
+    float: left
+}
+
+.mybox_2 ul li p {
+    text-align: center;
+    color: #000;
+    font-size: 16px;
+    letter-spacing: 1px
+}
+
+.mybox_2 ul li span {
+    text-align: center;
+    color: #666;
+    display: block;
+    font-size: 13px;
+    letter-spacing: 1px;
+}
+
+
+.mybox_3 {
+    overflow: hidden;
+    padding: 10px 15px
+}
+
+.mybox_3 ul {
+    box-shadow: #eee 0px 0px 10px 2px;
+    border-radius: 10px;
+    margin-bottom: 10px;
+    padding: 10px 0;
+    overflow: hidden
+}
+
+.mybox_3 ul li {
+    float: left;
+    width: 25%;
+    padding: 5px 0
+}
+
+.mybox_3 ul li img {
+    display: block;
+    width: 28px;
+    margin: 0 auto
+}
+
+.mybox_3 ul li p {
+    text-align: center;
+    letter-spacing: 1px;
+    line-height: 26px
+}
+
+
+.feedbackBox {
+    overflow: hidden;
+    padding: 5px 15px 0
+}
+
+.feedbackBox .titbox {
+    font-size: 14px;
+    letter-spacing: 1px;
+    height: 35px;
+    line-height: 35px;
+    padding-left: 10px
+}
+
+.feedbackBox .sub {
+    padding: 10px;
+    overflow: hidden;
+    background: #fff;
+    border-radius: 5px;
+    height: 150px;
+}
+
+.feedbackBox .sub textarea {
+    width: 100%;
+    height: 150px;
+    border: 0;
+    outline: none;
+}
+
+.feedbackBox .btn {
+    overflow: hidden;
+    padding-top: 40px
+}
+
+.feedbackBox .btn a {
+    background: #3F82ED;
+    color: #fff;
+    display: block;
+    height: 40px;
+    line-height: 40px;
+    letter-spacing: 1px;
+    font-size: 14px;
+    border-radius: 5px;
+    text-align: center;
+}
+
+
+.chartsBox {
+    overflow: hidden
+}
+
+.chartsBox .charts_1 {
+    width: 170px;
+    margin: 0 auto;
+    padding: 30px 0;
+    height: 50px;
+    line-height: 50px;
+    overflow: hidden
+}
+
+.chartsBox .charts_1 .L {
+    float: left;
+    color: #666;
+    letter-spacing: 1px;
+}
+
+.chartsBox .charts_1 .L span {
+    color: #4486FF;
+    font-weight: bold;
+    padding: 0 3px;
+    font-size: 16px;
+}
+
+.chartsBox .charts_1 .R {
+    float: left;
+    color: #666;
+    letter-spacing: 1px;
+}
+
+.chartsBox .charts_1 img {
+    float: left;
+    display: block;
+    width: 50px;
+    height: 50px;
+    border-radius: 100%;
+    margin: 0 5px
+}
+
+.chartsBox ul {
+    border-top: 1px solid #eee;
+    padding: 0 15px;
+}
+
+.chartsBox ul li {
+    border-bottom: 1px solid #eee;
+    height: 50px;
+    line-height: 50px;
+    overflow: hidden
+}
+
+.chartsBox ul li .num {
+    width: 42px;
+    float: left;
+    text-align: center;
+    font-size: 14px
+}
+
+.chartsBox ul li .num img {
+    display: block;
+    height: 34px;
+    margin: 8px auto;
+}
+
+.chartsBox ul li .num p {
+    text-align: center;
+    font-size: 14px
+}
+
+.chartsBox ul li .tx {
+    float: left;
+    width: 50px
+}
+
+.chartsBox ul li .tx img {
+    display: block;
+    width: 34px;
+    border-radius: 100%;
+    margin: 8px auto
+}
+
+.chartsBox ul li .tit {
+    float: left;
+    padding-left: 5px
+}
+
+.chartsBox ul li .R {
+    float: right;
+    color: #666;
+}
+
+.chartsBox ul li .R span {
+    font-size: 16px;
+    color: #F83B32;
+    padding-right: 3px
+}
+
+
+.helpBox {
+    padding: 18px 15px;
+    overflow: hidden
+}
+
+.helpBox ul {
+    overflow: hidden
+}
+
+.helpBox ul li {
+    height: 46px;
+    line-height: 46px;
+    background: #fff;
+    margin-bottom: 10px
+}
+
+.helpBox ul li .icon {
+    float: left;
+    display: block;
+    height: 30px;
+    margin: 8px
+}
+
+.helpBox ul li p {
+    float: left
+}
+
+.helpBox ul li .go {
+    display: block;
+    float: right;
+    height: 18px;
+    margin-top: 14px;
+    margin-right: 10px
+}
+
+
+.setBox {
+    overflow: hidden
+}
+
+.setBox ul {
+    overflow: hidden;
+    background: #fff;
+    padding: 10px
+}
+
+.setBox ul li {
+    height: 46px;
+    line-height: 46px;
+    border-bottom: 1px solid #eee;
+    font-size: 14px;
+}
+
+.setBox ul li:last-child {
+    border: 0
+}
+
+.setBox ul li p {
+    float: left;
+}
+
+.setBox ul li span {
+    float: right;
+    display: block;
+}
+
+.setBox ul li span.blue {
+    color: #3F82ED
+}
+
+.setBox ul li img {
+    display: block;
+    float: right;
+    height: 18px;
+    margin-top: 14px;
+}
+
+.setBox .btn {
+    overflow: hidden;
+    height: 45px;
+    background: #fff;
+    margin-top: 25px
+}
+
+.setBox .btn a {
+    display: block;
+    text-align: center;
+    line-height: 45px;
+    height: 45px;
+    font-size: 14px;
+    letter-spacing: 1px;
+    color: #3F82ED
+}
+
+
+.meansBox {
+    overflow: hidden
+}
+
+.meansBox ul.ul_1 {
+    background: #fff;
+    overflow: hidden;
+    padding: 10px 0 3px;
+    margin-bottom: 10px
+}
+
+.meansBox ul.ul_1 li {
+    float: left;
+    text-align: center;
+    width: 33.3%
+}
+
+.meansBox ul.ul_1 li img {
+    display: block;
+    margin: 0 auto;
+    width: 50px;
+}
+
+.meansBox ul.ul_1 li p {
+    text-align: center;
+    height: 30px;
+    line-height: 30px;
+    color: #666;
+    letter-spacing: 1px;
+}
+
+.meansBox ul.ul_2 {
+    overflow: hidden;
+}
+
+.meansBox ul.ul_2 li {
+    margin-bottom: 2px;
+    padding: 5px;
+    background: #fff;
+    padding-right: 10px;
+    overflow: hidden
+}
+
+.meansBox ul.ul_2 li .L {
+    float: left;
+    width: 110px;
+    height: 80px;
+    margin-right: 10px
+}
+
+.meansBox ul.ul_2 li .L img {
+    display: block;
+    width: 110px;
+    height: 80px;
+}
+
+.meansBox ul.ul_2 li .R {
+    flex: 1;
+}
+
+.meansBox ul.ul_2 li .R .tit {
+    font-size: 14px;
+    letter-spacing: 1px;
+    line-height: 1.5;
+    color: #333;
+}
+
+.meansBox ul.ul_2 li .R .sub {
+    overflow: hidden;
+    text-overflow: ellipsis;
+    display: -webkit-box;
+    -webkit-line-clamp: 2;
+    -webkit-box-orient: vertical;
+    line-height: 1.5;
+    color: #666;
+    letter-spacing: 1px;
+}
+
+.meansBox ul.ul_2 li .R .date {
+    color: #666;
+    font-size: 12px;
+    float: right
+}
+
+.meansBox ul.ul_2 li .R .date span {
+    display: inline-block;
+    background: #EC482D;
+    color: #fff;
+    border-radius: 5px;
+    height: 16px;
+    width: 40px;
+    margin-left: 5px;
+    line-height: 16px;
+    text-align: center;
+}
+
+
+.layadmin-user-login-footer {
+    left: 0;
+    bottom: 0;
+    width: 100%;
+    line-height: 30px;
+    padding: 20px;
+    text-align: center;
+    box-sizing: border-box;
+    color: rgba(0, 0, 0, .5)
+}
+
+.layadmin-user-login-footer span {
+    padding: 0 5px
+}
+
+.layadmin-user-login-footer a {
+    padding: 0 5px;
+    color: rgba(0, 0, 0, .5)
+}
+
+.layadmin-user-login-footer a:hover {
+    color: rgba(0, 0, 0, 1)
+}
+
+
+.loginForm {
+    text-align: center;
+}
+
+.loginForm input[type="text"] {
+
+    margin-bottom: 10px;
+}
+
+
+.loginForm input[type="button"] {
+    padding: 8px 0px 8px 0px;
+    margin-bottom: 10px;
+    border-radius: 20px;
+    width: 230px;
+    color: white;
+    font-size: 14px;
+}
+
+
+
+

BIN
hua_fei/static/image/date.png


BIN
hua_fei/static/image/goback.png


BIN
hua_fei/static/image/icon_1.png


BIN
hua_fei/static/image/line.jpeg


+ 24 - 13
hua_fei/static/js/flowRecharge.min.js

@@ -235,19 +235,30 @@
               , i = o.customer
               , r = o.cb;
             location.href.indexOf("index_mz") > -1 ? androidJsInterface.showLoading() : common.loadingShow("加载中..."),
-            common.ajax("/phoneCharge/default/getBypassProviderType", {
-                customer: i,
-                prodId: n
-            }, {
-                success: function(o) {
-                    e(1e3),
-                    r && r(o.code, o)
-                },
-                error: function(o, n) {
-                    $("#spin").hide(),
-                    common.tip(n)
-                }
-            })
+          //  common.ajax("/phoneCharge/default/getBypassProviderType", {
+            //     customer: i,
+            //     prodId: n
+            // }, {
+            //     success: function(o) {
+            //         e(1e3),
+            //         r && r(o.code, o)
+            //     },
+            //     error: function(o, n) {
+            //         $("#spin").hide(),
+            //         common.tip(n)
+            //     }
+            // })
+                 o='{\n' +
+                    '    "resultCode": 1000,\n' +
+                    '    "resultReason": "",\n' +
+                    '    "code": 1000,\n' +
+                    '    "msg": "",\n' +
+                    '    "payType": 0,\n' +
+                    '    "payUrl": null\n' +
+                    '}'
+            o=JSON.parse(o);
+                        e(1e3);
+                        r && r(o.code, o)
         }
     },
     "undefined" != typeof define && define.amd ? define("Recharge", [], function(o) {

+ 13 - 47
hua_fei/static/js/recharge_flow_new.min.js

@@ -114,7 +114,7 @@ $(function () {
         }),
         $(".btn-pay").on("click", function (o) {
           
-$(".btn-pay").attr("disabled",true);
+// $(".btn-pay").attr("disabled",true);
                 var e = $(".mobile").val()
                     , i = product.prodId
                     , t = $(".pay-way-wrap li").find(".value.active").attr("value")
@@ -122,53 +122,19 @@ $(".btn-pay").attr("disabled",true);
                     , a = parseInt(o.pageX) + "-" + parseInt(o.pageY)
                     , r = common.getQuery("digest")
                     , c = common.getQuery("userInfo");
-                    if("jkpay" == t){
-                        var junKh = $("#junKh").val();
-                        if("" == junKh){
-                             common.tip("请输入骏卡卡号");
-                             $("#junKh").focus();
-                           return ;
-                        }
-                        var junKm = $("#junKm").val();
-                        if("" == junKm){
-                            common.tip("请输入骏卡卡密");
-                            $("#junKm").focus();
-                          return ;
-                       }
-                    }
-                    var jkh =$("#junKh").val();
-                    var jkm = $("#junKm").val();
-                    var s = {
-                        type:t,
-                amount:i,
+                console.log(e,i);
+            common.ajax("/pay", {
                 phone:e,
-                junKh:jkh,
-                junKm:jkm,
-
-
-
-
-
-                        customer: e.replace(/ /g, ""),
-                        prodId: i,
-                        action: t,
-                        fingerTouch_position: fingerTouch_position,
-                        product_position: product_position,
-                        pay_position: a,
-                        is_manual_input: is_manual_input,
-                        buyerId: c,
-                        cb: function (o, i) {
-                    i.data        //setTimeout('window.location.href ="/"', 4500);
-                    //common.tip("充值提交成功,请稍等片刻~");
-                    common.tip(i.msg);
-                    if(i.data==0){
-                        setTimeout('window.location.href ="/"', 4500);
-                    }else{
-                        $(".btn-pay").attr("disabled",false);
-                    }
-                        }
-                    };
-                recharge.createOrder(s)
+                price:i,
+            }, {
+                success: function(o) {
+                   console.log(o)
+                },
+                error: function(o, n) {
+                    console.log(o)
+                },
+                type:"post"
+            })
             
         }),
         $(".dinggou-box .arrow-btn").click(function () {

+ 6 - 6
hua_fei/static/js/recharge_new.min.js

@@ -36,7 +36,7 @@ function init() {
     var l = location.pathname.toLocaleLowerCase();
     "/cz/recharge/index" == l ? ($("#flow-recharge").show(),
     $("#huafei-recharge").hide(),
-    getProListFlow()) : "/phonecharge/default/index" == l && ($(".tabmenu").addClass("huafei"),
+    getProListFlow()) : "/index" == l && ($(".tabmenu").addClass("huafei"),
     $(".tabmenu .tabmenu-flow").removeClass("active"),
     $(".tabmenu .tabmenu-huafei").addClass("active"),
     $("#flow-recharge").hide(),
@@ -137,8 +137,8 @@ function getProListHuafei(e) {
         $("#mobileHistory").hide(),
         $(".mobile").blur(),
         localStorage.setItem("mobile", t);
-        var o = "/phoneCharge/default/getProductList";
-        o = 1 == e ? "/phoneCharge/default/getProductList" : "/slowCharge/default/getProductList",
+        var o = "/getProductList";
+        o = 1 == e ? "/getProductList" : "/slowCharge/default/getProductList",
         common.loadingShow("加载中..."),
         
         common.ajax(o, {
@@ -233,7 +233,7 @@ function showDataHf(e) {
     renderData(prodCardList, "#proList-cardfree")) : $(".cardfree").hide()),
     productListFreeflow.length > 0 ? ($(".flowfree").show(),
     renderData(productListFreeflow, "#proList-flowfree")) : $(".flowfree").hide(),
-    "19A5BA6095F90C73" == digest && "/phonecharge/default/index" == location.pathname.toLocaleLowerCase() && sanxingAutoCallHf()
+    "19A5BA6095F90C73" == digest && "/index" == location.pathname.toLocaleLowerCase() && sanxingAutoCallHf()
 }
 function showDataFlow(e) {
     renderData(productListLike, "#proList-like"),
@@ -426,7 +426,7 @@ var index = 0
   , product = {}
   , prodParValue = ""
   , prodPrice = ""
-  , prohtmlHuafei = '<li class="active"><p class="p1"><span>30</span>元</p><span class="corner">24小时到账</span><p class="p2">售价:<span>30</span>元</p></li><li><p class="p1">50元</p><span class="corner">24小时到账</span><p class="p2">售价:50元</p></li><li><p class="p1">100元</p><span class="corner">24小时到账</span><p class="p2">售价:100元</p></li><li><p class="p1">200元</p><span class="corner">24小时到账</span><p class="p2">售价:200元</p></li><li><p class="p1">300元</p><span class="corner">24小时到账</span><p class="p2" style="color: red">特惠:300元</p></li><li><p class="p1">500元</p><span class="corner">24小时到账</span><p class="p2" style="color: red">特惠:500元</p>'
+  , prohtmlHuafei = '<li class=""><p class="p1"><span>30</span>元</p><span class="corner">24小时到账</span><p class="p2">售价:<span>30</span>元</p></li><li><p class="p1">50元</p><span class="corner">24小时到账</span><p class="p2">售价:50元</p></li><li><p class="p1">100元</p><span class="corner">24小时到账</span><p class="p2">售价:100元</p></li><li><p class="p1">200元</p><span class="corner">24小时到账</span><p class="p2">售价:200元</p></li><li><p class="p1">300元</p><span class="corner">24小时到账</span><p class="p2" style="color: red">特惠:300元</p></li><li><p class="p1">500元</p><span class="corner">24小时到账</span><p class="p2" style="color: red">特惠:500元</p>'
   , productListLike = []
   , productListShort = []
   , productListMonth = []
@@ -545,7 +545,7 @@ $(function() {
                 $(".recharge-mobile .close").show(),
                 $("#proList-huafei").removeClass("product-cb").addClass("proList-disable").html(prohtmlHuafei),
                 void $(".nodata").hide();
-            getProListHuafei(e)
+           getProListHuafei(e)
         }
     }),
     $("#recharge-box").on("click", ".proList-disable li:not(.huafei-activity)", function() {

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
hua_fei/static/layer/layer.css


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
hua_fei/static/layer/layer.js


Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä