1. 主页
  2. 文档
  3. 文档中心
  4. 系统开发框架文档
  5. 系统前端文档

系统前端文档

`首页布局
基本信息
Path: /api/index/index

Method: GET

接口描述:

请求参数
Query

参数名称 是否必须 示例 备注
page_id 是 0
longitude 是
latitude 是
返回数据
名称 类型 是否必须 默认值 备注 其他信息
code number 非必须
msg string 非必须
data object 非必须
├─ home_pages object 非必须
├─ id string 非必须 diy页面id
├─ title string 非必须 diy页面名称
├─ show_navs string 非必须 是否展示导航条0–否1–是
├─ is_home_page string 非必须 是否设置成首页0–否1–是
├─ navs object [] 非必须 导航条列表
item 类型: object

├─ id string 非必须 导航条id
├─ name string 非必须 导航条名称
├─ page_id string 非必须
├─ template_id string 非必须
├─ template object 非必须 模板
├─ id string 非必须 模板id
├─ name string 非必须 模板名称
├─ data object [] 非必须 模板数据
item 类型: object

├─ id string 必须 组件id
枚举: search–搜索框,nav–导航图标,banner–轮播图,notice–公告,topic–专题,link–关联链接,rubik–图片广告,video–视频,goods–商品,store–门店,copyright–版权,check-in–签到,user-info–用户信息,user-order–订单入口,map–地图,mp-link–微信公众号,form–自定义表单,image-text–图文详情,coupon–优惠券,timer–倒计时,mch–好店推荐,pintuan–拼团,booking–预约,miaosha–秒杀,bargain–砍价,integral-mall–积分商城,lottery–抽奖,advance–预售,vip-card–超级会员卡,empty–空白块,ad–流量主广告,modal–弹窗广告,quick-nav–快捷导航

├─ data object 必须 组件数据
├─ color string 非必须 搜索框颜色
当组件id=search是生效
├─ background string 非必须 背景色
当组件id=search生效
当组件id=notice生效
├─ radius number 非必须 边框圆角
当组件id=search时生效
├─ placeholder string 非必须 提示内容
当组件id=search时生效
├─ textColor string 非必须 文字颜色
当组件id=search时生效
当组件id=notice时生效
├─ textPosition string 非必须 提示文字位置
当组件id=search时生效
枚举: left–靠左,center–居中,right–靠右

├─ rows number 非必须 导航图标每页显示的行数
当组件id=nav时生效
├─ columns number 非必须 导航图标每行显示的个数
当组件id=nav时生效
├─ scroll boolean 非必须 是否允许左右滑动
false–不允许|true–允许
当组件id=nav时生效
├─ navs object [] 非必须 导航图标列表
当组件id=nav时生效
item 类型: object

├─ url string 必须 链接路由
├─ openType string 必须 链接类型
├─ picUrl string 必须
├─ text string 必须
├─ num string 必须
├─ open_type string 必须 链接类型
├─ link_url string 必须 链接路由
├─ name string 必须 名称
├─ icon_url string 必须
├─ icon string 必须 导航图标图片地址
├─ params object [] 必须 链接参数
item 类型: object

├─ key string 必须 参数key
├─ value string 必须 参数值
├─ style number,string 非必须 当组件id=banner时,轮播图样式1–全屏展示|2–卡片形式
当组件id=topic时,专题样式normal–简易模式|list–列表模式
├─ fill number 非必须 图片填充方式:0–留白|1–填充
当组件id=banner时生效
├─ height number 非必须 组件高度
当组件id=banner时生效
├─ banners object [] 非必须 轮播图列表
item 类型: object

├─ picUrl string 非必须 轮播图图片地址
├─ openType string 非必须 链接类型
├─ url string 非必须 链接路由
├─ params object [] 非必须 链接参数
item 类型: object

├─ key string 非必须 参数key
├─ value string 非必须 参数值
├─ page_url string 非必须 链接路由
├─ open_type string 非必须 链接类型
├─ pic_url string 非必须 轮播图图片地址
├─ name string 非必须 当组件id=notice时,公告名称
├─ content string 非必须 当组件id=notice时,公告内容
├─ icon string 非必须 当组件id=notice时,公告图标
├─ headerUrl string 非必须 当组件id=notice时,公告弹窗头部图片
├─ btnColor string 非必须 当组件id=notice时,公告弹窗按钮背景色
├─ btnWidth number 非必须 当组件id=notice时,公告弹窗按钮宽度
├─ btnHeight number 非必须 当组件id=notice时,公告弹窗按钮高度
├─ btnRadius number 非必须 当组件id=notice时,公告弹窗按钮圆角
├─ btnText string 非必须 当组件id=notice时,公告弹窗文字
├─ btnTextColor string 非必须 当组件id=notice时,公告弹窗文字颜色
├─ count number 非必须
├─ logo_1 string 非必须
├─ logo_2 string 非必须
├─ list object [] 非必须
item 类型: object

├─ w number 必须
├─ h number 必须
├─ x number 必须
├─ y number 必须
├─ link string [] 必须
item 类型: string

├─ 非必须
├─ width string 必须
├─ height string 必须
├─ left string 必须
├─ top string 必须
├─ pic_url string 必须
├─ backgroundImage string 必须
├─ backgroundRepeat string 必须
├─ backgroundSize string 必须
├─ backgroundPosition string 必须
├─ zIndex number 必须
├─ id number,string 必须
├─ goods_warehouse_id number 必须
├─ mch_id number 必须
├─ sign string 必须
├─ name string 必须
├─ cover_pic string 必须
├─ original_price string 必须
├─ unit string 必须
├─ page_url string 必须
├─ is_negotiable number,string 必须
├─ is_level number,string 必须
├─ level_price number 必须
├─ price string 必须
├─ price_content string 必须
├─ is_sales string 必须
├─ sales string 必须
├─ vip_card_appoint object 必须
├─ discount null,string 非必须
├─ is_my_vip_card_goods number 非必须
├─ is_vip_card_user number 非必须
├─ mobile string 必须
├─ score number 必须
├─ longitude string 必须
├─ latitude string 必须
├─ picUrl string 必须
├─ goodsNum string 必须
├─ orderNum string 必须
├─ goodsList object [] 必须
item 类型: object

├─ id number 必须
├─ name string 必须
├─ picUrl string 必须
├─ price string 必须
├─ showGoodsNum number 必须
├─ staticGoods boolean 必须
├─ goods_num string 必须
├─ people_num number 非必须
├─ pintuan_price string 非必须
├─ start_time string 必须
├─ end_time string 必须
├─ goods_id string 非必须
├─ mall_id string 非必须
├─ ladder_rules string 非必须
├─ deposit string 非必须
├─ swell_deposit string 非必须
├─ start_prepayment_at string 非必须
├─ end_prepayment_at string 非必须
├─ pay_limit string 非必须
├─ is_delete string 非必须
├─ attr object [] 非必须
item 类型: object

├─ id string 非必须
├─ goods_id string 非必须
├─ sign_id string 非必须
├─ stock string 非必须
├─ price string 非必须
├─ no string 非必须
├─ weight string 非必须
├─ pic_url string 非必须
├─ is_delete string 非必须
├─ attr object 非必须
├─ id string 非必须
├─ deposit string 非必须
├─ swell_deposit string 非必须
├─ goods_id string 非必须
├─ goods_attr_id string 非必须
├─ is_delete string 非必须
├─ advance_num string 非必须
├─ goods object 非必须
├─ id string 非必须
├─ mall_id string 非必须
├─ mch_id string 非必须
├─ goods_warehouse_id string 非必须
├─ status string 非必须
├─ price string 非必须
├─ use_attr string 非必须
├─ attr_groups string 非必须
├─ goods_stock string 非必须
├─ virtual_sales string 非必须
├─ confine_count string 非必须
├─ pieces string 非必须
├─ forehead string 非必须
├─ freight_id string 非必须
├─ give_integral string 非必须
├─ give_integral_type string 非必须
├─ forehead_integral string 非必须
├─ forehead_integral_type string 非必须
├─ accumulative string 非必须
├─ individual_share string 非必须
├─ attr_setting_type string 非必须
├─ is_level string 非必须
├─ is_level_alone string 非必须
├─ share_type string 非必须
├─ sign string 非必须
├─ app_share_pic string 非必须
├─ app_share_title string 非必须
├─ is_default_services string 非必须
├─ sort string 非必须
├─ created_at string 非必须
├─ updated_at string 非必须
├─ deleted_at string 非必须
├─ is_delete string 非必须
├─ payment_people string 非必须
├─ payment_num string 非必须
├─ payment_amount string 非必须
├─ payment_order string 非必须
├─ confine_order_count string 非必须
├─ is_area_limit string 非必须
├─ area_limit null 非必须
├─ share_level_type string 非必须
├─ form_id string 非必须
├─ goodsWarehouse object 非必须
├─ id string 非必须
├─ mall_id string 非必须
├─ name string 非必须
├─ original_price string 非必须
├─ cost_price string 非必须
├─ detail string 非必须
├─ cover_pic string 非必须
├─ pic_url string 非必须
├─ video_url string 非必须
├─ unit string 非必须
├─ created_at string 非必须
├─ updated_at string 非必须
├─ deleted_at string 非必须
├─ is_delete string 非必须
├─ goodsCatRelation object [] 非必须
item 类型: object

├─ id string 非必须
├─ goods_warehouse_id string 非必须
├─ cat_id string 非必须
├─ is_delete string 非必须
├─ cats object [] 非必须
item 类型: object

├─ id string 非必须
├─ mall_id string 非必须
├─ mch_id string 非必须
├─ parent_id string 非必须
├─ name string 非必须
├─ pic_url string 非必须
├─ sort string 非必须
├─ big_pic_url string 非必须
├─ advert_pic string 非必须
├─ advert_url string 非必须
├─ status string 非必须
├─ created_at string 非必须
├─ updated_at string 非必须
├─ deleted_at string 非必须
├─ is_delete string 非必须
├─ is_show string 非必须
├─ mch string 非必须
├─ cat_show boolean 非必须
├─ topic_list object [] 非必须
item 类型: object

├─ id number 必须
├─ title string 必须
├─ cover_pic string 必须
├─ read_count string 必须
├─ layout number 必须
├─ pic_list array,null 必须
├─ title string 非必须
├─ textLeft number 非必须
├─ link object 非必须
├─ type string 非必须
├─ name string 非必须
├─ open_type string 非必须
├─ icon string 非必须
├─ value string 非必须
├─ id number 非必须
├─ new_link_url string 非必须
├─ url string 非必须
├─ openType string 非必须
├─ data object 非必须
├─ type string 非必须
├─ name string 非必须
├─ open_type string 非必须
├─ icon string 非必须
├─ value string 非必须
├─ id number 非必须
├─ new_link_url string 非必须
├─ picSwitch boolean 非必须
├─ arrowsSwitch boolean 非必须
├─ picUrl string 非必须
├─ picLeft number 非必须
├─ space number 非必须
├─ w number 非必须
├─ h number 非必须
├─ hotspot array,null 非必须
├─ pic_url string 非必须
├─ url string 非必须
├─ showCat boolean 非必须
├─ catPosition string 非必须
├─ catStyle number 非必须
├─ catList string [] 非必须
item 类型: string

├─ 非必须
├─ listStyle number 非必须
├─ goodsCoverProportion string 非必须
├─ goodsStyle number 非必须
├─ showGoodsName boolean 非必须
├─ showGoodsPrice boolean 非必须
├─ showBuyBtn boolean 非必须
├─ buyBtn string 非必须
├─ buyBtnStyle number 非必须
├─ buyBtnText string 非必须
├─ showGoodsTag boolean 非必须
├─ customizeGoodsTag boolean 非必须
├─ goodsTagPicUrl string 非必须
├─ navPicUrl string 非必须
├─ scorePicUrl string 非必须
├─ showName boolean 非必须
├─ showScore boolean 非必须
├─ showTel boolean 非必须
├─ text string 非必须
├─ backgroundColor string 非必须
├─ backgroundPicUrl string 非必须
├─ showText boolean 非必须
├─ award object 非必须
├─ continue number 非必须
├─ number string 非必须
├─ type string 非必须
├─ location string 非必须
├─ paddingY number 非必须
├─ paddingX number 非必须
├─ marginTop number 非必须
├─ marginTopColor string 非必须
├─ latitude string 非必须
├─ longitude number 非必须
├─ position string,number 非必须
├─ inputPadding number 非必须
├─ marginBottom number 非必须
├─ type number 非必须
├─ times number 非必须
├─ inputBackground string 非必须
├─ inputBorder string 非必须
├─ inputLabel string 非必须
├─ inputTip string 非必须
├─ inputText string 非必须
├─ buttonHeight number 非必须
├─ buttonPadding number 非必须
├─ buttonMargin number 非必须
├─ padding number 非必须
├─ buttonRadius number 非必须
├─ borderContent string 非必须
├─ borderBackground string 非必须
├─ borderBorder string 非必须
├─ borderText string 非必须
├─ marginColor string 非必须
├─ showImg boolean 非必须
├─ mode number 非必须
├─ backgroundHeight number 非必须
├─ backgroundWidth number 非必须
├─ formDialog object [] 非必须
item 类型: object

├─ key string 必须
├─ key_name string 必须
├─ name string 必须
├─ is_required number 必须
├─ receiveBg string 非必须
├─ unclaimedBg string 非必须
├─ coupon_list object [] 非必须
item 类型: object

├─ id string 必须
├─ mall_id string 必须
├─ name string 必须
├─ type string 必须
├─ discount string 必须
├─ discount_limit null 必须
├─ pic_url string 必须
├─ desc string 必须
├─ min_price string 必须
├─ sub_price string 必须
├─ total_count string 必须
├─ sort string 必须
├─ expire_type string 必须
├─ expire_day string 必须
├─ begin_time string 必须
├─ end_time string 必须
├─ appoint_type string 必须
├─ rule string 必须
├─ is_member string 必须
├─ is_delete string 必须
├─ deleted_at string 必须
├─ created_at string 必须
├─ updated_at string 必须
├─ is_receive string 必须
├─ couponCat string [] 必须
item 类型: string

├─ 非必须
├─ cat string [] 必须
item 类型: string

├─ 非必须
├─ couponGoods object [] 必须
item 类型: object

├─ id string 必须
├─ coupon_id string 必须
├─ goods_warehouse_id string 必须
├─ is_delete string 必须
├─ goods object [] 必须
item 类型: object

├─ id string 必须
├─ mall_id string 必须
├─ name string 必须
├─ original_price string 必须
├─ cost_price string 必须
├─ detail string 必须
├─ cover_pic string 必须
├─ pic_url string 必须
├─ video_url string 必须
├─ unit string 必须
├─ created_at string 必须
├─ updated_at string 必须
├─ deleted_at string 必须
├─ is_delete string 必须
├─ page_url string 必须
├─ startDateTime string 非必须
├─ endDateTime string 非必须
├─ showGoods boolean 非必须
├─ buttonColor string 非必须
├─ showCoupon boolean 非必须
├─ couponColor string 非必须
├─ couponPicUrl string 非必须
├─ goodsIndex number 非必须
├─ start_x number 非必须
├─ buy_bg string 非必须
├─ renew_bg string 非必须
├─ buy_big_color string 非必须
├─ buy_small_color string 非必须
├─ buy_btn_color string 非必须
├─ buy_btn_bg_color string 非必须
├─ buy_big string 非必须
├─ buy_small string 非必须
├─ buy_btn_text string 非必须
├─ renew_text_color string 非必须
├─ renew_btn_bg_color string 非必须
├─ renew_text string 非必须
├─ usePluginConfig boolean 非必须
├─ top_bottom_padding number 非必须
├─ id string 非必须
├─ opened boolean 非必须
├─ closedPicUrl string 非必须
├─ openedPicUrl string 非必须
├─ navStyle string 非必须
├─ navSwitch number 非必须
├─ useMallConfig boolean 非必须
├─ customerService object 非必须
├─ picUrl string 非必须
├─ opened number 非必须
├─ home object 非必须
├─ opened number 非必须
├─ picUrl string 非必须
├─ mApp object 非必须
├─ opened number 非必须
├─ small_app_id string 非必须
├─ small_app_url string 非必须
├─ small_app_pic string 非必须
├─ mapNav object 非必须
├─ opened number 非必须
├─ picUrl string 非必须
├─ address string 非必须
├─ latitude string 非必须
├─ longitude string 非必须
├─ tel object 非必须
├─ opened number 非必须
├─ picUrl string 非必须
├─ number string 非必须
├─ web object 非必须
├─ opened number 非必须
├─ picUrl string 非必须
├─ url string 非必须
├─ type string 非必须 页面数据类型
枚举: mall–首页布局,diy–diy页面数据`

标签 , ,
这篇文章对您有用吗?

我们要如何帮助您?