作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

后台bug

@@ -5,10 +5,8 @@ @@ -5,10 +5,8 @@
5 </component> 5 </component>
6 <component name="ChangeListManager"> 6 <component name="ChangeListManager">
7 <list default="true" id="309ad746-5b2a-4c29-af46-e7925a35765c" name="默认的" comment=""> 7 <list default="true" id="309ad746-5b2a-4c29-af46-e7925a35765c" name="默认的" comment="">
8 - <change afterPath="$PROJECT_DIR$/public/assets/advertising/img/choice.png" afterDir="false" />  
9 <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> 8 <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
10 - <change beforePath="$PROJECT_DIR$/application/home/view/member/my_withdraw.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/home/view/member/my_withdraw.html" afterDir="false" />  
11 - <change beforePath="$PROJECT_DIR$/public/assets/advertising/css/record.css" beforeDir="false" afterPath="$PROJECT_DIR$/public/assets/advertising/css/record.css" afterDir="false" /> 9 + <change beforePath="$PROJECT_DIR$/application/home/view/index/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/home/view/index/index.html" afterDir="false" />
12 </list> 10 </list>
13 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> 11 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
14 <option name="TRACKING_ENABLED" value="true" /> 12 <option name="TRACKING_ENABLED" value="true" />
@@ -36,11 +34,20 @@ @@ -36,11 +34,20 @@
36 </component> 34 </component>
37 <component name="FileEditorManager"> 35 <component name="FileEditorManager">
38 <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> 36 <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
39 - <file leaf-file-name="my_withdraw.html" pinned="false" current-in-tab="true"> 37 + <file leaf-file-name="my_withdraw.html" pinned="false" current-in-tab="false">
40 <entry file="file://$PROJECT_DIR$/application/home/view/member/my_withdraw.html"> 38 <entry file="file://$PROJECT_DIR$/application/home/view/member/my_withdraw.html">
41 <provider selected="true" editor-type-id="text-editor"> 39 <provider selected="true" editor-type-id="text-editor">
42 - <state relative-caret-position="442">  
43 - <caret line="68" column="10" selection-start-line="68" selection-start-column="10" selection-end-line="68" selection-end-column="10" /> 40 + <state relative-caret-position="-221">
  41 + <caret line="29" column="65" selection-start-line="29" selection-start-column="65" selection-end-line="29" selection-end-column="65" />
  42 + </state>
  43 + </provider>
  44 + </entry>
  45 + </file>
  46 + <file leaf-file-name="index.html" pinned="false" current-in-tab="true">
  47 + <entry file="file://$PROJECT_DIR$/application/home/view/index/index.html">
  48 + <provider selected="true" editor-type-id="text-editor">
  49 + <state relative-caret-position="407">
  50 + <caret line="106" column="18" selection-start-line="106" selection-start-column="18" selection-end-line="106" selection-end-column="18" />
44 </state> 51 </state>
45 </provider> 52 </provider>
46 </entry> 53 </entry>
@@ -70,7 +77,6 @@ @@ -70,7 +77,6 @@
70 </component> 77 </component>
71 <component name="FindInProjectRecents"> 78 <component name="FindInProjectRecents">
72 <findStrings> 79 <findStrings>
73 - <find>answer_word</find>  
74 <find>vide</find> 80 <find>vide</find>
75 <find>nav_img</find> 81 <find>nav_img</find>
76 <find>btn_more</find> 82 <find>btn_more</find>
@@ -100,6 +106,7 @@ @@ -100,6 +106,7 @@
100 <find>与服务器断开连接</find> 106 <find>与服务器断开连接</find>
101 <find>与服务器断开连接3</find> 107 <find>与服务器断开连接3</find>
102 <find>quest_condition</find> 108 <find>quest_condition</find>
  109 + <find>outerScroller</find>
103 </findStrings> 110 </findStrings>
104 <replaceStrings> 111 <replaceStrings>
105 <replace /> 112 <replace />
@@ -142,7 +149,6 @@ @@ -142,7 +149,6 @@
142 <option value="$PROJECT_DIR$/public/assets/advertising/css/index.css" /> 149 <option value="$PROJECT_DIR$/public/assets/advertising/css/index.css" />
143 <option value="$PROJECT_DIR$/application/home/model/Goods.php" /> 150 <option value="$PROJECT_DIR$/application/home/model/Goods.php" />
144 <option value="$PROJECT_DIR$/application/home/controller/Goods.php" /> 151 <option value="$PROJECT_DIR$/application/home/controller/Goods.php" />
145 - <option value="$PROJECT_DIR$/application/home/view/index/index.html" />  
146 <option value="$PROJECT_DIR$/application/home/controller/Share.php" /> 152 <option value="$PROJECT_DIR$/application/home/controller/Share.php" />
147 <option value="$PROJECT_DIR$/public/assets/advertising/css/public.css" /> 153 <option value="$PROJECT_DIR$/public/assets/advertising/css/public.css" />
148 <option value="$PROJECT_DIR$/application/admin/view/goods/edit.html" /> 154 <option value="$PROJECT_DIR$/application/admin/view/goods/edit.html" />
@@ -162,6 +168,7 @@ @@ -162,6 +168,7 @@
162 <option value="$PROJECT_DIR$/application/admin/view/dashboard/index.html" /> 168 <option value="$PROJECT_DIR$/application/admin/view/dashboard/index.html" />
163 <option value="$PROJECT_DIR$/public/assets/advertising/css/record.css" /> 169 <option value="$PROJECT_DIR$/public/assets/advertising/css/record.css" />
164 <option value="$PROJECT_DIR$/application/home/view/member/my_withdraw.html" /> 170 <option value="$PROJECT_DIR$/application/home/view/member/my_withdraw.html" />
  171 + <option value="$PROJECT_DIR$/application/home/view/index/index.html" />
165 </list> 172 </list>
166 </option> 173 </option>
167 </component> 174 </component>
@@ -318,6 +325,14 @@ @@ -318,6 +325,14 @@
318 <item name="application" type="462c0819:PsiDirectoryNode" /> 325 <item name="application" type="462c0819:PsiDirectoryNode" />
319 <item name="home" type="462c0819:PsiDirectoryNode" /> 326 <item name="home" type="462c0819:PsiDirectoryNode" />
320 <item name="view" type="462c0819:PsiDirectoryNode" /> 327 <item name="view" type="462c0819:PsiDirectoryNode" />
  328 + <item name="index" type="462c0819:PsiDirectoryNode" />
  329 + </path>
  330 + <path>
  331 + <item name="advertising" type="b2602c69:ProjectViewProjectNode" />
  332 + <item name="advertising" type="462c0819:PsiDirectoryNode" />
  333 + <item name="application" type="462c0819:PsiDirectoryNode" />
  334 + <item name="home" type="462c0819:PsiDirectoryNode" />
  335 + <item name="view" type="462c0819:PsiDirectoryNode" />
321 <item name="member" type="462c0819:PsiDirectoryNode" /> 336 <item name="member" type="462c0819:PsiDirectoryNode" />
322 </path> 337 </path>
323 <path> 338 <path>
@@ -426,21 +441,7 @@ @@ -426,21 +441,7 @@
426 <workItem from="1573259331081" duration="30435000" /> 441 <workItem from="1573259331081" duration="30435000" />
427 <workItem from="1573432217070" duration="2199000" /> 442 <workItem from="1573432217070" duration="2199000" />
428 <workItem from="1573519427130" duration="17475000" /> 443 <workItem from="1573519427130" duration="17475000" />
429 - <workItem from="1573605070739" duration="15786000" />  
430 - </task>  
431 - <task id="LOCAL-00589" summary=" 商户申请">  
432 - <created>1573544443709</created>  
433 - <option name="number" value="00589" />  
434 - <option name="presentableId" value="LOCAL-00589" />  
435 - <option name="project" value="LOCAL" />  
436 - <updated>1573544443709</updated>  
437 - </task>  
438 - <task id="LOCAL-00590" summary=" 商户申请">  
439 - <created>1573544544023</created>  
440 - <option name="number" value="00590" />  
441 - <option name="presentableId" value="LOCAL-00590" />  
442 - <option name="project" value="LOCAL" />  
443 - <updated>1573544544023</updated> 444 + <workItem from="1573605070739" duration="16177000" />
444 </task> 445 </task>
445 <task id="LOCAL-00591" summary=" 商户申请"> 446 <task id="LOCAL-00591" summary=" 商户申请">
446 <created>1573544613067</created> 447 <created>1573544613067</created>
@@ -771,11 +772,25 @@ @@ -771,11 +772,25 @@
771 <option name="project" value="LOCAL" /> 772 <option name="project" value="LOCAL" />
772 <updated>1573628879410</updated> 773 <updated>1573628879410</updated>
773 </task> 774 </task>
774 - <option name="localTasksCounter" value="638" /> 775 + <task id="LOCAL-00638" summary="后台bug">
  776 + <created>1573631092464</created>
  777 + <option name="number" value="00638" />
  778 + <option name="presentableId" value="LOCAL-00638" />
  779 + <option name="project" value="LOCAL" />
  780 + <updated>1573631092464</updated>
  781 + </task>
  782 + <task id="LOCAL-00639" summary="后台bug">
  783 + <created>1573631154536</created>
  784 + <option name="number" value="00639" />
  785 + <option name="presentableId" value="LOCAL-00639" />
  786 + <option name="project" value="LOCAL" />
  787 + <updated>1573631154536</updated>
  788 + </task>
  789 + <option name="localTasksCounter" value="640" />
775 <servers /> 790 <servers />
776 </component> 791 </component>
777 <component name="TimeTrackingManager"> 792 <component name="TimeTrackingManager">
778 - <option name="totallyTimeSpent" value="439568000" /> 793 + <option name="totallyTimeSpent" value="439959000" />
779 </component> 794 </component>
780 <component name="ToolWindowManager"> 795 <component name="ToolWindowManager">
781 <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" /> 796 <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
@@ -864,13 +879,6 @@ @@ -864,13 +879,6 @@
864 <option name="LAST_COMMIT_MESSAGE" value="后台bug" /> 879 <option name="LAST_COMMIT_MESSAGE" value="后台bug" />
865 </component> 880 </component>
866 <component name="editorHistoryManager"> 881 <component name="editorHistoryManager">
867 - <entry file="file://D:/我的文档/Documents/NetSarang Computer/6/Xftp/Temporary/Doc [2].php">  
868 - <provider selected="true" editor-type-id="text-editor">  
869 - <state relative-caret-position="238">  
870 - <caret line="14" column="31" selection-start-line="14" selection-start-column="31" selection-end-line="14" selection-end-column="31" />  
871 - </state>  
872 - </provider>  
873 - </entry>  
874 <entry file="file://D:/我的文档/Documents/NetSarang Computer/6/Xftp/Temporary/Doc [3].php"> 882 <entry file="file://D:/我的文档/Documents/NetSarang Computer/6/Xftp/Temporary/Doc [3].php">
875 <provider selected="true" editor-type-id="text-editor" /> 883 <provider selected="true" editor-type-id="text-editor" />
876 </entry> 884 </entry>
@@ -988,13 +996,6 @@ @@ -988,13 +996,6 @@
988 </state> 996 </state>
989 </provider> 997 </provider>
990 </entry> 998 </entry>
991 - <entry file="file://$PROJECT_DIR$/application/home/view/index/index.html">  
992 - <provider selected="true" editor-type-id="text-editor">  
993 - <state relative-caret-position="510">  
994 - <caret line="47" column="8" selection-start-line="47" selection-start-column="8" selection-end-line="47" selection-end-column="8" />  
995 - </state>  
996 - </provider>  
997 - </entry>  
998 <entry file="file://$PROJECT_DIR$/application/admin/view/goods/edit.html"> 999 <entry file="file://$PROJECT_DIR$/application/admin/view/goods/edit.html">
999 <provider selected="true" editor-type-id="text-editor"> 1000 <provider selected="true" editor-type-id="text-editor">
1000 <state relative-caret-position="374"> 1001 <state relative-caret-position="374">
@@ -1184,10 +1185,20 @@ @@ -1184,10 +1185,20 @@
1184 </state> 1185 </state>
1185 </provider> 1186 </provider>
1186 </entry> 1187 </entry>
  1188 + <entry file="file://$PROJECT_DIR$/application/home/view/member/index.html">
  1189 + <provider selected="true" editor-type-id="text-editor" />
  1190 + </entry>
1187 <entry file="file://$PROJECT_DIR$/application/home/view/member/my_withdraw.html"> 1191 <entry file="file://$PROJECT_DIR$/application/home/view/member/my_withdraw.html">
1188 <provider selected="true" editor-type-id="text-editor"> 1192 <provider selected="true" editor-type-id="text-editor">
1189 - <state relative-caret-position="442">  
1190 - <caret line="68" column="10" selection-start-line="68" selection-start-column="10" selection-end-line="68" selection-end-column="10" /> 1193 + <state relative-caret-position="-221">
  1194 + <caret line="29" column="65" selection-start-line="29" selection-start-column="65" selection-end-line="29" selection-end-column="65" />
  1195 + </state>
  1196 + </provider>
  1197 + </entry>
  1198 + <entry file="file://$PROJECT_DIR$/application/home/view/index/index.html">
  1199 + <provider selected="true" editor-type-id="text-editor">
  1200 + <state relative-caret-position="407">
  1201 + <caret line="106" column="18" selection-start-line="106" selection-start-column="18" selection-end-line="106" selection-end-column="18" />
1191 </state> 1202 </state>
1192 </provider> 1203 </provider>
1193 </entry> 1204 </entry>
@@ -74,6 +74,7 @@ @@ -74,6 +74,7 @@
74 {include file="public/js" /} 74 {include file="public/js" /}
75 <script src="__CDN__/assets/advertising/js/swiper.min.js"></script> 75 <script src="__CDN__/assets/advertising/js/swiper.min.js"></script>
76 <script> 76 <script>
  77 + var user_id = "{:get_current_user_id()}";
77 //幻灯片 78 //幻灯片
78 var swiper = new Swiper('.swiper-container', { 79 var swiper = new Swiper('.swiper-container', {
79 pagination: '.swiper-pagination', 80 pagination: '.swiper-pagination',
@@ -92,27 +93,58 @@ @@ -92,27 +93,58 @@
92 $(".outerScroller").on("touchstart", function(e) { 93 $(".outerScroller").on("touchstart", function(e) {
93 startY = e.changedTouches[0].pageY; 94 startY = e.changedTouches[0].pageY;
94 $(".refresh_box").text("松手后刷新") 95 $(".refresh_box").text("松手后刷新")
95 - }) 96 + });
96 $(".outerScroller").on("touchmove", function(e) { 97 $(".outerScroller").on("touchmove", function(e) {
97 endY = e.changedTouches[0].pageY; 98 endY = e.changedTouches[0].pageY;
98 disY = endY - startY; 99 disY = endY - startY;
99 if (disY > 30) { 100 if (disY > 30) {
100 $(".refresh_box").slideDown("slow"); 101 $(".refresh_box").slideDown("slow");
101 } 102 }
102 - }) 103 + });
103 $(".outerScroller").on("touchend", function(e) { 104 $(".outerScroller").on("touchend", function(e) {
104 - $(".refresh_box").text("刷新中")  
105 - $(".refresh_box").slideUp("slow")  
106 - }) 105 + $(".refresh_box").text("刷新中");
  106 + $(".refresh_box").slideUp("slow");
  107 + refresh();
  108 + });
107 109
108 function refresh() { 110 function refresh() {
109 - console.log("下拉刷新") 111 + $.ajax({
  112 + url:"{:url('home/index/more')}",
  113 + type:"POST",
  114 + data:{'page':1,'user_id':user_id},
  115 + success:function(res){
  116 + if(res.code == 1){
  117 + if(res.data == ''){
  118 + $('.justify_center').html("<div>没有更多了~</div>");
  119 + toast('没有更多了~');
  120 + return;
  121 + }
  122 + var html = "";
  123 + $(res.data).each(function (key, vo) {
  124 + html += "<div class=\"content_single\" onclick=\"detail('"+vo.id+"')\">\n" +
  125 + " <div class=\"single_title\">"+vo.goods_name+"</div>\n" +
  126 + " <div class=\"single_coupon\">"+vo.exp+"红包券</div>\n" +
  127 + " <div class=\"layout justify flex_row align_center\">\n" +
  128 + " <div class=\"single_date\">截止日期: "+vo.end_time+"</div>\n" +
  129 + " <div class=\"single_btn\">可参与</div>\n" +
  130 + " </div>\n" +
  131 + " </div>";
  132 + });
  133 + $('#dom').append(html);
  134 + $('#page').val(page);
  135 + }else{
  136 + toast('与服务器断开连接');
  137 + }
  138 + },
  139 + error:function(){
  140 + toast('与服务器断开连接');
  141 + }
  142 + })
110 }; 143 };
111 //加载更多 144 //加载更多
112 $(".load_more").click(function () { 145 $(".load_more").click(function () {
113 var page = $('#page').val(); 146 var page = $('#page').val();
114 page++; 147 page++;
115 - var user_id = "{:get_current_user_id()}";  
116 $.ajax({ 148 $.ajax({
117 url:"{:url('home/index/more')}", 149 url:"{:url('home/index/more')}",
118 type:"POST", 150 type:"POST",