소스 검색

20210820 11-30

邪性 3 년 전
부모
커밋
9b1d029616
3개의 변경된 파일31개의 추가작업 그리고 12개의 파일을 삭제
  1. 27 6
      .idea/workspace.xml
  2. 1 1
      h_news/news_list.html
  3. 3 5
      js/new_list.js

+ 27 - 6
.idea/workspace.xml

@@ -1,7 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
   <component name="ChangeListManager">
-    <list default="true" id="82570a17-8430-4238-ae79-81bbbd2de81f" name="Default Changelist" comment="" />
+    <list default="true" id="82570a17-8430-4238-ae79-81bbbd2de81f" name="Default Changelist" comment="">
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/h_news/news_list.html" beforeDir="false" afterPath="$PROJECT_DIR$/h_news/news_list.html" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/js/new_list.js" beforeDir="false" afterPath="$PROJECT_DIR$/js/new_list.js" afterDir="false" />
+    </list>
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -95,6 +99,16 @@
           <entry key="project.opened" value="1" />
         </counts>
       </usages-collector>
+      <usages-collector id="statistics.file.extensions.edit">
+        <counts>
+          <entry key="txt" value="14" />
+        </counts>
+      </usages-collector>
+      <usages-collector id="statistics.file.types.edit">
+        <counts>
+          <entry key="PLAIN_TEXT" value="14" />
+        </counts>
+      </usages-collector>
     </session>
   </component>
   <component name="FileEditorManager">
@@ -452,14 +466,20 @@
       <option name="project" value="LOCAL" />
       <updated>1629426817219</updated>
     </task>
-    <option name="localTasksCounter" value="23" />
+    <task id="LOCAL-00023" summary="20210820 11-30">
+      <created>1629430176437</created>
+      <option name="number" value="00023" />
+      <option name="presentableId" value="LOCAL-00023" />
+      <option name="project" value="LOCAL" />
+      <updated>1629430176437</updated>
+    </task>
+    <option name="localTasksCounter" value="24" />
     <servers />
   </component>
   <component name="ToolWindowManager">
     <frame x="-17" y="57" width="1933" height="899" extended-state="0" />
-    <editor active="true" />
     <layout>
-      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.16390817" />
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.16390817" />
       <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
       <window_info id="Favorites" order="2" side_tool="true" />
       <window_info anchor="bottom" id="Message" order="0" />
@@ -470,7 +490,7 @@
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
       <window_info anchor="bottom" id="TODO" order="6" />
       <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
-      <window_info anchor="bottom" id="Version Control" order="8" visible="true" weight="0.3124183" />
+      <window_info active="true" anchor="bottom" id="Version Control" order="8" visible="true" weight="0.3124183" />
       <window_info anchor="bottom" id="Database Changes" order="9" show_stripe_button="false" />
       <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
       <window_info anchor="bottom" id="Terminal" order="11" weight="0.3264642" />
@@ -558,7 +578,8 @@
     <MESSAGE value="index 暂时删除热门专题" />
     <MESSAGE value="index 资讯专题" />
     <MESSAGE value="footer" />
-    <option name="LAST_COMMIT_MESSAGE" value="footer" />
+    <MESSAGE value="20210820 11-30" />
+    <option name="LAST_COMMIT_MESSAGE" value="20210820 11-30" />
   </component>
   <component name="editorHistoryManager">
     <entry file="file://$PROJECT_DIR$/h_news/new_detail.html" />

+ 1 - 1
h_news/news_list.html

@@ -86,7 +86,7 @@
     <ul>
       <li>分享到</li>
       <li><img src="../imgs/qq.png" alt="qq">QQ</li>
-      <!-- <li><img src="./imgs/weixin.png" alt="qq">微信</li> -->
+      <li><img src="../imgs/weixin.png" alt="qq">微信</li>
       <li><img src="../imgs/weibo.png" alt="qq">微博</li>
     </ul>
   </div>

+ 3 - 5
js/new_list.js

@@ -16,26 +16,24 @@ $(function () {
     if (c == 0 && currentPage <= totalPage) {
       lock = true;
       $(".my-loading").show();
-      data({ currentPage }).then(res => { console.log(res.totalPage); totalPage = res.totalPage; currentPage++; lock = res.lock; $(".my-loading").hide(); })
+      data({ currentPage }).then(res => { totalPage = res.totalPage; currentPage++; lock = res.lock; $(".my-loading").hide(); })
     }
   })
   // 加载数据
   function data (data) {
     return new Promise(resolve => {
       $.ajax({
-        url: "http://192.168.2.45:8033/member/news/",
+        url: "http://api.gaokaoapp.net/member/news/",
         data: {
           ...data,
           pageSize: 10
         },
         type: "get",
-        error: function () {
+        error: function (error) {
           $(".my-loading").html("已经没有可以加载的数据了")
         },
         success: function (res) {
           let { dataList, totalPage } = res.data;
-          console.log(res.data)
-          console.log(totalPage)
           let father = document.createDocumentFragment();
           Array.from(dataList).forEach(
             item => {