APP开发教程|如何使用统软云的AVM框架开发App?
App开发
前端开发
APP开发
浏览:569 次

经过一年多的开发,随着编程经验的接近,它已成为中国主流的多端开发框架之一。本文将整理开发人员的贡献,并详细介绍如何使用统软云的AVM开发App。
以一个以“预订”为主要功能的App开发为例,本文将从App结构、App原型、App前端开发和App后台构建四个方面介绍该App的开发过程。
01排序App结构
首先,我们需要梳理“预约”App的结构和核心功能,并通过思想引导绘制App的基本结构。
02绘制App原型
根据App结构,进一步细化每个App页面的功能显示,并使用(www.devbefore.com)绘制“约会”App的原型。
原型链接可以在此处查看。
03应用前端开发
“预订”App的前端是使用统软云开发的,包括几个关键点,如切换器转盘映射和网络请求封装。使用统软云多终端技术进行开发,可以实现一套代码多终端运行,并支持编译成Android&IOSApp和微信小程序。
01
使用统软云的步骤
(1) 下载统软云 Studio 3作为开发工具。下载地址:点击此处下载。
(2) 注册帐户后,在控制台上创建App。控制台地址:单击此处查看。
(3) 设置证书并一键创建Android证书。
(4) 统软云 Studio3提取代码,单击项目,并将其导出到云以进行签出
侦查
签出后的工作目录
(5) 修改或提交项目源代码,并为当前项目的云编译自定义加载器,以进行实时同步调试预览。
使用AppLoader预览真机同步调试,后台会自动将其作为Loader下载到移动终端。安装后,点击小圆圈,输入IP地址:192.168.2.152端口:10916。连接后,真机将同步,您可以看到刚刚创建的结果。
02
AVM框架的使用
AVM的主要优点如下:
易于使用:使用Vue和React,您可以快速入门,并且它配备了一个特殊的开发工具统软云 Studio3。
多终端:一次性开发、多终端渲染和移动终端开发的一个技术堆栈。
丰富的功能API:可以直接调用1k+模块和2w+API,不受行业和场景限制。
(1) 用户界面
官方文件:点击此处查看
许多UI都是我们自己设计的。你也可以参考开发者Vagabond Man制作的AUI框架。阿里巴巴字体图标用于字体图标。
统软云官方网站已组装了一组面包车组件,可在此处查看。
(2) Ajax网络交互
使用以下代码。
//以表单模式提交数据或文件
api.ajax({
url:'http://192.168.1.101:3101/upLoad' ;,
方法:'post',
数据:{

值:{
name:'哈哈'
},
文件:{
文件:'fs://a.gif'
}
}
},函数(ret,err){
如果(ret){
App编程接口。警报({msg:JSON.stringify(ret)});
}其他{
App编程接口。警报({msg:JSON.stringify(err)});
}
});
//提交JSON数据
api.ajax({
url:'http://192.168.1.101:3101/upLoad' ;,
方法:'post',
标题:{
“内容类型”:';应用/json;字符集=utf-8'
},
数据:{
正文:{
name:'哈哈'
}
}
},函数(ret,err){
如果(ret){
App编程接口。警报({msg:JSON.stringify(ret)});
}其他{
App编程接口。警报({msg:JSON.stringify(err)});
}
});
(3) vue指令的使用(v-for v-show v-if v-else v-for v-on v-bind v-model等)
1.数据绑定
使用Mustache语法:

使用v-bind命令:
2.事件绑定
<模板>
<脚本>
导出默认值{
name:'测试',
方法:{
doThis(消息){
每个警报({
消息:消息
});
}
}
}
(4) 注册和登录
1.注册界面链接:点击此处查看。
注册代码
<安全区域class=“header”>;
Template: main Session: Session type: db [unisoft__unisoft] Array
(
[permission] =>
[human_valid] =>
[passport] =>
)
Loaded Class: Zend_Db: /web/unisoft/web.system/Zend/Db.php Zend_Db_Adapter_Abstract: /web/unisoft/web.system/Zend/Db/Adapter/Abstract.php Zend_Db_Adapter_Mysqli: /web/unisoft/web.system/Zend/Db/Adapter/Mysqli.php Zend_Db_Profiler: /web/unisoft/web.system/Zend/Db/Profiler.php Zend_Db_Statement_Interface: /web/unisoft/web.system/Zend/Db/Statement/Interface.php Zend_Db_Statement: /web/unisoft/web.system/Zend/Db/Statement.php Zend_Db_Statement_Mysqli: /web/unisoft/web.system/Zend/Db/Statement/Mysqli.php Zend_Registry: /web/unisoft/web.system/Zend/Registry.php Zend_Db_Table_Abstract: /web/unisoft/web.system/Zend/Db/Table/Abstract.php Zend_Session_Abstract: /web/unisoft/web.system/Zend/Session/Abstract.php Zend_Session: /web/unisoft/web.system/Zend/Session.php Zend_Session_SaveHandler_Interface: /web/unisoft/web.system/Zend/Session/SaveHandler/Interface.php Zend_Session_SaveHandler_DbTable: /web/unisoft/web.system/Zend/Session/SaveHandler/DbTable.php Zend_Exception: /web/unisoft/web.system/Zend/Exception.php Zend_Session_Exception: /web/unisoft/web.system/Zend/Session/Exception.php Zend_Db_Select: /web/unisoft/web.system/Zend/Db/Select.php Zend_Db_Table_Select: /web/unisoft/web.system/Zend/Db/Table/Select.php Zend_Db_Expr: /web/unisoft/web.system/Zend/Db/Expr.php Zend_Db_Table_Rowset_Abstract: /web/unisoft/web.system/Zend/Db/Table/Rowset/Abstract.php Zend_Db_Table_Rowset: /web/unisoft/web.system/Zend/Db/Table/Rowset.php Zend_Db_Table_Row_Abstract: /web/unisoft/web.system/Zend/Db/Table/Row/Abstract.php Zend_Db_Table_Row: /web/unisoft/web.system/Zend/Db/Table/Row.php HTTP: /web/unisoft/web.system/class/cls_http.inc.php Zend_Session_Namespace: /web/unisoft/web.system/Zend/Session/Namespace.php system_setting_class: /web/unisoft/web.core/system/setting.php Zend_Cache: /web/unisoft/web.system/Zend/Cache.php Zend_Cache_Backend: /web/unisoft/web.system/Zend/Cache/Backend.php Zend_Cache_Backend_Interface: /web/unisoft/web.system/Zend/Cache/Backend/Interface.php Zend_Cache_Backend_ExtendedInterface: /web/unisoft/web.system/Zend/Cache/Backend/ExtendedInterface.php site_ip_class: /web/unisoft/web.core/site/ip.php Zend_Validate_Interface: /web/unisoft/web.system/Zend/Validate/Interface.php Zend_Validate: /web/unisoft/web.system/Zend/Validate.php Zend_Loader: /web/unisoft/web.system/Zend/Loader.php Zend_Validate_Abstract: /web/unisoft/web.system/Zend/Validate/Abstract.php TPL: /web/unisoft/web.system/class/cls_template.inc.php Savant3_Error: /web/unisoft/web.system/Savant3/Error.php package_main_class: /web/unisoft/web.core/package/main.php iot_hardware_main_class: /web/unisoft/web.core/iot/hardware/main.php iot_hardware_category_class: /web/unisoft/web.core/iot/hardware/category.php site_service_main_class: /web/unisoft/web.core/site/service/main.php site_service_article_main_class: /web/unisoft/web.core/site/service/article/main.php site_service_article_extra_class: /web/unisoft/web.core/site/service/article/extra.php site_keyword_exclude_class: /web/unisoft/web.core/site/keyword/exclude.php system_content_class: /web/unisoft/web.core/system/content.php site_service_article_attachment_class: /web/unisoft/web.core/site/service/article/attachment.php data_location_class: /web/unisoft/web.core/data/location.php Database [main master] [ Log time: 1788120215.5624 ] [ Expend time: 0.0091588497161865 ] Connect DB Cache [ Log time: 1788120215.5894 ] Backend: [ Log time: 1788120215.5907 ] [ Expend time: 0.001286 ] Get Cache: settings_ef8c7cef1f80fbad45b9ee480e92d03c, result type: array [ Log time: 1788120215.5914 ] [ Expend time: 0.000451 ] Get Cache: crond, result type: boolean [ Log time: 1788120215.6181 ] [ Expend time: 0.001375 ] Get Cache: model_7ec70ee0360b8a929eb442cbc38dfd27, result type: array [ Log time: 1788120215.6245 ] [ Expend time: 0.005001 ] Get Cache: model_eebc36c56f6ebd5dc315368f04ea4f0d, result type: array [ Log time: 1788120215.6275 ] [ Expend time: 0.001656 ] Get Cache: model_87644abf3b1d496cbf4b1667422d7d51, result type: array [ Log time: 1788120215.631 ] [ Expend time: 0.001518 ] Get Cache: site_service_list_7e49c82f3098f580fb5928807f5e466d, result type: array [ Log time: 1788120215.6529 ] [ Expend time: 0.003847 ] Get Cache: site_keyword_exclude_b2c64c08a5048d87cc4904022274c118, result type: array [ Log time: 1788120215.6865 ] [ Expend time: 0.004074 ] Get Cache: site_keyword_exclude_b2c64c08a5048d87cc4904022274c118, result type: array [ Log time: 1788120215.6926 ] [ Expend time: 0.000521 ] Get Cache: d4b162e9f8f78dc8ca137da89b9b6a37, result type: boolean [ Log time: 1788120215.701 ] [ Expend time: 0.002758 ] Save Cache: d4b162e9f8f78dc8ca137da89b9b6a37, result type: integer [ Log time: 1788120215.9571 ] [ Expend time: 0.004001 ] Get Cache: site_keyword_exclude_b2c64c08a5048d87cc4904022274c118, result type: array [ Log time: 1788120216.0215 ] [ Expend time: 0.000543 ] Get Cache: data_location_by_id_0, result type: boolean [ Log time: 1788120216.0225 ] [ Expend time: 0.000868 ] Get Cache: data_location_by_id_566, result type: array [ Log time: 1788120216.0233 ] [ Expend time: 0.000803 ] Get Cache: data_location_by_id_241, result type: array [ Log time: 1788120216.0242 ] [ Expend time: 0.000822 ] Get Cache: data_location_by_id_513, result type: array [ Log time: 1788120216.0251 ] [ Expend time: 0.000800 ] Get Cache: data_location_by_id_615, result type: array [ Log time: 1788120216.026 ] [ Expend time: 0.000796 ] Get Cache: data_location_by_id_710, result type: array [ Log time: 1788120216.0268 ] [ Expend time: 0.000714 ] Get Cache: data_location_by_id_617, result type: array [ Log time: 1788120216.0277 ] [ Expend time: 0.000803 ] Get Cache: data_location_by_id_249, result type: array [ Log time: 1788120216.0286 ] [ Expend time: 0.000870 ] Get Cache: data_location_by_id_502, result type: array [ Log time: 1788120216.0295 ] [ Expend time: 0.000779 ] Get Cache: data_location_by_id_773, result type: array [ Log time: 1788120216.0303 ] [ Expend time: 0.000684 ] Get Cache: data_location_list_d6ff08d2e02389b7587e4a98a4149e68, result type: array [ Log time: 1788120216.0384 ] [ Expend time: 0.002644 ] Save Cache: data_location_list_d6ff08d2e02389b7587e4a98a4149e68, result type: array [ Log time: 1788120216.0394 ] [ Expend time: 0.000829 ] Get Cache: data_location_by_id_252, result type: array [ Log time: 1788120216.0403 ] [ Expend time: 0.000845 ] Get Cache: data_location_by_id_256, result type: array [ Log time: 1788120216.0413 ] [ Expend time: 0.000803 ] Get Cache: data_location_by_id_259, result type: array [ Log time: 1788120216.0423 ] [ Expend time: 0.000853 ] Get Cache: data_location_by_id_251, result type: array [ Log time: 1788120216.0431 ] [ Expend time: 0.000737 ] Get Cache: data_location_by_id_268, result type: array [ Log time: 1788120216.0441 ] [ Expend time: 0.000813 ] Get Cache: data_location_by_id_259, result type: array [ Log time: 1788120216.045 ] [ Expend time: 0.000822 ] Get Cache: data_location_by_id_263, result type: array Database [core master] [ Log time: 1788120215.5988 ] [ Expend time: 0.0027899742126465 ] Connect DB [ Log time: 1788120215.6005 ] [ Expend time: 0.0013198852539062 ] SELECT `z_ip`.* FROM `z_ip` WHERE (ip = '216.73.217' AND visit_time = 1788120180) LIMIT 1 [ Log time: 1788120215.6031 ] [ Expend time: 0.0023720264434814 ] UPDATE z_ip SET visit_count = visit_count + 1 WHERE ip = '216.73.217' and visit_time = 1788120180 [ Log time: 1788120215.6068 ] [ Expend time: 0.0035409927368164 ] DELETE FROM z_ip WHERE visit_count < 120 and visit_time <= 1788120000 [ Log time: 1788120215.6082 ] [ Expend time: 0.0012190341949463 ] SELECT SUM(visit_count) AS `n0` FROM `z_ip` WHERE ((ip = '216.73.217') AND is_delete = 0) [ Log time: 1788120215.6345 ] [ Expend time: 0.0023229122161865 ] SELECT `z_service`.* FROM `z_service` WHERE (name = 'app') LIMIT 1 [ Log time: 1788120215.6411 ] [ Expend time: 0.0027201175689697 ] SELECT `z_service_article`.* FROM `z_service_article` WHERE (no = '148abf8b7381b1e4') LIMIT 1 [ Log time: 1788120215.6477 ] [ Expend time: 0.0048301219940186 ] SELECT `z_service_article_extra`.* FROM `z_service_article_extra` WHERE (is_delete = 0 AND article_id IN(31743)) [ Log time: 1788120215.6982 ] [ Expend time: 0.0054490566253662 ] UPDATE z_service_article SET view_count = view_count + 1 WHERE id = 31743 [ Log time: 1788120215.7052 ] [ Expend time: 0.0020110607147217 ] SELECT `z_service_article_attachment`.* FROM `z_service_article_attachment` WHERE (article_id = 31743 AND is_delete = 0) ORDER BY `id` DESC [ Log time: 1788120215.7093 ] [ Expend time: 0.001755952835083 ] SELECT `z_service`.* FROM `z_service` WHERE (id = 1) LIMIT 1 [ Log time: 1788120215.9529 ] [ Expend time: 0.24305009841919 ] SELECT `z_service_article`.* FROM `z_service_article` WHERE (is_delete = 0 AND (service_id = 1 AND is_enable = 1 AND publish_time <= 1788120215)) ORDER BY RAND() ASC LIMIT 8 [ Log time: 1788120216.0207 ] [ Expend time: 0.02814507484436 ] SELECT city_id, COUNT(*) AS count FROM z_service_article WHERE is_delete = 0 AND is_enable = 1 GROUP BY city_id ORDER BY count DESC Database [data master] [ Log time: 1788120216.033 ] [ Expend time: 0.0025899410247803 ] Connect DB [ Log time: 1788120216.0357 ] [ Expend time: 0.0022239685058594 ] SELECT `z_location`.* FROM `z_location` WHERE (is_delete = 0 AND (is_delete = 0 AND id IN(0))) ORDER BY `id` ASC Escape time: 0.51819515228271, 0 queries, PHP Memory usage: 5821.8828125 KB, Server time: 2026-08-31 04:03:35