saas

1  获取小程序数据传输凭证(aes)

    1.1  浏览小程序凭证 [打开小程序时请求,浏览必备]

wxlogin/aes_token:
参数:
    extAppid:授权appid (ext.json中读取)
结果:
    {
      "status": "ok",
      "code": 200,
      "aes": "BzIz-ww-ww-ww-ww" 
    }

    1.2 菜单/首页栏目类型

wxsaasindex/menu
{
  "status": "ok",
  "msg": "菜单",
  "code": 200,
  "count": 3,
  "posts": [
    {
      "ID": 54,
      "post_title": "项目",
    },
    {
      "ID": 55,
      "post_title": "动态",
    },
    {
      "ID": 56,
      "post_title": "关于",
    }
  ]
}

 

 

 

2  项目

   2.1  轮播广告图

wxsaasindex/indexslider
参数:
    aes:
返回:
{
  "status": "ok",
  "msg": "首页广告轮播",
  "code": 200,
  "count": 1,
  "posts": [
    {
      "ID": 72,
      "post_title": "广告标题33",
      "url": "https://2418.cn/wp-content/uploads/2018/05/dasele.png"
    }
  ]
}

 

    2.2  栏目的文章列表   (首页展示/项目列表页面)    

 

wxsaasindex/projectlist
参数:
   *aes:
   *type: (1.2接口中 返回的id)
    term_id: 当前接口中 category的term_id
    page://页码 默认1
    per_page: //每页个数 默认4
返回:
{
  "status": "ok",
  "msg": "首页列表", // 接口描述
  "count": 1,   //总数 
  "code": 200,  // 接口状态
  "posts": [
    {
      "ID": 49, //项目id 
      "post_title": "", //标题
      "post_excerpt": "格林好,格林妙",  //描述
      "post_content":  "遍布沈阳",  //内容
      "thumbnail": "https://2418.cn/wp-content/uploads/2018/05/WechatIMG2157.png"//缩略图
     }
  ],
  "category":[
    {
      "term_id": "21",
      "name": "准双曲面齿轮减速机",
      "src": "https://xcool.cn/wp-content/uploads/2018/07/WX20180527-134341-1.png"
    },
    {
      "term_id": "20",
      "name": "行星齿轮减速机",
      "src": "https://xcool.cn/wp-content/uploads/2018/07/csm_Epicyclic-Teaser_9b5c072e31.jpg"
    }
  ],
  "cache": 0 // 缓存 0,1
}

2.3  栏目的文章详细

wxsaasindex/project_detail
参数:
   *aes:
   *id: (2.2接口中 返回的ID)
返回:
{
  "status": "ok",
  "msg": "项目详细", // 接口描述
  "code": 200,  // 接口状态
  "project": [
    {
      "ID": 49, //项目id 
      "post_title": "", //标题
      "post_excerpt": "格林好,格林妙",  //描述
      "post_content":  "遍布沈阳",  //内容
      "thumbnail": "https://2418.cn/wp-content/uploads/2018/05/WechatIMG2157.png"//缩略图
     }
  ],
  "cache": 0 // 缓存 0,1
}

 

    2.4 查询     (首页查询)

wxsaasindex/search_list
method:post
参数:
    *aes:
    *search:
返回:
{
  "status": "ok",
  "msg": "搜索",
  "code": 200,
  "posts": {
    "55": {
      "posts": [],//如没有所有结果,此项为空
      "title": "资讯"//所属栏目
    },
    "123": {
      "posts": [
        {
          "ID": 131,
          "post_date": "2018-07-17 17:25:58",
          "post_content": "同轴减速机同轴减速机同轴减速机同轴减速机同轴减速机",
          "post_title": "同轴减速机",
        }
      ],
      "title": "产品"
    }
  }
}

    2.5 项目查询(首页查询之后,’点击更多‘的查询)

   

wxsaasindex/search_post
method:post
参数:
    *aes
    *search
    page    //页数 默认1
    per_page //每页个数 默认6
返回
{
  "status": "ok",
  "msg": "搜索",
  "code": 200,
  "posts": [
    {
      "ID": 131,
      "post_date": "2018-07-17 17:25:58",
      "post_content": "同轴减速机同轴减速机同轴减速机同轴减速机同轴减速机",
      "post_title": "同轴减速机",
      "post_excerpt": "",
    }
  ]
}

3 我们

     3.1联系我们

wxsaasindex/get_company_info

参数:
   *aes:
返回:
{
  "status": "ok",
  "msg": "联系我们",
  "code": 200,
  "posts": {
    "contact_tel": [
      "123123"
    ],//电话
    "address": "123123",//地址
    "lng": "116.507897",//经度
    "lat": "39.862452",//纬度
    "kefu": "0",//客服是否开启
  }
}

  3.2关于我们

wxsaasindex/get_company_about

{
  "status": "ok",
  "msg": "关于我们",
  "code": 200,
  "posts": {
    "about_us": "<strong>56756756fghfgh</strong>\r\n\r\n<strong>fgdfgdfa</strong>\r\n\r\ndsdfsdfsdfsdf",//公司正文 富文本
    "company_name": null,//公司名称
    "images": ""//背景图
    "update_at":'YYYY-mm-dd' //更新时间
  }
}

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值