Skip to content

Commit

Permalink
update: 移除部分功能
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyzhang1992 committed Dec 4, 2023
1 parent 9f19f40 commit 06f1f07
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 271 deletions.
18 changes: 0 additions & 18 deletions apis/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,24 +111,6 @@ export const GET_USER_INFO = (method, data) => {
return Request(`/wxxcx/getUserInfo/${data.user_id}`, data, method);
};

/**
* 获取搜索列表
* @param {String} method GET
* @param {Object} data {}
*/
export const GET_SEARCH_LIST = (method, data) => {
return Request(`/wxxcx/search_list`, data, method);
}

/**
* 更新搜索状态(删除数据库搜索记录)
* @param {String} method POST
* @param {Object} data {}
*/
export const UPDATE_SEARCH_STATE = (method, data) => {
return Request(`/wxxcx/search/${data.id}/update`, data, method);
}

//-----------------
//------ 首页 --
//-----------------
Expand Down
1 change: 0 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"pages/me/author/index",
"pages/me/about/index",
"pages/poem/audio/index",
"pages/me/search/index",
"pages/sentence/detail/index",
"pages/me/sentence/index",
"pages/sentence/list/index"
Expand Down
20 changes: 0 additions & 20 deletions pages/me/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -63,26 +63,6 @@
</view>
</view>
</view>
<view class="divide" />
<!-- 用户和搜索数量,管理员可见 -->
<view class="page list" wx-if='{{user_id == 10}}'>
<view class="weui-cells weui-cells_after-title">
<view class="weui-cell weui-cell_access" hover-class="weui-cell_active">
<view class="weui-cell__hd" />
<view class="weui-cell__bd">用户数量(新增{{u_t_count}})</view>
<view class="weui-cell__ft weui-cell__ft_in-access" style="min-width:48px">
{{u_count}}
</view>
</view>
<navigator url="search/index" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
<view class="weui-cell__hd" />
<view class="weui-cell__bd">今日搜索</view>
<view class="weui-cell__ft weui-cell__ft_in-access" style="min-width:48px">
{{s_count}}
</view>
</navigator>
</view>
</view>
<ad unit-id="adunit-bf6445b29863936e" />
<!-- <ad
unit-id="adunit-5ad8ebe5f5a359ab"
Expand Down
140 changes: 0 additions & 140 deletions pages/me/search/index.js

This file was deleted.

3 changes: 0 additions & 3 deletions pages/me/search/index.json

This file was deleted.

15 changes: 0 additions & 15 deletions pages/me/search/index.wxml

This file was deleted.

73 changes: 0 additions & 73 deletions pages/me/search/index.wxss

This file was deleted.

2 changes: 1 addition & 1 deletion project.private.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"libVersion": "2.25.1",
"libVersion": "3.2.2",
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"setting": {
"urlCheck": true,
Expand Down

0 comments on commit 06f1f07

Please sign in to comment.