From bd996de410d3d90e691091d4a3a712fe1296799a Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Mon, 3 Aug 2020 09:05:30 +0800 Subject: [PATCH 1/2] goeasy --- components/index/zhibo-item/index.vue | 7 +- pages.json | 15 +- pages/index/index.vue | 4 +- {pageB => pages}/zhibo/index.nvue | 131 +++++++++++- static/chatservice.js | 276 ++++++++++++++++++++++++++ static/danmu.png | Bin 0 -> 1188 bytes static/goeasy-im-1.0.9.js | 2 + 7 files changed, 422 insertions(+), 13 deletions(-) rename {pageB => pages}/zhibo/index.nvue (71%) create mode 100644 static/chatservice.js create mode 100644 static/danmu.png create mode 100644 static/goeasy-im-1.0.9.js diff --git a/components/index/zhibo-item/index.vue b/components/index/zhibo-item/index.vue index f7e7c4e..880a107 100644 --- a/components/index/zhibo-item/index.vue +++ b/components/index/zhibo-item/index.vue @@ -74,14 +74,15 @@ export default { methods:{ zhibo(){ this.$u.route({ - url:"/pageB/zhibo/index", + url:"/pages/zhibo/index", params:{ url:this.url, - id:this.zid + id:this.zid, + rid:this.rid } }) } }, - props:['name','image','url','zid'] + props:['name','image','url','zid','rid'] } \ No newline at end of file diff --git a/pages.json b/pages.json index 985e461..093f209 100644 --- a/pages.json +++ b/pages.json @@ -80,13 +80,7 @@ { "root": "pageB", "pages": [ - { - "path": "zhibo/index", - "style": { - "navigationStyle": "custom" - - } - }, + { "path": "follow/index", "style": { @@ -871,6 +865,13 @@ "navigationStyle": "custom" } }, + { + "path": "pages/zhibo/index", + "style": { + "navigationStyle": "custom" + + } + }, { "path": "pages/index/index", "style": { diff --git a/pages/index/index.vue b/pages/index/index.vue index ff5aaa2..7589dc2 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -39,10 +39,10 @@ - + - + diff --git a/pageB/zhibo/index.nvue b/pages/zhibo/index.nvue similarity index 71% rename from pageB/zhibo/index.nvue rename to pages/zhibo/index.nvue index c1a6c86..cdc16d1 100644 --- a/pageB/zhibo/index.nvue +++ b/pages/zhibo/index.nvue @@ -21,7 +21,23 @@ + + + + 想说点什么 + + + + + + 发送 + + +
+ {{i.senderNickname}}:{{i.content}} + +
@@ -242,8 +258,62 @@ right: 31rpx; background-color: #0f0; } +.danmufasongbox{ + width: 308rpx; + height: 58rpx; + position: fixed; + left: 30rpx; + bottom: 30rpx; + flex-direction: row; + align-items: center; +} +.danmufasongboxback{ + position: absolute; + top: 0; + left: 0; + width: 308rpx; + height: 58rpx; + background-color: #0f0; + opacity: 0.4; + border-radius: 29rpx; +} +.danmubianji{ + width: 27rpx; + height: 32rpx; + margin-left: 20rpx; +} +.danmuinputbox{ + position: fixed; + bottom:0; + height: 100rpx; + width: 750rpx; + z-index: 9999; + background-color: #fff; + flex-direction: row; + align-items: center; + +} +.danmufasong{ + width: 85rpx; + height: 51rpx; + background-color: #FF780F; + align-items: center; + justify-content: center; + border-radius: 5rpx; +} +.danmulist{ + position: fixed; + left: 30rpx; + bottom: 118rpx; +} +.danmuitem{ + font-size: 26rpx; + color: #fff; + flex-direction: column-reverse; +} \ No newline at end of file +