当前位置:网站首页>Internship project 1 - personalized homepage configuration
Internship project 1 - personalized homepage configuration
2022-07-19 05:09:00 【Cabbage 007】
Catalog
Pandroid Simulation data management platform
1. Realization effect
" Home page configuration " Corresponding " My data " Display module , change " Home page configuration " Of " Number of layout columns " and " Subscription module "," My data " The inner module display changes .
2. Code implementation
Reference different module components , list :
Subscribe to the pop-up box :
Declare interface functions :
Call interface , The main implementation methods:
Get all home page configurations And Get personal homepage configuration , Unable to judge the order of acquisition , Asynchronous async await To make a call
Got allconfig.data It's in the form of an array
Got userconfig It's an object form , among objectid And other data are stored in the form of array strings userconfig.subscribe in
The two cannot be compared with each other , utilize JSON.parse() Convert string to object usconfig
utilize for of Loop traversal to get us in object, Make it an array userconfigid
utilize map Traverse allconfig.data, utilize includes Judge allconfig.data.objectid Does it include userconfigid, return objectid Same module
Click the homepage configuration pop-up , Trigger updateUserConfiguration(), utilize filter Filter to get subscribed,subscribed It is used to judge whether the module in the data module displays ,subscribed by true Show , by false hide
Consolidate data into data in
stay updateUserConfiguration() Call in sortConfirm(), from sortConfirm() Function will subscribe.show Change it to true, Make it appear on the page
边栏推荐
- 关于New_Online_Judge_1081_哥德巴赫猜想的思考
- Message converter (JSON)
- 02_電影推薦(ContentBased)_用戶畫像
- 【C语言—零基础第七课】顺序结构与选择结构
- Microservice high concurrency service governance
- 基于SSM框架的考勤签到请假系统
- Attendance check-in and leave system based on SSM framework
- Harmonyos入门
- 读论文《Learning to Measure Changes: Fully Convolutional Siamese Metric Networks for Scene Change Detec》
- ModelArts第二次培訓筆記
猜你喜欢
随机推荐
【C语言—零基础第十三课】字符串的奥秘
SQL statement learning
读论文《Learning to Measure Changes: Fully Convolutional Siamese Metric Networks for Scene Change Detec》
用户的管理-限制
无重复字符的最长字串
STL容器——queue与deque的基本操作
微信小程序wx.setClipboardData复制文本
Cve-2022-23131 ZABBIX SAML SSO authentication bypass vulnerability
Harmonyos third training notes
(精讲)Es6 剩余参数,ES6内置对象,模板字符串内容(详例宝典)及灵活运用项目的实战案例
md5 密码加密
基于RTX30显卡的ArcGIS Pro2.8深度学习环境配置
上传七牛云的方法
【C语言—零基础_学习_复习_第四课】数据类型及其运算
Infinite classification
6S参数
uni-app 条件编译#ifdef #endif 兼容多个终端
第十届泰迪杯数据挖掘挑战赛A题害虫识别YOLOv5模型代码(已跑通,原创作品,持续更新)
. SH scripting
Install MySQL