瀏覽代碼

details_bar

zhashaonan 7 年之前
父節點
當前提交
9c1896e4fd
共有 3 個文件被更改,包括 25 次插入8 次删除
  1. 2 2
      pages/details/details.js
  2. 13 6
      pages/details/details.wxml
  3. 10 0
      pages/details/details.wxss

+ 2 - 2
pages/details/details.js

@@ -26,8 +26,8 @@ Page({
     this.setData({
       webViewUrl
     })
-    this.getDatas(options.goods_id)
-    // this.getDatas(6143)
+    // this.getDatas(options.goods_id)
+    this.getDatas(6678)
   },
   getDatas(goods_id) {
     var self = this

+ 13 - 6
pages/details/details.wxml

@@ -8,12 +8,12 @@
         </swiper-item>
       </block>
     </swiper>
-    <view class="comment_swiper" wx:if="{{datas.comment.content}}">  
-        <navigator class="f0" url="/pages/comments/comments?common_id={{datas.comment.common_id}}">
-          <image src="{{datas.comment.member_avatar}}"></image>
-          <text class="nickname" decode="{{true}}">&nbsp;&nbsp;{{datas.comment.nickname}}:</text>
-          <text class="comment_content one_line_hidden">{{datas.comment.content}}</text>
-        </navigator>
+    <view class="comment_swiper" wx:if="{{datas.comment.content}}">
+      <navigator class="f0" url="/pages/comments/comments?common_id={{datas.comment.common_id}}">
+        <image src="{{datas.comment.member_avatar}}"></image>
+        <text class="nickname" decode="{{true}}">&nbsp;&nbsp;{{datas.comment.nickname}}:</text>
+        <text class="comment_content one_line_hidden">{{datas.comment.content}}</text>
+      </navigator>
     </view>
     <view class="details_collection flex_center">已收藏人数 {{getOneSummary.goods_collect}}</view>
   </view>
@@ -99,4 +99,11 @@
 
   <view class="place-bac247"></view>
   <button style="width: 60%;" type="primary" plain="true" bindtap="toWebView">查看更多详情</button>
+
+  <!-- <view class="details_tabbar">
+    <navigator class="details_tabbar_item" url="/pages/comments/comments">
+      
+    </navigator>
+  </view> -->
+
 </view>

+ 10 - 0
pages/details/details.wxss

@@ -246,3 +246,13 @@
   font-size: 24rpx;
   color: rgb(167, 167, 167);
 }
+
+.details_tabbar {
+  position: fixed;
+  display: flex;
+  z-index: 500;
+  left: 0;
+  right: 0;
+  bottom: 0;
+  background: #fff;
+}