2.2 KiB
2.2 KiB
商福通商户通项目
版本要求:
发布微信小程序: HBuilderX 3.6.11(alpha版本) ( 3.6.10 修改 微信小程序中多级插槽不生效的问题 , ) 发布APP: HBuilderX 3.6.5 ( 3.6.11 app调试报错 ) H5, 不影响。
###apk下载地址
全局文件结构
- commons->utils>hasPermission.js 全局权限验证文件
- commons->style->global.scss 全局公共样式文件
- commons->style->uniStyle.css 覆写uniapp 组件样式文件
- commons->style->variable.css scss 变量
- env->env.development.js 配置请求地址
注意 此项目 多端兼容 注意微信小程序主包超出问题 只有分包使用的资源请放到分包下面
uni 组件注意事项
- uni-drawer 组件使用的 px :style="{width:drawerWidth+'px'}" 单位 使用时 请将组件内 改为rpx
<view class="uni-drawer__content" :class="{'uni-drawer--right': rightMode,'uni-drawer--left': !rightMode, 'uni-drawer__content--visible': showDrawer}" :style="{width:drawerWidth+'rpx'}">由于是动态传参 所以无法样式复写
微信小程序兼容行考虑
- 分包内组件路径为 /分包目录//组件名称; 使用@/分包目录//组件名称会报错。
- 分包只能使用分包内的图路径或者static目录下 分包使用别的分包下图片会导致图片未找到
- uni tabBar 配置项 请参考 [tabBar配置网址]https://uniapp.dcloud.net.cn/collocation/pages.html#tabbar
兼容行考虑
- 组件只能有一个根元素,组件内所有元素鼻血在根元素里
打包注意事项
- 准备资料:
- 包名
- 证书私钥密码
- 小程序AppID
- 高德Key
代码
export function tbShopPurveyorTransact(params) {
return request({
url: '/api/tbShopPurveyorTransact',
method: 'get',
params
})
}
// 删除\编辑、添加
export function tbShopPurveyordelete(data) {
return request({
url: `/api/tbShopPurveyor`,
method: "delete-post-put",
data
});
}