index.wxml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <import src="../../wxParse/wxParse.wxml"/>
  2. <view class="container">
  3. <view class="swiper-container">
  4. <image src="{{imgurl+goodsDetail.goodsPic}}" width="355px" height="150px"></image>
  5. </view>
  6. <view class="goods-info">
  7. <view class="goods-title" >{{goodsDetail.goodsName}}
  8. <view bindtap='zan' style="float:right;">
  9. <image wx:if="{{zanstatus=='Y'}}" src="../../images/zan_com.png" style="width:15px;height: 15px;margin-right:25rpx;"/>
  10. <image wx:if="{{zanstatus=='N'}}" src="../../images/zan_normal.png" style="width:15px;height: 15px;margin-right:25rpx;"/>
  11. <text class='acount' style="margin-right:25rpx;" >{{znum}}</text>
  12. </view>
  13. </view>
  14. <view class="goods-price">¥{{goodsDetail.goodsShichangjia}}</view>
  15. </view>
  16. <view class="goods-des-info">
  17. <view class="goods-text">
  18. <template is="wxParse" data="{{wxParseData:article.nodes}}"></template>
  19. </view>
  20. </view>
  21. <view class='panel comments'>
  22. <view class='panel-heading base-padding'>
  23. <view class='panel-title pdt-30rpx strong font-lv2'>点评</view>
  24. </view>
  25. <view class='panel-body base-padding'>
  26. <block wx:if="{{comments.length>0}}">
  27. <view wx:for="{{comments}}" wx:key="index" wx:for-item="comment" class='row comment-list'>
  28. <view class='col-10 comment-right'>
  29. <view class='row comment-info'>
  30. {{comment.uname}}
  31. <view class='col'>
  32. <view class='score score-50'></view>
  33. </view>
  34. <view class='col'>
  35. <view class='pull-right font-lv4 color-grey'>{{common.relativeTime(comment.fbsj)}}</view>
  36. </view>
  37. </view>
  38. <view class='row comment-content color-grey font-lv3 mgt-15rpx'>{{comment.contents}}
  39. </view>
  40. <view wx:if="{{comment.huifu!=null && comment.huifu!=''}}" class='row comment-content color-grey font-lv3 mgt-15rpx'>
  41. 回复: {{comment.huifu}}
  42. </view>
  43. </view>
  44. </view>
  45. </block>
  46. </view>
  47. </view>
  48. <view class="footer-box">
  49. <view class="now-buy" bindtap="tobuy">立即预约</view>
  50. </view>
  51. <view class="show-popup" hidden="{{hideShopPopup}}" >
  52. <view class="popup-mask" bindtap="closePopupTap"></view>
  53. <view class="popup-contents">
  54. <view class="pop-goods-info">
  55. <view class="pop-img-box">
  56. <image src="{{goodsDetail.basicInfo.pic}}" class="goods-thumbnail"/>
  57. </view>
  58. <view class="pop-goods-des">
  59. <view class="pop-goods-title">{{goodsDetail.basicInfo.name}}</view>
  60. <view class="pop-goods-price">¥ {{selectSizePrice}}</view>
  61. </view>
  62. <view class="pop-goods-close" bindtap="closePopupTap"></view>
  63. </view>
  64. <view class="size-label-box">
  65. <block wx:for="{{goodsDetail.properties}}" wx:for-item="property" wx:for-index="idx">
  66. <view class="label">{{property.name}}</view>
  67. <view class="label-item-box">
  68. <view class="label-item {{item.active ? 'active' : '' }}" wx:for="{{property.childsCurGoods}}" bindtap="labelItemTap" data-propertyindex="{{idx}}" data-propertyid="{{property.id}}" data-propertyname="{{property.name}}" data-propertychildindex="{{index}}" data-propertychildid="{{item.id}}" data-propertychildname="{{item.name}}">
  69. {{item.name}}
  70. </view>
  71. </view>
  72. </block>
  73. </view>
  74. <view class="buy-num-box">
  75. <view class="num-label">购买数量</view>
  76. <view class="num-box">
  77. <view class="num-jian {{buyNumber == buyNumMin ? 'hui': ''}}" bindtap="numJianTap">-</view>
  78. <view class="num-input">
  79. <input type="number" value="{{buyNumber}}" disabled/>
  80. </view>
  81. <view class="num-jia {{buyNumber== buyNumMax ? 'hui': ''}}" bindtap="numJiaTap">+</view>
  82. </view>
  83. </view>
  84. <view class="popup-join-btn" bindtap="addShopCar">
  85. 加入购物车
  86. </view>
  87. </view>
  88. </view>
  89. </view>