更新记录
0.03(2023-04-09)
1.添加db_init.json
0.02(2023-04-09)
1.提取公共参数
0.01(2023-04-08)
1.接入uni-id 2.订单列表 3.搜索规格 4.拍照 5.生成证件照 6.更换背景
查看更多平台兼容性
云端兼容性
阿里云 | 腾讯云 | 支付宝云 |
---|---|---|
√ | × | × |
uni-app
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
√ | - | - | - | - | - | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
√ | - | - | - | - | - | - | - | - | - | - |
云函数类插件通用教程
使用云函数类插件的前提是:使用HBuilderX 2.9+
介绍
- 集成 uni-id-page 证件照小程序 生成证件照 更换背景 未对接支付如需要可自行对接
示例
使用说明
- npm 依赖
npm i uni-simple-router uni-read-pages
- 配置 APPID:编辑 uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json 下的:
"mp-weixin": {
"tokenExpiresIn": 259200,
"oauth": {
"weixin": {
"appid": "", //改为自己的小程序appid
"appsecret": "" //改为自己的小程序appsecret
}
}
}
// 阿里云 api市场
// 证件照制作 https://market.aliyun.com/products/57124001/cmapi030523.html?spm=5176.2020520132.101.8.79997218acOrzB#sku=yuncode2452300001
// 更换背景 https://market.aliyun.com/products/57124001/cmapi00041112.html?spm=5176.2020520132.101.15.79997218acOrzB#sku=yuncode3511200001
// 工作台已购买服务 APPCODE
module.exports = {
APPCODE: '', //请填写自己的APPCODE
CANUSE: 3, //限制每日使用次数 0 为不限制
}