File tree 2 files changed +14
-12
lines changed
2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 4
4
第一个个人的vue项目+独自完成的前后端分离项目
5
5
总结一下,因为django rest framework并不是很熟练,实习的时候都是别人写好接口直接给我,自己用python写接口真的有点困难。前端方面还是比较简单,有些新的知识多看文档还是能解决的。接下来为这个项目做得工作,无非是移动端路由切换和表单提交信息的补充,作为第一个自己完整搭建的项目,我还是会好好维护的。
6
6
## 项目地址 [ www.bai3.xyz/comment ] ( http://www.bai3.xyz/comment )
7
- > 线上版本因为前后端图片路由问题导致图片不显示,所以线上没更新。可以自行下载github库自行安装运行
7
+
8
8
9
9
更新说明
10
10
- 2017/12/18
11
11
丰富了用户留言列表的大头贴
12
12
- 2017/12/19
13
13
添加了路由切换是动画效果(实际是想做移动端侧拉切换路由,没成功)
14
+ - 2017/12/20
15
+ 将图片弄到七牛加载,解决vue图片加载问题,正式发布1.0.0版本
14
16
15
17
### 技术栈
16
18
#### 前端
Original file line number Diff line number Diff line change 3
3
<div class =" main" v-for =" (todo, index) in comments" >
4
4
<div style =" margin-bottom : 15px " >
5
5
<div style =" display : inline-block " >
6
- <img :src =" '/src/assets/'+ header(index)" style =" width :35px " >
6
+ <img :src =" header(index)" style =" width :35px " >
7
7
</div >
8
8
<div class =" info" style =" display : inline-block " >
9
9
<span style =" font-size : 15px ;color : #333 ;" >{{todo.name}}</span ><br />
@@ -45,25 +45,25 @@ export default {
45
45
header (index ){
46
46
switch (index% 10 ){
47
47
case 0 :
48
- return ' 头像男孩.png' ;
48
+ return ' http://p00vufmn6.bkt.clouddn.com/image/head/ 头像男孩.png' ;
49
49
case 1 :
50
- return ' 头像女孩.png' ;
50
+ return ' http://p00vufmn6.bkt.clouddn.com/image/head/ 头像女孩.png' ;
51
51
case 2 :
52
- return ' 头像男孩(1).png' ;
52
+ return ' http://p00vufmn6.bkt.clouddn.com/image/head/ 头像男孩(1).png' ;
53
53
case 3 :
54
- return ' 头像女孩(1).png' ;
54
+ return ' http://p00vufmn6.bkt.clouddn.com/image/head/ 头像女孩(1).png' ;
55
55
case 4 :
56
- return ' 头像男孩(2).png' ;
56
+ return ' http://p00vufmn6.bkt.clouddn.com/image/head/ 头像男孩(2).png' ;
57
57
case 5 :
58
- return ' 头像女孩(2).png' ;
58
+ return ' http://p00vufmn6.bkt.clouddn.com/image/head/ 头像女孩(2).png' ;
59
59
case 6 :
60
- return ' 头像男孩(3).png' ;
60
+ return ' http://p00vufmn6.bkt.clouddn.com/image/head/ 头像男孩(3).png' ;
61
61
case 7 :
62
- return ' 头像女孩(3).png' ;
62
+ return ' http://p00vufmn6.bkt.clouddn.com/image/head/ 头像女孩(3).png' ;
63
63
case 8 :
64
- return ' 头像男孩(4).png' ;
64
+ return ' http://p00vufmn6.bkt.clouddn.com/image/head/ 头像男孩(4).png' ;
65
65
case 9 :
66
- return ' 头像女孩(4).png' ;
66
+ return ' http://p00vufmn6.bkt.clouddn.com/image/head/ 头像女孩(4).png' ;
67
67
}
68
68
69
69
}
You can’t perform that action at this time.
0 commit comments