dever 5 years ago
parent
commit
b50574a05d
1 changed files with 37 additions and 3 deletions
  1. 37 3
      pages/dream/view/comment.vue

+ 37 - 3
pages/dream/view/comment.vue

@@ -1,8 +1,8 @@
 <template name="comment">
 	<view>
-		<view class='msgs-tabs'>
-		  <view class='tit'>{{name}}</view>
-		  <view class='num'>全部评论(100)</view>
+		<view class="msgs-tabs">
+		  <view class="tit">{{name}}</view>
+		  <view class="num">全部评论(100)</view>
 		</view>
 		<view class="living">
 			<view class="rich-wrapper">
@@ -10,6 +10,11 @@
 			</view>
 			<view class="message" @touchstart="stop">
 				<y-Barrage ref="barrage" @end="reload" :minTime="minTime" :maxTime="maxTime"></y-Barrage>
+			</view>
+			
+			<view class="send clearfix">
+				<input type="text" bindinput="comment" value="" />
+				<view class="button primary" bindtap="pushComment">发布</view>
 			</view>
 		</view>
 	</view>
@@ -302,5 +307,34 @@ export default {
 }
 .console .edit.left30{
   left: 30rpx;
+}
+.button {
+  height: 80rpx;
+  border: 1rpx solid #cc1619;
+  color: #cc1619;
+  font-size: 30rpx;
+  min-width: 300rpx;
+  border-radius: 40rpx;
+  text-align: center;
+  line-height: 80rpx;
+  display: block;
+  position: relative;
+}
+.button>button{
+  position: absolute;
+  width: 100%;
+  height: 100%;
+  left: 0;
+  top: 0;
+  opacity: 0;
+}
+
+.button.big {
+  width: 420rpx;
+}
+
+.button.primary {
+  background-color: #000;
+  color: #fff;
 }
 </style>