更新记录
1.0.0(2025-08-26)
下载此版本
1、api请求方法已经在 Api.js 和 Http.js文件中完善,打开文件自行修改为自己的真实请求地址即可
2、生产、测试环境配置文件需在 config.js 中自行配置为自己的真实地址即可
3、全局引用已经在 main.js中给出配置,无须修改
平台兼容性
uni-app(4.25)
Vue2 |
Vue3 |
Chrome |
Safari |
app-vue |
app-nvue |
Android |
iOS |
鸿蒙 |
√ |
- |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
微信小程序 |
支付宝小程序 |
抖音小程序 |
百度小程序 |
快手小程序 |
京东小程序 |
鸿蒙元服务 |
QQ小程序 |
飞书小程序 |
快应用-华为 |
快应用-联盟 |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
uni-app x(4.25)
Chrome |
Safari |
Android |
iOS |
鸿蒙 |
微信小程序 |
√ |
√ |
√ |
√ |
√ |
√ |
一、目录介绍

二、描述
1、api请求方法已经在 Api.js 和 Http.js文件中完善,打开文件自行修改为自己的真实请求地址即可
2、生产、测试环境配置文件需在 config.js 中自行配置为自己的真实地址即可
3、全局引用已经在 main.js中给出配置,无须修改
2.1、index.vue文件中引用示例
<template>
<view>
<!-- 组件内容 -->
</view>
</template>
<script>
export default {
data() {
return {
// 数据属性
};
},
onShow() {
// this.Init() // 接口
this.$toast.default('ddd') // 弹窗
console.log( this.$system.getAllInfo() ) // 获取系统信息
},
methods: {
/*================== 调用Api ==================*/
async init(){
try{
const res = await this.$api.login()
if(res.code !== 200) return
if(res.code === 200){
const {data} = res.result
// 根据你的要求可进行扩展
}
}catch(err){
throw Error(err.msg)
}
},
/*================== End 调用Api ==================*/
}
};
</script>
<style lang="scss" scoped>
/* 你的样式 */
</style>