Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
huangxuan258
whatsns内容付费问答系统
提交
133e778a
whatsns内容付费问答系统
项目概览
huangxuan258
/
whatsns内容付费问答系统
2021-04-29 05:05:01同步失败
通知
3
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
whatsns内容付费问答系统
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
133e778a
编写于
4月 08, 2020
作者:
huangxuan258
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
前端修改发布问题和编辑问题,发布文章页面如果搜索标签没有将不显示下拉
上级
810eab30
变更
10
展开全部
隐藏空白更改
内联
并排
Showing
10 changed file
with
53 addition
and
1640 deletion
+53
-1640
application/views/default/addxinzhi.php
application/views/default/addxinzhi.php
+7
-1
application/views/default/ask.php
application/views/default/ask.php
+8
-1
application/views/default/editquestion.php
application/views/default/editquestion.php
+7
-1
application/views/fronzewap/addxinzhi.php
application/views/fronzewap/addxinzhi.php
+7
-1
application/views/fronzewap/ask.php
application/views/fronzewap/ask.php
+7
-1
application/views/fronzewap/editquestion.php
application/views/fronzewap/editquestion.php
+7
-1
application/views/fronzewap/editxinzhi.php
application/views/fronzewap/editxinzhi.php
+7
-1
application/views/fronzewap/test.php
application/views/fronzewap/test.php
+0
-109
application/views/fronzewap/testsolve.php
application/views/fronzewap/testsolve.php
+0
-1521
install/whatsns.sql
install/whatsns.sql
+3
-3
未找到文件。
application/views/default/addxinzhi.php
浏览文件 @
133e778a
...
...
@@ -344,7 +344,13 @@ $(".txt_taginput").on(" input propertychange",function(){
$
(
"
.tagsearch
"
).
append
(
'
<div class="tagitem" tagid="
'
+
result
.
taglist
[
i
].
id
+
'
">
'
+
_msg
+
'
</div>
'
);
}
$
(
"
.tagsearch
"
).
show
();
if
(
result
.
taglist
.
length
>
0
){
$
(
"
.tagsearch
"
).
show
();
}
else
{
$
(
"
.tagsearch
"
).
hide
();
}
$
(
"
.tagsearch .tagitem
"
).
click
(
function
(){
var
_tagname
=
$
.
trim
(
$
(
this
).
html
());
var
_tagid
=
$
.
trim
(
$
(
this
).
attr
(
"
tagid
"
));
...
...
application/views/default/ask.php
浏览文件 @
133e778a
...
...
@@ -479,7 +479,14 @@ $(".txt_taginput").on(" input propertychange",function(){
$
(
"
.tagsearch
"
).
append
(
'
<div class="tagitem" tagid="
'
+
result
.
taglist
[
i
].
id
+
'
">
'
+
_msg
+
'
</div>
'
);
}
$
(
"
.tagsearch
"
).
show
();
if
(
result
.
taglist
.
length
>
0
){
$
(
"
.tagsearch
"
).
show
();
}
else
{
$
(
"
.tagsearch
"
).
hide
();
}
$
(
"
.tagsearch .tagitem
"
).
click
(
function
(){
var
_tagname
=
$
.
trim
(
$
(
this
).
html
());
var
_tagid
=
$
.
trim
(
$
(
this
).
attr
(
"
tagid
"
));
...
...
application/views/default/editquestion.php
浏览文件 @
133e778a
...
...
@@ -368,7 +368,13 @@ $(".txt_taginput").on(" input propertychange",function(){
$
(
"
.tagsearch
"
).
append
(
'
<div class="tagitem" tagid="
'
+
result
.
taglist
[
i
].
id
+
'
">
'
+
_msg
+
'
</div>
'
);
}
$
(
"
.tagsearch
"
).
show
();
if
(
result
.
taglist
.
length
>
0
){
$
(
"
.tagsearch
"
).
show
();
}
else
{
$
(
"
.tagsearch
"
).
hide
();
}
$
(
"
.tagsearch .tagitem
"
).
click
(
function
(){
var
_tagname
=
$
.
trim
(
$
(
this
).
html
());
var
_tagid
=
$
.
trim
(
$
(
this
).
attr
(
"
tagid
"
));
...
...
application/views/fronzewap/addxinzhi.php
浏览文件 @
133e778a
...
...
@@ -342,7 +342,13 @@ $(".txt_taginput").on(" input propertychange",function(){
$
(
"
.tagsearch
"
).
append
(
'
<div class="tagitem" tagid="
'
+
result
.
taglist
[
i
].
id
+
'
">
'
+
_msg
+
'
</div>
'
);
}
$
(
"
.tagsearch
"
).
show
();
if
(
result
.
taglist
.
length
>
0
){
$
(
"
.tagsearch
"
).
show
();
}
else
{
$
(
"
.tagsearch
"
).
hide
();
}
$
(
"
.tagsearch .tagitem
"
).
click
(
function
(){
var
_tagname
=
$
.
trim
(
$
(
this
).
html
());
var
_tagid
=
$
.
trim
(
$
(
this
).
attr
(
"
tagid
"
));
...
...
application/views/fronzewap/ask.php
浏览文件 @
133e778a
...
...
@@ -175,7 +175,13 @@ $(".txt_taginput").on(" input propertychange",function(){
$
(
"
.tagsearch
"
).
append
(
'
<div class="tagitem" tagid="
'
+
result
.
taglist
[
i
].
id
+
'
">
'
+
_msg
+
'
</div>
'
);
}
$
(
"
.tagsearch
"
).
show
();
if
(
result
.
taglist
.
length
>
0
){
$
(
"
.tagsearch
"
).
show
();
}
else
{
$
(
"
.tagsearch
"
).
hide
();
}
$
(
"
.tagsearch .tagitem
"
).
click
(
function
(){
var
_tagname
=
$
.
trim
(
$
(
this
).
html
());
var
_tagid
=
$
.
trim
(
$
(
this
).
attr
(
"
tagid
"
));
...
...
application/views/fronzewap/editquestion.php
浏览文件 @
133e778a
...
...
@@ -113,7 +113,13 @@ $(".txt_taginput").on(" input propertychange",function(){
$
(
"
.tagsearch
"
).
append
(
'
<div class="tagitem" tagid="
'
+
result
.
taglist
[
i
].
id
+
'
">
'
+
_msg
+
'
</div>
'
);
}
$
(
"
.tagsearch
"
).
show
();
if
(
result
.
taglist
.
length
>
0
){
$
(
"
.tagsearch
"
).
show
();
}
else
{
$
(
"
.tagsearch
"
).
hide
();
}
$
(
"
.tagsearch .tagitem
"
).
click
(
function
(){
var
_tagname
=
$
.
trim
(
$
(
this
).
html
());
var
_tagid
=
$
.
trim
(
$
(
this
).
attr
(
"
tagid
"
));
...
...
application/views/fronzewap/editxinzhi.php
浏览文件 @
133e778a
...
...
@@ -217,7 +217,13 @@ $(".txt_taginput").on(" input propertychange",function(){
$
(
"
.tagsearch
"
).
append
(
'
<div class="tagitem" tagid="
'
+
result
.
taglist
[
i
].
id
+
'
">
'
+
_msg
+
'
</div>
'
);
}
$
(
"
.tagsearch
"
).
show
();
if
(
result
.
taglist
.
length
>
0
){
$
(
"
.tagsearch
"
).
show
();
}
else
{
$
(
"
.tagsearch
"
).
hide
();
}
$
(
"
.tagsearch .tagitem
"
).
click
(
function
(){
var
_tagname
=
$
.
trim
(
$
(
this
).
html
());
var
_tagid
=
$
.
trim
(
$
(
this
).
attr
(
"
tagid
"
));
...
...
application/views/fronzewap/test.php
已删除
100644 → 0
浏览文件 @
810eab30
<!--{template header}-->
<!--内容部分--->
<div
class=
"content-body"
style=
"margin-top:20px;"
>
<div
class=
"container bg-white "
>
<div
class=
"row"
>
<div
class=
"col-sm-24"
>
<!--引入wangEditor.css-->
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{SITE_URL}static/js/wangeditor/pcwangeditor/css/wangEditor.min.css"
>
<!--引入jquery和wangEditor.js-->
<!--注意:javascript必须放在body最后,否则可能会出现问题-->
<script
src=
"{SITE_URL}static/js/jquery-1.11.3.min.js"
></script>
<script
type=
"text/javascript"
src=
"{SITE_URL}static/js/wangeditor/pcwangeditor/js/wangEditor.js"
></script>
<script>
$
.
noConflict
()
</script>
<style>
.editor_container
{
height
:
auto
;
background-color
:
#fff
;
text-align
:
left
;
text-shadow
:
none
;
margin
:
10px
10px
;
}
.wangEditor-drop-panel
{
left
:
0px
;
margin-left
:
0px
;
width
:
100%
;
}
</style>
<div
class=
"editor_container"
>
<textarea
id=
"editor"
name=
"content"
style=
"width:100%;height:100px;"
>
{if $this->uri->segment ( 2 ) !='view'
&&
$this->uri->segment ( 1 )=='question'||$this->uri->segment ( 2 ) =='editxinzhi'}
{if $navtitle=='编辑问题'} {eval echo htmlspecialchars_decode(htmlspecialchars_decode($question['description']));} {/if}
{if $this->uri->segment ( 1 )!='question'}
{eval echo htmlspecialchars($topic['describtion']);}
{/if}
{if $user['groupid']==1||$user['uid']==$answer['authorid']
&&
$this->uri->segment ( 2 )=='editanswer'
&&
$this->uri->segment ( 1 )=='question'} {eval echo htmlspecialchars($answer['content']);} {/if}
{/if}
{if $this->uri->segment ( 1 )=='question'
&&
$this->uri->segment ( 2 )=='add'}
{$setting['editor_defaulttip']}
{/if}
</textarea>
</div>
<script
type=
"text/javascript"
>
var
testeditor
=
'
999
'
;
var
editor
=
null
;
// 初始化编辑器的内容
editor
=
new
wangEditor
(
'
editor
'
);
// 自定义配置
editor
.
config
.
uploadImgUrl
=
"
{url attach/upimg}
"
;
editor
.
config
.
uploadImgFileName
=
'
wangEditorMobileFile
'
;
// 阻止输出log
editor
.
config
.
printLog
=
true
;
editor
.
config
.
hideLinkImg
=
true
;
// 普通的自定义菜单
// 普通的自定义菜单
editor
.
config
.
menus
=
[
'
eraser
'
,
'
quote
'
,
'
|
'
,
'
img
'
,
'
undo
'
,
'
redo
'
,
'
fullscreen
'
];
// 将全屏时z-index修改为20000
// editor.config.zindex =-1;
editor
.
create
();
$
(
"
.wangEditor-container
"
).
css
(
"
z-index
"
,
"
1
"
);
</script>
</div>
</div>
</div>
</div>
<!--{template footer}-->
\ No newline at end of file
application/views/fronzewap/testsolve.php
已删除
100644 → 0
浏览文件 @
810eab30
此差异已折叠。
点击以展开。
install/whatsns.sql
浏览文件 @
133e778a
...
...
@@ -35,8 +35,8 @@ CREATE TABLE `whatsns_user_invateanswer` (
CREATE
TABLE
`whatsns_tag`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`tagname`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'标签名称'
,
`tagalias`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'标签别名'
,
`tagname`
varchar
(
100
)
NOT
NULL
DEFAULT
''
COMMENT
'标签名称'
,
`tagalias`
varchar
(
150
)
NOT
NULL
DEFAULT
''
COMMENT
'标签别名'
,
`tagfisrtchar`
varchar
(
20
)
NOT
NULL
DEFAULT
''
COMMENT
'标签首字母'
,
`tagimage`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'标签缩略图'
,
`tagquestions`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'标签问题数'
,
...
...
@@ -63,7 +63,7 @@ CREATE TABLE `whatsns_tag_item` (
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`tagid`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'标签id'
,
`typeid`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'类型id 文章或者问题表的主键id'
,
`itemtype`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'question或者article'
,
`itemtype`
varchar
(
100
)
NOT
NULL
DEFAULT
''
COMMENT
'question或者article'
,
`time`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'添加时间'
,
`uid`
int
(
11
)
NOT
NULL
DEFAULT
'1'
COMMENT
'创建者'
,
`cid`
int
(
11
)
NOT
NULL
DEFAULT
'1'
COMMENT
'分类话题id'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录