beerDetail.wxml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <!--pages/beerDetail/beerDetail.wxml-->
  2. <wxs src="/utils/filter.wxs" module="filter" />
  3. <view class="img-box">
  4. <swiper class="img-box-swiper" current="{{bannerIndex}}" bindchange="bindchange">
  5. <swiper-item class="box-swiper-item" wx:for="{{beerData.imgUrls}}" wx:key="index" bindtap="previewMedia" data-index="{{index}}">
  6. <image mode="widthFix" src="{{item}}"></image>
  7. </swiper-item>
  8. </swiper>
  9. <view class="swiper-num" wx:if="{{beerData.imgUrls.length>1}}">
  10. {{bannerIndex+1}}/{{beerData.imgUrls.length}}
  11. </view>
  12. </view>
  13. <view class="name-box">
  14. <text>{{beerData.beerInfo.beerName}}</text>
  15. <text>{{beerData.beerInfo.beerEnName}}</text>
  16. </view>
  17. <view class="card-box" style="margin: 48rpx 0 56rpx;">
  18. <view class="card-item">
  19. <image src="/static/img/maiya.png"></image>
  20. <text>{{beerData.beerInfo.plato?beerData.beerInfo.plato:'N/A'}}°P</text>
  21. <text>麦芽浓度</text>
  22. </view>
  23. <view class="card-item">
  24. <image src="/static/img/alcohol.png"></image>
  25. <text>{{beerData.beerInfo.abv?beerData.beerInfo.abv:'N/A'}}%vol</text>
  26. <text>酒精度</text>
  27. </view>
  28. <view class="card-item">
  29. <image src="/static/img/bitterness.png"></image>
  30. <text>{{beerData.beerInfo.ibu?beerData.beerInfo.ibu:'N/A'}} IBU</text>
  31. <text>苦度值</text>
  32. </view>
  33. </view>
  34. <view class="card-box" style="padding-bottom: 48rpx;border-bottom: 24rpx solid #F5F5F5;">
  35. <view class="card-item">
  36. <image src="/static/img/style.png"></image>
  37. <text>{{beerData.beerInfo.typeName}}</text>
  38. <text>精酿风格</text>
  39. </view>
  40. <view class="card-item">
  41. <image src="/static/img/brand.png"></image>
  42. <text>{{beerData.beerInfo.brewery}}</text>
  43. <text>酿酒厂</text>
  44. </view>
  45. <view class="card-item">
  46. <image src="/static/img/ad.png"></image>
  47. <text>{{beerData.beerInfo.place}}</text>
  48. <text>生产地</text>
  49. </view>
  50. </view>
  51. <!-- <view class="charts-box">
  52. <canvas canvas-id="uxXiJSVkwzQtHtxxJadNKGaTRVZrgait" id="uxXiJSVkwzQtHtxxJadNKGaTRVZrgait" class="charts" bindtouchend="tap"/>
  53. <view class="chart-tips">
  54. <view class="charts-tip">
  55. <span style="background: #FFA100;"></span><span>当前</span>
  56. </view>
  57. <view class="charts-tip" style="margin-left: 64rpx;">
  58. <span style="background: #258AFB;"></span><span>平均</span>
  59. </view>
  60. </view>
  61. </view> -->
  62. <view class="introduce-box">
  63. <view>
  64. <text></text>
  65. <text>基本介绍</text>
  66. </view>
  67. <view class="introduce-view">{{beerData.beerInfo.introduce ? beerData.beerInfo.introduce : '无'}}</view>
  68. </view>
  69. <view class="introduce-box">
  70. <view>
  71. <text></text>
  72. <text>酒厂信息</text>
  73. </view>
  74. <view class="beer-box">
  75. <image src="{{beerData.beerInfo.breweryLogo}}"></image>
  76. <view class="beer-name">
  77. <text>{{beerData.beerInfo.brewery}}</text>
  78. <text>{{beerData.beerInfo.place}}</text>
  79. </view>
  80. <view class="beer-btn" hidden>详情</view>
  81. </view>
  82. </view>
  83. <view class="introduce-box">
  84. <view>
  85. <text></text>
  86. <text>啤酒参数</text>
  87. </view>
  88. <view class="params-view">
  89. <text>产品名称</text>
  90. <text>{{beerData.beerInfo.beerName}}</text>
  91. </view>
  92. <view class="params-view">
  93. <text>精酿风格</text>
  94. <text>{{beerData.beerInfo.typeName}}</text>
  95. </view>
  96. <view class="params-view">
  97. <text>原料</text>
  98. <text>{{beerData.beerInfo.materialList}}</text>
  99. </view>
  100. <view class="params-view">
  101. <text>麦芽浓度</text>
  102. <text>{{beerData.beerInfo.plato}}°P</text>
  103. </view>
  104. <view class="params-view">
  105. <text>酒精度</text>
  106. <text>≥ {{beerData.beerInfo.abv}}%vol</text>
  107. </view>
  108. <view class="params-view">
  109. <text>适用场景</text>
  110. <text>约会、自饮、送礼、宴请、聚餐</text>
  111. </view>
  112. <view class="params-view">
  113. <text>产地</text>
  114. <text>{{beerData.beerInfo.place}}</text>
  115. </view>
  116. <view class="params-view">
  117. <text>规格</text>
  118. <text>{{beerData.sp}}</text>
  119. </view>
  120. <view class="params-view">
  121. <text>保质期</text>
  122. <text>{{beerData.exp}}</text>
  123. </view>
  124. <view class="params-view">
  125. <text>贮存条件</text>
  126. <text>{{beerData.storage}}</text>
  127. </view>
  128. <view class="params-view">
  129. <text>温馨提示</text>
  130. <text>1. 未满18周岁的用户请勿购买本商品。2. 孕妇请勿饮酒。3. 酒后请勿驾车。</text>
  131. </view>
  132. </view>
  133. <cover-view class="btn-view">
  134. <cover-view class="touch-view" bindtap="wantDrinkFun">
  135. <cover-view class="touch-img">
  136. <cover-image src="/static/img/drink.png"></cover-image>
  137. <cover-view hidden="{{beerData.wantDrinkNum==0}}" style="{{beerData.wantDrinkNum>9?'padding: 0px 4rpx; border-radius: 24rpx':''}}">{{filter.wantDrinkNum(beerData.wantDrinkNum)}}</cover-view>
  138. </cover-view>
  139. <cover-view class="touch-text">想喝</cover-view>
  140. </cover-view>
  141. <cover-view class="touch-view" bindtap="toCircles" data-name="{{beerData.beerInfo.beerName}}">
  142. <cover-view class="touch-img">
  143. <cover-image src="/static/img/discuss.png"></cover-image>
  144. <cover-view hidden="{{beerData.commentNum==0}}" style="{{beerData.wantDrinkNum>9?'padding: 0px 4rpx; border-radius: 24rpx':''}}">{{filter.wantDrinkNum(beerData.commentNum)}}</cover-view>
  145. </cover-view>
  146. <cover-view class="touch-text">点评</cover-view>
  147. </cover-view>
  148. <cover-view class="add-btn" bindtap="goStore">到店品鉴</cover-view>
  149. <cover-view class="buy-btn" bindtap="goOrder">快递到家</cover-view>
  150. </cover-view>
  151. <view class="block"></view>
  152. <view class="nosale-bg" hidden="{{nosaleStatus}}">
  153. <view class="nosale-view">
  154. <image src="/static/img/close.png" bindtap="nosaleClose"></image>
  155. <image src="/static/img/hema.png"></image>
  156. <text>此款酒暂未开放售卖</text>
  157. <text>点击“想喝”提醒我们尽快上架</text>
  158. <text bindtap="nosaleClose">好的,知道了</text>
  159. </view>
  160. </view>