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
cfff4f2a
Commit
cfff4f2a
authored
Dec 28, 2018
by
chenfenglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加商品优化
parent
8530f20b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
index.vue
src/components/login/index.vue
+7
-1
index.vue
src/components/teacher/index.vue
+9
-1
index.vue
src/components/teacherDetail/index.vue
+8
-1
No files found.
src/components/login/index.vue
View file @
cfff4f2a
...
...
@@ -61,10 +61,16 @@
password
:
md5
(
this
.
login
.
password
)
};
loginApi
(
json
).
then
(
res
=>
{
if
(
res
.
teacher_info
){
localStorage
.
setItem
(
"phoneNum"
,
res
.
teacher_info
)
}
else
{
localStorage
.
setItem
(
"phoneNum"
,
""
)
}
this
.
$store
.
dispatch
(
'setToken'
,
res
.
token
);
this
.
$store
.
dispatch
(
'setUserName'
,
res
.
desc
);
this
.
$store
.
dispatch
(
'setPermission'
,
JSON
.
parse
(
res
.
roles
.
menu_ids
));
window
.
location
.
href
=
'/'
window
.
location
.
href
=
'/'
;
})
}
})
...
...
src/components/teacher/index.vue
View file @
cfff4f2a
...
...
@@ -129,7 +129,14 @@
}
},
mounted
(){
this
.
getUser
()
let
data
=
localStorage
.
getItem
(
"phoneNum"
)
if
(
data
){
console
.
log
(
data
)
this
.
$router
.
push
(
'/teacher/'
+
data
);
}
else
{
this
.
getUser
()
}
},
methods
:{
onPageChange
(
val
){
...
...
@@ -156,6 +163,7 @@
this
.
userList
=
res
.
list
;
this
.
total
=
res
.
total
})
},
edit
(
data
){
this
.
dialogObj
.
id
=
data
.
id
;
...
...
src/components/teacherDetail/index.vue
View file @
cfff4f2a
...
...
@@ -140,8 +140,11 @@
<el-form-item
label=
"用户昵称"
>
<el-input
v-model=
"form.nickname"
></el-input>
</el-form-item>
<el-form-item
label=
"手机号"
>
<el-form-item
label=
"
用户
手机号"
>
<el-input
v-model=
"form.mobile"
></el-input>
</el-form-item>
<el-form-item
label=
"收件人手机号"
>
<el-input
v-model=
"form.receive_mobile"
></el-input>
</el-form-item>
<el-form-item
label=
"商品名称"
>
<el-select
v-model=
"form.goods_id"
placeholder=
"请选择"
@
change=
"getOrderList"
clearable
>
...
...
@@ -409,6 +412,7 @@ import chooseGoodDialog from './chooseGoodDialog'
goods_id
:
''
,
out_trade_no
:
''
,
receive_mobile
:
""
,
mobile
:
""
,
},
goodList
:[],
orderStatusOption
:
ORDERSTATUSOPTION
,
...
...
@@ -626,6 +630,9 @@ import chooseGoodDialog from './chooseGoodDialog'
}
if
(
this
.
form
.
goods_id
)
{
json
.
goods_id
=
this
.
form
.
goods_id
}
if
(
this
.
form
.
receive_mobile
)
{
json
.
receive_mobile
=
this
.
form
.
receive_mobile
}
if
(
this
.
form
.
out_trade_no
)
{
json
.
out_trade_no
=
this
.
form
.
out_trade_no
...
...
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