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

边栏推荐
- IDL 6S查找表
- mysql数据库实验实训5,数据查询yggl数据库查询(详细)
- 哨兵二号轨道数据下载
- Harmonyos second training notes
- [2022 10th Teddy Cup Challenge] Title A: complete version of pest identification (general idea. Detailed process and code and results CSV in compressed package)
- pygame-飞机大战1.0(步骤+窗口无响应问题)
- Es6 真实案例解构(多维数组对象)全新案例:
- elment-ui使用方法
- Cve-2019-14234 Django jsonfield SQL injection vulnerability
- 【C语言—零基础第十三课】字符串的奥秘
猜你喜欢

【C】 Beam calculator

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

uniapp 使用uview实现折叠面板

Simple use of directexchange switches.

pygame安装-Requirement already satisfied问题

The code of yolov5 model for pest identification in Title A of the 10th Teddy cup data mining challenge (has been run through, original works, continuously updated)

Notes de formation pour la deuxième fois des modèles

POC——DVWA‘s SQL Injection

mysql数据库实验实训6,数据视图(详细)

Word2Vec原理及应用与文章相似度(推荐系统方法)
随机推荐
数据库实训7【索引与数据完整性约束的创建】
学习C语言的第6天
小程序云开发 上传图片到云存储
滚动轮加载的两种js方法及模态框拖拽归总
Infinite classification
HarmonyOS第四次培训笔记
C语言练习题
C语言 带你 手撕 通讯录
Desensitization field example
【C语言_学习_考试_复习第三课】ASCII码与C语言概述
Cve-2021-44228 log4j reproduction and principle
User management - paging
轮播图节流阀原理及本地存储归总
IDL 6S查找表
Mysql database experiment training 6, data view (detailed)
IDL MODIS 生成查找表
6S参数
Actual cases of data analysis and data mining local house price prediction (716):
获取数组中对象内部的数值最大与最小值多功能版及点名系统完整版并展示效果
02_电影推荐(ContentBased)_用户画像