切换导航条
此项目
正在载入...
登录
王晓刚
/
advertising
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
王晓刚
5 years ago
提交
971bbd1570ae14b9be953944556826daa942c2eb
1 个父辈
7b0a9458
master
1 个管道 的构建
通过
耗费 1 秒
广告详情
变更
5
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
5 个修改的文件
包含
1087 行增加
和
103 行删除
.idea/workspace.xml
application/home/controller/Goods.php
application/home/view/goods/audio_detail.html
application/home/view/goods/content_detail.html
application/home/view/goods/video_detail.html
.idea/workspace.xml
查看文件 @
971bbd1
...
...
@@ -2,6 +2,10 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"309ad746-5b2a-4c29-af46-e7925a35765c"
name=
"默认的"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/application/home/view/goods/audio_detail.html"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/application/home/view/goods/content_detail.html"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/application/home/view/goods/video_detail.html"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/application/home/controller/Goods.php"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/application/home/controller/Goods.php"
afterDir=
"false"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
...
...
@@ -37,10 +41,19 @@
</provider>
</entry>
</file>
<file
leaf-file-name=
"content_detail.html"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/application/home/view/goods/content_detail.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"323"
>
<caret
line=
"19"
column=
"91"
selection-start-line=
"19"
selection-start-column=
"91"
selection-end-line=
"19"
selection-end-column=
"91"
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"User.php"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/application/home/controller/User.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
300
"
>
<state
relative-caret-position=
"
493
"
>
<caret
line=
"149"
column=
"46"
selection-start-line=
"149"
selection-start-column=
"35"
selection-end-line=
"149"
selection-end-column=
"46"
/>
</state>
</provider>
...
...
@@ -49,8 +62,8 @@
<file
leaf-file-name=
"WechatBase.php"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/application/common/controller/WechatBase.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"708"
>
<caret
line=
"86"
column=
"46"
selection-start-line=
"86"
selection-start-column=
"46"
selection-end-line=
"86"
selection-end-column=
"46"
/>
<state
relative-caret-position=
"623"
>
<caret
line=
"81"
column=
"14"
selection-start-line=
"81"
selection-start-column=
"14"
selection-end-line=
"81"
selection-end-column=
"14"
/>
</state>
</provider>
</entry>
...
...
@@ -67,8 +80,8 @@
<file
leaf-file-name=
"Goods.php"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/application/home/controller/Goods.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"306"
>
<caret
line=
"26"
column=
"30"
selection-start-line=
"26"
selection-start-column=
"30"
selection-end-line=
"26"
selection-end-column=
"30"
/>
<state
relative-caret-position=
"657"
>
<caret
line=
"80"
column=
"50"
selection-start-line=
"80"
selection-start-column=
"50"
selection-end-line=
"80"
selection-end-column=
"50"
/>
</state>
</provider>
</entry>
...
...
@@ -100,15 +113,6 @@
</provider>
</entry>
</file>
<file
leaf-file-name=
"nav.html"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/application/home/view/public/nav.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"51"
>
<caret
line=
"3"
column=
"22"
selection-start-line=
"3"
selection-start-column=
"22"
selection-end-line=
"3"
selection-end-column=
"49"
/>
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component
name=
"FileTemplateManagerImpl"
>
...
...
@@ -127,7 +131,11 @@
<find>
row
</find>
<find>
statusList
</find>
<find>
money
</find>
<find>
target_url
</find>
</findStrings>
<replaceStrings>
<replace
/>
</replaceStrings>
</component>
<component
name=
"Git.Settings"
>
<option
name=
"RECENT_GIT_ROOT_PATH"
value=
"$PROJECT_DIR$"
/>
...
...
@@ -135,7 +143,6 @@
<component
name=
"IdeDocumentHistory"
>
<option
name=
"CHANGED_PATHS"
>
<list>
<option
value=
"$PROJECT_DIR$/public/assets/js/backend/pay.js"
/>
<option
value=
"$PROJECT_DIR$/application/admin/view/pay_view/index.html"
/>
<option
value=
"$PROJECT_DIR$/public/assets/js/backend/pay_view.js"
/>
<option
value=
"$PROJECT_DIR$/application/admin/view/user_money_log/index.html"
/>
...
...
@@ -183,8 +190,9 @@
<option
value=
"$PROJECT_DIR$/application/home/view/public/head.html"
/>
<option
value=
"$PROJECT_DIR$/application/home/view/index/index.html"
/>
<option
value=
"$PROJECT_DIR$/application/home/view/user/authorization_view.html"
/>
<option
value=
"$PROJECT_DIR$/application/common/controller/WechatBase.php"
/>
<option
value=
"$PROJECT_DIR$/application/home/controller/User.php"
/>
<option
value=
"$PROJECT_DIR$/application/common/controller/WechatBase.php"
/>
<option
value=
"$PROJECT_DIR$/application/home/view/goods/content_detail.html"
/>
<option
value=
"$PROJECT_DIR$/application/home/controller/Goods.php"
/>
</list>
</option>
...
...
@@ -276,35 +284,21 @@
<item
name=
"advertising"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"advertising"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"application"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"admin"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"advertising"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"advertising"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"application"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"admin"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"view"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"advertising"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"advertising"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"application"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"admin"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"view"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"index"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"home"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"advertising"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"advertising"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"application"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"home"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"controller"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"advertising"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"advertising"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"application"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"home"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
controller
"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
view
"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"advertising"
type=
"b2602c69:ProjectViewProjectNode"
/>
...
...
@@ -312,6 +306,7 @@
<item
name=
"application"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"home"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"view"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"goods"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"advertising"
type=
"b2602c69:ProjectViewProjectNode"
/>
...
...
@@ -401,11 +396,11 @@
</component>
<component
name=
"RecentsManager"
>
<key
name=
"CopyFile.RECENT_KEYS"
>
<recent
name=
"D:\wamp\www\advertising\application\home\view\goods"
/>
<recent
name=
"D:\wamp\www\advertising\application\home\view\user"
/>
<recent
name=
"D:\wamp\www\advertising\application\home\view\public"
/>
<recent
name=
"D:\wamp\www\advertising\application\home\view\index"
/>
<recent
name=
"D:\wamp\www\advertising\public\assets\advertising"
/>
<recent
name=
"D:\wamp\www\advertising\public\assets\img"
/>
</key>
<key
name=
"MoveFile.RECENT_KEYS"
>
<recent
name=
"D:\wamp\www\advertising\public\assets\js\backend"
/>
...
...
@@ -448,28 +443,7 @@
<workItem
from=
"1572223206994"
duration=
"28857000"
/>
<workItem
from=
"1572309778506"
duration=
"26117000"
/>
<workItem
from=
"1572395935540"
duration=
"28313000"
/>
<workItem
from=
"1572483209367"
duration=
"14299000"
/>
</task>
<task
id=
"LOCAL-00005"
summary=
"调试授权"
>
<created>
1571975758832
</created>
<option
name=
"number"
value=
"00005"
/>
<option
name=
"presentableId"
value=
"LOCAL-00005"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1571975758832
</updated>
</task>
<task
id=
"LOCAL-00006"
summary=
"调试授权"
>
<created>
1571975940473
</created>
<option
name=
"number"
value=
"00006"
/>
<option
name=
"presentableId"
value=
"LOCAL-00006"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1571975940473
</updated>
</task>
<task
id=
"LOCAL-00007"
summary=
"调试授权"
>
<created>
1571975978410
</created>
<option
name=
"number"
value=
"00007"
/>
<option
name=
"presentableId"
value=
"LOCAL-00007"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1571975978410
</updated>
<workItem
from=
"1572483209367"
duration=
"16126000"
/>
</task>
<task
id=
"LOCAL-00008"
summary=
"调试授权"
>
<created>
1571976018612
</created>
...
...
@@ -793,27 +767,48 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1572505172092
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"54"
/>
<task
id=
"LOCAL-00054"
summary=
"调试授权登录"
>
<created>
1572505198570
</created>
<option
name=
"number"
value=
"00054"
/>
<option
name=
"presentableId"
value=
"LOCAL-00054"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1572505198570
</updated>
</task>
<task
id=
"LOCAL-00055"
summary=
"调试授权登录"
>
<created>
1572505235631
</created>
<option
name=
"number"
value=
"00055"
/>
<option
name=
"presentableId"
value=
"LOCAL-00055"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1572505235631
</updated>
</task>
<task
id=
"LOCAL-00056"
summary=
"调试授权登录"
>
<created>
1572505562274
</created>
<option
name=
"number"
value=
"00056"
/>
<option
name=
"presentableId"
value=
"LOCAL-00056"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1572505562274
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"57"
/>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"22
7837
000"
/>
<option
name=
"totallyTimeSpent"
value=
"22
9664
000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"-8"
y=
"-8"
width=
"1936"
height=
"1056"
extended-state=
"6"
/>
<editor
active=
"true"
/>
<layout>
<window_info
active=
"true"
content_ui=
"combo"
id=
"Project"
order=
"0"
visible=
"true"
weight=
"0.1380597"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<window_info
anchor=
"bottom"
id=
"调试"
order=
"7"
/>
<window_info
anchor=
"bottom"
id=
"Docker"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"7"
side_tool=
"true"
weight=
"0.32997763"
/>
<window_info
anchor=
"right"
id=
"Database"
order=
"3"
/>
<window_info
anchor=
"bottom"
id=
"Database Changes"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
id=
"Structure"
order=
"1"
side_tool=
"true"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"7"
weight=
"0.32997763"
/>
<window_info
anchor=
"bottom"
id=
"运行"
order=
"7"
/>
<window_info
active=
"true"
content_ui=
"combo"
id=
"Project"
order=
"0"
visible=
"true"
weight=
"0.1380597"
/>
<window_info
anchor=
"bottom"
id=
"Docker"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
anchor=
"right"
id=
"Database"
order=
"3"
/>
<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=
"找到"
order=
"8"
weight=
"0.32997763"
/>
<window_info
anchor=
"right"
content_ui=
"combo"
id=
"Hierarchy"
order=
"2"
weight=
"0.25"
/>
...
...
@@ -870,33 +865,6 @@
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"调试授权登录"
/>
</component>
<component
name=
"editorHistoryManager"
>
<entry
file=
"file://$PROJECT_DIR$/public/assets/js/backend/goods_audit.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"408"
>
<caret
line=
"129"
column=
"75"
selection-start-line=
"129"
selection-start-column=
"75"
selection-end-line=
"129"
selection-end-column=
"75"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/application/admin/controller/GoodsAudit.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"340"
>
<caret
line=
"20"
column=
"31"
selection-start-line=
"20"
selection-start-column=
"31"
selection-end-line=
"20"
selection-end-column=
"104"
/>
<folding>
<element
signature=
"e#40#74#0#PHP"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/application/admin/controller/MerchantGoods.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"340"
>
<caret
line=
"20"
column=
"4"
selection-start-line=
"20"
selection-start-column=
"4"
selection-end-line=
"20"
selection-end-column=
"43"
/>
<folding>
<element
signature=
"e#40#74#0#PHP"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/public/assets/js/backend/merchant_goods.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-408"
>
...
...
@@ -1195,13 +1163,30 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/thinkphp/library/traits/controller/Jump.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"341"
>
<caret
line=
"142"
column=
"45"
selection-start-line=
"142"
selection-start-column=
"38"
selection-end-line=
"142"
selection-end-column=
"45"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/vendor/overtrue/socialite/src/Providers/AbstractProvider.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"289"
>
<caret
line=
"160"
column=
"20"
selection-start-line=
"160"
selection-start-column=
"20"
selection-end-line=
"160"
selection-end-column=
"20"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/application/common/controller/WechatBase.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"708"
>
<caret
line=
"86"
column=
"46"
selection-start-line=
"86"
selection-start-column=
"46"
selection-end-line=
"86"
selection-end-column=
"46"
/>
<state
relative-caret-position=
"623"
>
<caret
line=
"81"
column=
"14"
selection-start-line=
"81"
selection-start-column=
"14"
selection-end-line=
"81"
selection-end-column=
"14"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/application/home/view/goods/video_detail.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/application/home/view/user/authorization_view.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"238"
>
...
...
@@ -1212,31 +1197,31 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
thinkphp/library/traits/controller/Jump.php
"
>
<entry
file=
"file://$PROJECT_DIR$/
application/home/view/goods/content_detail.html
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"341"
>
<caret
line=
"142"
column=
"45"
selection-start-line=
"142"
selection-start-column=
"38"
selection-end-line=
"142"
selection-end-column=
"45"
/>
<state
relative-caret-position=
"323"
>
<caret
line=
"19"
column=
"91"
selection-start-line=
"19"
selection-start-column=
"91"
selection-end-line=
"19"
selection-end-column=
"91"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/application/home/controller/
User
.php"
>
<entry
file=
"file://$PROJECT_DIR$/application/home/controller/
Index
.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"300"
>
<caret
line=
"149"
column=
"46"
selection-start-line=
"149"
selection-start-column=
"35"
selection-end-line=
"149"
selection-end-column=
"46"
/>
<state
relative-caret-position=
"334"
>
<caret
line=
"78"
column=
"13"
selection-start-line=
"78"
selection-start-column=
"13"
selection-end-line=
"78"
selection-end-column=
"13"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/application/home/controller/
Index
.php"
>
<entry
file=
"file://$PROJECT_DIR$/application/home/controller/
User
.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"334"
>
<caret
line=
"78"
column=
"13"
selection-start-line=
"78"
selection-start-column=
"13"
selection-end-line=
"78"
selection-end-column=
"13"
/>
<state
relative-caret-position=
"493"
>
<caret
line=
"149"
column=
"46"
selection-start-line=
"149"
selection-start-column=
"35"
selection-end-line=
"149"
selection-end-column=
"46"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/application/home/controller/Goods.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"306"
>
<caret
line=
"26"
column=
"30"
selection-start-line=
"26"
selection-start-column=
"30"
selection-end-line=
"26"
selection-end-column=
"30"
/>
<state
relative-caret-position=
"657"
>
<caret
line=
"80"
column=
"50"
selection-start-line=
"80"
selection-start-column=
"50"
selection-end-line=
"80"
selection-end-column=
"50"
/>
</state>
</provider>
</entry>
...
...
application/home/controller/Goods.php
查看文件 @
971bbd1
...
...
@@ -73,6 +73,14 @@ class Goods extends WechatBase
$this
->
error
(
'查无此人'
);
}
$this
->
assign
(
'data'
,
$data
);
return
$this
->
fetch
();
if
(
$data
[
'type'
]
==
1
){
return
$this
->
fetch
(
'video_detail'
);
}
else
if
(
$data
[
'type'
]
==
2
){
return
$this
->
fetch
(
'audio_detail'
);
}
else
if
(
$data
[
'type'
]
==
3
){
return
$this
->
fetch
(
'content_detail'
);
}
else
{
$this
->
error
(
'未知类型'
);
}
}
}
\ No newline at end of file
...
...
application/home/view/goods/audio_detail.html
0 → 100644
查看文件 @
971bbd1
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<title>
广告商城
</title>
<link
rel=
"stylesheet"
href=
"css/public.css"
>
<link
rel=
"stylesheet"
href=
"css/advDetail.css"
>
</head>
<body>
<div
class=
"adv_detail clearfix"
>
<!-- 详情内容 -->
<div
class=
"detail_top"
>
<!-- 标题 -->
<div
class=
"detail_title"
>
康师傅老坛酸菜牛肉面全新上市
</div>
<!-- 日期 -->
<div
class=
"detail_date"
>
截止日期:
<i
class=
"end_day"
>
2019/08/16
</i></div>
<!-- 音频 -->
<div
class=
"detail_audio_wrap "
>
<div
class=
"audio_single flex_row align_center layout"
>
<div
class=
"audio_style"
>
<audio
src=
"img/audio.mp3"
id=
"audio1"
></audio>
</div>
<div
class=
"audio_play"
>
<b
class=
"b1"
></b>
<b
class=
"b2"
></b>
<b
class=
"b3"
></b>
<b
class=
"b4"
></b>
<b
class=
"b5"
></b>
</div>
<div
class=
"audio_time"
></div>
</div>
</div>
</div>
<!-- 答题 -->
<div
class=
"detail_qust"
>
<!-- 单选题 -->
<div
class=
"quest_box"
>
<div
class=
"quest_title"
>
康师傅答题题目
</div>
<div
class=
"quest_single"
>
<div
class=
"question"
>
1、方面便是什么味道
</div>
<div
class=
"answer layout align_center flex_row"
>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"1"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_07@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word choice_ans"
>
老坛酸菜牛肉面
</div>
</div>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"2"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_06@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word"
>
红烧牛肉鸡蛋面
</div>
</div>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"3"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_06@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word"
>
黑椒牛排酸菜牛肉面
</div>
</div>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"4"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_06@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word"
>
牛骨酸菜牛肉面
</div>
</div>
</div>
</div>
<div
class=
"quest_single"
>
<div
class=
"question"
>
2、方面便是什么味道
</div>
<div
class=
"answer layout align_center flex_row"
>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"5"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_07@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word choice_ans"
>
老坛酸菜牛肉面
</div>
</div>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"6"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_06@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word"
>
红烧牛肉鸡蛋面
</div>
</div>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"7"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_06@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word"
>
黑椒牛排酸菜牛肉面
</div>
</div>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"8"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_06@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word"
>
牛骨酸菜牛肉面
</div>
</div>
</div>
</div>
<div
class=
"quest_single"
>
<div
class=
"question"
>
3、大家好才是()。
</div>
<div
class=
"answer_fill"
>
答案:真的好
</div>
<div
class=
"answer_input_box"
>
<input
type=
"text"
class=
"answer_input"
placeholder=
"请输入答案"
/>
</div>
</div>
<div
class=
"btn right_btn"
onclick=
"submit()"
>
提交答案
</div>
<div
class=
"btn error_btn"
>
重新答题(
<i
class=
"new_time"
></i>
)
</div>
</div>
<!-- 未满足答题条件 -->
<div
class=
"quest_box quest_condition"
>
<div
class=
"quest_title"
>
对不起,您未满足当前题目答题条件
</div>
<div
class=
"btn_group layout align_center flex_row justify"
>
<div
class=
"btn_l btn_msg"
>
完善信息
</div>
<div
class=
"btn_l btn_more"
>
查看更多
</div>
</div>
</div>
</div>
<!-- 弹窗 -->
<div
class=
"submit_modal"
></div>
<!-- 弹窗内容 -->
<div
class=
"submit_modal_box layout align_center justify_center"
>
<!-- 提交 -->
<div
class=
"submit_either"
>
<div
class=
"submit_either_wrap"
>
<div
class=
"submit_wrap_title"
>
提示
</div>
<!-- 是否提交 -->
<!-- <div>
<div class="submit_sure">确认提交问题答案</div>
<div class="submit_btn_group layout align_center justify flex_row">
<div class="submit_btn_cancle submit_btn_all">取消</div>
<div class="submit_btn_sure submit_btn_all">确认</div>
</div>
</div> -->
<!-- 答题成功 -->
<!-- <div>
<div class="submit_suc">
<div class="submit_succ">答题成功</div>
<div class="submit_succ">恭喜您答对了全部题目</div>
</div>
<div class="submit_coupon">获得红包劵:800</div>
<div class="submit_more">查看更多</div>
</div> -->
<!-- 答题失败 -->
<div>
<div
class=
"submit_suc"
>
<div
class=
"submit_succ"
>
答题失败
</div>
<div
class=
"submit_succ"
>
很遗憾您未能正确回答全部题目
</div>
</div>
<div
class=
"submit_more"
onclick=
"checkMore()"
>
查看更多
</div>
</div>
</div>
</div>
</div>
<!-- 底部链接 -->
<div
class=
"detail_bottom clearfix layout flex_row"
>
<div
class=
"bottom_link layout align_center flex_row justify_center"
onclick=
"Jump()"
>
<div
class=
"link_img"
>
<img
src=
"img/sun_10@2x.png"
alt=
""
>
</div>
<a
class=
"jump_a"
>
https://www.baidu.com/
</a>
</div>
<div
class=
"bottom_collect layout align_center justify_center flex_diection"
>
<div
class=
"collect_img"
>
<img
src=
"img/sun_05@2x.png"
alt=
""
class=
"collect_img_link"
>
</div>
<div>
收藏
</div>
</div>
</div>
</div>
<script
src=
"js/base.js"
></script>
<script
src=
"js/jquery.js"
></script>
<script
src=
"js/toast.js"
></script>
<script
type=
"text/javascript"
src=
"https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"
></script>
<script>
// 截止日期
var
endDay
=
212321312312
;
//后台时间戳
$
(
".end_day"
).
text
(
showYear
(
endDay
));
// 音频
var
audio1
=
document
.
getElementById
(
"audio1"
);
// 音频时长
let
audioTime
=
parseInt
(
audio1
.
duration
);
$
(
".audio_time"
).
text
(
changeTime
(
audioTime
));
$
(
".audio_style"
).
click
(
function
()
{
audio1
.
play
();
var
audioTimer
=
setInterval
(
function
()
{
audioTime
--
;
if
(
audioTime
%
2
==
0
)
{
$
(
".b3"
).
siblings
().
removeClass
(
"b_active"
)
}
else
{
$
(
".b1"
).
addClass
(
"b_active"
);
$
(
".b5"
).
addClass
(
"b_active"
);
}
if
(
audioTime
<=
0
)
{
audioTime
=
parseInt
(
audio1
.
duration
);
$
(
".b3"
).
siblings
().
removeClass
(
"b_active"
)
clearInterval
(
audioTimer
)
}
},
1000
);
})
audio1
.
addEventListener
(
"ended"
,
function
()
{
$
(
".detail_qust"
).
show
();
$
(
".quest_box"
).
removeClass
(
"quest_ans"
);
// 重新答题
$
(
".error_btn"
).
hide
();
})
function
showQuest
(
satisfy
)
{
// 是否满足答题条件
var
satisfy
=
2
;
if
(
satisfy
==
1
)
{
// 满足
$
(
".quest_ans"
).
show
()
}
else
{
$
(
".quest_condition"
).
show
()
}
};
// 判断是否完善信息
var
either
=
1
;
if
(
either
==
1
)
{
// 未完善信息
$
(
".btn_msg"
).
click
(
function
()
{
window
.
location
.
href
=
"personalMsg.html"
})
}
else
{
$
(
".btn_msg"
).
addClass
(
"btn_all"
)
}
// 查看更多 完善信息
$
(
".btn_more"
).
click
(
function
()
{
window
.
location
.
href
=
"index.html"
})
// 选择答案
$
(
".ans_single"
).
click
(
function
()
{
$
(
this
).
find
(
".answer_word"
).
addClass
(
"choice_ans"
);
$
(
this
).
find
(
".choice_img"
).
attr
(
"src"
,
"img/sun_07@2x.png"
);
$
(
this
).
siblings
().
find
(
".answer_word"
).
removeClass
(
"choice_ans"
);
$
(
this
).
siblings
().
find
(
".choice_img"
).
attr
(
"src"
,
"img/sun_06@2x.png"
);
})
// 提交答案
function
submit
()
{
$
(
".adv_detail"
).
css
(
'height'
,
"100vh"
)
$
(
".submit_modal"
).
show
();
$
(
".submit_modal_box"
).
show
();
}
// 查看更多 答题错误
function
checkMore
()
{
// 重新答题倒计时
let
newTime
=
300
;
let
newTimer
=
setInterval
(
function
()
{
newTime
--
;
$
(
".new_time"
).
text
(
changeTime
(
newTime
));
// 弹窗消失
$
(
".adv_detail"
).
css
(
'height'
,
"auto"
);
$
(
".submit_modal"
).
hide
();
$
(
".submit_modal_box"
).
hide
();
// 重新答题
$
(
".error_btn"
).
show
();
$
(
".right_btn"
).
hide
();
if
(
newTime
==
0
)
{
clearInterval
(
newTimer
);
window
.
location
.
reload
();
}
},
1000
);
}
// 底部链接跳转
function
Jump
()
{
var
webSite
=
$
(
".jump_a"
).
text
();
window
.
location
.
href
=
webSite
;
};
// 是否收藏
var
isCollect
=
2
;
$
(
".bottom_collect"
).
click
(
function
()
{
})
if
(
isCollect
==
1
)
{
// 收藏
let
url
=
"img/sun_08@2x.png"
;
$
(
".collect_img_link"
).
attr
(
"src"
,
url
);
$
(
".bottom_collect"
).
css
(
"color"
,
"#FB7A17"
);
}
else
{
let
url
=
"img/sun_05@2x.png"
;
$
(
".collect_img_link"
).
attr
(
"src"
,
url
);
}
</script>
<script>
// 地图定位
var
geolocation
=
new
qq
.
maps
.
Geolocation
(
"LQNBZ-F3L34-EQMUR-DILMD-LBR4Q-GDFOH"
,
"myapp"
);
var
positionNum
=
0
;
var
options
=
{
timeout
:
5000
};
function
showPosition
(
position
)
{
var
city
=
position
.
city
;
//城市
var
addr
=
position
.
addr
;
//详细地址
var
lat
=
position
.
lat
;
//
var
lng
=
position
.
lng
;
//经纬度
}
function
showErr
()
{
Toast
.
init
();
Toast
.
show
(
'定位失败'
,
'success'
,
null
);
setTimeout
(
function
()
{
Toast
.
hide
();
},
20000
);
};
$
(
function
()
{
//定位
geolocation
.
getLocation
(
showPosition
,
showErr
,
options
);
})
</script>
<style>
.btn
{
margin-top
:
0.64rem
}
</style>
</body>
</html>
\ No newline at end of file
...
...
application/home/view/goods/content_detail.html
0 → 100644
查看文件 @
971bbd1
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<title>
广告商城
</title>
<link
rel=
"stylesheet"
href=
"css/public.css"
>
<link
rel=
"stylesheet"
href=
"css/advDetail.css"
>
</head>
<body>
<div
class=
"adv_detail clearfix"
>
<!-- 详情内容 -->
<div
class=
"detail_top"
>
<!-- 标题 -->
<div
class=
"detail_title"
>
{$data.goods_name}
</div>
<!-- 日期 -->
<div
class=
"detail_date"
>
截止日期:
<i
class=
"end_day"
>
{:date('Y/m/d',$vo['end_time'])}
</i></div>
<!-- 描述 -->
<div
class=
"detail_word_wrap"
>
{$data.content}
</div>
</div>
<!-- 答题 -->
<div
class=
"detail_qust"
>
<!-- 单选题 -->
<div
class=
"quest_box quest_ans"
>
<div
class=
"quest_title"
>
题目
</div>
<div
class=
"quest_single"
>
<div
class=
"question"
>
1、方面便是什么味道
</div>
<div
class=
"answer layout align_center flex_row"
>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"1"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_07@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word choice_ans"
>
老坛酸菜牛肉面
</div>
</div>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"2"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_06@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word"
>
红烧牛肉鸡蛋面
</div>
</div>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"3"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_06@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word"
>
黑椒牛排酸菜牛肉面
</div>
</div>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"4"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_06@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word"
>
牛骨酸菜牛肉面
</div>
</div>
</div>
</div>
<div
class=
"quest_single"
>
<div
class=
"question"
>
2、方面便是什么味道
</div>
<div
class=
"answer layout align_center flex_row"
>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"5"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_07@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word choice_ans"
>
老坛酸菜牛肉面
</div>
</div>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"6"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_06@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word"
>
红烧牛肉鸡蛋面
</div>
</div>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"7"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_06@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word"
>
黑椒牛排酸菜牛肉面
</div>
</div>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"8"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_06@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word"
>
牛骨酸菜牛肉面
</div>
</div>
</div>
</div>
<div
class=
"quest_single"
>
<div
class=
"question"
>
3、大家好才是()。
</div>
<div
class=
"answer_fill"
>
答案:真的好
</div>
<div
class=
"answer_input_box"
>
<input
type=
"text"
class=
"answer_input"
placeholder=
"请输入答案"
/>
</div>
</div>
<div
class=
"btn right_btn"
onclick=
"submit()"
>
提交答案
</div>
<div
class=
"btn error_btn"
>
重新答题(
<i
class=
"new_time"
></i>
)
</div>
</div>
<!-- 未满足答题条件 -->
<div
class=
"quest_box quest_condition"
>
<div
class=
"quest_title"
>
对不起,您未满足当前题目答题条件
</div>
<div
class=
"btn_group layout align_center flex_row justify"
>
<div
class=
"btn_l btn_msg"
>
完善信息
</div>
<div
class=
"btn_l btn_more"
>
查看更多
</div>
</div>
</div>
</div>
<!-- 弹窗 -->
<div
class=
"submit_modal"
></div>
<!-- 弹窗内容 -->
<div
class=
"submit_modal_box layout align_center justify_center"
>
<!-- 提交 -->
<div
class=
"submit_either"
>
<div
class=
"submit_either_wrap"
>
<div
class=
"submit_wrap_title"
>
提示
</div>
<!-- 是否提交 -->
<!-- <div>
<div class="submit_sure">确认提交问题答案</div>
<div class="submit_btn_group layout align_center justify flex_row">
<div class="submit_btn_cancle submit_btn_all">取消</div>
<div class="submit_btn_sure submit_btn_all">确认</div>
</div>
</div> -->
<!-- 答题成功 -->
<!-- <div>
<div class="submit_suc">
<div class="submit_succ">答题成功</div>
<div class="submit_succ">恭喜您答对了全部题目</div>
</div>
<div class="submit_coupon">获得红包劵:800</div>
<div class="submit_more">查看更多</div>
</div> -->
<!-- 答题失败 -->
<div>
<div
class=
"submit_suc"
>
<div
class=
"submit_succ"
>
答题失败
</div>
<div
class=
"submit_succ"
>
很遗憾您未能正确回答全部题目
</div>
</div>
<div
class=
"submit_more"
onclick=
"checkMore()"
>
查看更多
</div>
</div>
</div>
</div>
</div>
<!-- 底部链接 -->
<div
class=
"detail_bottom clearfix layout flex_row"
>
<div
class=
"bottom_link layout align_center flex_row justify_center"
onclick=
"Jump()"
>
<div
class=
"link_img"
>
<img
src=
"img/sun_10@2x.png"
alt=
""
>
</div>
<a
class=
"jump_a"
>
https://www.baidu.com/
</a>
</div>
<div
class=
"bottom_collect layout align_center justify_center flex_diection"
>
<div
class=
"collect_img"
>
<img
src=
"img/sun_05@2x.png"
alt=
""
class=
"collect_img_link"
>
</div>
<div>
收藏
</div>
</div>
</div>
</div>
<script
src=
"js/base.js"
></script>
<script
src=
"js/jquery.js"
></script>
<script
src=
"js/toast.js"
></script>
<script
type=
"text/javascript"
src=
"https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"
></script>
<script>
// 截止日期
var
endDay
=
212321312312
;
//后台时间戳
$
(
".end_day"
).
text
(
showYear
(
endDay
));
// 图文显示
var
contenTimer
=
null
;
let
timer
=
3000
;
contenTimer
=
setInterval
(
function
()
{
$
(
".detail_qust"
).
show
();
$
(
".quest_box"
).
removeClass
(
"quest_ans"
);
// 重新答题
$
(
".error_btn"
).
hide
();
// 未满足答题条件
// $(".quest_condition").hide();
$
(
".detail_top"
).
css
(
"margin-bottom"
,
"0"
);
clearInterval
(
contenTimer
);
},
timer
)
function
showQuest
(
satisfy
)
{
// 是否满足答题条件
var
satisfy
=
2
;
if
(
satisfy
==
1
)
{
// 满足
$
(
".quest_ans"
).
show
()
}
else
{
$
(
".quest_condition"
).
show
()
}
};
// 判断是否完善信息
var
either
=
1
;
if
(
either
==
1
)
{
// 未完善信息
$
(
".btn_msg"
).
click
(
function
()
{
window
.
location
.
href
=
"personalMsg.html"
})
}
else
{
$
(
".btn_msg"
).
addClass
(
"btn_all"
);
}
// 查看更多 完善信息
$
(
".btn_more"
).
click
(
function
()
{
window
.
location
.
href
=
"index.html"
})
// 选择答案
$
(
".ans_single"
).
click
(
function
()
{
$
(
this
).
find
(
".answer_word"
).
addClass
(
"choice_ans"
);
$
(
this
).
find
(
".choice_img"
).
attr
(
"src"
,
"img/sun_07@2x.png"
);
$
(
this
).
siblings
().
find
(
".answer_word"
).
removeClass
(
"choice_ans"
);
$
(
this
).
siblings
().
find
(
".choice_img"
).
attr
(
"src"
,
"img/sun_06@2x.png"
);
})
// 提交答案
function
submit
()
{
$
(
".adv_detail"
).
css
(
'height'
,
"100vh"
)
$
(
".submit_modal"
).
show
();
$
(
".submit_modal_box"
).
show
();
}
// 查看更多 答题错误
function
checkMore
()
{
// 弹窗消失
$
(
".adv_detail"
).
css
(
'height'
,
"auto"
);
$
(
".submit_modal"
).
hide
();
$
(
".submit_modal_box"
).
hide
();
// 重新答题
$
(
".error_btn"
).
show
();
$
(
".right_btn"
).
hide
();
// 重新答题倒计时
let
newTime
=
300
;
let
newTimer
=
setInterval
(
function
()
{
newTime
--
;
$
(
".new_time"
).
text
(
changeTime
(
newTime
));
if
(
newTime
==
0
)
{
clearInterval
(
newTimer
);
window
.
location
.
reload
();
}
},
1000
);
}
// 底部链接跳转
function
Jump
()
{
var
webSite
=
$
(
".jump_a"
).
text
();
window
.
location
.
href
=
webSite
;
};
// 是否收藏
var
isCollect
=
2
;
$
(
".bottom_collect"
).
click
(
function
()
{
})
if
(
isCollect
==
1
)
{
// 收藏
let
url
=
"img/sun_08@2x.png"
;
$
(
".collect_img_link"
).
attr
(
"src"
,
url
);
$
(
".bottom_collect"
).
css
(
"color"
,
"#FB7A17"
);
}
else
{
let
url
=
"img/sun_05@2x.png"
;
$
(
".collect_img_link"
).
attr
(
"src"
,
url
);
}
</script>
<script>
// 地图定位
var
geolocation
=
new
qq
.
maps
.
Geolocation
(
"LQNBZ-F3L34-EQMUR-DILMD-LBR4Q-GDFOH"
,
"myapp"
);
var
positionNum
=
0
;
var
options
=
{
timeout
:
5000
};
function
showPosition
(
position
)
{
var
city
=
position
.
city
;
//城市
var
addr
=
position
.
addr
;
//详细地址
var
lat
=
position
.
lat
;
//
var
lng
=
position
.
lng
;
//经纬度
}
function
showErr
()
{
Toast
.
init
();
Toast
.
show
(
'定位失败'
,
'success'
,
null
);
setTimeout
(
function
()
{
Toast
.
hide
();
},
20000
);
};
$
(
function
()
{
//定位
geolocation
.
getLocation
(
showPosition
,
showErr
,
options
);
})
</script>
<style>
.btn
{
margin-top
:
0.64rem
}
</style>
</body>
</html>
\ No newline at end of file
...
...
application/home/view/goods/video_detail.html
0 → 100644
查看文件 @
971bbd1
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<title>
广告商城
</title>
<link
rel=
"stylesheet"
href=
"css/public.css"
>
<link
rel=
"stylesheet"
href=
"css/advDetail.css"
>
</head>
<body>
<div
class=
"adv_detail clearfix"
>
<!-- 视频 -->
<div
class=
"detail_video_wrap"
>
<div
class=
"detail_video"
>
<video
src=
"img/video.mp4"
id=
"vide"
controls
></video>
<!-- 禁止拖动 -->
<div
class=
"stop_drag"
></div>
<div
class=
"video_img"
>
<img
src=
"img/beff.png"
alt=
""
>
</div>
<div
class=
"detail_video_start"
onclick=
"videoPlay()"
>
<img
src=
"img/start.png"
alt=
""
>
</div>
</div>
</div>
<!-- 详情内容 -->
<div
class=
"detail_top"
>
<!-- 标题 -->
<div
class=
"detail_title"
>
康师傅老坛酸菜牛肉面全新上市
</div>
<!-- 日期 -->
<div
class=
"detail_date"
>
截止日期:
<i
class=
"end_day"
>
2019/08/16
</i></div>
</div>
<!-- 答题 -->
<div
class=
"detail_qust"
>
<!-- 单选题 -->
<div
class=
"quest_box"
>
<div
class=
"quest_title"
>
康师傅答题题目
</div>
<div
class=
"quest_single"
>
<div
class=
"question"
>
1、方面便是什么味道
</div>
<div
class=
"answer layout align_center flex_row"
>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"1"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_07@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word choice_ans"
>
老坛酸菜牛肉面
</div>
</div>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"2"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_06@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word"
>
红烧牛肉鸡蛋面
</div>
</div>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"3"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_06@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word"
>
黑椒牛排酸菜牛肉面
</div>
</div>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"4"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_06@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word"
>
牛骨酸菜牛肉面
</div>
</div>
</div>
</div>
<div
class=
"quest_single"
>
<div
class=
"question"
>
2、方面便是什么味道
</div>
<div
class=
"answer layout align_center flex_row"
>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"5"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_07@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word choice_ans"
>
老坛酸菜牛肉面
</div>
</div>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"6"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_06@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word"
>
红烧牛肉鸡蛋面
</div>
</div>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"7"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_06@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word"
>
黑椒牛排酸菜牛肉面
</div>
</div>
<div
class=
"layout align_center flex_row ans_single"
data-index=
"8"
>
<div
class=
"ans_img"
>
<img
src=
"img/sun_06@2x.png"
alt=
""
class=
"choice_img"
>
</div>
<div
class=
"answer_word"
>
牛骨酸菜牛肉面
</div>
</div>
</div>
</div>
<div
class=
"quest_single"
>
<div
class=
"question"
>
3、大家好才是()。
</div>
<div
class=
"answer_fill"
>
答案:真的好
</div>
<div
class=
"answer_input_box"
>
<input
type=
"text"
class=
"answer_input"
placeholder=
"请输入答案"
/>
</div>
</div>
<div
class=
"btn right_btn"
onclick=
"submit()"
>
提交答案
</div>
<div
class=
"btn error_btn"
>
重新答题(
<i
class=
"new_time"
></i>
)
</div>
</div>
<!-- 未满足答题条件 -->
<div
class=
"quest_box quest_condition"
>
<div
class=
"quest_title"
>
对不起,您未满足当前题目答题条件
</div>
<div
class=
"btn_group layout align_center flex_row justify"
>
<div
class=
"btn_l btn_msg"
>
完善信息
</div>
<div
class=
"btn_l btn_more"
>
查看更多
</div>
</div>
</div>
</div>
<!-- 弹窗 -->
<div
class=
"submit_modal"
></div>
<!-- 弹窗内容 -->
<div
class=
"submit_modal_box layout align_center justify_center"
>
<!-- 提交 -->
<div
class=
"submit_either"
>
<div
class=
"submit_either_wrap"
>
<div
class=
"submit_wrap_title"
>
提示
</div>
<!-- 是否提交 -->
<!-- <div>
<div class="submit_sure">确认提交问题答案</div>
<div class="submit_btn_group layout align_center justify flex_row">
<div class="submit_btn_cancle submit_btn_all">取消</div>
<div class="submit_btn_sure submit_btn_all">确认</div>
</div>
</div> -->
<!-- 答题成功 -->
<!-- <div>
<div class="submit_suc">
<div class="submit_succ">答题成功</div>
<div class="submit_succ">恭喜您答对了全部题目</div>
</div>
<div class="submit_coupon">获得红包劵:800</div>
<div class="submit_more">查看更多</div>
</div> -->
<!-- 答题失败 -->
<div>
<div
class=
"submit_suc"
>
<div
class=
"submit_succ"
>
答题失败
</div>
<div
class=
"submit_succ"
>
很遗憾您未能正确回答全部题目
</div>
</div>
<div
class=
"submit_more"
onclick=
"checkMore()"
>
查看更多
</div>
</div>
</div>
</div>
</div>
<!-- 底部链接 -->
<div
class=
"detail_bottom clearfix layout flex_row"
>
<div
class=
"bottom_link layout align_center flex_row justify_center"
onclick=
"Jump()"
>
<div
class=
"link_img"
>
<img
src=
"img/sun_10@2x.png"
alt=
""
>
</div>
<a
class=
"jump_a"
>
https://www.baidu.com/
</a>
</div>
<div
class=
"bottom_collect layout align_center justify_center flex_diection"
>
<div
class=
"collect_img"
>
<img
src=
"img/sun_05@2x.png"
alt=
""
class=
"collect_img_link"
>
</div>
<div>
收藏
</div>
</div>
</div>
</div>
<script
src=
"js/base.js"
></script>
<script
src=
"js/jquery.js"
></script>
<script
src=
"js/toast.js"
></script>
<script
type=
"text/javascript"
src=
"https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"
></script>
<script>
// 截止日期
var
endDay
=
212321312312
;
//后台时间戳
$
(
".end_day"
).
text
(
showYear
(
endDay
));
// 视频播放
var
video
=
document
.
getElementById
(
'vide'
);
function
videoPlay
()
{
$
(
".video_img"
).
hide
();
$
(
".detail_video_start"
).
hide
();
video
.
play
();
}
video
.
addEventListener
(
"ended"
,
function
()
{
$
(
".detail_qust"
).
show
();
$
(
".quest_box"
).
removeClass
(
"quest_ans"
);
// 重新答题
$
(
".error_btn"
).
hide
();
// 未满足答题条件
$
(
".quest_condition"
).
hide
();
$
(
".detail_top"
).
css
(
"margin-bottom"
,
"0"
);
})
function
showQuest
(
satisfy
)
{
// 是否满足答题条件
var
satisfy
=
2
;
if
(
satisfy
==
1
)
{
// 满足
$
(
".quest_ans"
).
show
()
}
else
{
$
(
".quest_condition"
).
show
()
}
};
// 判断是否完善信息
var
either
=
1
;
if
(
either
==
1
)
{
// 未完善信息
$
(
".btn_msg"
).
click
(
function
()
{
window
.
location
.
href
=
"personalMsg.html"
})
}
else
{
$
(
".btn_msg"
).
addClass
(
"btn_all"
)
}
// 查看更多 完善信息
$
(
".btn_more"
).
click
(
function
()
{
window
.
location
.
href
=
"index.html"
})
// 选择答案
$
(
".ans_single"
).
click
(
function
()
{
$
(
this
).
find
(
".answer_word"
).
addClass
(
"choice_ans"
);
$
(
this
).
find
(
".choice_img"
).
attr
(
"src"
,
"img/sun_07@2x.png"
);
$
(
this
).
siblings
().
find
(
".answer_word"
).
removeClass
(
"choice_ans"
);
$
(
this
).
siblings
().
find
(
".choice_img"
).
attr
(
"src"
,
"img/sun_06@2x.png"
);
})
// 提交答案
function
submit
()
{
$
(
".adv_detail"
).
css
(
'height'
,
"100vh"
)
$
(
".submit_modal"
).
show
();
$
(
".submit_modal_box"
).
show
();
}
// 查看更多 答题错误
function
checkMore
()
{
// 重新答题倒计时
let
newTime
=
300
;
let
newTimer
=
setInterval
(
function
()
{
// 弹窗消失
$
(
".adv_detail"
).
css
(
'height'
,
"auto"
);
$
(
".submit_modal"
).
hide
();
$
(
".submit_modal_box"
).
hide
();
// 重新答题
$
(
".error_btn"
).
show
();
$
(
".right_btn"
).
hide
();
newTime
--
;
$
(
".new_time"
).
text
(
changeTime
(
newTime
));
if
(
newTime
==
0
)
{
clearInterval
(
newTimer
);
window
.
location
.
reload
();
}
},
1000
);
}
// 底部链接跳转
function
Jump
()
{
var
webSite
=
$
(
".jump_a"
).
text
();
window
.
location
.
href
=
webSite
;
};
// 是否收藏
var
isCollect
=
2
;
$
(
".bottom_collect"
).
click
(
function
()
{
})
if
(
isCollect
==
1
)
{
// 收藏
let
url
=
"img/sun_08@2x.png"
;
$
(
".collect_img_link"
).
attr
(
"src"
,
url
);
$
(
".bottom_collect"
).
css
(
"color"
,
"#FB7A17"
);
}
else
{
let
url
=
"img/sun_05@2x.png"
;
$
(
".collect_img_link"
).
attr
(
"src"
,
url
);
}
</script>
<script>
// 地图定位
var
geolocation
=
new
qq
.
maps
.
Geolocation
(
"LQNBZ-F3L34-EQMUR-DILMD-LBR4Q-GDFOH"
,
"myapp"
);
var
positionNum
=
0
;
var
options
=
{
timeout
:
5000
};
function
showPosition
(
position
)
{
var
city
=
position
.
city
;
//城市
var
addr
=
position
.
addr
;
//详细地址
var
lat
=
position
.
lat
;
//
var
lng
=
position
.
lng
;
//经纬度
}
function
showErr
()
{
Toast
.
init
();
Toast
.
show
(
'定位失败'
,
'success'
,
null
);
setTimeout
(
function
()
{
Toast
.
hide
();
},
20000
);
};
$
(
function
()
{
//定位
geolocation
.
getLocation
(
showPosition
,
showErr
,
options
);
})
</script>
<style>
.btn
{
margin-top
:
0.64rem
}
</style>
</body>
</html>
\ No newline at end of file
...
...
请
注册
或
登录
后发表评论