当前位置:网站首页>社交社区论坛APP超高颜值UI界面
社交社区论坛APP超高颜值UI界面
2022-07-03 11:56:00 【程序员-南】
该项目后端采用 thinkphp+mysql
前端使用iAPP框架
论坛、话题、圈子、私信
超高的颜值界面
话不多说上效果图:




<?php
namespace Action;
use HY\Action;
!defined('HY_PATH') && exit('HY_PATH not defined.');
class Index extends HYBBS {
public function __construct(){
parent::__construct();
//{hook a_index_init}
}
public function Index(){
//{hook a_index_index_1}
$this->v('title',$this->conf['title']);
$pageid = intval(X('get.pageid')) or $pageid=1;
$type = X('get.type') or $type='New';
if($type != 'New' && $type != 'Btime')
$type='';
$this->v("type",strtolower($type));
$Thread = M("Thread");
$desc = ['tid' => 'DESC'];
if($type == 'Btime')
$desc = ['btime'=>'DESC']; //最新回复
//{hook a_index_index_11}
$thread_list = $this->CacheObj->get("index_index_".$type.'_'.$pageid);
//获取主题列表
if(empty($thread_list) || DEBUG){
//{hook a_index_index_22}
$thread_list = $Thread->get_thread_list($pageid,$this->conf['homelist'],$desc);
$Thread->format($thread_list);
foreach ($thread_list as $key => $value) {
if($value['top'] == 2)
unset($thread_list[$key]);
}
$this->CacheObj->set("index_index_".$type.'_'.$pageid,$thread_list);
}
//{hook a_index_index_2}
//获取置顶缓存
$top_data=$this->CacheObj->get("top_data_2");
if(empty($top_data) || DEBUG){
//{hook a_index_index_33}
//全局置顶
$top_data = $Thread->get_top_thread();
//格式数据显示
$Thread->format($top_data);
//写入缓存
$this->CacheObj->set("top_data_2",$top_data);
}
//End
//{hook a_index_index_3}
$count = $this->_count['thread'];
$count = (!$count)?1:$count;
$page_count = ($count % $this->conf['homelist'] != 0)?(intval($count/$this->conf['homelist'])+1) : intval($count/$this->conf['homelist']);
//{hook a_index_index_v}
$this->v("pageid",$pageid);
$this->v("page_count",$page_count);
$this->v("thread_list",$thread_list);
$this->v("top_list",$top_data);
$this->display('index_index');
}
//{hook a_index_fun}
}
需要的小伙伴可留下联系方式~
感谢阅读,留下个关注吧~
边栏推荐
- Dart: About zone
- 023(【模板】最小生成树)(最小生成树)
- 手机号码变成空号导致亚马逊账号登陆两步验证失败的恢复网址及方法
- 十条职场规则
- OpenGL index cache object EBO and lineweight mode
- [ManageEngine] the role of IP address scanning
- Shell: basic learning
- If you can't learn, you have to learn. Jetpack compose writes an im app (I)
- 2.8 overview of ViewModel knowledge
- If you can't learn, you have to learn. Jetpack compose writes an im app (II)
猜你喜欢

【ArcGIS自定义脚本工具】矢量文件生成扩大矩形面要素
![Sword finger offer03 Repeated numbers in the array [simple]](/img/cf/c1ad2f2a45560b674b5b8c11fed244.png)
Sword finger offer03 Repeated numbers in the array [simple]

The future of cloud computing cloud native

LeetCode 0556.下一个更大元素 III - 4步讲完

New features of ES6

Sword finger offer10- I. Fibonacci sequence

Sword finger offer09 Implementing queues with two stacks
![[ManageEngine] the role of IP address scanning](/img/dc/df353da0e93e4d936c39a39493b508.png)
[ManageEngine] the role of IP address scanning

剑指Offer09. 用两个栈实现队列

Public and private account sending prompt information (user microservice -- message microservice)
随机推荐
SLF4J 日志门面
Pki/ca and digital certificate
lambda与匿名内部类的区别
TOGAF认证自学宝典V2.0
flinksql是可以直接客户端建表读mysql或是kafka数据,但是怎么让它自动流转计算起来呢?
Is it safe to open an account for online stock speculation? Who can answer
[ManageEngine] the role of IP address scanning
[download attached] password acquisition tool lazagne installation and use
C language improvement article (wchar_t) character type
JVM memory model
20. Valid brackets
node的ORM使用-Sequelize
Flinksql can directly create tables and read MySQL or Kafka data on the client side, but how can it automatically flow and calculate?
Idea packages the web project into a war package and deploys it to the server to run
RedHat5 安装Socket5代理服务器
Adult adult adult
OpenGL draws colored triangles
Take you to the installation and simple use tutorial of the deveco studio compiler of harmonyos to create and run Hello world?
十条职场规则
Self made pop-up input box, input text, and click to complete the event.