Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
afff1ee0
Commit
afff1ee0
authored
Jun 05, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
c38edda3
b0cf2170
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
19 deletions
+38
-19
apps/exams/Lib/Model/ExamsPaperModel.class.php
+1
-0
apps/home/Tpl/default/Home/exams_w3g.html
+8
-4
apps/news/Lib/Action/TopicAction.class.php
+0
-2
apps/news/Lib/Model/TopicsModel.class.php
+19
-3
apps/news/Tpl/default/Topic/index_w3g.html
+10
-10
No files found.
apps/exams/Lib/Model/ExamsPaperModel.class.php
View file @
afff1ee0
...
@@ -73,6 +73,7 @@ class ExamsPaperModel extends Model
...
@@ -73,6 +73,7 @@ class ExamsPaperModel extends Model
$data
[
$key
][
'exams_module_title'
]
=
$this
->
getModuleTitleAttr
(
$v
[
'exams_module_id'
]);
$data
[
$key
][
'exams_module_title'
]
=
$this
->
getModuleTitleAttr
(
$v
[
'exams_module_id'
]);
$data
[
$key
][
'level_title'
]
=
$this
->
getLevelTitle
(
$v
[
'level'
]);
$data
[
$key
][
'level_title'
]
=
$this
->
getLevelTitle
(
$v
[
'level'
]);
$data
[
$key
][
'is_buy'
]
=
$this
->
isBuy
(
$v
[
'exams_paper_id'
],
$this
->
mid
);
$data
[
$key
][
'is_buy'
]
=
$this
->
isBuy
(
$v
[
'exams_paper_id'
],
$this
->
mid
);
$data
[
$key
][
'attach'
]
=
''
;
if
(
$data
[
$key
][
'is_buy'
]
||
$v
[
'price'
]
==
0
)
{
if
(
$data
[
$key
][
'is_buy'
]
||
$v
[
'price'
]
==
0
)
{
$data
[
$key
][
'attach'
]
=
$this
->
getAttachPathByAttachId
(
$v
[
'attachment'
]);
$data
[
$key
][
'attach'
]
=
$this
->
getAttachPathByAttachId
(
$v
[
'attachment'
]);
}
}
...
...
apps/home/Tpl/default/Home/exams_w3g.html
View file @
afff1ee0
...
@@ -105,10 +105,10 @@
...
@@ -105,10 +105,10 @@
<div
@
click=
"onMyTab(1)"
class=
"layout_center weight_full"
:class=
"myTab == 1 ? 'zhenti_tab_selected' : 'zhenti_tab_normal'"
>
收藏
</div>
<div
@
click=
"onMyTab(1)"
class=
"layout_center weight_full"
:class=
"myTab == 1 ? 'zhenti_tab_selected' : 'zhenti_tab_normal'"
>
收藏
</div>
</div>
</div>
<template
v-if=
"myTab == 1"
>
<template
v-if=
"myTab == 1"
>
<div
class=
"zhenti_my_collect_cell layout_v"
>
<!-- <div class="zhenti_my_collect_cell layout_v">--
>
<div
class=
"text_16_600 color_333333"
>
某种糖果的进价为12元/千克,现购进这种糖果若干千克,每天销售10千克,且从第二天起每天都比前一天降价2元/千克。已知以6元/千克的价格销售的那天正好卖完最后10千克,且总销售额是总进货成本的2倍。问总共进了多少千克这种糖果?
</div
>
<!-- <div class="text_16_600 color_333333"></div>--
>
<div
class=
"text_12_400 color_999999 zhenti_my_collect_cell_time"
>
2020-04-04 03:12:56
</div
>
<!-- <div class="text_12_400 color_999999 zhenti_my_collect_cell_time">2020-04-04 03:12:56</div>--
>
</div
>
<!-- </div>--
>
<span
style=
"margin-top: 35vh;"
v-if=
"myCollect.length == 0"
class=
"text_14_400 color_999999 self_center"
>
没有找到!
</span>
<span
style=
"margin-top: 35vh;"
v-if=
"myCollect.length == 0"
class=
"text_14_400 color_999999 self_center"
>
没有找到!
</span>
</template>
</template>
<template
v-if=
"myTab == 0"
>
<template
v-if=
"myTab == 0"
>
...
@@ -216,6 +216,10 @@
...
@@ -216,6 +216,10 @@
if
(
this
.
tab
==
0
)
{
if
(
this
.
tab
==
0
)
{
return
f
.
length
>
0
?
f
[
0
].
id
:
''
return
f
.
length
>
0
?
f
[
0
].
id
:
''
}
}
if
(
this
.
tab
==
1
)
{
return
f
.
length
>
0
?
f
[
0
].
id
:
''
}
}
}
},
},
methods
:
{
methods
:
{
...
...
apps/news/Lib/Action/TopicAction.class.php
View file @
afff1ee0
...
@@ -80,8 +80,6 @@ class TopicAction extends CommonAction
...
@@ -80,8 +80,6 @@ class TopicAction extends CommonAction
$data
=
D
(
'Topics'
)
->
getTopic
(
1
,
$_GET
[
'cate'
],
$map
);
$data
=
D
(
'Topics'
)
->
getTopic
(
1
,
$_GET
[
'cate'
],
$map
);
$this
->
assign
(
'topic_data'
,
$data
);
$this
->
assign
(
'topic_data'
,
$data
);
if
(
$this
->
isAjax
())
{
if
(
$this
->
isAjax
())
{
var_dump
(
$data
);
die
;
echo
json_encode
(
$data
);
echo
json_encode
(
$data
);
exit
();
exit
();
}
}
...
...
apps/news/Lib/Model/TopicsModel.class.php
View file @
afff1ee0
...
@@ -35,6 +35,18 @@ class TopicsModel extends Model
...
@@ -35,6 +35,18 @@ class TopicsModel extends Model
{
{
return
$this
->
add
(
$data
);
return
$this
->
add
(
$data
);
}
}
protected
function
getAttachPathByAttachId
(
$attachid
)
{
if
(
empty
(
$attachid
))
{
return
''
;
}
if
(
$attachInfo
=
model
(
'Attach'
)
->
getAttachById
(
$attachid
))
{
return
'/data/upload/'
.
$attachInfo
[
'save_path'
]
.
$attachInfo
[
'save_name'
];
}
else
{
return
''
;
}
}
/**
/**
* 获取资讯
* 获取资讯
* @param boolean $with_plat_form 传入机构时是否同时显示平台资讯
* @param boolean $with_plat_form 传入机构时是否同时显示平台资讯
...
@@ -61,9 +73,13 @@ class TopicsModel extends Model
...
@@ -61,9 +73,13 @@ class TopicsModel extends Model
}
else
if
(
$type
==
4
)
{
//排序
}
else
if
(
$type
==
4
)
{
//排序
$orders
=
'`re_sort` DESC'
;
$orders
=
'`re_sort` DESC'
;
}
}
var_dump
(
getAttachPathByAttachId
(
91
));
$results
=
$this
->
where
(
$map
)
->
order
(
$orders
)
->
findPage
(
10
);
die
;
foreach
(
$results
[
'data'
]
as
$key
=>
$result
)
{
return
$this
->
where
(
$map
)
->
order
(
$orders
)
->
findPage
(
10
);
if
(
$result
[
'image'
])
{
$results
[
'data'
][
$key
][
'cover'
]
=
$this
->
getAttachPathByAttachId
(
$result
[
'image'
]);
}
}
return
$results
;
}
}
public
function
setTj
(
$id
)
public
function
setTj
(
$id
)
...
...
apps/news/Tpl/default/Topic/index_w3g.html
View file @
afff1ee0
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
}
}
</style>
</style>
<div
id=
"app"
>
<div
id=
"app"
>
<van-sticky>
<van-sticky>
<div
class=
"tabs_container"
>
<div
class=
"tabs_container"
>
<div
@
click=
"onChange(idx)"
v-for=
"(opt, idx) in options"
:key=
"idx"
:class=
"idx == tab ? 'tab_item_selected' : 'tab_item_normal'"
>
<div
@
click=
"onChange(idx)"
v-for=
"(opt, idx) in options"
:key=
"idx"
:class=
"idx == tab ? 'tab_item_selected' : 'tab_item_normal'"
>
...
@@ -13,13 +13,13 @@
...
@@ -13,13 +13,13 @@
</div>
</div>
</div>
</div>
</van-sticky>
</van-sticky>
<van-list
<van-list
v-model=
"loading"
v-model=
"loading"
:finished=
"finished"
:finished=
"finished"
finished-text=
"没有更多了"
finished-text=
"没有更多了"
@
load=
"onLoad"
>
@
load=
"onLoad"
>
<template
v-if=
"tab == 0"
>
<template
v-if=
"tab == 0"
>
<div
v-for=
"(item, index) in options[0].items"
class=
"layout_h news_hire_info"
>
<div
v-for=
"(item, index) in options[0].items"
class=
"layout_h news_hire_info"
>
<van-image
height=
"72"
width=
"72"
:src=
"item.cover"
fit=
"cover"
></van-image>
<van-image
height=
"72"
width=
"72"
:src=
"item.cover"
fit=
"cover"
></van-image>
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
</div>
</div>
</div>
</div>
</template>
</template>
<template
v-if=
"tab == 1"
>
<template
v-if=
"tab == 1"
>
<div
v-for=
"(item, index) in options[1].items"
class=
"layout_h news_hire_info"
>
<div
v-for=
"(item, index) in options[1].items"
class=
"layout_h news_hire_info"
>
<van-image
height=
"72"
width=
"72"
:src=
"item.cover"
fit=
"cover"
></van-image>
<van-image
height=
"72"
width=
"72"
:src=
"item.cover"
fit=
"cover"
></van-image>
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
</div>
</div>
</div>
</div>
</template>
</template>
<template
v-if=
"tab == 2"
>
<template
v-if=
"tab == 2"
>
<div
v-for=
"(item, index) in options[2].items"
class=
"layout_h news_hire_info"
>
<div
v-for=
"(item, index) in options[2].items"
class=
"layout_h news_hire_info"
>
<van-image
height=
"72"
width=
"72"
:src=
"item.cover"
fit=
"cover"
></van-image>
<van-image
height=
"72"
width=
"72"
:src=
"item.cover"
fit=
"cover"
></van-image>
...
@@ -72,12 +72,12 @@
...
@@ -72,12 +72,12 @@
</div>
</div>
</div>
</div>
</template>
</template>
</van-list>
</van-list>
</div>
</div>
<script>
<script>
new
Vue
({
new
Vue
({
el
:
"#app"
,
el
:
"#app"
,
data
:
function
()
{
data
:
function
()
{
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
return
{
return
{
id
:
r
.
id
,
id
:
r
.
id
,
title
:
r
.
title
,
title
:
r
.
title
,
cover
:
r
.
image
,
cover
:
r
.
cover
,
time
:
d
.
format
(
"yyyy-MM-dd"
)
time
:
d
.
format
(
"yyyy-MM-dd"
)
}
}
}))
}))
...
@@ -140,7 +140,7 @@
...
@@ -140,7 +140,7 @@
})
})
},
},
onItem
:
function
(
item
)
{
onItem
:
function
(
item
)
{
window
.
location
.
href
=
"/news/"
+
item
.
id
+
".html"
;
}
}
}
}
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment