Files
chongdun-mianya/config/index.js
2026-10-27 13:54:39 +08:00

37 lines
1.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 全局业务配置
*
* 本小程序只负责「芝麻信用免押」这一段流程:
* 下单页 → 支付宝原生授权页(支付宝提供)→ 免押结果页 → 押金状态页
* 添加设备、查看宠物数据等其他操作都在宠物 App 内完成。
*/
const config = {
// 品牌信息
brandName: '宠物智能项圈',
brandLogo: '/static/logo.png',
// 租赁物品与押金,仅用于页面展示,真实金额以服务端下单结果为准
itemName: '宠物智能项圈',
depositAmount: 69,
// 服务端接口
apiBaseUrl: 'https://api.example.com',
// 服务端未就绪时用本地 mock 跑通前端流程,联调时改成 false
useMock: true,
// 宠物 App:添加设备等操作回去做
petApp: {
// 唤起 App 的地址,需在支付宝开放平台报备后才可用(如 universal link)
openUrl: '',
// 唤起失败时给用户复制的下载地址
downloadUrl: ''
},
// 协议页面(当前是本地占位页,正式文本请替换为芝麻信用官方协议地址)
agreements: {
credit: '/pages/agreement/agreement'
}
}
export default config