index.wxml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <nav type="back" background-color="{{activeColor}}" title="店铺详情" frontColor="#ffffff" />
  2. <image class="image" src="{{shopstore.cover}}" />
  3. <view class="store">
  4. <view class="store-name">{{shopstore.storeName}}</view>
  5. <view class="store-box">
  6. <view class="store-evaluation">
  7. <van-rate readonly value="{{ shopstore.score }}" allow-half void-icon="star" size=" 24rpx " void-color="#eee" color="#fc853c" bind:change="onChange" />
  8. <view class="evaluation" style="color:{{activeColor}}" >{{ shopstore.score }}</view>
  9. <view class="price">¥{{shopstore.perCapita}}/人</view>
  10. </view>
  11. </view>
  12. <view class="box-title" style="border-bottom: 1rpx solid {{activeColor}};">
  13. <view class="box-time">
  14. <view class="state">营业时间</view>
  15. <view>{{shopstore.workingTime}}</view>
  16. </view>
  17. <view wx:if="{{shopstore.vrUrl}}" class="vr_btn" data-path="{{shopstore.vrUrl}}" style="background-color:{{activeColor}}" bind:tap="toWebView">
  18. VR探店
  19. </view>
  20. </view>
  21. <view class="desc" wx:if="{{shopstore.desc}}">店铺简介:</view>
  22. <view class="desc-i">{{shopstore.desc}}</view>
  23. <view class="address">
  24. <view class="address-details">
  25. <view>店铺地址:</view>
  26. <view class="addres">{{shopstore.storeAddress}}</view>
  27. <!-- <view class="way">
  28. <van-icon name="location-o" />
  29. {{distance}}km
  30. </view> -->
  31. </view>
  32. <view class="taxi">
  33. <view class="taxi-box" bindtap="taxi">
  34. <view class="taxi-phone">
  35. <van-icon size="50rpx" name="https://file-cloud.fmode.cn/sHNeVwSaAg/20220528/47bf4h025640.png" />
  36. </view>
  37. <view>打车</view>
  38. </view>
  39. <view class="taxi-boxs" bindtap="phone">
  40. <view class="taxi-phone">
  41. <van-icon size="50rpx" name="phone" />
  42. </view>
  43. <view>电话</view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="all">
  49. <van-tabs class="alls" active="{{ active }}" bind:change="onevaluation" color="{{activeColor}}">
  50. <van-tab title="全部"></van-tab>
  51. <van-tab title="评价"></van-tab>
  52. </van-tabs>
  53. </view>
  54. <block wx:if="{{active==0}}">
  55. <view class="store">
  56. <block wx:if="{{list.length == 0}}">
  57. <van-empty description="暂无商品" />
  58. </block>
  59. <block wx:for="{{list}}" wx:key="index">
  60. <view class="store-goods" bindtap="goodsdetails" data-item="{{item}}">
  61. <image class="images" src="{{item.image}}" />
  62. <view class="goods-details">
  63. <view class="goods-name">{{item.name}}</view>
  64. <view class="goods-time">周一至周日</view>
  65. <view class="goods-title">
  66. <view class="goods-price">
  67. <view class="price">¥{{item.price}}</view>
  68. <view class="original">¥{{item.originalPrice}}</view>
  69. </view>
  70. <!-- <view class="goods-number">{{item.}}</view> -->
  71. </view>
  72. </view>
  73. <view class="buy" style="background-color:{{activeColor}}">购买</view>
  74. </view>
  75. </block>
  76. </view>
  77. </block>
  78. <block wx:if="{{active==1}}">
  79. <view class="box">
  80. <!-- <view class="recommended-box">
  81. <view style="display: flex;">
  82. <view class="recommended-icon"></view>
  83. <view class="recommended">评价</view>
  84. </view>
  85. <block wx:if="{{comments.length > 10}}">
  86. <view bindtap="comment">
  87. 更多
  88. <van-icon name="arrow" />
  89. </view>
  90. </block>
  91. </view> -->
  92. <comment-list comments="{{comments}}" title="评价" showMore="{{comments.length==10?true:false}}" bind:more="comment"></comment-list>
  93. <!-- <view class="comment" wx:for="{{comments}}" wx:key="index">
  94. <view class="comment-header">,
  95. <view class="header-avatar">
  96. <image class="header-avatar-image" src="{{item.user.avatar}}"></image>
  97. </view>
  98. <view class="header-text">
  99. <view class="comment-name text-small">{{item.user.nickname}}</view>
  100. <view class="comment-score ">
  101. <van-rate readonly allow-half value="{{ item.score }}" size="{{ 12 }}" color="#FF8936" void-icon="star" void-color="#eee" />
  102. </view>
  103. </view>
  104. <view class="comment-date text-small grey">{{item.orderTime}}</view>
  105. </view>
  106. <view class="comment-content">
  107. <view class="comment-text text">{{item.content}}</view>
  108. <view class="comment-images">
  109. <block wx:for="{{item.images}}" wx:key="index" wx:for-item="image">
  110. <image class="comment-image" src="{{image}}"></image>
  111. </block>
  112. </view>
  113. </view>
  114. </view> -->
  115. </view>
  116. </block>
  117. <view class="to_order" wx:if="{{tableList.length}}" catchtap="toOrder" style="background-color:{{activeColor}}">
  118. 到店点餐
  119. </view>