Skip to content

Commit d41ff6a

Browse files
committed
'新增评论页'
1 parent 871e3bc commit d41ff6a

23 files changed

+698
-234
lines changed

data/db.json

Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,5 +421,195 @@
421421
}],
422422
"token": "20FF7A9F00894D9EA282CEE218372902"
423423
}
424+
},
425+
"getDiscussionList": {
426+
"isSuccess": true,
427+
"retcode": "P0",
428+
"retmsg": "成功",
429+
"data": {
430+
"total": 1,
431+
"dataList": [{
432+
"udId": 1,
433+
"projectId": 1,
434+
"userId": 1,
435+
"userRealName": 1,
436+
"userLoginName": "Kolf",
437+
"userHeadImage": "https://placekitten.com/50/50",
438+
"point": 4,
439+
"comment": "Electron 是一款可以利用 Web技术 开发跨平台桌面应用的框架,最初是 Github 发布的 Atom 编辑器衍生出的 Atom Shell,后更名为 Electron。Electron 提供了一个能通过 JavaScript 和 HTML 创建桌面应用的平台,同时集成 Node 来授予网页访问底层系统的权限",
440+
"readTimes": 1,
441+
"agreementNumber": 1,
442+
"statusId": 0,
443+
"typeId": 1,
444+
"updateTime": 1469771535000,
445+
"createTime": 1469771502000,
446+
"imagePaths": [
447+
{
448+
"piId": 1,
449+
"picType": 1,
450+
"picStatus": 1,
451+
"picUrl": "https://placekitten.com/80/80",
452+
"picUri": 1,
453+
"remark": 1
454+
},{
455+
"piId": 1,
456+
"picType": 1,
457+
"picStatus": 1,
458+
"picUrl": "https://placekitten.com/90/90",
459+
"picUri": 1,
460+
"remark": 1
461+
},{
462+
"piId": 1,
463+
"picType": 1,
464+
"picStatus": 1,
465+
"picUrl": "https://placekitten.com/100/100",
466+
"picUri": 1,
467+
"remark": 1
468+
}
469+
]
470+
}, {
471+
"udId": 1,
472+
"projectId": 1,
473+
"userId": 1,
474+
"userRealName": 1,
475+
"userLoginName": "Kolf",
476+
"userHeadImage": "https://placekitten.com/50/50",
477+
"point": 4,
478+
"comment": "同时集成 Node 来授予网页访问底层系统的权限",
479+
"readTimes": 1,
480+
"agreementNumber": 1,
481+
"statusId": 1,
482+
"typeId": 1,
483+
"updateTime": 1469771535000,
484+
"createTime": 1469771502000,
485+
"imagePaths": [
486+
{
487+
"piId": 1,
488+
"picType": 1,
489+
"picStatus": 1,
490+
"picUrl": "https://placekitten.com/10/10",
491+
"picUri": 1,
492+
"remark": 1
493+
},{
494+
"piId": 1,
495+
"picType": 1,
496+
"picStatus": 1,
497+
"picUrl": "https://placekitten.com/20/20",
498+
"picUri": 1,
499+
"remark": 1
500+
},{
501+
"piId": 1,
502+
"picType": 1,
503+
"picStatus": 1,
504+
"picUrl": "https://placekitten.com/30/30",
505+
"picUri": 1,
506+
"remark": 1
507+
},{
508+
"piId": 1,
509+
"picType": 1,
510+
"picStatus": 1,
511+
"picUrl": "https://placekitten.com/50/40",
512+
"picUri": 1,
513+
"remark": 1
514+
},{
515+
"piId": 1,
516+
"picType": 1,
517+
"picStatus": 1,
518+
"picUrl": "https://placekitten.com/50/50",
519+
"picUri": 1,
520+
"remark": 1
521+
}
522+
]
523+
}, {
524+
"udId": 1,
525+
"projectId": 1,
526+
"userId": 1,
527+
"userRealName": 1,
528+
"userLoginName": "Kolf",
529+
"userHeadImage": "https://placekitten.com/50/50",
530+
"point": 5,
531+
"comment": "Electron 是一款可以利用 Web技术 开发跨平台桌面应用的框架,最初是 Github 发布的 Atom 编辑器衍生出的 Atom Shell,后更名为 E",
532+
"readTimes": 1,
533+
"agreementNumber": 1,
534+
"statusId": 1,
535+
"typeId": 1,
536+
"updateTime": 1469771535000,
537+
"createTime": 1469771502000,
538+
"imagePaths": [
539+
{
540+
"piId": 1,
541+
"picType": 1,
542+
"picStatus": 1,
543+
"picUrl": "https://placekitten.com/100/100",
544+
"picUri": 1,
545+
"remark": 1
546+
}
547+
]
548+
},{
549+
"udId": 1,
550+
"projectId": 1,
551+
"userId": 1,
552+
"userRealName": 1,
553+
"userLoginName": "Kolf",
554+
"userHeadImage": "https://placekitten.com/50/50",
555+
"point": 3,
556+
"comment": "Electron 是一款可以利用 Web技术 开发跨平台桌面应用的框",
557+
"readTimes": 1,
558+
"agreementNumber": 1,
559+
"statusId": 1,
560+
"typeId": 1,
561+
"updateTime": 1469771535000,
562+
"createTime": 1469771502000,
563+
"imagePaths": [
564+
{
565+
"piId": 1,
566+
"picType": 1,
567+
"picStatus": 1,
568+
"picUrl": "https://placekitten.com/100/100",
569+
"picUri": 1,
570+
"remark": 1
571+
}
572+
]
573+
},{
574+
"udId": 1,
575+
"projectId": 1,
576+
"userId": 1,
577+
"userRealName": 1,
578+
"userLoginName": "Kolf",
579+
"userHeadImage": "https://placekitten.com/50/50",
580+
"point": 4,
581+
"comment": "Electron 是一款可以利用 Web技术 开发跨平台桌面应用的框架,最初是 Github 发布的 Atom 编辑器衍生出的 Atom Shell,后更名为 Electron。Electron 提供了一个能通过 JavaScript",
582+
"readTimes": 1,
583+
"agreementNumber": 1,
584+
"statusId": 1,
585+
"typeId": 1,
586+
"updateTime": 1469771535000,
587+
"createTime": 1469771502000,
588+
"imagePaths": [
589+
{
590+
"piId": 1,
591+
"picType": 1,
592+
"picStatus": 1,
593+
"picUrl": "https://placekitten.com/100/100",
594+
"picUri": 1,
595+
"remark": 1
596+
}
597+
]
598+
}],
599+
"token": "20FF7A9F00894D9EA282CEE218372902"
600+
}
601+
},
602+
"saveAgreement": {
603+
"isSuccess": true,
604+
"retcode": "P0",
605+
"retmsg": "成功",
606+
"data": {
607+
"dataList": [
608+
{
609+
"udid": 1469771535000
610+
}
611+
],
612+
"token": "20FF7A9F00894D9EA282CEE218372902"
613+
}
424614
}
425615
}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>app</title>
77
</head>
88
<body>
9-
<app></app>
9+
<div id="app"></div>
1010
<!-- built files will be auto injected -->
1111
</body>
1212
</html>

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"vue-resource": "^0.9.3",
1919
"vue-router": "^0.7.13",
2020
"vuex": "^1.0.0-rc.2",
21-
"vux": "^0.1.1"
21+
"vux": "^0.1.1",
22+
"wx": "0.0.36"
2223
},
2324
"devDependencies": {
2425
"babel-core": "^6.0.0",

src/App.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,9 @@
77
</template>
88

99
<script>
10-
import {} from 'vux-components'
1110
import store from './vuex/store'
1211
1312
export default {
14-
components: {
15-
16-
},
1713
store
1814
}
1915
</script>
@@ -132,8 +128,8 @@ li{
132128
}
133129
134130
.lazy-img{
135-
background: #eee url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATYAAADcCAMAAADNyn3LAAAA7VBMV…OmTZs2tGnTpk0b2rRp06YNbdq0adOGNm3atGlDmzZt2giTpC8rKT9dRAAAAABJRU5ErkJggg==) center center no-repeat;
136-
background-size: cover;
131+
background: #ccc url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATYAAADcCAMAAADNyn3LAAAA7VBMV…OmTZs2tGnTpk0b2rRp06YNbdq0adOGNm3atGlDmzZt2giTpC8rKT9dRAAAAABJRU5ErkJggg==) center center no-repeat;
132+
background-size: 100% auto;
137133
}
138134
139135
.vux-fixed{

0 commit comments

Comments
 (0)