当前位置:网站首页>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

边栏推荐
- C语言练习题
- Convolutional neural network
- 【Es6】利用添加数据,筛选并传输至页面等多项功能实现案例
- [2022 10th Teddy Cup Challenge] Title A: complete version of pest identification (general idea. Detailed process and code and results CSV in compressed package)
- 【C】 Beam calculator
- MySQL optimization
- 异步数据-短信验证码
- 【C语言—零基础第八课】循环结构与break continue
- 02 Bar _ Recommandation de film (basée sur le contenu) Portrait de l'utilisateur
- 645. 错误的集合
猜你喜欢

Feature extraction of machine learning (digitization and discretization of category features and digitization of text features)

微信小程序获取年月日周及早上、中午、晚上

无重复字符的最长字串

SMS verification test without signature template audit

Cve-2017-12635 CouchDB vertical privilege bypass vulnerability recurrence

机器学习之PCA特征降维+案例实践

哨兵二号轨道数据下载

第十届泰迪杯数据挖掘挑战赛A题害虫识别YOLOv5模型代码(已跑通,原创作品,持续更新)

读论文《Learning to Measure Changes: Fully Convolutional Siamese Metric Networks for Scene Change Detec》

uni-app 条件编译#ifdef #endif 兼容多个终端
随机推荐
POC——DVWA‘s SQL Injection
md5 密码加密
【C语言—零基础第十四课】变量的作用域与存储类
这么6的刷题网站你不会没听说过吧?你已经out 了?
【C语言—零基础第十三课】字符串的奥秘
【C】张梁计算器
Cve-2019-14234 Django jsonfield SQL injection vulnerability
【C语言—零基础_学习_复习_第四课】数据类型及其运算
HarmonyOS第四次培训笔记
6S参数
【Es6】利用添加数据,筛选并传输至页面等多项功能实现案例
PCA feature dimensionality reduction of machine learning + case practice
STL容器——set集合的应用
学习C语言第三天
【C语言—零基础第六课】输入输出语句格式与复合语句
日志加入数据库实现思路
ModelArts第二次培训笔记
【C语言—零基础第十一课】旋转大转盘之指针
POC——DVWA‘s XSS Reflected
机器学习之特征提取(类别特征进行数值化、离散化、文本特征进行数值化)