Commit fd720b08 authored by xiabin's avatar xiabin

升级vue

parent 2fe3501a
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
<small>{{coursewareInfo.comment_count}}</small> <small>{{coursewareInfo.comment_count}}</small>
</div> </div>
</div> </div>
<!--<div v-if="coursewareInfo.isGuest" class="comment-login"> <div v-if="coursewareInfo.isGuest" class="comment-login">
需要 <a @click="login" href="javascript:;">登录</a> 才能评论 需要 <a @click="login" href="javascript:;">登录</a> 才能评论
</div>--> </div>
<div v-else class="comment-box"> <div v-else class="comment-box">
<div class="comment-input"> <div class="comment-input">
...@@ -24,21 +24,27 @@ ...@@ -24,21 +24,27 @@
<div v-if="coursewareInfo.isGuest" class="comment-foot clearfix"> <div v-if="coursewareInfo.isGuest" class="comment-foot clearfix">
<div class="comment-head pull-left" > <div class="comment-head pull-left">
<span>需要 <a @click="login" href="javascript:;">登录</a> 才能评论</span> <span>需要 <a @click="login" href="javascript:;">登录</a> 才能评论</span>
</div> </div>
<button @click="comment" class="btn btn-info pull-right m-t-10 m-r-10" disabled="disabled">发表评论</button> <button @click="comment" class="btn btn-info pull-right m-t-10 m-r-10" disabled="disabled">
发表评论
</button>
</div> </div>
<div v-else class="comment-foot clearfix"> <div v-else class="comment-foot clearfix">
<div class="comment-head pull-left" > <div class="comment-head pull-left">
<img :src="coursewareInfo.userAvatar"> <img :src="coursewareInfo.userAvatar">
</div> </div>
<button v-if="!coursewareInfo.isPreview" @click="comment" class="btn btn-primary pull-right m-t-10 m-r-10">发表评论</button> <button v-if="!coursewareInfo.isPreview" @click="comment"
<button v-else="!coursewareInfo.isPreview" class="btn btn-primary pull-right m-t-10 m-r-10">发表评论</button> class="btn btn-primary pull-right m-t-10 m-r-10">发表评论
</button>
<button v-else="!coursewareInfo.isPreview" class="btn btn-primary pull-right m-t-10 m-r-10">
发表评论
</button>
</div> </div>
......
<template xmlns:ref="http://www.w3.org/1999/xhtml"> <template xmlns:ref="http://www.w3.org/1999/xhtml">
<div>
<div class="container"> <div class="container">
<div class="cnt-tit"> <div class="cnt-tit">
<h3>{{coursewareInfo.courseName}}</h3> <h3>{{coursewareInfo.courseName}}</h3>
...@@ -134,6 +135,7 @@ ...@@ -134,6 +135,7 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
import Utils from '../../utils/utils'; import Utils from '../../utils/utils';
......
<template> <template>
<div>
<div id="edit-container" class="add-box" v-if="showEdit"> <div id="edit-container" class="add-box" v-if="showEdit">
<div class="add-box-main"> <div class="add-box-main">
<div class="tit">个人信息</div> <div class="tit">个人信息</div>
...@@ -38,6 +39,7 @@ ...@@ -38,6 +39,7 @@
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
import avatarUploader from '../../components/uploader/avatar-upload.vue'; import avatarUploader from '../../components/uploader/avatar-upload.vue';
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* Created by xiabin on 2016/9/29. * Created by xiabin on 2016/9/29.
*/ */
var Vue = require('vue'); var Vue = require('vue');
var info = require('./conponents/info.vue'); var info = require('./components/info.vue');
new Vue({ new Vue({
el:'#user-center-info-container', el:'#user-center-info-container',
components: { components: {
......
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
"style-loader": "^0.13.0", "style-loader": "^0.13.0",
"url-loader": "^0.5.7", "url-loader": "^0.5.7",
"expose-loader": "^0.7.1", "expose-loader": "^0.7.1",
"vue-hot-reload-api": "^2.0.6", "vue-hot-reload-api": "^1.2.0",
"vue-loader": "^10.0.0", "vue-loader": "^9.4.0",
"expose": "^0.1.4", "expose": "^0.1.4",
"jsx-loader": "^0.13.2", "jsx-loader": "^0.13.2",
"file-loader": "^0.8.5", "file-loader": "^0.8.5",
...@@ -44,6 +44,6 @@ ...@@ -44,6 +44,6 @@
"moment": "^2.13.0", "moment": "^2.13.0",
"simditor": "^2.3.6", "simditor": "^2.3.6",
"video.js": "^5.11.9", "video.js": "^5.11.9",
"vue": "^2.0.8" "vue": "^2.0.1"
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment