index.wxml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <nav type="back" background-color="{{activeColor}}" title="购买详情" frontColor="#ffffff" />
  2. <image class="image" src="{{goods.image}}" />
  3. <view class="goods">
  4. <view class="goods-name">{{goods.name}}</view>
  5. <view class="goods-price">
  6. <view class="price">
  7. <view class="price1">¥</view>
  8. <view class="price-size">{{goods.price}}</view>
  9. <view class="original"> ¥{{goods.originalPrice}}</view>
  10. </view>
  11. <view class="security-number">已售{{goods.sales}}</view>
  12. </view>
  13. <block wx:for="{{goods.services}}" wx:key="index">
  14. <view class="instructions">
  15. <view class="instructions-txt">{{item.value}}</view>
  16. </view>
  17. </block>
  18. </view>
  19. <view class="package">
  20. <view class="package-name">
  21. <view class="name">特色详情</view>
  22. <rich-text nodes="{{goods.details}}" style="width: 92%;height: 100%; margin-right: 0 auto;"></rich-text>
  23. </view>
  24. </view>
  25. <view class="shopstore">
  26. <view class="store-name">适用商户</view>
  27. <view class="stores">
  28. <view class="stores-box">
  29. <image class="store-image" src="{{goods.shopStore.cover}}" />
  30. <view class="store-title">
  31. <view class="name">{{goods.shopStore.storeName}}</view>
  32. <view class="score">
  33. <van-rate readonly value="{{ goods.shopStore.score }}" allow-half void-icon="star" size="{{ 10 }}" void-color="#eee" color="#FF8936" />
  34. <view class="scores">{{goods.shopStore.score}}分</view>
  35. </view>
  36. <view class="time">营业时间:{{goods.shopStore.workingTime}}</view>
  37. </view>
  38. </view>
  39. <view class="phone" bindtap="phone">
  40. <view style="text-align: center;">
  41. <van-icon name="phone" size="30px" />
  42. </view>
  43. <view class="contact">联系商家</view>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="evaluation-box">
  48. <comment-list comments="{{comments}}" title="评价" showMore="{{comments.length==10?true:false}}" bind:more="comment"></comment-list>
  49. </view>
  50. <!-- <view class="evaluation">评价</view>
  51. <block wx:if="{{comments.length ==0}}">
  52. <view class="evaluation-box">
  53. <van-empty description="暂无评论" />
  54. </view>
  55. </block>
  56. <block wx:for="{{comments}}" wx:key="index">
  57. <view class="evaluation-box">
  58. <view class="evaluation-name">
  59. <view class="name">
  60. <image class="images" src="{{item.user.avatar}}" />
  61. <view class="names">
  62. <view class="username">{{item.user.nickname}}</view>
  63. <van-rate readonly value="{{ item.score }}" allow-half void-icon="star" size="24rpx" void-color="#eee" color="#FF8936" />
  64. </view>
  65. </view>
  66. <view class="time">{{item.orderTime}}</view>
  67. </view>
  68. <view class="evaluation-describe">{{item.content}}</view>
  69. <view class="evaluation-image" wx:for="{{item.images}}" wx:for-item="img" wx:key="index">
  70. <image class="images" src="{{img}}" />
  71. </view>
  72. </view>
  73. </block> -->
  74. <view class="button" bindtap="submit">
  75. <view class="button-name" style="background-color: {{activeColor}};">立即购买</view>
  76. </view>