ThinkAdmin 插件生态
  1. PluginWemall
ThinkAdmin 插件生态
  • PluginAccount
    • 微信服务号登录
      POST
    • 微信小程序登录
      POST
    • 获取图形验证码
      POST
    • 发送短信验证码
      POST
    • 手机号短信登录
      POST
    • 获取用户资料 [ 会员 ]
      POST
    • 修改账号资料 [ 会员 ]
      POST
    • 终端绑定账号 [ 会员 ]
      POST
    • 解除账号绑定 [ 会员 ]
      POST
  • PluginPyament
    • 获取我的收货地址 [ 会员 ]
    • 添加修改收货地址 [ 会员 ]
    • 设置默认收货地址 [ 会员 ]
    • 删除我的收货地址 [ 会员 ]
  • PluginWemall
    • 获取配置数据
      GET
    • 获取页面配置
      GET
    • 获取轮播配置
      GET
    • 获取配送区域
      GET
    • 获取标签分类
      GET
    • 获取商品数据
      GET
    • 操作购物车数据 [ 会员 ]
      POST
    • 获取购物车数据 [ 会员 ]
      GET
    • 获取会员折扣 [ 会员 ]
      POST
    • 创建商城订单 [ 会员 ]
      POST
    • 计算快递费用 [ 会员 ]
      POST
    • 确认订单地址 [ 会员 ]
      POST
    • 获取支付通道 [ 会员 ]
      GET
    • 获取支付参数 [ 会员 ]
      POST
    • 取消初始订单 [ 会员 ]
      POST
    • 删除无效订单 [ 会员 ]
      POST
    • 确认订单收货 [ 会员 ]
      POST
    • 获取商城订单 [ 会员 ]
      GET
    • 获取订单统计 [ 会员 ]
      GET
    • 查询订单物流 [ 会员 ]
      POST
  1. PluginWemall

获取页面配置

GET
/plugin-wemall/api.data/layout
最后修改时间:2024-07-28 10:12:21

请求参数

Body 参数application/x-www-form-urlencoded
name
string 
数据名称
必需

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://dev.v6.thinkadmin.top/plugin-wemall/api.data/layout' \
--data-urlencode 'name='

返回响应

🟢200成功
application/json
Body
code
integer 
必需
info
string 
必需
data
object 
必需
config
object 
必需
layout
object 
必需
示例
{
  "code": 1,
  "info": "获取页面配置",
  "data": {
    "layout": {
      "pages": [
        {
          "type": "商城首页",
          "link": {
            "name": "",
            "value": ""
          },
          "show": true,
          "style": {
            "backgroundColor": "",
            "vBackgroundImage": "https://storage.thinkadmin.top/d/temps/5e/4dae86ffaf4c1dffb981cbb3cc90b6.png",
            "vBackgroundType": 0
          },
          "items": [
            {
              "name": "标题",
              "icon": "layui-icon-component",
              "type": "ToolTitle",
              "data": [],
              "outerStyle": {
                "vTypes": "页面间距,容器宽度,上下内距,左右内距,边框位置,边框样式,边框颜色,边框宽度,边框圆角,背景颜色,背景图片,背景样式",
                "vWidth": 100,
                "vMarginTop": 0,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "interStyle": {
                "vTypes": "容器宽度,上下内距,左右内距,边框位置,边框样式,边框宽度,边框圆角,边框颜色,背景颜色,背景图片,背景样式",
                "vWidth": 90,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "inputStyle": {
                "vTypes": "文字颜色,文字大小,文字粗细,文字行高,文字位置",
                "vText": "标题文字",
                "vFontSize": 4,
                "vLineHeight": 10,
                "fontWeight": 400,
                "textAlign": "left"
              },
              "unid": "UN7287194338367882",
              "active": false
            },
            {
              "name": "标题",
              "icon": "layui-icon-component",
              "type": "ToolTitle",
              "data": [],
              "outerStyle": {
                "vTypes": "页面间距,容器宽度,上下内距,左右内距,边框位置,边框样式,边框颜色,边框宽度,边框圆角,背景颜色,背景图片,背景样式",
                "vWidth": 100,
                "vMarginTop": 0,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "interStyle": {
                "vTypes": "容器宽度,上下内距,左右内距,边框位置,边框样式,边框宽度,边框圆角,边框颜色,背景颜色,背景图片,背景样式",
                "vWidth": 90,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "inputStyle": {
                "vTypes": "文字颜色,文字大小,文字粗细,文字行高,文字位置",
                "vText": "标题文字",
                "vFontSize": 4,
                "vLineHeight": 10,
                "fontWeight": 400,
                "textAlign": "left"
              },
              "unid": "UN9838939200620325",
              "active": false
            },
            {
              "name": "标题",
              "icon": "layui-icon-component",
              "type": "ToolTitle",
              "data": [],
              "outerStyle": {
                "vTypes": "页面间距,容器宽度,上下内距,左右内距,边框位置,边框样式,边框颜色,边框宽度,边框圆角,背景颜色,背景图片,背景样式",
                "vWidth": 100,
                "vMarginTop": 0,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "interStyle": {
                "vTypes": "容器宽度,上下内距,左右内距,边框位置,边框样式,边框宽度,边框圆角,边框颜色,背景颜色,背景图片,背景样式",
                "vWidth": 90,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "inputStyle": {
                "vTypes": "文字颜色,文字大小,文字粗细,文字行高,文字位置",
                "vText": "标题文字",
                "vFontSize": 4,
                "vLineHeight": 10,
                "fontWeight": 400,
                "textAlign": "left"
              },
              "unid": "UN1594299740433771",
              "active": false
            },
            {
              "name": "标题",
              "icon": "layui-icon-component",
              "type": "ToolTitle",
              "data": [],
              "outerStyle": {
                "vTypes": "页面间距,容器宽度,上下内距,左右内距,边框位置,边框样式,边框颜色,边框宽度,边框圆角,背景颜色,背景图片,背景样式",
                "vWidth": 100,
                "vMarginTop": 0,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "interStyle": {
                "vTypes": "容器宽度,上下内距,左右内距,边框位置,边框样式,边框宽度,边框圆角,边框颜色,背景颜色,背景图片,背景样式",
                "vWidth": 90,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "inputStyle": {
                "vTypes": "文字颜色,文字大小,文字粗细,文字行高,文字位置",
                "vText": "标题文字",
                "vFontSize": 4,
                "vLineHeight": 10,
                "fontWeight": 400,
                "textAlign": "left"
              },
              "unid": "UN5908289538624223",
              "active": false
            },
            {
              "name": "标题",
              "icon": "layui-icon-component",
              "type": "ToolTitle",
              "data": [],
              "outerStyle": {
                "vTypes": "页面间距,容器宽度,上下内距,左右内距,边框位置,边框样式,边框颜色,边框宽度,边框圆角,背景颜色,背景图片,背景样式",
                "vWidth": 100,
                "vMarginTop": 0,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "interStyle": {
                "vTypes": "容器宽度,上下内距,左右内距,边框位置,边框样式,边框宽度,边框圆角,边框颜色,背景颜色,背景图片,背景样式",
                "vWidth": 90,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "inputStyle": {
                "vTypes": "文字颜色,文字大小,文字粗细,文字行高,文字位置",
                "vText": "标题文字",
                "vFontSize": 4,
                "vLineHeight": 10,
                "fontWeight": 400,
                "textAlign": "left"
              },
              "unid": "UN7135304530155868",
              "active": false
            },
            {
              "name": "标题",
              "icon": "layui-icon-component",
              "type": "ToolTitle",
              "data": [],
              "outerStyle": {
                "vTypes": "页面间距,容器宽度,上下内距,左右内距,边框位置,边框样式,边框颜色,边框宽度,边框圆角,背景颜色,背景图片,背景样式",
                "vWidth": 100,
                "vMarginTop": 0,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "interStyle": {
                "vTypes": "容器宽度,上下内距,左右内距,边框位置,边框样式,边框宽度,边框圆角,边框颜色,背景颜色,背景图片,背景样式",
                "vWidth": 90,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "inputStyle": {
                "vTypes": "文字颜色,文字大小,文字粗细,文字行高,文字位置",
                "vText": "标题文字",
                "vFontSize": 4,
                "vLineHeight": 10,
                "fontWeight": 400,
                "textAlign": "left"
              },
              "unid": "UN49433800598897726",
              "active": false
            },
            {
              "name": "标题",
              "icon": "layui-icon-component",
              "type": "ToolTitle",
              "data": [],
              "outerStyle": {
                "vTypes": "页面间距,容器宽度,上下内距,左右内距,边框位置,边框样式,边框颜色,边框宽度,边框圆角,背景颜色,背景图片,背景样式",
                "vWidth": 100,
                "vMarginTop": 0,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "interStyle": {
                "vTypes": "容器宽度,上下内距,左右内距,边框位置,边框样式,边框宽度,边框圆角,边框颜色,背景颜色,背景图片,背景样式",
                "vWidth": 90,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "inputStyle": {
                "vTypes": "文字颜色,文字大小,文字粗细,文字行高,文字位置",
                "vText": "标题文字",
                "vFontSize": 4,
                "vLineHeight": 10,
                "fontWeight": 400,
                "textAlign": "left"
              },
              "unid": "UN35280947672639407",
              "active": false
            },
            {
              "name": "标题",
              "icon": "layui-icon-component",
              "type": "ToolTitle",
              "data": [],
              "outerStyle": {
                "vTypes": "页面间距,容器宽度,上下内距,左右内距,边框位置,边框样式,边框颜色,边框宽度,边框圆角,背景颜色,背景图片,背景样式",
                "vWidth": 100,
                "vMarginTop": 0,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "interStyle": {
                "vTypes": "容器宽度,上下内距,左右内距,边框位置,边框样式,边框宽度,边框圆角,边框颜色,背景颜色,背景图片,背景样式",
                "vWidth": 90,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "inputStyle": {
                "vTypes": "文字颜色,文字大小,文字粗细,文字行高,文字位置",
                "vText": "标题文字",
                "vFontSize": 4,
                "vLineHeight": 10,
                "fontWeight": 400,
                "textAlign": "left"
              },
              "unid": "UN7579174456582691",
              "active": false
            },
            {
              "name": "标题",
              "icon": "layui-icon-component",
              "type": "ToolTitle",
              "data": [],
              "outerStyle": {
                "vTypes": "页面间距,容器宽度,上下内距,左右内距,边框位置,边框样式,边框颜色,边框宽度,边框圆角,背景颜色,背景图片,背景样式",
                "vWidth": 100,
                "vMarginTop": 0,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "interStyle": {
                "vTypes": "容器宽度,上下内距,左右内距,边框位置,边框样式,边框宽度,边框圆角,边框颜色,背景颜色,背景图片,背景样式",
                "vWidth": 90,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "inputStyle": {
                "vTypes": "文字颜色,文字大小,文字粗细,文字行高,文字位置",
                "vText": "标题文字",
                "vFontSize": 4,
                "vLineHeight": 10,
                "fontWeight": 400,
                "textAlign": "left"
              },
              "unid": "UN5477114212458449",
              "active": false
            },
            {
              "name": "标题",
              "icon": "layui-icon-component",
              "type": "ToolTitle",
              "data": [],
              "outerStyle": {
                "vTypes": "页面间距,容器宽度,上下内距,左右内距,边框位置,边框样式,边框颜色,边框宽度,边框圆角,背景颜色,背景图片,背景样式",
                "vWidth": 100,
                "vMarginTop": 0,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "interStyle": {
                "vTypes": "容器宽度,上下内距,左右内距,边框位置,边框样式,边框宽度,边框圆角,边框颜色,背景颜色,背景图片,背景样式",
                "vWidth": 90,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "inputStyle": {
                "vTypes": "文字颜色,文字大小,文字粗细,文字行高,文字位置",
                "vText": "标题文字",
                "vFontSize": 4,
                "vLineHeight": 10,
                "fontWeight": 400,
                "textAlign": "left"
              },
              "unid": "UN20711756308976526",
              "active": true
            },
            {
              "name": "轮播图",
              "icon": "layui-icon-carousel",
              "type": "BaseSlider",
              "data": [
                {
                  "image": "http://wemall.local.thinkadmin.top/static/theme/img/login/bg2.jpg",
                  "link": "",
                  "unid": "img5926092140638517"
                }
              ],
              "interStyle": {
                "vTypes": "容器宽度,上下内距,左右内距,边框位置,边框样式,边框宽度,边框圆角,边框颜色,背景颜色,背景图片,背景样式",
                "vWidth": 100,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)"
              },
              "outerStyle": {
                "vTypes": "页面间距,容器宽度,容器高度,上下内距,左右内距,边框位置,边框样式,边框颜色,边框宽度,边框圆角,背景颜色,背景图片,背景样式",
                "vWidth": 100,
                "vMarginTop": 0,
                "vBorderRadius": 0,
                "vPaddingTopBottom": 0,
                "vPaddingLeftRight": 0,
                "vBorderType": "trbl",
                "vBorderWidth": 0,
                "borderStyle": "solid",
                "borderColor": "rgba(0,0,0,0.2)",
                "vHeight": 50
              },
              "unid": "UN8966238217859475",
              "active": false
            }
          ],
          "lock": false,
          "head": {
            "name": "商城首页",
            "style": {
              "backgroundColor": "#bf0d0d",
              "color": "#FFFFFF"
            },
            "unid": "UN4409921907014138"
          },
          "foot": {
            "name": "首页",
            "icon": {
              "normal": "https://doc.thinkadmin.top/static/shop/a-home-normal.png",
              "active": "https://doc.thinkadmin.top/static/shop/a-home-active.png"
            },
            "style": []
          },
          "unid": "pg8207582880491122",
          "active": true
        },
        {
          "type": "商品分类",
          "link": {
            "name": "",
            "value": ""
          },
          "show": true,
          "style": [],
          "items": [
            {
              "name": "商品分类",
              "type": "PageCate",
              "top": 3,
              "limit": 1,
              "data": [],
              "lock": true,
              "inputStyle": {
                "vType": 0
              },
              "interStyle": false,
              "outerStyle": false,
              "unid": "UN6343914695855968",
              "active": false
            }
          ],
          "lock": false,
          "head": {
            "name": "商品分类",
            "style": {
              "backgroundColor": "#bf0d0d",
              "color": "#FFFFFF"
            }
          },
          "foot": {
            "name": "分类",
            "icon": {
              "normal": "https://doc.thinkadmin.top/static/shop/a-cates-normal.png",
              "active": "https://doc.thinkadmin.top/static/shop/a-cates-active.png"
            },
            "style": []
          },
          "unid": "pg3773743347511793",
          "active": false
        },
        {
          "type": "购物车",
          "link": {
            "name": "",
            "value": ""
          },
          "show": true,
          "style": [],
          "items": [
            {
              "name": "购物车",
              "type": "PageCart",
              "top": 1,
              "limit": 1,
              "data": [],
              "lock": true,
              "inputStyle": {
                "vType": 0
              },
              "interStyle": false,
              "outerStyle": false,
              "unid": "UN5845299504701207",
              "active": true
            }
          ],
          "lock": true,
          "head": {
            "name": "购物车",
            "style": {
              "backgroundColor": "#bf0d0d",
              "color": "#FFFFFF"
            },
            "unid": "UN03112862263386096"
          },
          "foot": {
            "name": "购物车",
            "icon": {
              "normal": "https://doc.thinkadmin.top/static/shop/a-cart-normal.png",
              "active": "https://doc.thinkadmin.top/static/shop/a-cart-active.png"
            },
            "style": []
          },
          "unid": "pg477129672020733",
          "active": false
        },
        {
          "type": "个人中心",
          "link": {
            "name": "",
            "value": ""
          },
          "show": true,
          "style": [],
          "items": [
            {
              "name": "个人中心",
              "type": "PageCenter",
              "top": 1,
              "limit": 1,
              "data": [],
              "lock": true,
              "inputStyle": {
                "vType": 0
              },
              "interStyle": false,
              "outerStyle": false,
              "unid": "UN48865723556772966",
              "active": false
            }
          ],
          "lock": false,
          "head": {
            "name": "个人中心",
            "style": {
              "backgroundColor": "#bf0d0d",
              "color": "#FFFFFF"
            }
          },
          "foot": {
            "name": "我的",
            "icon": {
              "normal": "https://doc.thinkadmin.top/static/shop/a-user-normal.png",
              "active": "https://doc.thinkadmin.top/static/shop/a-user-active.png"
            },
            "style": []
          },
          "unid": "pg5807618564330386",
          "active": false
        }
      ],
      "navbar": {
        "style": {
          "vActiveColor": "#bf0d0d",
          "vNormalColor": "#666666"
        }
      }
    }
  }
}
上一页
获取配置数据
下一页
获取轮播配置
Built with