Skip to content

wuyihao1992/weChat-tpl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


This is a ThinkPHP project for weChat.
And this is a multiple pages project.
@author wuyihao,[email protected]

1. 安装

  • 运行环境:php + apache + mysql
  • 构建工具:node + npm + gulp + bower + sass

2. hostname 域名/ip地址

3. Home 模块,前端模块

  • 首页地址:

    {{hostname}}/
    
  • 前端实际首页

    {{hostname}}/index.php/Home/Index/view
    
  • 测试页面 test.html ,访问地址:

    {{hostname}}/index.php/Home/Index/test
    

4. API 模块,前端 ajax 请求 API 模块

  • API 统一接口地址:

    {{hostname}}/index.php/Api/Index/index
    
  • 请求方式:

    POST
    
  • 请求参数格式:

    {
        "tranCode" : 1000,
        "data" : {
            "id" : 1,
            "name" : 123
        }
    }
    
  • 参数说明:

    "tranCode" : 业务操作码
    "data"  : 业务操作对应参数
    

5. Admin 模块,后台管理模块

  • 首页地址:

    {{hostname}}/index.php/Admin/Index
    

About

weChat-tpl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published