Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-training-admin
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-training-admin
Commits
23435e13
提交
23435e13
authored
12月 14, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
用户触达编辑页
上级
eb90213a
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
160 行增加
和
25 行删除
+160
-25
.config.dev.js
.config.dev.js
+26
-24
triggerEdit.js
src/api/triggerEdit.js
+10
-0
aside.vue
src/components/layout/aside.vue
+1
-1
index.vue
src/pages/triggerEditor/index.vue
+119
-0
routes.js
src/router/routes.js
+4
-0
没有找到文件。
.config.dev.js
浏览文件 @
23435e13
module
.
exports
=
{
domain
:
'dev.ezijing.com'
,
url
:
'https://x-training2.ezijing.com/api'
,
url
:
'https://test-microservices-x-operation-admin.ezijing.com/api'
,
isEnableToIphoneDebugger
:
false
,
// apiBaseURL: '//demo-login.ezijing.com/',
webpack
:
{
externals
:
{
CKEDITOR
:
'window.CKEDITOR'
,
Base64
:
'window.Base64'
,
md5
:
'window.md5'
,
regeneratorRuntime
:
'window.regeneratorRuntime'
,
wx
:
'window.wx'
,
WeixinJSBridge
:
'window.WeixinJSBridge'
'CKEDITOR'
:
'window.CKEDITOR'
,
'Base64'
:
'window.Base64'
,
'md5'
:
'window.md5'
,
'regeneratorRuntime'
:
'window.regeneratorRuntime'
},
devServer
:
{
proxy
:
{
/* 多个代理 */
// '/api
': {
// target: $GLOBAL.webConf.url
,
//
selfHandleResponse: false,
//
// selfHandleResponse: true, // 自定义 响应结构
//
secure: false, // 如果是https接口,需要配置这个参数
//
changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
//
followRedirects: true, // 由于重定向307,所以跟随重定向直接返回一个接口
//
logLevel: 'info', // 日志打印级别
//
headers: {
//
'Referer': $GLOBAL.webConf.url
//
},
// pathRewrite: {
// '^/api': '/' // 需要rewrite重写的
// }
//
}
'/api/opera/
'
:
{
target
:
'https://test-microservices-x-operation-admin.ezijing.com'
,
selfHandleResponse
:
false
,
// selfHandleResponse: true, // 自定义 响应结构
secure
:
false
,
// 如果是https接口,需要配置这个参数
changeOrigin
:
true
,
// 如果接口跨域,需要进行这个参数配置
followRedirects
:
true
,
// 由于重定向307,所以跟随重定向直接返回一个接口
logLevel
:
'info'
,
// 日志打印级别
//
headers: {
//
'Referer': $GLOBAL.webConf.url
//
},
// pathRewrite: {
// '^/api': '/' // 需要rewrite重写的
// }
}
}
}
},
ProvidePlugin
:
{},
ProvidePlugin
:
{
},
others
:
{
loginUrl
:
'https://login2.ezijing.com/xtraining/login/index'
}
}
src/api/triggerEdit.js
0 → 100644
浏览文件 @
23435e13
import
httpRequest
from
'@/utils/axios'
// 绑定微信
export
function
bindWechat
(
data
)
{
return
httpRequest
.
post
(
'/api/passport/rest/wechat/bind-unionid'
,
data
)
}
// 获取用户信息
export
function
getTriggerList
()
{
return
httpRequest
.
get
(
'/api/opera/v1/oprations/reach/ways'
)
}
src/components/layout/aside.vue
浏览文件 @
23435e13
...
...
@@ -35,7 +35,7 @@ export default {
// // { title: '用户群分析', path: '/yhfq/yhqfx' }
// ]
},
{
title
:
'
案例分析'
,
icon
:
''
,
path
:
'/
'
},
{
title
:
'
用户触达编辑'
,
icon
:
''
,
path
:
'/triggerEditor
'
},
{
title
:
'用户群分析'
,
icon
:
''
,
path
:
'/'
},
{
title
:
'用户触达'
,
icon
:
''
,
path
:
'/'
}
]
...
...
src/pages/triggerEditor/index.vue
0 → 100644
浏览文件 @
23435e13
<
template
>
<app-container
title=
"用户触达编辑"
>
<el-row>
<el-col
:span=
"12"
>
<div
class=
"title"
>
触达方式
</div>
<ul
class=
"trigger-add"
>
<li
v-for=
"(item, index) in triggerMode"
:key=
"index"
>
<el-row
:gutter=
"10"
type=
"flex"
align=
"middle"
>
<el-col
:span=
"16"
>
<el-input
v-model=
"item.context"
placeholder=
"请输入内容"
></el-input>
</el-col>
<el-col
:span=
"2"
>
<i
class=
"el-icon-circle-plus-outline"
@
click=
"inputAdd('triggerMode', index)"
></i>
</el-col>
<el-col
:span=
"2"
>
<i
class=
"el-icon-remove-outline"
@
click=
"inputRemove('triggerMode', index)"
></i>
</el-col>
</el-row>
</li>
</ul>
</el-col>
<el-col
:span=
"12"
>
<div
class=
"title"
>
触达时间点
</div>
<ul
class=
"trigger-add"
>
<li
v-for=
"(item, index) in triggerTime"
:key=
"index"
>
<el-row
:gutter=
"10"
type=
"flex"
align=
"middle"
>
<el-col
:span=
"16"
>
<el-input
v-model=
"item.context"
placeholder=
"请输入内容"
></el-input>
</el-col>
<el-col
:span=
"2"
>
<i
class=
"el-icon-circle-plus-outline"
@
click=
"inputAdd('triggerTime', index)"
></i>
</el-col>
<el-col
:span=
"2"
>
<i
class=
"el-icon-remove-outline"
@
click=
"inputRemove('triggerTime', index)"
></i>
</el-col>
</el-row>
</li>
</ul>
</el-col>
</el-row>
<template
#
footer
>
<div
class=
"app-container-ft"
>
<el-button
type=
"primary"
size=
"mini"
>
确定
</el-button>
</div>
</
template
>
</app-container>
</template>
<
script
>
import
*
as
api
from
'@/api/triggerEdit'
import
AppContainer
from
'@/components/AppContainer'
export
default
{
components
:
{
AppContainer
},
data
()
{
return
{
triggerMode
:
[
{
option
:
'A'
,
context
:
'11'
}
],
triggerTime
:
[
{
option
:
'A'
,
context
:
''
}
],
AZkey
:
[]
}
},
mounted
()
{
this
.
AZkey
=
this
.
A_Z
()
this
.
getList
()
},
methods
:
{
inputAdd
(
arr
,
index
)
{
const
getKey
=
this
.
triggerMode
[
this
.
triggerMode
.
length
-
1
].
option
const
getIndex
=
this
.
AZkey
.
findIndex
(
item
=>
{
return
item
===
getKey
})
this
[
arr
].
push
({
option
:
this
.
AZkey
[
getIndex
+
1
],
context
:
''
})
},
inputRemove
(
arr
,
index
)
{
if
(
this
[
arr
].
length
>
1
)
{
this
[
arr
].
splice
(
index
,
1
)
this
.
setKey
(
arr
)
}
},
setKey
(
arr
)
{
this
[
arr
].
map
((
item
,
index
)
=>
{
item
.
option
=
this
.
AZkey
[
index
]
})
console
.
log
(
this
[
arr
])
},
A_Z
()
{
const
result
=
[]
for
(
let
i
=
0
;
i
<
26
;
i
++
)
{
result
.
push
(
String
.
fromCharCode
(
65
+
i
))
}
return
result
},
getList
()
{
api
.
getTriggerList
()
.
then
(
response
=>
{
if
(
response
.
data
.
length
!==
0
)
{
this
.
triggerMode
=
response
.
data
}
})
.
finally
(()
=>
{
this
.
submitLoading
=
false
})
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.trigger-add
{
li
{
margin-top
:
10px
;
}
i
{
font-size
:
24px
;
}
}
</
style
>
src/router/routes.js
浏览文件 @
23435e13
...
...
@@ -24,6 +24,10 @@ export default [
path
:
'/account/password'
,
component
:
()
=>
import
(
/* webpackChunkName: "account" */
'@/pages/account/password'
)
},
{
path
:
'/triggerEditor'
,
component
:
()
=>
import
(
/* webpackChunkName: "triggerEditor" */
'@/pages/triggerEditor/index'
)
},
...
userGroup
]
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论