Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
b6e0e3d4
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b6e0e3d4
编写于
5月 20, 2021
作者:
L
luojing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新应用市场-从论坛获取应用评论及评分
上级
e82a4471
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
108 addition
and
14 deletion
+108
-14
o2web/source/x_component_AppMarketV2_Application/$Main/default/style.css
...component_AppMarketV2_Application/$Main/default/style.css
+2
-3
o2web/source/x_component_AppMarketV2_Application/Comment.js
o2web/source/x_component_AppMarketV2_Application/Comment.js
+102
-10
o2web/source/x_component_AppMarketV2_Application/lp/zh-cn.js
o2web/source/x_component_AppMarketV2_Application/lp/zh-cn.js
+4
-1
未找到文件。
o2web/source/x_component_AppMarketV2_Application/$Main/default/style.css
浏览文件 @
b6e0e3d4
...
@@ -407,7 +407,7 @@
...
@@ -407,7 +407,7 @@
}
}
.o2_appmarket_application_comment_content_left
{
.o2_appmarket_application_comment_content_left
{
width
:
3
0%
;
width
:
2
0%
;
height
:
220px
;
height
:
220px
;
float
:
left
;
float
:
left
;
margin-top
:
10px
;
margin-top
:
10px
;
...
@@ -428,7 +428,6 @@
...
@@ -428,7 +428,6 @@
font-family
:
MicrosoftYaHei
;
font-family
:
MicrosoftYaHei
;
color
:
rgba
(
51
,
51
,
51
,
1
);
color
:
rgba
(
51
,
51
,
51
,
1
);
line-height
:
21px
;
line-height
:
21px
;
overflow
:
hidden
;
}
}
.comment_dlg_title
{
.comment_dlg_title
{
...
@@ -470,4 +469,4 @@
...
@@ -470,4 +469,4 @@
height
:
40px
;
height
:
40px
;
background
:
rgba
(
240
,
240
,
240
,
1
);
background
:
rgba
(
240
,
240
,
240
,
1
);
border-radius
:
20px
;
border-radius
:
20px
;
}
}
\ No newline at end of file
o2web/source/x_component_AppMarketV2_Application/Comment.js
浏览文件 @
b6e0e3d4
...
@@ -49,6 +49,8 @@ MWF.xApplication.AppMarketV2.Application.Comment.ViewPage= new Class({
...
@@ -49,6 +49,8 @@ MWF.xApplication.AppMarketV2.Application.Comment.ViewPage= new Class({
this
.
page
=
1
;
this
.
page
=
1
;
this
.
pageSize
=
100
;
this
.
pageSize
=
100
;
this
.
querydata
=
{};
this
.
querydata
=
{};
this
.
bbsUrlPath
=
""
;
this
.
bbsUrl
=
""
;
this
.
load
();
this
.
load
();
},
},
...
@@ -61,37 +63,45 @@ MWF.xApplication.AppMarketV2.Application.Comment.ViewPage= new Class({
...
@@ -61,37 +63,45 @@ MWF.xApplication.AppMarketV2.Application.Comment.ViewPage= new Class({
data
=
json
.
data
;
//为变量data赋值
data
=
json
.
data
;
//为变量data赋值
this
.
app
.
collectUrl
=
data
.
collectUrl
;
this
.
app
.
collectUrl
=
data
.
collectUrl
;
this
.
app
.
collectToken
=
data
.
collectToken
;
this
.
app
.
collectToken
=
data
.
collectToken
;
this
.
loadBbsInfo
(
this
);
this
.
loadCommentsGrade
(
this
,
this
.
commentsGrade
.
bind
(
this
));
this
.
loadCommentsGrade
(
this
,
this
.
commentsGrade
.
bind
(
this
));
this
.
loadCommentPower
(
this
,
this
.
commentsPower
.
bind
(
this
));
//this.loadCommentPower(this,this.commentsPower.bind(this));
this
.
loadCommentPower
(
this
);
this
.
loadCommentsList
(
this
,
this
.
commentsView
.
bind
(
this
));
this
.
loadCommentsList
(
this
,
this
.
commentsView
.
bind
(
this
));
}
}
}.
bind
(
this
),
null
,
false
//同步执行
}.
bind
(
this
),
null
,
false
//同步执行
);
);
}
else
{
}
else
{
this
.
loadBbsInfo
(
this
);
this
.
loadCommentsGrade
(
this
,
this
.
commentsGrade
.
bind
(
this
));
this
.
loadCommentsGrade
(
this
,
this
.
commentsGrade
.
bind
(
this
));
this
.
loadCommentPower
(
this
,
this
.
commentsPower
.
bind
(
this
));
//this.loadCommentPower(this,this.commentsPower.bind(this));
this
.
loadCommentPower
(
this
);
this
.
loadCommentsList
(
this
,
this
.
commentsView
.
bind
(
this
));
this
.
loadCommentsList
(
this
,
this
.
commentsView
.
bind
(
this
));
}
}
},
},
load
CommentsGrade
:
function
(
content
,
callback
){
load
BbsInfo
:
function
(
content
){
var
json
=
null
;
var
json
=
null
;
var
commenturl
=
content
.
app
.
collectUrl
+
'
/o2_collect_assemble/jaxrs/comment/stat/grade/app/
'
+
content
.
appdata
.
id
+
'
?time=
'
+
(
new
Date
()).
getMilliseconds
();
var
commenturl
=
content
.
app
.
collectUrl
+
'
/o2_collect_assemble/jaxrs/collect/config/key/(0)?time=
'
+
(
new
Date
()).
getMilliseconds
();
debugger
;
var
res
=
new
Request
.
JSON
({
var
res
=
new
Request
.
JSON
({
url
:
commenturl
,
url
:
commenturl
,
headers
:
{
'
x-debugger
'
:
true
,
'
Authorization
'
:
content
.
app
.
collectToken
,
'
c-token
'
:
content
.
app
.
collectToken
},
headers
:
{
'
x-debugger
'
:
true
,
'
Authorization
'
:
content
.
app
.
collectToken
,
'
c-token
'
:
content
.
app
.
collectToken
},
secure
:
false
,
secure
:
false
,
method
:
"
get
"
,
method
:
"
get
"
,
async
:
tru
e
,
async
:
fals
e
,
withCredentials
:
true
,
withCredentials
:
true
,
contentType
:
'
application/json
'
,
contentType
:
'
application/json
'
,
crossDomain
:
true
,
crossDomain
:
true
,
onSuccess
:
function
(
responseJSON
,
responseText
){
onSuccess
:
function
(
responseJSON
,
responseText
){
json
=
responseJSON
;
json
=
responseJSON
;
if
(
typeOf
(
callback
).
toLowerCase
()
==
'
function
'
){
debugger
;
this
.
bbsUrlPath
=
json
.
data
.
bbsUrlPath
;
this
.
bbsUrl
=
json
.
data
.
bbsUrl
;
/*if (typeOf(callback).toLowerCase() == 'function'){
callback(responseJSON);
callback(responseJSON);
}else{
}else{
o2.runCallback(callback, "success", [responseJSON, responseText]);
o2.runCallback(callback, "success", [responseJSON, responseText]);
}
}
*/
}.
bind
(
this
),
}.
bind
(
this
),
onFailure
:
function
(
xhr
){
onFailure
:
function
(
xhr
){
o2
.
runCallback
(
callback
,
"
requestFailure
"
,
[
xhr
]);
o2
.
runCallback
(
callback
,
"
requestFailure
"
,
[
xhr
]);
...
@@ -102,9 +112,9 @@ MWF.xApplication.AppMarketV2.Application.Comment.ViewPage= new Class({
...
@@ -102,9 +112,9 @@ MWF.xApplication.AppMarketV2.Application.Comment.ViewPage= new Class({
});
});
res
.
send
();
res
.
send
();
},
},
loadComment
Power
:
function
(
content
,
callback
){
loadComment
sGrade
:
function
(
content
,
callback
){
var
json
=
null
;
var
json
=
null
;
var
commenturl
=
content
.
app
.
collectUrl
+
'
/o2_collect_assemble/jaxrs/comment/app/
'
+
content
.
appdata
.
id
+
'
/available
?time=
'
+
(
new
Date
()).
getMilliseconds
();
var
commenturl
=
content
.
app
.
lp
.
commentpath
+
'
/x_bbs_assemble_control/jaxrs/subject/statgrade/sectionName/
'
+
content
.
app
.
lp
.
title
+
'
/subjectType/
'
+
content
.
appdata
.
name
+
'
?time=
'
+
(
new
Date
()).
getMilliseconds
();
var
res
=
new
Request
.
JSON
({
var
res
=
new
Request
.
JSON
({
url
:
commenturl
,
url
:
commenturl
,
headers
:
{
'
x-debugger
'
:
true
,
'
Authorization
'
:
content
.
app
.
collectToken
,
'
c-token
'
:
content
.
app
.
collectToken
},
headers
:
{
'
x-debugger
'
:
true
,
'
Authorization
'
:
content
.
app
.
collectToken
,
'
c-token
'
:
content
.
app
.
collectToken
},
...
@@ -115,6 +125,7 @@ MWF.xApplication.AppMarketV2.Application.Comment.ViewPage= new Class({
...
@@ -115,6 +125,7 @@ MWF.xApplication.AppMarketV2.Application.Comment.ViewPage= new Class({
contentType
:
'
application/json
'
,
contentType
:
'
application/json
'
,
crossDomain
:
true
,
crossDomain
:
true
,
onSuccess
:
function
(
responseJSON
,
responseText
){
onSuccess
:
function
(
responseJSON
,
responseText
){
debugger
;
json
=
responseJSON
;
json
=
responseJSON
;
if
(
typeOf
(
callback
).
toLowerCase
()
==
'
function
'
){
if
(
typeOf
(
callback
).
toLowerCase
()
==
'
function
'
){
callback
(
responseJSON
);
callback
(
responseJSON
);
...
@@ -131,7 +142,60 @@ MWF.xApplication.AppMarketV2.Application.Comment.ViewPage= new Class({
...
@@ -131,7 +142,60 @@ MWF.xApplication.AppMarketV2.Application.Comment.ViewPage= new Class({
});
});
res
.
send
();
res
.
send
();
},
},
loadCommentPower
:
function
(
content
,
callback
){
//var bbsurl = content.app.lp.bbsurl;
debugger
;
var
commentbuttondiv
=
new
Element
(
"
div
"
,{
"
class
"
:
"
o2_appmarket_application_comment_middle_tip
"
}).
inject
(
this
.
content
.
applicationcommentmiddle
);
new
Element
(
"
span
"
,{
"
class
"
:
"
o2_appmarket_application_introduce_tab_current
"
,
"
text
"
:
content
.
app
.
lp
.
bbsNotice
}).
inject
(
commentbuttondiv
);
commentbuttondiv
.
addEvents
({
"
click
"
:
function
(
e
){
window
.
open
(
this
.
bbsUrl
);
}
})
},
loadCommentsList
:
function
(
content
,
callback
){
loadCommentsList
:
function
(
content
,
callback
){
var
commentdata
=
{};
commentdata
[
"
sectionName
"
]
=
content
.
app
.
lp
.
title
;
commentdata
[
"
subjectType
"
]
=
content
.
appdata
.
name
;
//var commenturl = content.app.lp.commentpath+'/x_bbs_assemble_control/jaxrs/subject/filter/listsubjectinfo/page/1/count/10';
var
commenturl
=
this
.
bbsUrlPath
+
'
/x_bbs_assemble_control/jaxrs/subject/filter/listsubjectinfo/page/1/count/10
'
;
debugger
;
var
res
=
new
Request
.
JSON
({
"
url
"
:
commenturl
,
"
headers
"
:
{
"
Content-Type
"
:
"
application/json; charset=utf-8
"
,
"
x-debugger
"
:
true
},
secure
:
false
,
"
method
"
:
"
POST
"
,
async
:
true
,
emulation
:
false
,
noCache
:
true
,
withCredentials
:
true
,
crossDomain
:
true
,
"
data
"
:
JSON
.
stringify
(
commentdata
),
onSuccess
:
function
(
responseJSON
,
responseText
){
debugger
;
json
=
responseJSON
;
if
(
typeOf
(
callback
).
toLowerCase
()
==
'
function
'
){
callback
(
responseJSON
);
}
else
{
o2
.
runCallback
(
callback
,
"
success
"
,
[
responseJSON
,
responseText
]);
}
}.
bind
(
this
),
onFailure
:
function
(
xhr
){
debugger
;
o2
.
runCallback
(
callback
,
"
requestFailure
"
,
[
xhr
]);
}.
bind
(
this
),
onError
:
function
(
text
,
error
){
debugger
;
o2
.
runCallback
(
callback
,
"
error
"
,
[
text
,
error
]);
}.
bind
(
this
)
});
debugger
;
res
.
send
();
},
loadCommentsList_bak
:
function
(
content
,
callback
){
var
json
=
null
;
var
json
=
null
;
var
commenturl
=
content
.
app
.
collectUrl
+
'
/o2_collect_assemble/jaxrs/comment/list/app/
'
+
content
.
appdata
.
id
+
'
?time=
'
+
(
new
Date
()).
getMilliseconds
();
var
commenturl
=
content
.
app
.
collectUrl
+
'
/o2_collect_assemble/jaxrs/comment/list/app/
'
+
content
.
appdata
.
id
+
'
?time=
'
+
(
new
Date
()).
getMilliseconds
();
var
res
=
new
Request
.
JSON
({
var
res
=
new
Request
.
JSON
({
...
@@ -310,6 +374,34 @@ MWF.xApplication.AppMarketV2.Application.Comment.ViewPage= new Class({
...
@@ -310,6 +374,34 @@ MWF.xApplication.AppMarketV2.Application.Comment.ViewPage= new Class({
}
}
},
},
commentsView
:
function
(
commentdata
){
commentsView
:
function
(
commentdata
){
var
commentsList
=
commentdata
.
data
;
debugger
commentsList
.
each
(
function
(
percomment
){
var
commentcontentdiv
=
new
Element
(
"
div
"
,{
"
class
"
:
"
o2_appmarket_application_comment_content
"
}).
inject
(
this
.
content
.
applicationcommentbottom
);
var
commentcontentleft
=
new
Element
(
"
div
"
,{
"
class
"
:
"
o2_appmarket_application_comment_content_left
"
}).
inject
(
commentcontentdiv
);
var
iconpersondiv
=
new
Element
(
"
div
"
,{
"
class
"
:
"
o2_appmarket_application_comment_content_left_icon
"
}).
inject
(
commentcontentleft
);
new
Element
(
"
img
"
,{
"
src
"
:
this
.
content
.
iconPath
+
"
icon_men.png
"
}).
inject
(
iconpersondiv
);
debugger
;
new
Element
(
"
div
"
,{
"
class
"
:
"
o2_appmarket_application_comment_content_left_name
"
,
"
text
"
:
percomment
.
creatorName
}).
inject
(
commentcontentleft
);
var
commentcontentright
=
new
Element
(
"
div
"
,{
"
class
"
:
"
o2_appmarket_application_comment_content_right
"
}).
inject
(
commentcontentdiv
);
var
commentangulardiv
=
new
Element
(
"
div
"
).
inject
(
commentcontentright
);
for
(
var
tmpi
=
0
;
tmpi
<
parseInt
(
percomment
.
grade
);
tmpi
++
){
new
Element
(
"
img
"
,{
"
src
"
:
this
.
content
.
iconPath
+
"
blackfiveangular.png
"
,
"
class
"
:
"
o2_appmarket_application_introduce_memo_remark_inner_pic
"
}).
inject
(
commentangulardiv
)
}
for
(
var
tmpi
=
0
;
tmpi
<
5
-
parseInt
(
percomment
.
grade
);
tmpi
++
){
new
Element
(
"
img
"
,{
"
src
"
:
this
.
content
.
iconPath
+
"
whitefiveangular.png
"
,
"
class
"
:
"
o2_appmarket_application_introduce_memo_remark_inner_pic
"
}).
inject
(
commentangulardiv
)
}
var
content
=
percomment
.
content
;
var
percommentConent
=
content
.
replace
(
"
<p>
"
,
""
).
replace
(
"
</p>
"
,
""
);
new
Element
(
"
div
"
,{
"
class
"
:
"
o2_appmarket_application_comment_content_title
"
,
"
text
"
:
percomment
.
title
}).
inject
(
commentcontentright
);
var
conentDiv
=
new
Element
(
"
div
"
,{
"
class
"
:
"
o2_appmarket_application_comment_content_text
"
}).
inject
(
commentcontentright
);
var
conentHtml
=
percomment
.
content
;
conentDiv
.
set
(
"
html
"
,
conentHtml
);
}.
bind
(
this
))
},
commentsView_bak
:
function
(
commentdata
){
var
commentsList
=
commentdata
.
data
;
var
commentsList
=
commentdata
.
data
;
commentsList
.
each
(
function
(
percomment
){
commentsList
.
each
(
function
(
percomment
){
var
commentcontentdiv
=
new
Element
(
"
div
"
,{
"
class
"
:
"
o2_appmarket_application_comment_content
"
}).
inject
(
this
.
content
.
applicationcommentbottom
);
var
commentcontentdiv
=
new
Element
(
"
div
"
,{
"
class
"
:
"
o2_appmarket_application_comment_content
"
}).
inject
(
this
.
content
.
applicationcommentbottom
);
...
@@ -459,4 +551,4 @@ MWF.xApplication.AppMarketV2.Application.Comment.ViewPage= new Class({
...
@@ -459,4 +551,4 @@ MWF.xApplication.AppMarketV2.Application.Comment.ViewPage= new Class({
}
}
}
}
})
})
\ No newline at end of file
o2web/source/x_component_AppMarketV2_Application/lp/zh-cn.js
浏览文件 @
b6e0e3d4
...
@@ -21,6 +21,9 @@ MWF.xApplication.AppMarketV2.Application.LP = {
...
@@ -21,6 +21,9 @@ MWF.xApplication.AppMarketV2.Application.LP = {
"
bbsname
"
:
"
藕粉社区
"
,
"
bbsname
"
:
"
藕粉社区
"
,
"
bbslink
"
:
"
http://forum.o2oa.net/x_desktop/forum.html?app=ForumSection&id=b1895d5a-7ef2-4d74-b2d1-a7ae10daaa28
"
,
"
bbslink
"
:
"
http://forum.o2oa.net/x_desktop/forum.html?app=ForumSection&id=b1895d5a-7ef2-4d74-b2d1-a7ae10daaa28
"
,
"
bbstip
"
:
"
如果您有什么疑问或想法,请来我们的藕粉社区交流吧!
"
,
"
bbstip
"
:
"
如果您有什么疑问或想法,请来我们的藕粉社区交流吧!
"
,
"
commentpath
"
:
"
https://forum.o2oa.net:40020
"
,
"
bbsurl
"
:
"
http://forum.o2oa.net/x_desktop/forum.html?app=ForumSection&id=b1895d5a-7ef2-4d74-b2d1-a7ae10daaa28
"
,
"
bbsNotice
"
:
"
评论请点此链接至o2论坛
"
,
"
commentCountText
"
:
"
共{n}个评分
"
,
"
commentCountText
"
:
"
共{n}个评分
"
,
"
category
"
:
"
分类
"
,
"
category
"
:
"
分类
"
,
...
@@ -31,4 +34,4 @@ MWF.xApplication.AppMarketV2.Application.LP = {
...
@@ -31,4 +34,4 @@ MWF.xApplication.AppMarketV2.Application.LP = {
"
score
"
:
"
打分:
"
,
"
score
"
:
"
打分:
"
,
"
comment
"
:
"
评论:
"
,
"
comment
"
:
"
评论:
"
,
"
commentNotice
"
:
"
请评分,评论后提交
"
"
commentNotice
"
:
"
请评分,评论后提交
"
};
};
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录