正在显示
5 个修改的文件
包含
1087 行增加
和
103 行删除
@@ -2,6 +2,10 @@ | @@ -2,6 +2,10 @@ | ||
2 | <project version="4"> | 2 | <project version="4"> |
3 | <component name="ChangeListManager"> | 3 | <component name="ChangeListManager"> |
4 | <list default="true" id="309ad746-5b2a-4c29-af46-e7925a35765c" name="默认的" comment=""> | 4 | <list default="true" id="309ad746-5b2a-4c29-af46-e7925a35765c" name="默认的" comment=""> |
5 | + <change afterPath="$PROJECT_DIR$/application/home/view/goods/audio_detail.html" afterDir="false" /> | ||
6 | + <change afterPath="$PROJECT_DIR$/application/home/view/goods/content_detail.html" afterDir="false" /> | ||
7 | + <change afterPath="$PROJECT_DIR$/application/home/view/goods/video_detail.html" afterDir="false" /> | ||
8 | + <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> | ||
5 | <change beforePath="$PROJECT_DIR$/application/home/controller/Goods.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/home/controller/Goods.php" afterDir="false" /> | 9 | <change beforePath="$PROJECT_DIR$/application/home/controller/Goods.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/home/controller/Goods.php" afterDir="false" /> |
6 | </list> | 10 | </list> |
7 | <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> | 11 | <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> |
@@ -37,10 +41,19 @@ | @@ -37,10 +41,19 @@ | ||
37 | </provider> | 41 | </provider> |
38 | </entry> | 42 | </entry> |
39 | </file> | 43 | </file> |
44 | + <file leaf-file-name="content_detail.html" pinned="false" current-in-tab="false"> | ||
45 | + <entry file="file://$PROJECT_DIR$/application/home/view/goods/content_detail.html"> | ||
46 | + <provider selected="true" editor-type-id="text-editor"> | ||
47 | + <state relative-caret-position="323"> | ||
48 | + <caret line="19" column="91" selection-start-line="19" selection-start-column="91" selection-end-line="19" selection-end-column="91" /> | ||
49 | + </state> | ||
50 | + </provider> | ||
51 | + </entry> | ||
52 | + </file> | ||
40 | <file leaf-file-name="User.php" pinned="false" current-in-tab="false"> | 53 | <file leaf-file-name="User.php" pinned="false" current-in-tab="false"> |
41 | <entry file="file://$PROJECT_DIR$/application/home/controller/User.php"> | 54 | <entry file="file://$PROJECT_DIR$/application/home/controller/User.php"> |
42 | <provider selected="true" editor-type-id="text-editor"> | 55 | <provider selected="true" editor-type-id="text-editor"> |
43 | - <state relative-caret-position="300"> | 56 | + <state relative-caret-position="493"> |
44 | <caret line="149" column="46" selection-start-line="149" selection-start-column="35" selection-end-line="149" selection-end-column="46" /> | 57 | <caret line="149" column="46" selection-start-line="149" selection-start-column="35" selection-end-line="149" selection-end-column="46" /> |
45 | </state> | 58 | </state> |
46 | </provider> | 59 | </provider> |
@@ -49,8 +62,8 @@ | @@ -49,8 +62,8 @@ | ||
49 | <file leaf-file-name="WechatBase.php" pinned="false" current-in-tab="false"> | 62 | <file leaf-file-name="WechatBase.php" pinned="false" current-in-tab="false"> |
50 | <entry file="file://$PROJECT_DIR$/application/common/controller/WechatBase.php"> | 63 | <entry file="file://$PROJECT_DIR$/application/common/controller/WechatBase.php"> |
51 | <provider selected="true" editor-type-id="text-editor"> | 64 | <provider selected="true" editor-type-id="text-editor"> |
52 | - <state relative-caret-position="708"> | ||
53 | - <caret line="86" column="46" selection-start-line="86" selection-start-column="46" selection-end-line="86" selection-end-column="46" /> | 65 | + <state relative-caret-position="623"> |
66 | + <caret line="81" column="14" selection-start-line="81" selection-start-column="14" selection-end-line="81" selection-end-column="14" /> | ||
54 | </state> | 67 | </state> |
55 | </provider> | 68 | </provider> |
56 | </entry> | 69 | </entry> |
@@ -67,8 +80,8 @@ | @@ -67,8 +80,8 @@ | ||
67 | <file leaf-file-name="Goods.php" pinned="false" current-in-tab="true"> | 80 | <file leaf-file-name="Goods.php" pinned="false" current-in-tab="true"> |
68 | <entry file="file://$PROJECT_DIR$/application/home/controller/Goods.php"> | 81 | <entry file="file://$PROJECT_DIR$/application/home/controller/Goods.php"> |
69 | <provider selected="true" editor-type-id="text-editor"> | 82 | <provider selected="true" editor-type-id="text-editor"> |
70 | - <state relative-caret-position="306"> | ||
71 | - <caret line="26" column="30" selection-start-line="26" selection-start-column="30" selection-end-line="26" selection-end-column="30" /> | 83 | + <state relative-caret-position="657"> |
84 | + <caret line="80" column="50" selection-start-line="80" selection-start-column="50" selection-end-line="80" selection-end-column="50" /> | ||
72 | </state> | 85 | </state> |
73 | </provider> | 86 | </provider> |
74 | </entry> | 87 | </entry> |
@@ -100,15 +113,6 @@ | @@ -100,15 +113,6 @@ | ||
100 | </provider> | 113 | </provider> |
101 | </entry> | 114 | </entry> |
102 | </file> | 115 | </file> |
103 | - <file leaf-file-name="nav.html" pinned="false" current-in-tab="false"> | ||
104 | - <entry file="file://$PROJECT_DIR$/application/home/view/public/nav.html"> | ||
105 | - <provider selected="true" editor-type-id="text-editor"> | ||
106 | - <state relative-caret-position="51"> | ||
107 | - <caret line="3" column="22" selection-start-line="3" selection-start-column="22" selection-end-line="3" selection-end-column="49" /> | ||
108 | - </state> | ||
109 | - </provider> | ||
110 | - </entry> | ||
111 | - </file> | ||
112 | </leaf> | 116 | </leaf> |
113 | </component> | 117 | </component> |
114 | <component name="FileTemplateManagerImpl"> | 118 | <component name="FileTemplateManagerImpl"> |
@@ -127,7 +131,11 @@ | @@ -127,7 +131,11 @@ | ||
127 | <find>row</find> | 131 | <find>row</find> |
128 | <find>statusList</find> | 132 | <find>statusList</find> |
129 | <find>money</find> | 133 | <find>money</find> |
134 | + <find>target_url</find> | ||
130 | </findStrings> | 135 | </findStrings> |
136 | + <replaceStrings> | ||
137 | + <replace /> | ||
138 | + </replaceStrings> | ||
131 | </component> | 139 | </component> |
132 | <component name="Git.Settings"> | 140 | <component name="Git.Settings"> |
133 | <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> | 141 | <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> |
@@ -135,7 +143,6 @@ | @@ -135,7 +143,6 @@ | ||
135 | <component name="IdeDocumentHistory"> | 143 | <component name="IdeDocumentHistory"> |
136 | <option name="CHANGED_PATHS"> | 144 | <option name="CHANGED_PATHS"> |
137 | <list> | 145 | <list> |
138 | - <option value="$PROJECT_DIR$/public/assets/js/backend/pay.js" /> | ||
139 | <option value="$PROJECT_DIR$/application/admin/view/pay_view/index.html" /> | 146 | <option value="$PROJECT_DIR$/application/admin/view/pay_view/index.html" /> |
140 | <option value="$PROJECT_DIR$/public/assets/js/backend/pay_view.js" /> | 147 | <option value="$PROJECT_DIR$/public/assets/js/backend/pay_view.js" /> |
141 | <option value="$PROJECT_DIR$/application/admin/view/user_money_log/index.html" /> | 148 | <option value="$PROJECT_DIR$/application/admin/view/user_money_log/index.html" /> |
@@ -183,8 +190,9 @@ | @@ -183,8 +190,9 @@ | ||
183 | <option value="$PROJECT_DIR$/application/home/view/public/head.html" /> | 190 | <option value="$PROJECT_DIR$/application/home/view/public/head.html" /> |
184 | <option value="$PROJECT_DIR$/application/home/view/index/index.html" /> | 191 | <option value="$PROJECT_DIR$/application/home/view/index/index.html" /> |
185 | <option value="$PROJECT_DIR$/application/home/view/user/authorization_view.html" /> | 192 | <option value="$PROJECT_DIR$/application/home/view/user/authorization_view.html" /> |
186 | - <option value="$PROJECT_DIR$/application/common/controller/WechatBase.php" /> | ||
187 | <option value="$PROJECT_DIR$/application/home/controller/User.php" /> | 193 | <option value="$PROJECT_DIR$/application/home/controller/User.php" /> |
194 | + <option value="$PROJECT_DIR$/application/common/controller/WechatBase.php" /> | ||
195 | + <option value="$PROJECT_DIR$/application/home/view/goods/content_detail.html" /> | ||
188 | <option value="$PROJECT_DIR$/application/home/controller/Goods.php" /> | 196 | <option value="$PROJECT_DIR$/application/home/controller/Goods.php" /> |
189 | </list> | 197 | </list> |
190 | </option> | 198 | </option> |
@@ -276,35 +284,21 @@ | @@ -276,35 +284,21 @@ | ||
276 | <item name="advertising" type="b2602c69:ProjectViewProjectNode" /> | 284 | <item name="advertising" type="b2602c69:ProjectViewProjectNode" /> |
277 | <item name="advertising" type="462c0819:PsiDirectoryNode" /> | 285 | <item name="advertising" type="462c0819:PsiDirectoryNode" /> |
278 | <item name="application" type="462c0819:PsiDirectoryNode" /> | 286 | <item name="application" type="462c0819:PsiDirectoryNode" /> |
279 | - <item name="admin" type="462c0819:PsiDirectoryNode" /> | ||
280 | - </path> | ||
281 | - <path> | ||
282 | - <item name="advertising" type="b2602c69:ProjectViewProjectNode" /> | ||
283 | - <item name="advertising" type="462c0819:PsiDirectoryNode" /> | ||
284 | - <item name="application" type="462c0819:PsiDirectoryNode" /> | ||
285 | - <item name="admin" type="462c0819:PsiDirectoryNode" /> | ||
286 | - <item name="view" type="462c0819:PsiDirectoryNode" /> | ||
287 | - </path> | ||
288 | - <path> | ||
289 | - <item name="advertising" type="b2602c69:ProjectViewProjectNode" /> | ||
290 | - <item name="advertising" type="462c0819:PsiDirectoryNode" /> | ||
291 | - <item name="application" type="462c0819:PsiDirectoryNode" /> | ||
292 | - <item name="admin" type="462c0819:PsiDirectoryNode" /> | ||
293 | - <item name="view" type="462c0819:PsiDirectoryNode" /> | ||
294 | - <item name="index" type="462c0819:PsiDirectoryNode" /> | 287 | + <item name="home" type="462c0819:PsiDirectoryNode" /> |
295 | </path> | 288 | </path> |
296 | <path> | 289 | <path> |
297 | <item name="advertising" type="b2602c69:ProjectViewProjectNode" /> | 290 | <item name="advertising" type="b2602c69:ProjectViewProjectNode" /> |
298 | <item name="advertising" type="462c0819:PsiDirectoryNode" /> | 291 | <item name="advertising" type="462c0819:PsiDirectoryNode" /> |
299 | <item name="application" type="462c0819:PsiDirectoryNode" /> | 292 | <item name="application" type="462c0819:PsiDirectoryNode" /> |
300 | <item name="home" type="462c0819:PsiDirectoryNode" /> | 293 | <item name="home" type="462c0819:PsiDirectoryNode" /> |
294 | + <item name="controller" type="462c0819:PsiDirectoryNode" /> | ||
301 | </path> | 295 | </path> |
302 | <path> | 296 | <path> |
303 | <item name="advertising" type="b2602c69:ProjectViewProjectNode" /> | 297 | <item name="advertising" type="b2602c69:ProjectViewProjectNode" /> |
304 | <item name="advertising" type="462c0819:PsiDirectoryNode" /> | 298 | <item name="advertising" type="462c0819:PsiDirectoryNode" /> |
305 | <item name="application" type="462c0819:PsiDirectoryNode" /> | 299 | <item name="application" type="462c0819:PsiDirectoryNode" /> |
306 | <item name="home" type="462c0819:PsiDirectoryNode" /> | 300 | <item name="home" type="462c0819:PsiDirectoryNode" /> |
307 | - <item name="controller" type="462c0819:PsiDirectoryNode" /> | 301 | + <item name="view" type="462c0819:PsiDirectoryNode" /> |
308 | </path> | 302 | </path> |
309 | <path> | 303 | <path> |
310 | <item name="advertising" type="b2602c69:ProjectViewProjectNode" /> | 304 | <item name="advertising" type="b2602c69:ProjectViewProjectNode" /> |
@@ -312,6 +306,7 @@ | @@ -312,6 +306,7 @@ | ||
312 | <item name="application" type="462c0819:PsiDirectoryNode" /> | 306 | <item name="application" type="462c0819:PsiDirectoryNode" /> |
313 | <item name="home" type="462c0819:PsiDirectoryNode" /> | 307 | <item name="home" type="462c0819:PsiDirectoryNode" /> |
314 | <item name="view" type="462c0819:PsiDirectoryNode" /> | 308 | <item name="view" type="462c0819:PsiDirectoryNode" /> |
309 | + <item name="goods" type="462c0819:PsiDirectoryNode" /> | ||
315 | </path> | 310 | </path> |
316 | <path> | 311 | <path> |
317 | <item name="advertising" type="b2602c69:ProjectViewProjectNode" /> | 312 | <item name="advertising" type="b2602c69:ProjectViewProjectNode" /> |
@@ -401,11 +396,11 @@ | @@ -401,11 +396,11 @@ | ||
401 | </component> | 396 | </component> |
402 | <component name="RecentsManager"> | 397 | <component name="RecentsManager"> |
403 | <key name="CopyFile.RECENT_KEYS"> | 398 | <key name="CopyFile.RECENT_KEYS"> |
399 | + <recent name="D:\wamp\www\advertising\application\home\view\goods" /> | ||
404 | <recent name="D:\wamp\www\advertising\application\home\view\user" /> | 400 | <recent name="D:\wamp\www\advertising\application\home\view\user" /> |
405 | <recent name="D:\wamp\www\advertising\application\home\view\public" /> | 401 | <recent name="D:\wamp\www\advertising\application\home\view\public" /> |
406 | <recent name="D:\wamp\www\advertising\application\home\view\index" /> | 402 | <recent name="D:\wamp\www\advertising\application\home\view\index" /> |
407 | <recent name="D:\wamp\www\advertising\public\assets\advertising" /> | 403 | <recent name="D:\wamp\www\advertising\public\assets\advertising" /> |
408 | - <recent name="D:\wamp\www\advertising\public\assets\img" /> | ||
409 | </key> | 404 | </key> |
410 | <key name="MoveFile.RECENT_KEYS"> | 405 | <key name="MoveFile.RECENT_KEYS"> |
411 | <recent name="D:\wamp\www\advertising\public\assets\js\backend" /> | 406 | <recent name="D:\wamp\www\advertising\public\assets\js\backend" /> |
@@ -448,28 +443,7 @@ | @@ -448,28 +443,7 @@ | ||
448 | <workItem from="1572223206994" duration="28857000" /> | 443 | <workItem from="1572223206994" duration="28857000" /> |
449 | <workItem from="1572309778506" duration="26117000" /> | 444 | <workItem from="1572309778506" duration="26117000" /> |
450 | <workItem from="1572395935540" duration="28313000" /> | 445 | <workItem from="1572395935540" duration="28313000" /> |
451 | - <workItem from="1572483209367" duration="14299000" /> | ||
452 | - </task> | ||
453 | - <task id="LOCAL-00005" summary="调试授权"> | ||
454 | - <created>1571975758832</created> | ||
455 | - <option name="number" value="00005" /> | ||
456 | - <option name="presentableId" value="LOCAL-00005" /> | ||
457 | - <option name="project" value="LOCAL" /> | ||
458 | - <updated>1571975758832</updated> | ||
459 | - </task> | ||
460 | - <task id="LOCAL-00006" summary="调试授权"> | ||
461 | - <created>1571975940473</created> | ||
462 | - <option name="number" value="00006" /> | ||
463 | - <option name="presentableId" value="LOCAL-00006" /> | ||
464 | - <option name="project" value="LOCAL" /> | ||
465 | - <updated>1571975940473</updated> | ||
466 | - </task> | ||
467 | - <task id="LOCAL-00007" summary="调试授权"> | ||
468 | - <created>1571975978410</created> | ||
469 | - <option name="number" value="00007" /> | ||
470 | - <option name="presentableId" value="LOCAL-00007" /> | ||
471 | - <option name="project" value="LOCAL" /> | ||
472 | - <updated>1571975978410</updated> | 446 | + <workItem from="1572483209367" duration="16126000" /> |
473 | </task> | 447 | </task> |
474 | <task id="LOCAL-00008" summary="调试授权"> | 448 | <task id="LOCAL-00008" summary="调试授权"> |
475 | <created>1571976018612</created> | 449 | <created>1571976018612</created> |
@@ -793,27 +767,48 @@ | @@ -793,27 +767,48 @@ | ||
793 | <option name="project" value="LOCAL" /> | 767 | <option name="project" value="LOCAL" /> |
794 | <updated>1572505172092</updated> | 768 | <updated>1572505172092</updated> |
795 | </task> | 769 | </task> |
796 | - <option name="localTasksCounter" value="54" /> | 770 | + <task id="LOCAL-00054" summary="调试授权登录"> |
771 | + <created>1572505198570</created> | ||
772 | + <option name="number" value="00054" /> | ||
773 | + <option name="presentableId" value="LOCAL-00054" /> | ||
774 | + <option name="project" value="LOCAL" /> | ||
775 | + <updated>1572505198570</updated> | ||
776 | + </task> | ||
777 | + <task id="LOCAL-00055" summary="调试授权登录"> | ||
778 | + <created>1572505235631</created> | ||
779 | + <option name="number" value="00055" /> | ||
780 | + <option name="presentableId" value="LOCAL-00055" /> | ||
781 | + <option name="project" value="LOCAL" /> | ||
782 | + <updated>1572505235631</updated> | ||
783 | + </task> | ||
784 | + <task id="LOCAL-00056" summary="调试授权登录"> | ||
785 | + <created>1572505562274</created> | ||
786 | + <option name="number" value="00056" /> | ||
787 | + <option name="presentableId" value="LOCAL-00056" /> | ||
788 | + <option name="project" value="LOCAL" /> | ||
789 | + <updated>1572505562274</updated> | ||
790 | + </task> | ||
791 | + <option name="localTasksCounter" value="57" /> | ||
797 | <servers /> | 792 | <servers /> |
798 | </component> | 793 | </component> |
799 | <component name="TimeTrackingManager"> | 794 | <component name="TimeTrackingManager"> |
800 | - <option name="totallyTimeSpent" value="227837000" /> | 795 | + <option name="totallyTimeSpent" value="229664000" /> |
801 | </component> | 796 | </component> |
802 | <component name="ToolWindowManager"> | 797 | <component name="ToolWindowManager"> |
803 | <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" /> | 798 | <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" /> |
804 | <editor active="true" /> | 799 | <editor active="true" /> |
805 | <layout> | 800 | <layout> |
806 | - <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.1380597" /> | ||
807 | <window_info anchor="bottom" id="TODO" order="6" /> | 801 | <window_info anchor="bottom" id="TODO" order="6" /> |
808 | <window_info anchor="bottom" id="调试" order="7" /> | 802 | <window_info anchor="bottom" id="调试" order="7" /> |
809 | - <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" /> | ||
810 | <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" weight="0.32997763" /> | 803 | <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" weight="0.32997763" /> |
811 | - <window_info anchor="right" id="Database" order="3" /> | ||
812 | <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" /> | 804 | <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" /> |
813 | <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" /> | 805 | <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" /> |
814 | - <window_info id="Structure" order="1" side_tool="true" weight="0.25" /> | ||
815 | <window_info anchor="bottom" id="Terminal" order="7" weight="0.32997763" /> | 806 | <window_info anchor="bottom" id="Terminal" order="7" weight="0.32997763" /> |
816 | <window_info anchor="bottom" id="运行" order="7" /> | 807 | <window_info anchor="bottom" id="运行" order="7" /> |
808 | + <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.1380597" /> | ||
809 | + <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" /> | ||
810 | + <window_info anchor="right" id="Database" order="3" /> | ||
811 | + <window_info id="Structure" order="1" side_tool="true" weight="0.25" /> | ||
817 | <window_info id="Favorites" order="2" side_tool="true" /> | 812 | <window_info id="Favorites" order="2" side_tool="true" /> |
818 | <window_info anchor="bottom" id="找到" order="8" weight="0.32997763" /> | 813 | <window_info anchor="bottom" id="找到" order="8" weight="0.32997763" /> |
819 | <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" /> | 814 | <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" /> |
@@ -870,33 +865,6 @@ | @@ -870,33 +865,6 @@ | ||
870 | <option name="LAST_COMMIT_MESSAGE" value="调试授权登录" /> | 865 | <option name="LAST_COMMIT_MESSAGE" value="调试授权登录" /> |
871 | </component> | 866 | </component> |
872 | <component name="editorHistoryManager"> | 867 | <component name="editorHistoryManager"> |
873 | - <entry file="file://$PROJECT_DIR$/public/assets/js/backend/goods_audit.js"> | ||
874 | - <provider selected="true" editor-type-id="text-editor"> | ||
875 | - <state relative-caret-position="408"> | ||
876 | - <caret line="129" column="75" selection-start-line="129" selection-start-column="75" selection-end-line="129" selection-end-column="75" /> | ||
877 | - </state> | ||
878 | - </provider> | ||
879 | - </entry> | ||
880 | - <entry file="file://$PROJECT_DIR$/application/admin/controller/GoodsAudit.php"> | ||
881 | - <provider selected="true" editor-type-id="text-editor"> | ||
882 | - <state relative-caret-position="340"> | ||
883 | - <caret line="20" column="31" selection-start-line="20" selection-start-column="31" selection-end-line="20" selection-end-column="104" /> | ||
884 | - <folding> | ||
885 | - <element signature="e#40#74#0#PHP" expanded="true" /> | ||
886 | - </folding> | ||
887 | - </state> | ||
888 | - </provider> | ||
889 | - </entry> | ||
890 | - <entry file="file://$PROJECT_DIR$/application/admin/controller/MerchantGoods.php"> | ||
891 | - <provider selected="true" editor-type-id="text-editor"> | ||
892 | - <state relative-caret-position="340"> | ||
893 | - <caret line="20" column="4" selection-start-line="20" selection-start-column="4" selection-end-line="20" selection-end-column="43" /> | ||
894 | - <folding> | ||
895 | - <element signature="e#40#74#0#PHP" expanded="true" /> | ||
896 | - </folding> | ||
897 | - </state> | ||
898 | - </provider> | ||
899 | - </entry> | ||
900 | <entry file="file://$PROJECT_DIR$/public/assets/js/backend/merchant_goods.js"> | 868 | <entry file="file://$PROJECT_DIR$/public/assets/js/backend/merchant_goods.js"> |
901 | <provider selected="true" editor-type-id="text-editor"> | 869 | <provider selected="true" editor-type-id="text-editor"> |
902 | <state relative-caret-position="-408"> | 870 | <state relative-caret-position="-408"> |
@@ -1195,13 +1163,30 @@ | @@ -1195,13 +1163,30 @@ | ||
1195 | </state> | 1163 | </state> |
1196 | </provider> | 1164 | </provider> |
1197 | </entry> | 1165 | </entry> |
1166 | + <entry file="file://$PROJECT_DIR$/thinkphp/library/traits/controller/Jump.php"> | ||
1167 | + <provider selected="true" editor-type-id="text-editor"> | ||
1168 | + <state relative-caret-position="341"> | ||
1169 | + <caret line="142" column="45" selection-start-line="142" selection-start-column="38" selection-end-line="142" selection-end-column="45" /> | ||
1170 | + </state> | ||
1171 | + </provider> | ||
1172 | + </entry> | ||
1173 | + <entry file="file://$PROJECT_DIR$/vendor/overtrue/socialite/src/Providers/AbstractProvider.php"> | ||
1174 | + <provider selected="true" editor-type-id="text-editor"> | ||
1175 | + <state relative-caret-position="289"> | ||
1176 | + <caret line="160" column="20" selection-start-line="160" selection-start-column="20" selection-end-line="160" selection-end-column="20" /> | ||
1177 | + </state> | ||
1178 | + </provider> | ||
1179 | + </entry> | ||
1198 | <entry file="file://$PROJECT_DIR$/application/common/controller/WechatBase.php"> | 1180 | <entry file="file://$PROJECT_DIR$/application/common/controller/WechatBase.php"> |
1199 | <provider selected="true" editor-type-id="text-editor"> | 1181 | <provider selected="true" editor-type-id="text-editor"> |
1200 | - <state relative-caret-position="708"> | ||
1201 | - <caret line="86" column="46" selection-start-line="86" selection-start-column="46" selection-end-line="86" selection-end-column="46" /> | 1182 | + <state relative-caret-position="623"> |
1183 | + <caret line="81" column="14" selection-start-line="81" selection-start-column="14" selection-end-line="81" selection-end-column="14" /> | ||
1202 | </state> | 1184 | </state> |
1203 | </provider> | 1185 | </provider> |
1204 | </entry> | 1186 | </entry> |
1187 | + <entry file="file://$PROJECT_DIR$/application/home/view/goods/video_detail.html"> | ||
1188 | + <provider selected="true" editor-type-id="text-editor" /> | ||
1189 | + </entry> | ||
1205 | <entry file="file://$PROJECT_DIR$/application/home/view/user/authorization_view.html"> | 1190 | <entry file="file://$PROJECT_DIR$/application/home/view/user/authorization_view.html"> |
1206 | <provider selected="true" editor-type-id="text-editor"> | 1191 | <provider selected="true" editor-type-id="text-editor"> |
1207 | <state relative-caret-position="238"> | 1192 | <state relative-caret-position="238"> |
@@ -1212,31 +1197,31 @@ | @@ -1212,31 +1197,31 @@ | ||
1212 | </state> | 1197 | </state> |
1213 | </provider> | 1198 | </provider> |
1214 | </entry> | 1199 | </entry> |
1215 | - <entry file="file://$PROJECT_DIR$/thinkphp/library/traits/controller/Jump.php"> | 1200 | + <entry file="file://$PROJECT_DIR$/application/home/view/goods/content_detail.html"> |
1216 | <provider selected="true" editor-type-id="text-editor"> | 1201 | <provider selected="true" editor-type-id="text-editor"> |
1217 | - <state relative-caret-position="341"> | ||
1218 | - <caret line="142" column="45" selection-start-line="142" selection-start-column="38" selection-end-line="142" selection-end-column="45" /> | 1202 | + <state relative-caret-position="323"> |
1203 | + <caret line="19" column="91" selection-start-line="19" selection-start-column="91" selection-end-line="19" selection-end-column="91" /> | ||
1219 | </state> | 1204 | </state> |
1220 | </provider> | 1205 | </provider> |
1221 | </entry> | 1206 | </entry> |
1222 | - <entry file="file://$PROJECT_DIR$/application/home/controller/User.php"> | 1207 | + <entry file="file://$PROJECT_DIR$/application/home/controller/Index.php"> |
1223 | <provider selected="true" editor-type-id="text-editor"> | 1208 | <provider selected="true" editor-type-id="text-editor"> |
1224 | - <state relative-caret-position="300"> | ||
1225 | - <caret line="149" column="46" selection-start-line="149" selection-start-column="35" selection-end-line="149" selection-end-column="46" /> | 1209 | + <state relative-caret-position="334"> |
1210 | + <caret line="78" column="13" selection-start-line="78" selection-start-column="13" selection-end-line="78" selection-end-column="13" /> | ||
1226 | </state> | 1211 | </state> |
1227 | </provider> | 1212 | </provider> |
1228 | </entry> | 1213 | </entry> |
1229 | - <entry file="file://$PROJECT_DIR$/application/home/controller/Index.php"> | 1214 | + <entry file="file://$PROJECT_DIR$/application/home/controller/User.php"> |
1230 | <provider selected="true" editor-type-id="text-editor"> | 1215 | <provider selected="true" editor-type-id="text-editor"> |
1231 | - <state relative-caret-position="334"> | ||
1232 | - <caret line="78" column="13" selection-start-line="78" selection-start-column="13" selection-end-line="78" selection-end-column="13" /> | 1216 | + <state relative-caret-position="493"> |
1217 | + <caret line="149" column="46" selection-start-line="149" selection-start-column="35" selection-end-line="149" selection-end-column="46" /> | ||
1233 | </state> | 1218 | </state> |
1234 | </provider> | 1219 | </provider> |
1235 | </entry> | 1220 | </entry> |
1236 | <entry file="file://$PROJECT_DIR$/application/home/controller/Goods.php"> | 1221 | <entry file="file://$PROJECT_DIR$/application/home/controller/Goods.php"> |
1237 | <provider selected="true" editor-type-id="text-editor"> | 1222 | <provider selected="true" editor-type-id="text-editor"> |
1238 | - <state relative-caret-position="306"> | ||
1239 | - <caret line="26" column="30" selection-start-line="26" selection-start-column="30" selection-end-line="26" selection-end-column="30" /> | 1223 | + <state relative-caret-position="657"> |
1224 | + <caret line="80" column="50" selection-start-line="80" selection-start-column="50" selection-end-line="80" selection-end-column="50" /> | ||
1240 | </state> | 1225 | </state> |
1241 | </provider> | 1226 | </provider> |
1242 | </entry> | 1227 | </entry> |
@@ -73,6 +73,14 @@ class Goods extends WechatBase | @@ -73,6 +73,14 @@ class Goods extends WechatBase | ||
73 | $this->error('查无此人'); | 73 | $this->error('查无此人'); |
74 | } | 74 | } |
75 | $this->assign('data',$data); | 75 | $this->assign('data',$data); |
76 | - return $this->fetch(); | 76 | + if($data['type'] == 1){ |
77 | + return $this->fetch('video_detail'); | ||
78 | + }else if($data['type'] == 2){ | ||
79 | + return $this->fetch('audio_detail'); | ||
80 | + }else if($data['type'] == 3){ | ||
81 | + return $this->fetch('content_detail'); | ||
82 | + }else{ | ||
83 | + $this->error('未知类型'); | ||
84 | + } | ||
77 | } | 85 | } |
78 | } | 86 | } |
1 | +<!DOCTYPE html> | ||
2 | +<html lang="en"> | ||
3 | + | ||
4 | +<head> | ||
5 | + <meta charset="UTF-8"> | ||
6 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
7 | + <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
8 | + <title>广告商城</title> | ||
9 | + <link rel="stylesheet" href="css/public.css"> | ||
10 | + <link rel="stylesheet" href="css/advDetail.css"> | ||
11 | +</head> | ||
12 | + | ||
13 | +<body> | ||
14 | + <div class="adv_detail clearfix"> | ||
15 | + <!-- 详情内容 --> | ||
16 | + <div class="detail_top"> | ||
17 | + <!-- 标题 --> | ||
18 | + <div class="detail_title">康师傅老坛酸菜牛肉面全新上市</div> | ||
19 | + <!-- 日期 --> | ||
20 | + <div class="detail_date">截止日期:<i class="end_day">2019/08/16</i></div> | ||
21 | + <!-- 音频 --> | ||
22 | + <div class="detail_audio_wrap "> | ||
23 | + <div class="audio_single flex_row align_center layout"> | ||
24 | + <div class="audio_style"> | ||
25 | + <audio src="img/audio.mp3" id="audio1"></audio> | ||
26 | + </div> | ||
27 | + <div class="audio_play"> | ||
28 | + <b class="b1"></b> | ||
29 | + <b class="b2"></b> | ||
30 | + <b class="b3"></b> | ||
31 | + <b class="b4"></b> | ||
32 | + <b class="b5"></b> | ||
33 | + </div> | ||
34 | + <div class="audio_time"></div> | ||
35 | + </div> | ||
36 | + </div> | ||
37 | + </div> | ||
38 | + <!-- 答题 --> | ||
39 | + <div class="detail_qust"> | ||
40 | + <!-- 单选题 --> | ||
41 | + <div class="quest_box"> | ||
42 | + <div class="quest_title">康师傅答题题目</div> | ||
43 | + <div class="quest_single"> | ||
44 | + <div class="question"> | ||
45 | + 1、方面便是什么味道 | ||
46 | + </div> | ||
47 | + <div class="answer layout align_center flex_row"> | ||
48 | + <div class="layout align_center flex_row ans_single" data-index="1"> | ||
49 | + <div class="ans_img"> | ||
50 | + <img src="img/sun_07@2x.png" alt="" class="choice_img"> | ||
51 | + </div> | ||
52 | + <div class="answer_word choice_ans">老坛酸菜牛肉面</div> | ||
53 | + </div> | ||
54 | + <div class="layout align_center flex_row ans_single" data-index="2"> | ||
55 | + <div class="ans_img"> | ||
56 | + <img src="img/sun_06@2x.png" alt="" class="choice_img"> | ||
57 | + </div> | ||
58 | + <div class="answer_word">红烧牛肉鸡蛋面</div> | ||
59 | + </div> | ||
60 | + <div class="layout align_center flex_row ans_single" data-index="3"> | ||
61 | + <div class="ans_img"> | ||
62 | + <img src="img/sun_06@2x.png" alt="" class="choice_img"> | ||
63 | + </div> | ||
64 | + <div class="answer_word">黑椒牛排酸菜牛肉面</div> | ||
65 | + </div> | ||
66 | + <div class="layout align_center flex_row ans_single" data-index="4"> | ||
67 | + <div class="ans_img"> | ||
68 | + <img src="img/sun_06@2x.png" alt="" class="choice_img"> | ||
69 | + </div> | ||
70 | + <div class="answer_word">牛骨酸菜牛肉面</div> | ||
71 | + </div> | ||
72 | + </div> | ||
73 | + </div> | ||
74 | + <div class="quest_single"> | ||
75 | + <div class="question"> | ||
76 | + 2、方面便是什么味道 | ||
77 | + </div> | ||
78 | + <div class="answer layout align_center flex_row"> | ||
79 | + <div class="layout align_center flex_row ans_single" data-index="5"> | ||
80 | + <div class="ans_img"> | ||
81 | + <img src="img/sun_07@2x.png" alt="" class="choice_img"> | ||
82 | + </div> | ||
83 | + <div class="answer_word choice_ans">老坛酸菜牛肉面</div> | ||
84 | + </div> | ||
85 | + <div class="layout align_center flex_row ans_single" data-index="6"> | ||
86 | + <div class="ans_img"> | ||
87 | + <img src="img/sun_06@2x.png" alt="" class="choice_img"> | ||
88 | + </div> | ||
89 | + <div class="answer_word">红烧牛肉鸡蛋面</div> | ||
90 | + </div> | ||
91 | + <div class="layout align_center flex_row ans_single" data-index="7"> | ||
92 | + <div class="ans_img"> | ||
93 | + <img src="img/sun_06@2x.png" alt="" class="choice_img"> | ||
94 | + </div> | ||
95 | + <div class="answer_word">黑椒牛排酸菜牛肉面</div> | ||
96 | + </div> | ||
97 | + <div class="layout align_center flex_row ans_single" data-index="8"> | ||
98 | + <div class="ans_img"> | ||
99 | + <img src="img/sun_06@2x.png" alt="" class="choice_img"> | ||
100 | + </div> | ||
101 | + <div class="answer_word">牛骨酸菜牛肉面</div> | ||
102 | + </div> | ||
103 | + </div> | ||
104 | + </div> | ||
105 | + <div class="quest_single"> | ||
106 | + <div class="question"> | ||
107 | + 3、大家好才是()。 | ||
108 | + </div> | ||
109 | + <div class="answer_fill">答案:真的好</div> | ||
110 | + <div class="answer_input_box"> | ||
111 | + <input type="text" class="answer_input" placeholder="请输入答案" /> | ||
112 | + </div> | ||
113 | + </div> | ||
114 | + <div class="btn right_btn" onclick="submit()">提交答案</div> | ||
115 | + <div class="btn error_btn">重新答题(<i class="new_time"></i>)</div> | ||
116 | + </div> | ||
117 | + <!-- 未满足答题条件 --> | ||
118 | + <div class="quest_box quest_condition"> | ||
119 | + <div class="quest_title">对不起,您未满足当前题目答题条件</div> | ||
120 | + <div class="btn_group layout align_center flex_row justify"> | ||
121 | + <div class="btn_l btn_msg">完善信息</div> | ||
122 | + <div class="btn_l btn_more">查看更多</div> | ||
123 | + </div> | ||
124 | + </div> | ||
125 | + </div> | ||
126 | + <!-- 弹窗 --> | ||
127 | + <div class="submit_modal"></div> | ||
128 | + <!-- 弹窗内容 --> | ||
129 | + <div class="submit_modal_box layout align_center justify_center"> | ||
130 | + <!-- 提交 --> | ||
131 | + <div class="submit_either"> | ||
132 | + <div class="submit_either_wrap"> | ||
133 | + <div class="submit_wrap_title"> | ||
134 | + 提示 | ||
135 | + </div> | ||
136 | + <!-- 是否提交 --> | ||
137 | + <!-- <div> | ||
138 | + <div class="submit_sure">确认提交问题答案</div> | ||
139 | + <div class="submit_btn_group layout align_center justify flex_row"> | ||
140 | + <div class="submit_btn_cancle submit_btn_all">取消</div> | ||
141 | + <div class="submit_btn_sure submit_btn_all">确认</div> | ||
142 | + </div> | ||
143 | + </div> --> | ||
144 | + <!-- 答题成功 --> | ||
145 | + <!-- <div> | ||
146 | + <div class="submit_suc"> | ||
147 | + <div class="submit_succ">答题成功</div> | ||
148 | + <div class="submit_succ">恭喜您答对了全部题目</div> | ||
149 | + </div> | ||
150 | + <div class="submit_coupon">获得红包劵:800</div> | ||
151 | + <div class="submit_more">查看更多</div> | ||
152 | + </div> --> | ||
153 | + <!-- 答题失败 --> | ||
154 | + <div> | ||
155 | + <div class="submit_suc"> | ||
156 | + <div class="submit_succ">答题失败</div> | ||
157 | + <div class="submit_succ">很遗憾您未能正确回答全部题目</div> | ||
158 | + </div> | ||
159 | + <div class="submit_more" onclick="checkMore()">查看更多</div> | ||
160 | + </div> | ||
161 | + </div> | ||
162 | + </div> | ||
163 | + </div> | ||
164 | + <!-- 底部链接 --> | ||
165 | + <div class="detail_bottom clearfix layout flex_row"> | ||
166 | + <div class="bottom_link layout align_center flex_row justify_center" onclick="Jump()"> | ||
167 | + <div class="link_img"> | ||
168 | + <img src="img/sun_10@2x.png" alt=""> | ||
169 | + </div> | ||
170 | + <a class="jump_a">https://www.baidu.com/</a> | ||
171 | + </div> | ||
172 | + <div class="bottom_collect layout align_center justify_center flex_diection"> | ||
173 | + <div class="collect_img"> | ||
174 | + <img src="img/sun_05@2x.png" alt="" class="collect_img_link"> | ||
175 | + </div> | ||
176 | + <div>收藏</div> | ||
177 | + </div> | ||
178 | + </div> | ||
179 | + </div> | ||
180 | + <script src="js/base.js"></script> | ||
181 | + <script src="js/jquery.js"></script> | ||
182 | + <script src="js/toast.js"></script> | ||
183 | + <script type="text/javascript" src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script> | ||
184 | + <script> | ||
185 | + // 截止日期 | ||
186 | + var endDay = 212321312312; //后台时间戳 | ||
187 | + $(".end_day").text(showYear(endDay)); | ||
188 | + | ||
189 | + // 音频 | ||
190 | + var audio1 = document.getElementById("audio1"); | ||
191 | + // 音频时长 | ||
192 | + let audioTime = parseInt(audio1.duration); | ||
193 | + $(".audio_time").text(changeTime(audioTime)); | ||
194 | + $(".audio_style").click(function() { | ||
195 | + audio1.play(); | ||
196 | + var audioTimer = setInterval(function() { | ||
197 | + audioTime--; | ||
198 | + if (audioTime % 2 == 0) { | ||
199 | + $(".b3").siblings().removeClass("b_active") | ||
200 | + | ||
201 | + } else { | ||
202 | + $(".b1").addClass("b_active"); | ||
203 | + $(".b5").addClass("b_active"); | ||
204 | + } | ||
205 | + if (audioTime <= 0) { | ||
206 | + audioTime = parseInt(audio1.duration); | ||
207 | + $(".b3").siblings().removeClass("b_active") | ||
208 | + clearInterval(audioTimer) | ||
209 | + } | ||
210 | + }, 1000); | ||
211 | + }) | ||
212 | + audio1.addEventListener("ended", function() { | ||
213 | + $(".detail_qust").show(); | ||
214 | + $(".quest_box").removeClass("quest_ans"); | ||
215 | + // 重新答题 | ||
216 | + $(".error_btn").hide(); | ||
217 | + }) | ||
218 | + | ||
219 | + | ||
220 | + | ||
221 | + function showQuest(satisfy) { | ||
222 | + // 是否满足答题条件 | ||
223 | + var satisfy = 2; | ||
224 | + if (satisfy == 1) { | ||
225 | + // 满足 | ||
226 | + $(".quest_ans").show() | ||
227 | + } else { | ||
228 | + $(".quest_condition").show() | ||
229 | + } | ||
230 | + }; | ||
231 | + | ||
232 | + // 判断是否完善信息 | ||
233 | + var either = 1; | ||
234 | + if (either == 1) { | ||
235 | + // 未完善信息 | ||
236 | + $(".btn_msg").click(function() { | ||
237 | + window.location.href = "personalMsg.html" | ||
238 | + }) | ||
239 | + } else { | ||
240 | + $(".btn_msg").addClass("btn_all") | ||
241 | + } | ||
242 | + | ||
243 | + // 查看更多 完善信息 | ||
244 | + $(".btn_more").click(function() { | ||
245 | + window.location.href = "index.html" | ||
246 | + }) | ||
247 | + | ||
248 | + // 选择答案 | ||
249 | + $(".ans_single").click(function() { | ||
250 | + $(this).find(".answer_word").addClass("choice_ans"); | ||
251 | + $(this).find(".choice_img").attr("src", "img/sun_07@2x.png"); | ||
252 | + $(this).siblings().find(".answer_word").removeClass("choice_ans"); | ||
253 | + $(this).siblings().find(".choice_img").attr("src", "img/sun_06@2x.png"); | ||
254 | + }) | ||
255 | + | ||
256 | + | ||
257 | + | ||
258 | + // 提交答案 | ||
259 | + function submit() { | ||
260 | + $(".adv_detail").css('height', "100vh") | ||
261 | + $(".submit_modal").show(); | ||
262 | + $(".submit_modal_box").show(); | ||
263 | + } | ||
264 | + // 查看更多 答题错误 | ||
265 | + function checkMore() { | ||
266 | + // 重新答题倒计时 | ||
267 | + let newTime = 300; | ||
268 | + let newTimer = setInterval(function() { | ||
269 | + newTime--; | ||
270 | + $(".new_time").text(changeTime(newTime)); | ||
271 | + // 弹窗消失 | ||
272 | + $(".adv_detail").css('height', "auto"); | ||
273 | + $(".submit_modal").hide(); | ||
274 | + $(".submit_modal_box").hide(); | ||
275 | + // 重新答题 | ||
276 | + $(".error_btn").show(); | ||
277 | + $(".right_btn").hide(); | ||
278 | + if (newTime == 0) { | ||
279 | + clearInterval(newTimer); | ||
280 | + window.location.reload(); | ||
281 | + } | ||
282 | + }, 1000); | ||
283 | + | ||
284 | + } | ||
285 | + | ||
286 | + | ||
287 | + | ||
288 | + | ||
289 | + // 底部链接跳转 | ||
290 | + function Jump() { | ||
291 | + var webSite = $(".jump_a").text(); | ||
292 | + window.location.href = webSite; | ||
293 | + }; | ||
294 | + | ||
295 | + // 是否收藏 | ||
296 | + | ||
297 | + var isCollect = 2; | ||
298 | + $(".bottom_collect").click(function() { | ||
299 | + | ||
300 | + }) | ||
301 | + if (isCollect == 1) { | ||
302 | + // 收藏 | ||
303 | + let url = "img/sun_08@2x.png"; | ||
304 | + $(".collect_img_link").attr("src", url); | ||
305 | + $(".bottom_collect").css("color", "#FB7A17"); | ||
306 | + } else { | ||
307 | + let url = "img/sun_05@2x.png"; | ||
308 | + $(".collect_img_link").attr("src", url); | ||
309 | + } | ||
310 | + </script> | ||
311 | + <script> | ||
312 | + // 地图定位 | ||
313 | + var geolocation = new qq.maps.Geolocation("LQNBZ-F3L34-EQMUR-DILMD-LBR4Q-GDFOH", "myapp"); | ||
314 | + var positionNum = 0; | ||
315 | + var options = { | ||
316 | + timeout: 5000 | ||
317 | + }; | ||
318 | + | ||
319 | + function showPosition(position) { | ||
320 | + var city = position.city; //城市 | ||
321 | + var addr = position.addr; //详细地址 | ||
322 | + var lat = position.lat; // | ||
323 | + var lng = position.lng; //经纬度 | ||
324 | + } | ||
325 | + | ||
326 | + function showErr() { | ||
327 | + Toast.init(); | ||
328 | + Toast.show('定位失败', 'success', null); | ||
329 | + setTimeout(function() { | ||
330 | + Toast.hide(); | ||
331 | + }, 20000); | ||
332 | + }; | ||
333 | + $(function() { //定位 | ||
334 | + geolocation.getLocation(showPosition, showErr, options); | ||
335 | + }) | ||
336 | + </script> | ||
337 | + <style> | ||
338 | + .btn { | ||
339 | + margin-top: 0.64rem | ||
340 | + } | ||
341 | + </style> | ||
342 | +</body> | ||
343 | + | ||
344 | + | ||
345 | +</html> |
1 | +<!DOCTYPE html> | ||
2 | +<html lang="en"> | ||
3 | + | ||
4 | +<head> | ||
5 | + <meta charset="UTF-8"> | ||
6 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
7 | + <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
8 | + <title>广告商城</title> | ||
9 | + <link rel="stylesheet" href="css/public.css"> | ||
10 | + <link rel="stylesheet" href="css/advDetail.css"> | ||
11 | +</head> | ||
12 | + | ||
13 | +<body> | ||
14 | + <div class="adv_detail clearfix"> | ||
15 | + <!-- 详情内容 --> | ||
16 | + <div class="detail_top"> | ||
17 | + <!-- 标题 --> | ||
18 | + <div class="detail_title">{$data.goods_name}</div> | ||
19 | + <!-- 日期 --> | ||
20 | + <div class="detail_date">截止日期:<i class="end_day">{:date('Y/m/d',$vo['end_time'])}</i></div> | ||
21 | + <!-- 描述 --> | ||
22 | + <div class="detail_word_wrap"> | ||
23 | + {$data.content} | ||
24 | + </div> | ||
25 | + </div> | ||
26 | + <!-- 答题 --> | ||
27 | + <div class="detail_qust"> | ||
28 | + <!-- 单选题 --> | ||
29 | + <div class="quest_box quest_ans"> | ||
30 | + <div class="quest_title">题目</div> | ||
31 | + <div class="quest_single"> | ||
32 | + <div class="question"> | ||
33 | + 1、方面便是什么味道 | ||
34 | + </div> | ||
35 | + <div class="answer layout align_center flex_row"> | ||
36 | + <div class="layout align_center flex_row ans_single" data-index="1"> | ||
37 | + <div class="ans_img"> | ||
38 | + <img src="img/sun_07@2x.png" alt="" class="choice_img"> | ||
39 | + </div> | ||
40 | + <div class="answer_word choice_ans">老坛酸菜牛肉面</div> | ||
41 | + </div> | ||
42 | + <div class="layout align_center flex_row ans_single" data-index="2"> | ||
43 | + <div class="ans_img"> | ||
44 | + <img src="img/sun_06@2x.png" alt="" class="choice_img"> | ||
45 | + </div> | ||
46 | + <div class="answer_word">红烧牛肉鸡蛋面</div> | ||
47 | + </div> | ||
48 | + <div class="layout align_center flex_row ans_single" data-index="3"> | ||
49 | + <div class="ans_img"> | ||
50 | + <img src="img/sun_06@2x.png" alt="" class="choice_img"> | ||
51 | + </div> | ||
52 | + <div class="answer_word">黑椒牛排酸菜牛肉面</div> | ||
53 | + </div> | ||
54 | + <div class="layout align_center flex_row ans_single" data-index="4"> | ||
55 | + <div class="ans_img"> | ||
56 | + <img src="img/sun_06@2x.png" alt="" class="choice_img"> | ||
57 | + </div> | ||
58 | + <div class="answer_word">牛骨酸菜牛肉面</div> | ||
59 | + </div> | ||
60 | + </div> | ||
61 | + </div> | ||
62 | + <div class="quest_single"> | ||
63 | + <div class="question"> | ||
64 | + 2、方面便是什么味道 | ||
65 | + </div> | ||
66 | + <div class="answer layout align_center flex_row"> | ||
67 | + <div class="layout align_center flex_row ans_single" data-index="5"> | ||
68 | + <div class="ans_img"> | ||
69 | + <img src="img/sun_07@2x.png" alt="" class="choice_img"> | ||
70 | + </div> | ||
71 | + <div class="answer_word choice_ans">老坛酸菜牛肉面</div> | ||
72 | + </div> | ||
73 | + <div class="layout align_center flex_row ans_single" data-index="6"> | ||
74 | + <div class="ans_img"> | ||
75 | + <img src="img/sun_06@2x.png" alt="" class="choice_img"> | ||
76 | + </div> | ||
77 | + <div class="answer_word">红烧牛肉鸡蛋面</div> | ||
78 | + </div> | ||
79 | + <div class="layout align_center flex_row ans_single" data-index="7"> | ||
80 | + <div class="ans_img"> | ||
81 | + <img src="img/sun_06@2x.png" alt="" class="choice_img"> | ||
82 | + </div> | ||
83 | + <div class="answer_word">黑椒牛排酸菜牛肉面</div> | ||
84 | + </div> | ||
85 | + <div class="layout align_center flex_row ans_single" data-index="8"> | ||
86 | + <div class="ans_img"> | ||
87 | + <img src="img/sun_06@2x.png" alt="" class="choice_img"> | ||
88 | + </div> | ||
89 | + <div class="answer_word">牛骨酸菜牛肉面</div> | ||
90 | + </div> | ||
91 | + </div> | ||
92 | + </div> | ||
93 | + <div class="quest_single"> | ||
94 | + <div class="question"> | ||
95 | + 3、大家好才是()。 | ||
96 | + </div> | ||
97 | + <div class="answer_fill">答案:真的好</div> | ||
98 | + <div class="answer_input_box"> | ||
99 | + <input type="text" class="answer_input" placeholder="请输入答案" /> | ||
100 | + </div> | ||
101 | + </div> | ||
102 | + <div class="btn right_btn" onclick="submit()">提交答案</div> | ||
103 | + <div class="btn error_btn">重新答题(<i class="new_time"></i>)</div> | ||
104 | + </div> | ||
105 | + <!-- 未满足答题条件 --> | ||
106 | + <div class="quest_box quest_condition"> | ||
107 | + <div class="quest_title">对不起,您未满足当前题目答题条件</div> | ||
108 | + <div class="btn_group layout align_center flex_row justify"> | ||
109 | + <div class="btn_l btn_msg">完善信息</div> | ||
110 | + <div class="btn_l btn_more">查看更多</div> | ||
111 | + </div> | ||
112 | + </div> | ||
113 | + </div> | ||
114 | + <!-- 弹窗 --> | ||
115 | + <div class="submit_modal"></div> | ||
116 | + <!-- 弹窗内容 --> | ||
117 | + <div class="submit_modal_box layout align_center justify_center"> | ||
118 | + <!-- 提交 --> | ||
119 | + <div class="submit_either"> | ||
120 | + <div class="submit_either_wrap"> | ||
121 | + <div class="submit_wrap_title"> | ||
122 | + 提示 | ||
123 | + </div> | ||
124 | + <!-- 是否提交 --> | ||
125 | + <!-- <div> | ||
126 | + <div class="submit_sure">确认提交问题答案</div> | ||
127 | + <div class="submit_btn_group layout align_center justify flex_row"> | ||
128 | + <div class="submit_btn_cancle submit_btn_all">取消</div> | ||
129 | + <div class="submit_btn_sure submit_btn_all">确认</div> | ||
130 | + </div> | ||
131 | + </div> --> | ||
132 | + <!-- 答题成功 --> | ||
133 | + <!-- <div> | ||
134 | + <div class="submit_suc"> | ||
135 | + <div class="submit_succ">答题成功</div> | ||
136 | + <div class="submit_succ">恭喜您答对了全部题目</div> | ||
137 | + </div> | ||
138 | + <div class="submit_coupon">获得红包劵:800</div> | ||
139 | + <div class="submit_more">查看更多</div> | ||
140 | + </div> --> | ||
141 | + <!-- 答题失败 --> | ||
142 | + <div> | ||
143 | + <div class="submit_suc"> | ||
144 | + <div class="submit_succ">答题失败</div> | ||
145 | + <div class="submit_succ">很遗憾您未能正确回答全部题目</div> | ||
146 | + </div> | ||
147 | + <div class="submit_more" onclick="checkMore()">查看更多</div> | ||
148 | + </div> | ||
149 | + </div> | ||
150 | + </div> | ||
151 | + </div> | ||
152 | + <!-- 底部链接 --> | ||
153 | + <div class="detail_bottom clearfix layout flex_row"> | ||
154 | + <div class="bottom_link layout align_center flex_row justify_center" onclick="Jump()"> | ||
155 | + <div class="link_img"> | ||
156 | + <img src="img/sun_10@2x.png" alt=""> | ||
157 | + </div> | ||
158 | + <a class="jump_a">https://www.baidu.com/</a> | ||
159 | + </div> | ||
160 | + <div class="bottom_collect layout align_center justify_center flex_diection"> | ||
161 | + <div class="collect_img"> | ||
162 | + <img src="img/sun_05@2x.png" alt="" class="collect_img_link"> | ||
163 | + </div> | ||
164 | + <div>收藏</div> | ||
165 | + </div> | ||
166 | + </div> | ||
167 | + </div> | ||
168 | + <script src="js/base.js"></script> | ||
169 | + <script src="js/jquery.js"></script> | ||
170 | + <script src="js/toast.js"></script> | ||
171 | + <script type="text/javascript" src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script> | ||
172 | + <script> | ||
173 | + // 截止日期 | ||
174 | + var endDay = 212321312312; //后台时间戳 | ||
175 | + $(".end_day").text(showYear(endDay)); | ||
176 | + | ||
177 | + // 图文显示 | ||
178 | + var contenTimer = null; | ||
179 | + let timer = 3000; | ||
180 | + contenTimer = setInterval(function() { | ||
181 | + $(".detail_qust").show(); | ||
182 | + $(".quest_box").removeClass("quest_ans"); | ||
183 | + // 重新答题 | ||
184 | + $(".error_btn").hide(); | ||
185 | + // 未满足答题条件 | ||
186 | + // $(".quest_condition").hide(); | ||
187 | + $(".detail_top").css("margin-bottom", "0"); | ||
188 | + clearInterval(contenTimer); | ||
189 | + }, timer) | ||
190 | + | ||
191 | + | ||
192 | + | ||
193 | + function showQuest(satisfy) { | ||
194 | + // 是否满足答题条件 | ||
195 | + var satisfy = 2; | ||
196 | + if (satisfy == 1) { | ||
197 | + // 满足 | ||
198 | + $(".quest_ans").show() | ||
199 | + } else { | ||
200 | + $(".quest_condition").show() | ||
201 | + } | ||
202 | + }; | ||
203 | + | ||
204 | + // 判断是否完善信息 | ||
205 | + var either = 1; | ||
206 | + if (either == 1) { | ||
207 | + // 未完善信息 | ||
208 | + $(".btn_msg").click(function() { | ||
209 | + window.location.href = "personalMsg.html" | ||
210 | + }) | ||
211 | + } else { | ||
212 | + $(".btn_msg").addClass("btn_all"); | ||
213 | + } | ||
214 | + | ||
215 | + // 查看更多 完善信息 | ||
216 | + $(".btn_more").click(function() { | ||
217 | + window.location.href = "index.html" | ||
218 | + }) | ||
219 | + | ||
220 | + // 选择答案 | ||
221 | + $(".ans_single").click(function() { | ||
222 | + $(this).find(".answer_word").addClass("choice_ans"); | ||
223 | + $(this).find(".choice_img").attr("src", "img/sun_07@2x.png"); | ||
224 | + $(this).siblings().find(".answer_word").removeClass("choice_ans"); | ||
225 | + $(this).siblings().find(".choice_img").attr("src", "img/sun_06@2x.png"); | ||
226 | + }) | ||
227 | + | ||
228 | + | ||
229 | + | ||
230 | + // 提交答案 | ||
231 | + function submit() { | ||
232 | + $(".adv_detail").css('height', "100vh") | ||
233 | + $(".submit_modal").show(); | ||
234 | + $(".submit_modal_box").show(); | ||
235 | + } | ||
236 | + // 查看更多 答题错误 | ||
237 | + function checkMore() { | ||
238 | + // 弹窗消失 | ||
239 | + $(".adv_detail").css('height', "auto"); | ||
240 | + $(".submit_modal").hide(); | ||
241 | + $(".submit_modal_box").hide(); | ||
242 | + // 重新答题 | ||
243 | + $(".error_btn").show(); | ||
244 | + $(".right_btn").hide(); | ||
245 | + // 重新答题倒计时 | ||
246 | + let newTime = 300; | ||
247 | + let newTimer = setInterval(function() { | ||
248 | + newTime--; | ||
249 | + $(".new_time").text(changeTime(newTime)); | ||
250 | + if (newTime == 0) { | ||
251 | + clearInterval(newTimer); | ||
252 | + window.location.reload(); | ||
253 | + } | ||
254 | + }, 1000); | ||
255 | + } | ||
256 | + | ||
257 | + | ||
258 | + | ||
259 | + | ||
260 | + // 底部链接跳转 | ||
261 | + function Jump() { | ||
262 | + var webSite = $(".jump_a").text(); | ||
263 | + window.location.href = webSite; | ||
264 | + }; | ||
265 | + | ||
266 | + // 是否收藏 | ||
267 | + | ||
268 | + var isCollect = 2; | ||
269 | + $(".bottom_collect").click(function() { | ||
270 | + | ||
271 | + }) | ||
272 | + if (isCollect == 1) { | ||
273 | + // 收藏 | ||
274 | + let url = "img/sun_08@2x.png"; | ||
275 | + $(".collect_img_link").attr("src", url); | ||
276 | + $(".bottom_collect").css("color", "#FB7A17"); | ||
277 | + } else { | ||
278 | + let url = "img/sun_05@2x.png"; | ||
279 | + $(".collect_img_link").attr("src", url); | ||
280 | + } | ||
281 | + </script> | ||
282 | + <script> | ||
283 | + // 地图定位 | ||
284 | + var geolocation = new qq.maps.Geolocation("LQNBZ-F3L34-EQMUR-DILMD-LBR4Q-GDFOH", "myapp"); | ||
285 | + var positionNum = 0; | ||
286 | + var options = { | ||
287 | + timeout: 5000 | ||
288 | + }; | ||
289 | + | ||
290 | + function showPosition(position) { | ||
291 | + var city = position.city; //城市 | ||
292 | + var addr = position.addr; //详细地址 | ||
293 | + var lat = position.lat; // | ||
294 | + var lng = position.lng; //经纬度 | ||
295 | + } | ||
296 | + | ||
297 | + function showErr() { | ||
298 | + Toast.init(); | ||
299 | + Toast.show('定位失败', 'success', null); | ||
300 | + setTimeout(function() { | ||
301 | + Toast.hide(); | ||
302 | + }, 20000); | ||
303 | + }; | ||
304 | + $(function() { //定位 | ||
305 | + geolocation.getLocation(showPosition, showErr, options); | ||
306 | + }) | ||
307 | + </script> | ||
308 | + <style> | ||
309 | + .btn { | ||
310 | + margin-top: 0.64rem | ||
311 | + } | ||
312 | + </style> | ||
313 | +</body> | ||
314 | + | ||
315 | + | ||
316 | +</html> |
1 | +<!DOCTYPE html> | ||
2 | +<html lang="en"> | ||
3 | + | ||
4 | +<head> | ||
5 | + <meta charset="UTF-8"> | ||
6 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
7 | + <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
8 | + <title>广告商城</title> | ||
9 | + <link rel="stylesheet" href="css/public.css"> | ||
10 | + <link rel="stylesheet" href="css/advDetail.css"> | ||
11 | +</head> | ||
12 | + | ||
13 | +<body> | ||
14 | + <div class="adv_detail clearfix"> | ||
15 | + <!-- 视频 --> | ||
16 | + <div class="detail_video_wrap"> | ||
17 | + <div class="detail_video"> | ||
18 | + <video src="img/video.mp4" id="vide" controls></video> | ||
19 | + <!-- 禁止拖动 --> | ||
20 | + <div class="stop_drag"></div> | ||
21 | + <div class="video_img"> | ||
22 | + <img src="img/beff.png" alt=""> | ||
23 | + </div> | ||
24 | + <div class="detail_video_start" onclick="videoPlay()"> | ||
25 | + <img src="img/start.png" alt=""> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | + </div> | ||
29 | + <!-- 详情内容 --> | ||
30 | + <div class="detail_top"> | ||
31 | + <!-- 标题 --> | ||
32 | + <div class="detail_title">康师傅老坛酸菜牛肉面全新上市</div> | ||
33 | + <!-- 日期 --> | ||
34 | + <div class="detail_date">截止日期:<i class="end_day">2019/08/16</i></div> | ||
35 | + </div> | ||
36 | + <!-- 答题 --> | ||
37 | + <div class="detail_qust"> | ||
38 | + <!-- 单选题 --> | ||
39 | + <div class="quest_box"> | ||
40 | + <div class="quest_title">康师傅答题题目</div> | ||
41 | + <div class="quest_single"> | ||
42 | + <div class="question"> | ||
43 | + 1、方面便是什么味道 | ||
44 | + </div> | ||
45 | + <div class="answer layout align_center flex_row"> | ||
46 | + <div class="layout align_center flex_row ans_single" data-index="1"> | ||
47 | + <div class="ans_img"> | ||
48 | + <img src="img/sun_07@2x.png" alt="" class="choice_img"> | ||
49 | + </div> | ||
50 | + <div class="answer_word choice_ans">老坛酸菜牛肉面</div> | ||
51 | + </div> | ||
52 | + <div class="layout align_center flex_row ans_single" data-index="2"> | ||
53 | + <div class="ans_img"> | ||
54 | + <img src="img/sun_06@2x.png" alt="" class="choice_img"> | ||
55 | + </div> | ||
56 | + <div class="answer_word">红烧牛肉鸡蛋面</div> | ||
57 | + </div> | ||
58 | + <div class="layout align_center flex_row ans_single" data-index="3"> | ||
59 | + <div class="ans_img"> | ||
60 | + <img src="img/sun_06@2x.png" alt="" class="choice_img"> | ||
61 | + </div> | ||
62 | + <div class="answer_word">黑椒牛排酸菜牛肉面</div> | ||
63 | + </div> | ||
64 | + <div class="layout align_center flex_row ans_single" data-index="4"> | ||
65 | + <div class="ans_img"> | ||
66 | + <img src="img/sun_06@2x.png" alt="" class="choice_img"> | ||
67 | + </div> | ||
68 | + <div class="answer_word">牛骨酸菜牛肉面</div> | ||
69 | + </div> | ||
70 | + </div> | ||
71 | + </div> | ||
72 | + <div class="quest_single"> | ||
73 | + <div class="question"> | ||
74 | + 2、方面便是什么味道 | ||
75 | + </div> | ||
76 | + <div class="answer layout align_center flex_row"> | ||
77 | + <div class="layout align_center flex_row ans_single" data-index="5"> | ||
78 | + <div class="ans_img"> | ||
79 | + <img src="img/sun_07@2x.png" alt="" class="choice_img"> | ||
80 | + </div> | ||
81 | + <div class="answer_word choice_ans">老坛酸菜牛肉面</div> | ||
82 | + </div> | ||
83 | + <div class="layout align_center flex_row ans_single" data-index="6"> | ||
84 | + <div class="ans_img"> | ||
85 | + <img src="img/sun_06@2x.png" alt="" class="choice_img"> | ||
86 | + </div> | ||
87 | + <div class="answer_word">红烧牛肉鸡蛋面</div> | ||
88 | + </div> | ||
89 | + <div class="layout align_center flex_row ans_single" data-index="7"> | ||
90 | + <div class="ans_img"> | ||
91 | + <img src="img/sun_06@2x.png" alt="" class="choice_img"> | ||
92 | + </div> | ||
93 | + <div class="answer_word">黑椒牛排酸菜牛肉面</div> | ||
94 | + </div> | ||
95 | + <div class="layout align_center flex_row ans_single" data-index="8"> | ||
96 | + <div class="ans_img"> | ||
97 | + <img src="img/sun_06@2x.png" alt="" class="choice_img"> | ||
98 | + </div> | ||
99 | + <div class="answer_word">牛骨酸菜牛肉面</div> | ||
100 | + </div> | ||
101 | + </div> | ||
102 | + </div> | ||
103 | + <div class="quest_single"> | ||
104 | + <div class="question"> | ||
105 | + 3、大家好才是()。 | ||
106 | + </div> | ||
107 | + <div class="answer_fill">答案:真的好</div> | ||
108 | + <div class="answer_input_box"> | ||
109 | + <input type="text" class="answer_input" placeholder="请输入答案" /> | ||
110 | + </div> | ||
111 | + </div> | ||
112 | + <div class="btn right_btn" onclick="submit()">提交答案</div> | ||
113 | + <div class="btn error_btn">重新答题(<i class="new_time"></i>)</div> | ||
114 | + </div> | ||
115 | + <!-- 未满足答题条件 --> | ||
116 | + <div class="quest_box quest_condition"> | ||
117 | + <div class="quest_title">对不起,您未满足当前题目答题条件</div> | ||
118 | + <div class="btn_group layout align_center flex_row justify"> | ||
119 | + <div class="btn_l btn_msg">完善信息</div> | ||
120 | + <div class="btn_l btn_more">查看更多</div> | ||
121 | + </div> | ||
122 | + </div> | ||
123 | + </div> | ||
124 | + <!-- 弹窗 --> | ||
125 | + <div class="submit_modal"></div> | ||
126 | + <!-- 弹窗内容 --> | ||
127 | + <div class="submit_modal_box layout align_center justify_center"> | ||
128 | + <!-- 提交 --> | ||
129 | + <div class="submit_either"> | ||
130 | + <div class="submit_either_wrap"> | ||
131 | + <div class="submit_wrap_title"> | ||
132 | + 提示 | ||
133 | + </div> | ||
134 | + <!-- 是否提交 --> | ||
135 | + <!-- <div> | ||
136 | + <div class="submit_sure">确认提交问题答案</div> | ||
137 | + <div class="submit_btn_group layout align_center justify flex_row"> | ||
138 | + <div class="submit_btn_cancle submit_btn_all">取消</div> | ||
139 | + <div class="submit_btn_sure submit_btn_all">确认</div> | ||
140 | + </div> | ||
141 | + </div> --> | ||
142 | + <!-- 答题成功 --> | ||
143 | + <!-- <div> | ||
144 | + <div class="submit_suc"> | ||
145 | + <div class="submit_succ">答题成功</div> | ||
146 | + <div class="submit_succ">恭喜您答对了全部题目</div> | ||
147 | + </div> | ||
148 | + <div class="submit_coupon">获得红包劵:800</div> | ||
149 | + <div class="submit_more">查看更多</div> | ||
150 | + </div> --> | ||
151 | + <!-- 答题失败 --> | ||
152 | + <div> | ||
153 | + <div class="submit_suc"> | ||
154 | + <div class="submit_succ">答题失败</div> | ||
155 | + <div class="submit_succ">很遗憾您未能正确回答全部题目</div> | ||
156 | + </div> | ||
157 | + <div class="submit_more" onclick="checkMore()">查看更多</div> | ||
158 | + </div> | ||
159 | + </div> | ||
160 | + </div> | ||
161 | + </div> | ||
162 | + <!-- 底部链接 --> | ||
163 | + <div class="detail_bottom clearfix layout flex_row"> | ||
164 | + <div class="bottom_link layout align_center flex_row justify_center" onclick="Jump()"> | ||
165 | + <div class="link_img"> | ||
166 | + <img src="img/sun_10@2x.png" alt=""> | ||
167 | + </div> | ||
168 | + <a class="jump_a">https://www.baidu.com/</a> | ||
169 | + </div> | ||
170 | + <div class="bottom_collect layout align_center justify_center flex_diection"> | ||
171 | + <div class="collect_img"> | ||
172 | + <img src="img/sun_05@2x.png" alt="" class="collect_img_link"> | ||
173 | + </div> | ||
174 | + <div>收藏</div> | ||
175 | + </div> | ||
176 | + </div> | ||
177 | + </div> | ||
178 | + <script src="js/base.js"></script> | ||
179 | + <script src="js/jquery.js"></script> | ||
180 | + <script src="js/toast.js"></script> | ||
181 | + <script type="text/javascript" src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script> | ||
182 | + <script> | ||
183 | + // 截止日期 | ||
184 | + var endDay = 212321312312; //后台时间戳 | ||
185 | + $(".end_day").text(showYear(endDay)); | ||
186 | + | ||
187 | + // 视频播放 | ||
188 | + var video = document.getElementById('vide'); | ||
189 | + | ||
190 | + function videoPlay() { | ||
191 | + $(".video_img").hide(); | ||
192 | + $(".detail_video_start").hide(); | ||
193 | + video.play(); | ||
194 | + } | ||
195 | + video.addEventListener("ended", function() { | ||
196 | + $(".detail_qust").show(); | ||
197 | + $(".quest_box").removeClass("quest_ans"); | ||
198 | + // 重新答题 | ||
199 | + $(".error_btn").hide(); | ||
200 | + // 未满足答题条件 | ||
201 | + $(".quest_condition").hide(); | ||
202 | + $(".detail_top").css("margin-bottom", "0"); | ||
203 | + }) | ||
204 | + | ||
205 | + | ||
206 | + | ||
207 | + function showQuest(satisfy) { | ||
208 | + // 是否满足答题条件 | ||
209 | + var satisfy = 2; | ||
210 | + if (satisfy == 1) { | ||
211 | + // 满足 | ||
212 | + $(".quest_ans").show() | ||
213 | + } else { | ||
214 | + $(".quest_condition").show() | ||
215 | + } | ||
216 | + }; | ||
217 | + | ||
218 | + // 判断是否完善信息 | ||
219 | + var either = 1; | ||
220 | + if (either == 1) { | ||
221 | + // 未完善信息 | ||
222 | + $(".btn_msg").click(function() { | ||
223 | + window.location.href = "personalMsg.html" | ||
224 | + }) | ||
225 | + } else { | ||
226 | + $(".btn_msg").addClass("btn_all") | ||
227 | + } | ||
228 | + | ||
229 | + // 查看更多 完善信息 | ||
230 | + $(".btn_more").click(function() { | ||
231 | + window.location.href = "index.html" | ||
232 | + }) | ||
233 | + | ||
234 | + // 选择答案 | ||
235 | + $(".ans_single").click(function() { | ||
236 | + $(this).find(".answer_word").addClass("choice_ans"); | ||
237 | + $(this).find(".choice_img").attr("src", "img/sun_07@2x.png"); | ||
238 | + $(this).siblings().find(".answer_word").removeClass("choice_ans"); | ||
239 | + $(this).siblings().find(".choice_img").attr("src", "img/sun_06@2x.png"); | ||
240 | + }) | ||
241 | + | ||
242 | + | ||
243 | + | ||
244 | + // 提交答案 | ||
245 | + function submit() { | ||
246 | + $(".adv_detail").css('height', "100vh") | ||
247 | + $(".submit_modal").show(); | ||
248 | + $(".submit_modal_box").show(); | ||
249 | + } | ||
250 | + // 查看更多 答题错误 | ||
251 | + function checkMore() { | ||
252 | + // 重新答题倒计时 | ||
253 | + let newTime = 300; | ||
254 | + let newTimer = setInterval(function() { | ||
255 | + // 弹窗消失 | ||
256 | + $(".adv_detail").css('height', "auto"); | ||
257 | + $(".submit_modal").hide(); | ||
258 | + $(".submit_modal_box").hide(); | ||
259 | + // 重新答题 | ||
260 | + $(".error_btn").show(); | ||
261 | + $(".right_btn").hide(); | ||
262 | + newTime--; | ||
263 | + $(".new_time").text(changeTime(newTime)); | ||
264 | + if (newTime == 0) { | ||
265 | + clearInterval(newTimer); | ||
266 | + window.location.reload(); | ||
267 | + } | ||
268 | + }, 1000); | ||
269 | + } | ||
270 | + | ||
271 | + | ||
272 | + | ||
273 | + | ||
274 | + // 底部链接跳转 | ||
275 | + function Jump() { | ||
276 | + var webSite = $(".jump_a").text(); | ||
277 | + window.location.href = webSite; | ||
278 | + }; | ||
279 | + | ||
280 | + // 是否收藏 | ||
281 | + | ||
282 | + var isCollect = 2; | ||
283 | + $(".bottom_collect").click(function() { | ||
284 | + | ||
285 | + }) | ||
286 | + if (isCollect == 1) { | ||
287 | + // 收藏 | ||
288 | + let url = "img/sun_08@2x.png"; | ||
289 | + $(".collect_img_link").attr("src", url); | ||
290 | + $(".bottom_collect").css("color", "#FB7A17"); | ||
291 | + } else { | ||
292 | + let url = "img/sun_05@2x.png"; | ||
293 | + $(".collect_img_link").attr("src", url); | ||
294 | + } | ||
295 | + </script> | ||
296 | + <script> | ||
297 | + // 地图定位 | ||
298 | + var geolocation = new qq.maps.Geolocation("LQNBZ-F3L34-EQMUR-DILMD-LBR4Q-GDFOH", "myapp"); | ||
299 | + var positionNum = 0; | ||
300 | + var options = { | ||
301 | + timeout: 5000 | ||
302 | + }; | ||
303 | + | ||
304 | + function showPosition(position) { | ||
305 | + var city = position.city; //城市 | ||
306 | + var addr = position.addr; //详细地址 | ||
307 | + var lat = position.lat; // | ||
308 | + var lng = position.lng; //经纬度 | ||
309 | + } | ||
310 | + | ||
311 | + function showErr() { | ||
312 | + Toast.init(); | ||
313 | + Toast.show('定位失败', 'success', null); | ||
314 | + setTimeout(function() { | ||
315 | + Toast.hide(); | ||
316 | + }, 20000); | ||
317 | + }; | ||
318 | + $(function() { //定位 | ||
319 | + geolocation.getLocation(showPosition, showErr, options); | ||
320 | + }) | ||
321 | + </script> | ||
322 | + <style> | ||
323 | + .btn { | ||
324 | + margin-top: 0.64rem | ||
325 | + } | ||
326 | + </style> | ||
327 | +</body> | ||
328 | + | ||
329 | + | ||
330 | +</html> |
-
请 注册 或 登录 后发表评论