Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张浩
/
br-client
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
2263ff72
...
2263ff728a43dee1347d063c740b036e69e3a666
authored
2020-09-16 14:08:54 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
fb20221b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
369 additions
and
11 deletions
src/main.js
src/page/activityConfig.vue
src/page/test.vue
src/page/tool.vue
src/router/index.js
src/main.js
View file @
2263ff7
...
...
@@ -16,6 +16,13 @@ axios.defaults.baseURL = 'http://192.168.8.216:9090'
Vue
.
use
(
Element
,
{
size
:
'small'
,
zIndex
:
3000
});
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
if
(
to
.
meta
.
title
)
{
document
.
title
=
to
.
meta
.
title
}
next
()
})
/* eslint-disable no-new */
new
Vue
({
el
:
'#app'
,
...
...
src/page/activityConfig.vue
0 → 100644
View file @
2263ff7
<
template
xmlns:el-col=
"http://www.w3.org/1999/html"
>
<div>
<br/>
<a
href=
"http://192.168.8.211:8090/pages/viewpage.action?pageId=38241498"
target=
"_blank"
>
活动配置奖品表
</a>
<el-table
:data=
"activityDialAwards"
border
style=
"width: 100%"
:header-cell-style=
"
{background: 'deepskyblue', color: 'snow'}">
<el-table-column
prop=
"name"
label=
"奖品名称"
min-width=
"2"
>
</el-table-column>
<el-table-column
prop=
"awardTotalCount"
label=
"奖品数量"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"weight"
label=
"概率权重"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"userGroupType"
label=
"用户角色"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"userMaxCount"
label=
"实物互斥"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"startTime"
label=
"开始时间"
min-width=
"2"
>
</el-table-column>
<el-table-column
prop=
"endTime"
label=
"结束时间"
min-width=
"2"
>
</el-table-column>
<el-table-column
prop=
"extData"
label=
"地区配置"
min-width=
"4"
>
</el-table-column>
<el-table-column
prop=
"defAward"
label=
"默认奖品"
min-width=
"1"
>
</el-table-column>
</el-table>
<br/>
<br/>
<a
href=
"http://192.168.8.211:8090/pages/viewpage.action?pageId=38241498"
target=
"_blank"
>
活动主表
</a>
<el-table
:data=
"activityInfos"
border
style=
"width: 100%"
:header-cell-style=
"
{background: 'deepskyblue', color: 'snow'}">
<el-table-column
prop=
"id"
label=
"活动id"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"status"
label=
"上线状态"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"活动名称"
min-width=
"2"
>
</el-table-column>
<el-table-column
prop=
"joinRoleType"
label=
"参与角色"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"displayStartTime"
label=
"预热开始时间"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"startTime"
label=
"活动开始时间"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"endTime"
label=
"活动结束时间"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"displayEndTime"
label=
"展示结束时间"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"locationCodeRule"
label=
"机构code规则"
min-width=
"3"
>
</el-table-column>
</el-table>
<br/>
<br/>
<a
href=
"http://192.168.8.211:8090/pages/viewpage.action?pageId=38241498"
target=
"_blank"
>
抽奖规则设置表
</a>
<el-table
:data=
"activityDialConfigs"
border
style=
"width: 100%"
:header-cell-style=
"
{background: 'deepskyblue', color: 'snow'}">
<el-table-column
prop=
"dayLotteryTimes"
label=
"每日默认次数"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"dayShareLotteryTimes"
label=
"分享可得抽奖次数"
min-width=
"1"
>
</el-table-column>
</el-table>
<br/>
<br/>
<a
href=
"http://192.168.8.211:8090/pages/viewpage.action?pageId=38241498"
target=
"_blank"
>
活动弹板表
</a>
<el-table
:data=
"activityPopPanels"
border
style=
"width: 100%"
:header-cell-style=
"
{background: 'deepskyblue', color: 'snow'}">
<el-table-column
prop=
"htmlContent"
label=
"内容"
min-width=
"2"
>
</el-table-column>
<el-table-column
prop=
"tts"
label=
"TTS"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"hrefButtonUrl"
label=
"连接地址"
min-width=
"3"
>
</el-table-column>
</el-table>
<br/>
<br/>
<a
href=
"http://192.168.8.211:8090/pages/viewpage.action?pageId=38241498"
target=
"_blank"
>
活动入口图配置
</a>
<el-table
:data=
"operateMsgInfos"
border
style=
"width: 100%"
:header-cell-style=
"
{background: 'deepskyblue', color: 'snow'}">
<el-table-column
prop=
"actId"
label=
"活动id"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"msgType"
label=
"展示类型"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"archiveType"
label=
"是否需要填写资料"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"beginTime"
label=
"开始时间"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"endTime"
label=
"结束时间"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"locationCodeRule"
label=
"机构code规则"
min-width=
"5"
>
</el-table-column>
<el-table-column
prop=
"keywordData"
label=
"秘语json数据"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"url"
label=
"跳转链接地址"
min-width=
"3"
>
</el-table-column>
</el-table>
<br/>
<br/>
<a
href=
"http://192.168.8.211:8090/pages/viewpage.action?pageId=38241498"
target=
"_blank"
>
运营banner表
</a>
<el-table
:data=
"operateMsgInfos"
border
style=
"width: 100%"
:header-cell-style=
"
{background: 'deepskyblue', color: 'snow'}">
<el-table-column
prop=
"actId"
label=
"活动id"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"content"
label=
"名称"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"beginTime"
label=
"开始时间"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"endTime"
label=
"结束时间"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"locationCodeRule"
label=
"机构code规则"
min-width=
"5"
>
</el-table-column>
<el-table-column
prop=
"url"
label=
"跳转链接地址"
min-width=
"3"
>
</el-table-column>
</el-table>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
actid
:
this
.
$route
.
query
.
id
,
huangjing
:
this
.
$route
.
query
.
huangjing
,
activityDialAwards
:
[],
activityDialConfigs
:
[],
activityInfos
:
[],
activityPopPanels
:
[],
operateBannerInfos
:
[],
operateMsgInfos
:
[]
}
},
mounted
()
{
this
.
activity
()
},
methods
:
{
activity
()
{
let
config
=
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
}
this
.
$http
.
get
(
'/activity/router?'
+
this
.
$qs
.
stringify
({
act_id
:
this
.
actid
,
huanjing
:
this
.
huangjing
}),
config
).
then
((
res
)
=>
{
console
.
log
(
res
.
data
)
this
.
activityDialAwards
=
res
.
data
.
activityDialAwards
this
.
activityDialConfigs
=
res
.
data
.
activityDialConfigs
this
.
activityInfos
=
res
.
data
.
activityInfos
this
.
activityPopPanels
=
res
.
data
.
activityPopPanels
this
.
operateBannerInfos
=
res
.
data
.
operateBannerInfos
this
.
operateMsgInfos
=
res
.
data
.
operateMsgInfos
}).
catch
(
error
=>
{
console
.
log
(
error
);
this
.
$message
({
showClose
:
true
,
message
:
'服务器处理失败,请核对参数!'
,
type
:
'error'
});
})
}
}
}
</
script
>
src/page/test.vue
deleted
100644 → 0
View file @
fb20221
<
template
xmlns:el-col=
"http://www.w3.org/1999/html"
>
<div>
测试页面
</div>
</
template
>
src/page/tool.vue
View file @
2263ff7
...
...
@@ -73,7 +73,35 @@
</el-col>
</el-row>
<el-row
style=
"margin-bottom: 15px;"
>
<el-col>
<el-col
:span=
"8"
>
<el-form
ref=
"form"
:model=
"activityConfig"
label-width=
"0px"
>
<el-card
class=
"chocolate"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
查询活动配置
</span>
</div>
<div
class=
"text item"
>
<el-form-item>
<el-input
placeholder=
"请输入活动ID"
v-model=
"activityConfig.id"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-select
v-model=
"activityConfig.huanjing"
placeholder=
"单选是查询,多选是对比"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
<div
style=
"margin: 15px 0;"
></div>
<el-form-item>
<el-button
round
@
click=
"activityConfigSubmit"
>
查询配置
</el-button>
</el-form-item>
</div>
</el-card>
</el-form>
</el-col>
<el-col
:span=
"8"
>
<el-form
ref=
"form"
:model=
"createCluesYoubaoe"
label-width=
"0px"
>
<el-card
class=
"aquamarine"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
...
...
@@ -138,10 +166,16 @@
}
.aquamarine
{
width
:
calc
(
44
0px
);
width
:
calc
(
100%
-
2
0px
);
padding
:
0px
;
background-color
:
aquamarine
;
}
.chocolate
{
width
:
calc
(
100%
-
20px
);
padding
:
0px
;
background-color
:
chocolate
;
}
</
style
>
<
script
>
...
...
@@ -165,7 +199,18 @@
agentUid
:
''
,
customUid
:
''
,
actId
:
''
}
},
activityConfig
:
{
id
:
''
,
huanjing
:
[]
},
options
:
[{
value
:
'debug'
,
label
:
'测试环境'
},
{
value
:
'release'
,
label
:
'线上环境'
}]
}
},
methods
:
{
...
...
@@ -290,6 +335,12 @@
});
})
},
activityConfigSubmit
()
{
const
{
href
}
=
this
.
$router
.
resolve
({
name
:
'activityConfig'
,
query
:
{
id
:
this
.
activityConfig
.
id
,
huangjing
:
this
.
activityConfig
.
huanjing
.
toString
()}})
window
.
open
(
href
,
'_blank'
)
}
}
}
</
script
>
...
...
src/router/index.js
View file @
2263ff7
...
...
@@ -2,7 +2,7 @@ import Vue from 'vue'
import
Router
from
'vue-router'
import
index
from
'@/page/index'
import
tool
from
'@/page/tool'
import
test
from
'@/page/test
'
import
activityConfig
from
'@/page/activityConfig
'
Vue
.
use
(
Router
)
...
...
@@ -11,18 +11,31 @@ export default new Router({
{
path
:
'/'
,
component
:
index
,
meta
:
{
title
:
'测试工具平台'
},
children
:[
{
path
:
'/'
,
component
:
tool
component
:
tool
,
meta
:
{
title
:
'测试工具平台'
}
},
{
path
:
'/tool'
,
component
:
tool
component
:
tool
,
meta
:
{
title
:
'测试工具平台'
}
},
{
path
:
'/test'
,
component
:
test
path
:
'/activityConfig'
,
component
:
activityConfig
,
name
:
'activityConfig'
,
meta
:
{
title
:
'测试工具平台'
}
}
]
}
...
...
Please
register
or
sign in
to post a comment