Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
cae24e80
提交
cae24e80
authored
2月 05, 2021
作者:
陆
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改海报只针对m端
上级
73b49f78
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
150 行增加
和
15 行删除
+150
-15
TbCfPostersDao.xml
...in/src/main/resources/com/platform/dao/TbCfPostersDao.xml
+2
-2
tbcfitemcomment.html
...min/src/main/webapp/WEB-INF/page/sys/tbcfitemcomment.html
+47
-2
tbcfposters.html
...m-admin/src/main/webapp/WEB-INF/page/sys/tbcfposters.html
+2
-0
tbcfhomepage.js
platform-admin/src/main/webapp/js/sys/tbcfhomepage.js
+3
-1
tbcfitemcomment.js
platform-admin/src/main/webapp/js/sys/tbcfitemcomment.js
+82
-10
tbcfposters.js
platform-admin/src/main/webapp/js/sys/tbcfposters.js
+14
-0
没有找到文件。
platform-admin/src/main/resources/com/platform/dao/TbCfPostersDao.xml
浏览文件 @
cae24e80
...
...
@@ -81,7 +81,7 @@
`sort`,
`is_show`,
`redirect_url`,
link
link
,
`remark`,
`create_time`,
`update_time`)
...
...
@@ -108,7 +108,7 @@
<if
test=
"sort != null"
>
`sort` = #{sort},
</if>
<if
test=
"isShow != null"
>
`is_show` = #{isShow},
</if>
<if
test=
"redirectUrl != null"
>
`redirect_url` = #{redirectUrl},
</if>
<if
test=
"link != null"
>
`link` = #{link}
</if>
<if
test=
"link != null"
>
`link` = #{link}
,
</if>
<if
test=
"remark != null"
>
`remark` = #{remark},
</if>
<if
test=
"createTime != null"
>
`create_time` = #{createTime},
</if>
<if
test=
"updateTime != null"
>
`update_time` = #{updateTime}
</if>
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfitemcomment.html
浏览文件 @
cae24e80
...
...
@@ -23,6 +23,7 @@
z-index
:
99
;
top
:
0
;
}
.ui-jqgrid-bdiv
{
height
:
500px
!important
;
}
...
...
@@ -99,6 +100,26 @@
#showItems
{
margin-top
:
20px
;
}
#newapp
{
box-sizing
:
border-box
;
/*min-width: 1000px;*/
/*width: 100%;*/
height
:
600px
;
margin
:
0
auto
;
position
:
fixed
;
z-index
:
99
;
background
:
#fff
;
top
:
0
;
}
#newapp
.ui-jqgrid
.ui-jqgrid-bdiv
{
height
:
auto
!important
;
}
#newapp
.table
>
thead
>
tr
>
th
,
.table
>
tbody
>
tr
>
th
,
.table
>
tfoot
>
tr
>
th
,
.table
>
thead
>
tr
>
td
,
.table
>
tbody
>
tr
>
td
,
.table
>
tfoot
>
tr
>
td
{
border-top
:
2px
solid
#e7eaec
;
line-height
:
1.38857
;
padding
:
13px
;
vertical-align
:
middle
;
}
</style>
</head>
<body>
...
...
@@ -132,7 +153,10 @@
<p
slot=
"title"
>
{{title}}
</p>
<i-form
ref=
"formValidate"
:model=
"tbCfItemComment"
:rules=
"ruleValidate"
:label-width=
"80"
>
<Form-item
label=
"选择用户"
prop=
"userId"
style=
"width: 500px"
>
<i-input
v-model=
"tbCfItemComment.userId"
placeholder=
"选择用户"
/>
<div
v-model=
"tbCfItemComment.userId"
@
click=
"openidbtn"
>
<i-input
v-model=
"tbCfItemComment.userId"
placeholder=
"选择用户"
/>
</div>
</Form-item>
<!-- <Form-item label="订单ID" prop="orderId">-->
<!-- <i-input v-model="tbCfItemComment.orderId" placeholder="订单ID"/>-->
...
...
@@ -166,7 +190,7 @@
</Form-item>
<Form-item
label=
"选择商品"
prop=
"itemId"
style=
"width: 500px"
>
<div
v-model=
"tbCfItemComment.itemId"
@
click=
"openbtn"
>
<i-input
v-model=
"tbCfItemComment.itemId"
placeholder=
"选择商品"
@
click=
"openbtn"
/>
<i-input
v-model=
"tbCfItemComment.itemId"
placeholder=
"选择商品"
/>
</div>
</Form-item>
<Form-item
label=
"商品评分"
prop=
"itemScore"
style=
"width: 500px"
>
...
...
@@ -224,6 +248,27 @@
</Card>
</div>
<!-- 选择马甲号-->
<!-- <div id="newapp" v-show="isnewapp" style="width: 3050px;height: calc(100% - 15px);">-->
<div
id=
"newapp"
v-show=
"isnewapp"
>
<div
style=
"height: 100%;"
>
<Row
:gutter=
"16"
>
<div
class=
"search-group"
>
<i-col
span=
"4"
>
<i-input
v-model=
"q2.name"
@
on-enter=
"query"
placeholder=
"名称"
/>
</i-col>
<i-button
@
click=
"query2"
>
查询
</i-button>
<i-button
@
click=
"reloadSearch2"
>
重置
</i-button>
<i-button
type=
"info"
@
click=
"getmjid"
>
选择用户
</i-button>
<i-button
type=
"warning"
@
click=
"closeidbtn"
style=
"margin-left: 8px"
/>
关闭
</i-button>
</div>
</Row>
<div
id=
"newspeedp"
></div>
<table
id=
"newjqGrid"
></table>
</div>
</div>
</div>
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfposters.html
浏览文件 @
cae24e80
...
...
@@ -167,6 +167,8 @@
</div>
<i-Button
type=
"warning"
style=
"float: right;margin-top:30px;width:100px;"
@
click=
'resetSelectedCategory'
>
重置
</i-Button>
<!--让m端去落地页-->
<i-Input
v-model=
"mlink"
placeholder=
"m端落地页"
/>
</div>
<!-- 商品 -->
<div
v-else-if=
"typeActive==2"
>
...
...
platform-admin/src/main/webapp/js/sys/tbcfhomepage.js
浏览文件 @
cae24e80
...
...
@@ -286,13 +286,15 @@ let vm = new Vue({
vm
.
tbCfHomePage
.
type
=
[
'2'
];
}
else
if
(
version
===
3
)
{
vm
.
tbCfHomePage
.
type
=
[
'3'
];
}
else
if
(
version
===
5
)
{
vm
.
tbCfHomePage
.
type
=
[
'5'
];
}
vm
.
typeActive
=
vm
.
tbCfHomePage
.
imgType
;
vm
.
vHandleChange
(
null
,
vm
.
typeActive
)
if
(
vm
.
typeActive
===
0
)
{
vm
.
link
=
vm
.
tbCfHomePage
.
linkUrl
;
}
else
if
(
vm
.
typeActive
===
5
){
vm
.
appLink
=
vm
.
tbCf
Posters
.
linkUrl
;
vm
.
appLink
=
vm
.
tbCf
HomePage
.
linkUrl
;
}
else
if
(
vm
.
typeActive
===
1
)
{
let
ARR_ids
=
vm
.
tbCfHomePage
.
linkUrl
.
split
(
','
);
...
...
platform-admin/src/main/webapp/js/sys/tbcfitemcomment.js
浏览文件 @
cae24e80
...
...
@@ -38,6 +38,35 @@ $(function () {
sortorder
:
"desc"
});
});
$
(
function
()
{
$
(
"#newjqGrid"
).
Grid
({
url
:
'../tbcfuserinfo/queryVirtualUser'
,
colModel
:
[
{
label
:
'userId'
,
name
:
'userId'
,
index
:
'user_id'
,
key
:
true
,
hidden
:
true
,
width
:
100
},
// {label: '用户编号', name: 'userNo', index: 'user_no', width: 160},
{
label
:
'用户类型'
,
name
:
'userType'
,
index
:
'user_type'
,
width
:
80
,
formatter
:
userTypeFormat
},
{
label
:
'账号'
,
name
:
'account'
,
index
:
'account'
,
width
:
160
},
{
label
:
'国家'
,
name
:
'country'
,
index
:
'country'
,
width
:
100
},
{
label
:
'注册来源'
,
name
:
'source'
,
index
:
'source'
,
width
:
60
,
formatter
:
signTypeFormat
},
{
label
:
'用户头像地址'
,
name
:
'avatar'
,
index
:
'avatar'
,
width
:
100
,
formatter
:
imageFormat
},
{
label
:
'用户名'
,
name
:
'nick'
,
index
:
'nick'
,
width
:
160
},],
shrinkToFit
:
true
,
datatype
:
"json"
,
rowNum
:
15
,
rowList
:
[
15
,
30
,
45
],
mtype
:
"POST"
,
rownumbers
:
true
,
rownumWidth
:
40
,
gridview
:
true
,
pager
:
'#newspeedp'
,
sortname
:
'create_time'
,
viewrecords
:
true
,
sortorder
:
"desc"
,
multiselect
:
true
,
multiboxonly
:
true
,
beforeSelectRow
:
true
,
});
});
let
vm
=
new
Vue
({
el
:
'#rrapp'
,
...
...
@@ -72,8 +101,12 @@ let vm = new Vue({
orderNo
:
''
,
itemName
:
''
},
q2
:
{
name
:
''
},
search
:
null
,
// 搜索
isapp
:
false
,
//是否显示商品选择
isnewapp
:
false
,
//是否显示马甲号
tempId
:
''
,
advertisement
:
{},
},
...
...
@@ -337,16 +370,55 @@ let vm = new Vue({
vm
.
closebtn
()
});
console
.
log
(
ids
)
// Ajax.request({
// url: "../advertisementitem/saveBatch?aId=" + id + '&itemIds=' + ids,
// type: "POST",
// contentType: "application/json",
// successCallback: function () {
// alert('操作成功', function (index) {
// console.log(index)
// });
// }
// });
},
// 打开马甲号
openidbtn
(){
vm
.
isnewapp
=
true
},
// 关闭马甲号
closeidbtn
(){
vm
.
isnewapp
=
false
},
// 马甲号相关
reload2
:
function
(
event
)
{
let
page
=
$
(
"#newjqGrid"
).
jqGrid
(
'getGridParam'
,
'page'
);
$
(
"#newjqGrid"
).
jqGrid
(
'setGridParam'
,
{
postData
:
{
'name'
:
vm
.
q2
.
name
},
page
:
page
}).
trigger
(
"reloadGrid"
);
// vm.handleReset2('formValidate');
},
handleReset2
:
function
(
name
)
{
handleResetForm
(
this
,
name
);
},
// 搜索马甲号
query2
:
function
()
{
vm
.
reload2
();
},
// 重置马甲号
reloadSearch2
:
function
()
{
vm
.
q2
=
{
name
:
''
};
vm
.
reload2
();
},
// 确定马甲号
getmjid
:
function
(){
let
ids
=
getSelectedRow
(
"#newjqGrid"
);
if
(
ids
==
null
)
{
return
;
}
let
id
=
vm
.
advertisement
.
id
;
if
(
id
==
null
||
id
==
''
||
id
==
'undefined'
)
{
id
=
vm
.
tempId
;
}
vm
.
tbCfItemComment
.
userId
=
ids
alert
(
'操作成功'
,
function
(
index
)
{
console
.
log
(
index
)
vm
.
closeidbtn
()
});
console
.
log
(
ids
)
},
guid
()
{
return
'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'
.
replace
(
/
[
xy
]
/g
,
function
(
c
)
{
...
...
platform-admin/src/main/webapp/js/sys/tbcfposters.js
浏览文件 @
cae24e80
...
...
@@ -55,6 +55,7 @@ let vm = new Vue({
*/
link
:
null
,
//链接
appLink
:
''
,
//app落地页
mlink
:
''
,
//m端落地页
/*
--分类子页面
*/
...
...
@@ -196,6 +197,8 @@ let vm = new Vue({
vm
.
tbCfPosters
=
{};
this
.
link
=
null
;
this
.
appLink
=
null
;
this
.
mlink
=
null
;
this
.
typeActive
=
0
;
},
update
:
function
(
event
)
{
...
...
@@ -213,6 +216,9 @@ let vm = new Vue({
let
url
=
vm
.
tbCfPosters
.
id
==
null
?
"../tbcfposters/save"
:
"../tbcfposters/update"
;
vm
.
tbCfPosters
.
redirectUrl
=
event
;
vm
.
tbCfPosters
.
postersType
=
this
.
typeActive
;
if
(
vm
.
mlink
!=
''
){
vm
.
tbCfPosters
.
link
=
vm
.
mlink
}
Ajax
.
request
({
url
:
url
,
params
:
JSON
.
stringify
(
vm
.
tbCfPosters
),
...
...
@@ -270,6 +276,9 @@ let vm = new Vue({
vm
.
appLink
=
vm
.
tbCfPosters
.
redirectUrl
;
}
else
if
(
vm
.
typeActive
===
1
){
if
(
vm
.
tbCfPosters
.
link
){
vm
.
mlink
=
vm
.
tbCfPosters
.
link
;
}
let
ARR_ids
=
vm
.
tbCfPosters
.
redirectUrl
.
split
(
','
);
vm
.
CategoryLists1
.
forEach
(
item
=>
{
if
(
item
.
value
===
ARR_ids
[
0
])
{
...
...
@@ -325,6 +334,7 @@ let vm = new Vue({
let
postersType
=
this
.
typeActive
;
//海报类型
switch
(
this
.
typeActive
)
{
case
0
:
vm
.
mlink
=
null
redirectUrl
=
this
.
link
;
redirectUrl
?
vm
.
saveOrUpdate
(
redirectUrl
):
this
.
$Message
.
info
(
'请输入链接'
)
break
;
...
...
@@ -335,22 +345,26 @@ let vm = new Vue({
})():
this
.
$Message
.
info
(
'至少选择一种分类'
)
break
;
case
2
:
vm
.
mlink
=
null
redirectUrl
=
getSelectedRows
(
"#searchjqGrid"
)[
0
];
if
(
redirectUrl
){
vm
.
saveOrUpdate
(
redirectUrl
)
}
break
;
case
3
:
vm
.
mlink
=
null
redirectUrl
=
this
.
tagListsActive
;
if
(
redirectUrl
){
vm
.
saveOrUpdate
(
redirectUrl
)
}
break
;
case
5
:
vm
.
mlink
=
null
redirectUrl
=
this
.
appLink
;
redirectUrl
?
vm
.
saveOrUpdate
(
redirectUrl
):
this
.
$Message
.
info
(
'请输入app落地页地址'
)
break
;
default
:
vm
.
mlink
=
null
vm
.
saveOrUpdate
(
''
)
break
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论