Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
76469c72
提交
76469c72
authored
11月 28, 2022
作者:
王天霸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
0dc1fac4
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
40 行增加
和
11 行删除
+40
-11
plugindex.js
src/api/plug/plugindex.js
+8
-1
index.vue
src/views/system/channelcenter/index.vue
+32
-10
没有找到文件。
src/api/plug/plugindex.js
浏览文件 @
76469c72
...
@@ -8,7 +8,14 @@ export function upaddress(params) {
...
@@ -8,7 +8,14 @@ export function upaddress(params) {
params
params
})
})
}
}
//检测代理是否开启
export
function
checkisopen
(
params
)
{
return
request
({
url
:
'/agent/open'
,
method
:
'get'
,
params
})
}
//申请区域代理
//申请区域代理
export
function
addretail
(
data
)
{
export
function
addretail
(
data
)
{
return
request
({
return
request
({
...
...
src/views/system/channelcenter/index.vue
浏览文件 @
76469c72
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</el-steps>
</el-steps>
<div
v-show=
"actives==1"
style=
"padding: 150px;"
>
<div
v-show=
"actives==1"
style=
"padding: 150px;"
>
<el-row>
<el-row>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
v-if=
"isopen==1"
>
<div
:class=
"[isselst==1?'selet_bdiv':'selet_div']"
@
click=
"isselst=1"
>
<div
:class=
"[isselst==1?'selet_bdiv':'selet_div']"
@
click=
"isselst=1"
>
<h3>
区域代理
</h3>
<h3>
区域代理
</h3>
<span
style=
"font-size:12px;"
>
<span
style=
"font-size:12px;"
>
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
style=
"position:absolute;bottom:-30px;right:0px;color:#fff;"
></i>
</div>
style=
"position:absolute;bottom:-30px;right:0px;color:#fff;"
></i>
</div>
</div>
</div>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
v-if=
"isopen1==1"
>
<div
:class=
"[isselst==2?'selet_bdiv':'selet_div']"
@
click=
"isselst=2"
>
<div
:class=
"[isselst==2?'selet_bdiv':'selet_div']"
@
click=
"isselst=2"
>
<h3>
分销代理
</h3>
<h3>
分销代理
</h3>
<span
style=
"font-size:12px;"
>
<span
style=
"font-size:12px;"
>
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
style=
"position:absolute;bottom:-30px;right:0px;color:#fff;"
></i>
</div>
style=
"position:absolute;bottom:-30px;right:0px;color:#fff;"
></i>
</div>
</div>
</div>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
v-if=
"isopen2==1"
>
<div
:class=
"[isselst==3?'selet_bdiv':'selet_div']"
@
click=
"isselst=3"
>
<div
:class=
"[isselst==3?'selet_bdiv':'selet_div']"
@
click=
"isselst=3"
>
<h3>
招商代理
</h3>
<h3>
招商代理
</h3>
<span
style=
"font-size:12px;"
>
<span
style=
"font-size:12px;"
>
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
upaddress
,
addretail
,
addretailfx
,
addinvite
,
checkagent
,
getagreement
,
getaglevel
}
from
'@/api/plug/plugindex'
import
{
upaddress
,
checkisopen
,
addretail
,
addretailfx
,
addinvite
,
checkagent
,
getagreement
,
getaglevel
}
from
'@/api/plug/plugindex'
import
{
parseTime
}
from
'@/utils'
import
{
parseTime
}
from
'@/utils'
export
default
{
export
default
{
name
:
"channelindex"
,
name
:
"channelindex"
,
...
@@ -124,6 +124,9 @@
...
@@ -124,6 +124,9 @@
}
}
};
};
return
{
return
{
isopen
:
1
,
isopen1
:
1
,
isopen2
:
1
,
levellist
:[],
levellist
:[],
distext
:
''
,
distext
:
''
,
dialogVisible
:
false
,
dialogVisible
:
false
,
...
@@ -174,12 +177,33 @@
...
@@ -174,12 +177,33 @@
},
},
created
()
{
created
()
{
this
.
checkagents
()
this
.
checkagents
()
this
.
getisopen
()
},
},
watch
:
{
watch
:
{
},
},
methods
:
{
methods
:
{
getisopen
(){
checkisopen
().
then
(
res
=>
{
if
(
res
.
code
==
1
){
if
(
res
.
data
.
area
==
1
){
this
.
isopen
=
1
}
else
{
this
.
isopen
=
0
}
if
(
res
.
data
.
invite
==
1
){
this
.
isopen1
=
1
}
else
{
this
.
isopen1
=
0
}
if
(
res
.
data
.
retail
==
1
){
this
.
isopen2
=
1
}
else
{
this
.
isopen2
=
0
}
}
})
},
getaglevellist
(
val
){
getaglevellist
(
val
){
let
data
=
{
let
data
=
{
agent_type
:
val
agent_type
:
val
...
@@ -209,10 +233,8 @@
...
@@ -209,10 +233,8 @@
})
})
},
},
checkagents
()
{
checkagents
()
{
let
data
=
{
agent_type
:
1
checkagent
().
then
(
res
=>
{
}
checkagent
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
if
(
res
.
data
.
is_agent
==
1
)
{
if
(
res
.
data
.
is_agent
==
1
)
{
if
(
res
.
data
.
status
===
0
)
{
if
(
res
.
data
.
status
===
0
)
{
...
@@ -224,7 +246,7 @@
...
@@ -224,7 +246,7 @@
let
url
=
localStorage
.
getItem
(
'agentURL'
)
let
url
=
localStorage
.
getItem
(
'agentURL'
)
window
.
open
(
url
)
window
.
open
(
url
)
}
else
{
}
else
{
window
.
open
(
'agent.
stbz.top
'
)
window
.
open
(
'agent.
jxhh.com
'
)
}
}
this
.
$store
.
dispatch
(
'tagsView/delView'
,
this
.
$route
)
this
.
$store
.
dispatch
(
'tagsView/delView'
,
this
.
$route
)
this
.
$router
.
push
({
path
:
'/'
})
this
.
$router
.
push
({
path
:
'/'
})
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论