Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zuiketang
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
zuiketang
Commits
7c137d0e
Commit
7c137d0e
authored
Oct 25, 2016
by
汪波
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
4fd94352
a72f7b1e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
userCenter.php
src/frontend/views/layouts/userCenter.php
+1
-1
publish.js
src/frontend/web/js/my-course/publish.js
+9
-5
info.vue
src/frontend/web/js/user-center/conponents/info.vue
+1
-1
No files found.
src/frontend/views/layouts/userCenter.php
View file @
7c137d0e
...
@@ -30,7 +30,7 @@ $this->beginContent('@app/views/layouts/center.php');
...
@@ -30,7 +30,7 @@ $this->beginContent('@app/views/layouts/center.php');
<li
<?=
(
Yii
::
$app
->
controller
->
id
===
'user-center'
and
Yii
::
$app
->
controller
->
action
->
id
===
'browse-record'
)
?
'class = "active"'
:
''
?>
>
<li
<?=
(
Yii
::
$app
->
controller
->
id
===
'user-center'
and
Yii
::
$app
->
controller
->
action
->
id
===
'browse-record'
)
?
'class = "active"'
:
''
?>
>
<a
href=
"
<?=
$baseUrl
.
'/user-center/browse-record'
?>
"
><i
class=
"icon-visibility"
></i>
浏览记录
</a>
<a
href=
"
<?=
$baseUrl
.
'/user-center/browse-record'
?>
"
><i
class=
"icon-visibility"
></i>
浏览记录
</a>
</li>
</li>
<li><a
href=
"
<?=
$baseUrl
.
'/
my-course
'
?>
"
><i
class=
"icon-school"
></i>
我的课堂
</a></li>
<li><a
href=
"
<?=
$baseUrl
.
'/
classes-info
'
?>
"
><i
class=
"icon-school"
></i>
我的课堂
</a></li>
<li><a
href=
"
<?=
$baseUrl
.
'/site/logout'
?>
"
><i
class=
"icon-power_settings_new"
></i>
退出登录
</a></li>
<li><a
href=
"
<?=
$baseUrl
.
'/site/logout'
?>
"
><i
class=
"icon-power_settings_new"
></i>
退出登录
</a></li>
<!--
<!--
<li><a href="
<?
/*=$baseUrl .'/my-course'*/
?>
"><i class="icon-school"></i>我的课堂</a></li>
<li><a href="
<?
/*=$baseUrl .'/my-course'*/
?>
"><i class="icon-school"></i>我的课堂</a></li>
...
...
src/frontend/web/js/my-course/publish.js
View file @
7c137d0e
...
@@ -35,7 +35,9 @@ var vm = new Vue({
...
@@ -35,7 +35,9 @@ var vm = new Vue({
this
.
$on
(
"thumb-uploaded"
,
function
(
name
,
data
)
{
this
.
$on
(
"thumb-uploaded"
,
function
(
name
,
data
)
{
self
.
previewKey
=
data
.
uuid
;
self
.
previewKey
=
data
.
uuid
;
});
});
$
.
validator
.
addMethod
(
'courseName'
,
function
(
value
,
element
,
param
)
{
return
value
.
indexOf
(
'云涯'
);
});
var
validator
=
$
(
form
).
validate
({
var
validator
=
$
(
form
).
validate
({
//debug: true,
//debug: true,
//errorClass: "",
//errorClass: "",
...
@@ -43,7 +45,8 @@ var vm = new Vue({
...
@@ -43,7 +45,8 @@ var vm = new Vue({
ignore
:
""
,
ignore
:
""
,
rules
:
{
rules
:
{
name
:
{
name
:
{
required
:
true
required
:
true
,
courseName
:
true
},
},
preview
:
{
preview
:
{
required
:
true
required
:
true
...
@@ -54,7 +57,8 @@ var vm = new Vue({
...
@@ -54,7 +57,8 @@ var vm = new Vue({
},
},
messages
:
{
messages
:
{
name
:
{
name
:
{
required
:
"请填写标题"
required
:
"请填写标题"
,
courseName
:
'课堂名称不允许出现“云涯”二字。'
},
},
preview
:
{
preview
:
{
required
:
"必须上传缩略图"
required
:
"必须上传缩略图"
...
...
src/frontend/web/js/user-center/conponents/info.vue
View file @
7c137d0e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"add-box-main"
>
<div
class=
"add-box-main"
>
<div
class=
"tit"
>
基本信息
</div>
<div
class=
"tit"
>
基本信息
</div>
<avatar-upload
:uptoken=
"publicToken"
></avatar-upload>
<avatar-upload
:avatar=
"avatarsrc"
:uptoken=
"publicToken"
></avatar-upload>
<input
id=
"avatar"
type=
"hidden"
<input
id=
"avatar"
type=
"hidden"
v-model=
"avatar"
>
v-model=
"avatar"
>
...
...
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