🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# 获取配置信息 >[info] 获取全局配置信息,包含(全局变量,启用模块,招呼语,页面配置,导航配置等); ## 请求地址:[https://你的域名/api/config](https://xn--6qqv7i2xdt95b/api/config) 请求方法:GET 请求数据:NULL 返回数据: `configs:配置信息` | 名称 | 类型 | 说明 | | --- | --- | --- | | api\_title | string | 页面标题 | | api\_footer | string | 版底信息 html格式 | | authentication\_enable | string | 身份认证启用字段 | | authentication\_required | string | 身份认证必填字段 | | contact\_enable | string | 联系方式启用字段 | | contact\_required | string | 联系方式必填字段 | | contact\_switch | boole | 是否启用联系方式 | | login\_way | string | 登录启用字端 | | regdata\_required | string | 完善资料启用字端 | | regdata\_skip\_allow | boole | 完善资料是否允许跳过 | | register\_enable\_item | string | 注册启用字端 | | register\_way | string | 注册方式 | | single\_info\_enable | string | 单身资料启用字段 | | single\_info\_required | string | 单身资料必填字段 | | single\_mate\_enable | string | 择偶标准启用字段 | | single\_mate\_required | string | 择偶标准必填字段 | | SiteDomain | string | 平台域名 | | SiteName | string | 平台名称 | | SiteTitle | string | 全局标题 | `modules: 启用模块` `greet_speaks:招呼语` 请求示例: ``` request({ url: "https://demo.bottlecms.com/api/config", method: "GET", success: (res) => { if(res.code==200){ //返回成功 console.log(res.obj); //储存返回数据 } } }); ``` 返回示例: ``` { "success":true, "code":200, "msg":"保存成功", "obj":{ "configs":{ "api_footer":"<p>©BotleCMS 版<span style="background-color: rgb(255, 255, 0);">权所有33333</span></p><p>京I<span style="background-color: rgb(255, 0, 0);">CP备00</span>00<span style="color: rgb(255, 0, 0);">0012号</span><br></p>", "api_style":"", "api_title":"BottleCMS婚恋交友系统(API端)", "authentication_enable":",name,id_card_no,face_photo,id_card_positive_photo,id_card_back_photo", "authentication_required":",name,id_card_no,face_photo,id_card_positive_photo", "contact_enable":",wechatId,email,qq,phone", "contact_required":",wechatId", "contact_switch":"1", "login_way":",password,mobile", "regdata_required":",photo,photo_mode,height,zodiac,education,,mate_gender,mate_age,mate_height,,wechatId,", "regdata_skip_allow":"1", "register_enable_item":",username,password", "register_way":",mobile,email", "single_info_enable":",photo,photo_mode,height,weight,blood,constellation,zodiac,income,education,purpose,marriage,children,marry,nationality,disposition,house,car,industry,profession,native_place,family_backg,drink,smoking,work_out,work_rest,pet,religious,soliloquy,hobby,voice,video,display_mode", "single_info_required":",photo,photo_mode,height,weight,blood,constellation,zodiac,income,education,purpose,marriage,children,marry,nationality,disposition,house,car,industry,profession,school,native_place,family_backg,drink,smoking,work_out,work_rest,pet,religious,soliloquy,hobby,company,voice,video,display_mode", "single_mate_enable":",mate_gender,mate_age,mate_height,mate_income,mate_education,mate_district,mate_marriage,mate_children,mate_constellation,mate_weight,mate_marry,mate_nationality,mate_house,mate_car,mate_disposition,mate_native_place,mate_family_backg,mate_religious", "single_mate_required":",mate_gender,mate_age,mate_height,mate_income,mate_marriage", "SiteDomain":"https://demo.bottlecms.com/", "SiteName":"BottleCMS婚恋交友系统", "SiteTitle":"BottleCMS婚恋交友系统 v4.0" }, "modules":[ "matchmaker", "activity", "groupchat", "wechatapp", "topic", "meipo", "appointment", "api", "home", "meet", "moment", "gift", "mobile", "wechat" ], "greet_speaks":[ { "id":2, "type":2, "speak":"嗨~", "sex":1, "sort":101 }, { "id":1, "type":3, "speak":"你好,能认识一下吗?", "sex":1, "sort":100 }, …… ] }, "map":{ "version":1621946246 } } ```