Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
admin-base
Commits
aa9d537f
Commit
aa9d537f
authored
Sep 19, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关注自动回复删除bug
parent
1a2b6fec
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
30 deletions
+20
-30
index.js
config/index.js
+2
-2
dialog.vue
src/components/teacher/dialog.vue
+8
-3
index.vue
src/components/teacher/index.vue
+0
-4
index.vue
src/components/teacherDetail/index.vue
+0
-5
index.vue
src/components/user/index.vue
+0
-4
index.vue
src/components/userDetail/index.vue
+3
-5
focusReply.vue
src/components/weChat/focusReply.vue
+7
-7
No files found.
config/index.js
View file @
aa9d537f
...
@@ -12,8 +12,8 @@ module.exports = {
...
@@ -12,8 +12,8 @@ module.exports = {
//本地代理设置
//本地代理设置
proxyTable
:
{
proxyTable
:
{
'/api'
:
{
'/api'
:
{
target
:
'http://local.base-api.sing.com'
,
// 接口的域名
//
target: 'http://local.base-api.sing.com', // 接口的域名
//
target: 'http://wechat.test.singsingenglish.com/',
target
:
'http://wechat.test.singsingenglish.com/'
,
changeOrigin
:
true
,
// 如果接口跨域,需要进行这个参数配置
changeOrigin
:
true
,
// 如果接口跨域,需要进行这个参数配置
}
}
},
},
...
...
src/components/teacher/dialog.vue
View file @
aa9d537f
...
@@ -135,7 +135,8 @@
...
@@ -135,7 +135,8 @@
type
:
0
,
type
:
0
,
qr
:
''
,
qr
:
''
,
alias
:
''
,
alias
:
''
,
status
:
0
status
:
0
,
media_id
:
''
},
},
rules
:{
rules
:{
name
:[
name
:[
...
@@ -161,6 +162,7 @@
...
@@ -161,6 +162,7 @@
qr
:
this
.
form
.
qr
,
qr
:
this
.
form
.
qr
,
alias
:
this
.
form
.
alias
,
alias
:
this
.
form
.
alias
,
status
:
this
.
form
.
status
,
status
:
this
.
form
.
status
,
media_id
:
this
.
form
.
media_id
};
};
switch
(
this
.
dialogObj
.
type
){
switch
(
this
.
dialogObj
.
type
){
case
2
:
case
2
:
...
@@ -207,7 +209,8 @@
...
@@ -207,7 +209,8 @@
this
.
$store
.
dispatch
(
'setProgress'
,{
type
:
'new'
,
id
:
a
.
file
.
uid
});
this
.
$store
.
dispatch
(
'setProgress'
,{
type
:
'new'
,
id
:
a
.
file
.
uid
});
this
.
fileUid
=
a
.
file
.
uid
;
this
.
fileUid
=
a
.
file
.
uid
;
uploadFileApi
({
file
:
a
.
file
,
type
:
'all'
}).
then
(
res
=>
{
uploadFileApi
({
file
:
a
.
file
,
type
:
'all'
}).
then
(
res
=>
{
this
.
imageList
=
[{
name
:
res
.
url
,
url
:
process
.
env
.
IMAGE_URL_HEAD
+
res
.
url
}]
this
.
form
.
media_id
=
res
.
wechat_info
?
res
.
wechat_info
.
media_id
:
''
;
this
.
imageList
=
[{
name
:
res
.
url
,
url
:
process
.
env
.
IMAGE_URL_HEAD
+
res
.
url
}];
this
.
uploadShow
=
false
;
this
.
uploadShow
=
false
;
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
$message
({
this
.
$message
({
...
@@ -232,6 +235,7 @@
...
@@ -232,6 +235,7 @@
this
.
imageList
=
[];
this
.
imageList
=
[];
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
uploadShow
=
true
;
this
.
uploadShow
=
true
;
this
.
form
.
media_id
=
''
;
break
;
break
;
case
1
:
case
1
:
this
.
title
=
'教师详情'
;
this
.
title
=
'教师详情'
;
...
@@ -254,9 +258,10 @@
...
@@ -254,9 +258,10 @@
this
.
form
.
qr
=
res
.
qr
;
this
.
form
.
qr
=
res
.
qr
;
this
.
form
.
type
=
res
.
type
;
this
.
form
.
type
=
res
.
type
;
this
.
form
.
status
=
res
.
status
;
this
.
form
.
status
=
res
.
status
;
this
.
form
.
media_id
=
res
.
media_id
?
res
.
media_id
:
''
;
this
.
imageList
=
[{
name
:
res
.
qr
,
url
:
res
.
qr
}];
this
.
imageList
=
[{
name
:
res
.
qr
,
url
:
res
.
qr
}];
this
.
uploadShow
=
!
res
.
qr
;
this
.
uploadShow
=
!
res
.
qr
;
this
.
loading
=
false
this
.
loading
=
false
;
});
});
break
break
}
}
...
...
src/components/teacher/index.vue
View file @
aa9d537f
...
@@ -52,10 +52,6 @@
...
@@ -52,10 +52,6 @@
{{
scope
.
row
.
status
===
0
?
'正常'
:
'禁用'
}}
{{
scope
.
row
.
status
===
0
?
'正常'
:
'禁用'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"invite_code"
label=
"邀请码"
>
</el-table-column>
<el-table-column
<el-table-column
label=
"二维码"
>
label=
"二维码"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
...
src/components/teacherDetail/index.vue
View file @
aa9d537f
...
@@ -8,17 +8,12 @@
...
@@ -8,17 +8,12 @@
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<label>
微信号:
</label>
{{
detail
.
alias
}}
<label>
微信号:
</label>
{{
detail
.
alias
}}
</el-col>
</el-col>
<el-col
:span=
"6"
>
<label>
邀请码:
</label>
{{
detail
.
invite_code
}}
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<label>
二维码:
</label>
<label>
二维码:
</label>
<a
:href=
"detail.qr"
>
<a
:href=
"detail.qr"
>
<img
class=
"avatar"
:src=
"detail.qr"
/>
<img
class=
"avatar"
:src=
"detail.qr"
/>
</a>
</a>
</el-col>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<label>
老师状态:
</label>
{{
detail
.
status
===
0
?
'正常'
:
'禁用'
}}
<label>
老师状态:
</label>
{{
detail
.
status
===
0
?
'正常'
:
'禁用'
}}
</el-col>
</el-col>
...
...
src/components/user/index.vue
View file @
aa9d537f
...
@@ -42,10 +42,6 @@
...
@@ -42,10 +42,6 @@
<img
class=
"avatar"
:src=
"scope.row.avatar"
>
<img
class=
"avatar"
:src=
"scope.row.avatar"
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"invite_code"
label=
"邀请码"
>
</el-table-column>
<el-table-column
<el-table-column
prop=
"mobile"
prop=
"mobile"
label=
"手机号"
>
label=
"手机号"
>
...
...
src/components/userDetail/index.vue
View file @
aa9d537f
...
@@ -35,13 +35,10 @@
...
@@ -35,13 +35,10 @@
<label>
邀请人ID:
</label>
{{
detail
.
invite_user_id
}}
<label>
邀请人ID:
</label>
{{
detail
.
invite_user_id
}}
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<label>
邀请码:
</label>
{{
detail
.
invite_code
}}
<label>
注册时间:
</label>
{{
detail
.
created_at
}}
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"6"
>
<label>
注册时间:
</label>
{{
detail
.
created_at
}}
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<label>
最后登录:
</label>
{{
detail
.
last_login_at
}}
<label>
最后登录:
</label>
{{
detail
.
last_login_at
}}
</el-col>
</el-col>
...
@@ -198,7 +195,8 @@
...
@@ -198,7 +195,8 @@
let
json
=
{
let
json
=
{
user_id
:
this
.
id
,
user_id
:
this
.
id
,
limit
:
this
.
limit
,
limit
:
this
.
limit
,
page
:
this
.
nowPage
page
:
this
.
nowPage
,
status
:
1
}
}
getOrderListApi
(
json
).
then
(
res
=>
{
getOrderListApi
(
json
).
then
(
res
=>
{
this
.
userList
=
res
.
list
;
this
.
userList
=
res
.
list
;
...
...
src/components/weChat/focusReply.vue
View file @
aa9d537f
...
@@ -271,18 +271,18 @@
...
@@ -271,18 +271,18 @@
}
}
},
},
deleteRow
(
index
,
list
){
deleteRow
(
index
,
list
){
let
desc
=
list
;
desc
.
splice
(
index
,
1
);
let
json
=
{
key
:
this
.
form
.
key
,
value
:
this
.
form
.
value
}
json
.
desc
=
JSON
.
stringify
(
desc
)
this
.
$confirm
(
'此操作将删除该文件, 是否继续?'
,
'提示'
,
{
this
.
$confirm
(
'此操作将删除该文件, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
let
desc
=
list
;
desc
.
splice
(
index
,
1
);
let
json
=
{
key
:
this
.
form
.
key
,
value
:
this
.
form
.
value
}
json
.
desc
=
JSON
.
stringify
(
desc
)
updateConfigApi
(
this
.
id
,
json
).
then
(
res
=>
{
updateConfigApi
(
this
.
id
,
json
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
type
:
'success'
,
type
:
'success'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment