test.wxml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <home-skeleton isLoading="{{isLoading}}">
  2. <view class="top-box" style="padding-top:96rpx;padding-left: 20rpx;">
  3. <image class="image-bgc" src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20220317/home_bgc.png"></image>
  4. <view class="flex">
  5. <image src="/images/icon_06.png"></image>
  6. <text style="color: #fff;">南山店海雅店</text>
  7. <image src="/images/icon_07.png"></image>
  8. </view>
  9. </view>
  10. <view class="content" style="margin-top: -270rpx;">
  11. <swiper indicator-dots autoplay circular indicator-color="#CECECE" indicator-active-color="#FA7D22">
  12. <swiper-item wx:for="{{homeData.banner}}" wx:key="index" bindtap="goToUrl" data-url="{{ item.url }}">
  13. <image src="{{item.image_url}}"></image>
  14. </swiper-item>
  15. </swiper>
  16. <view class="plan flex">
  17. <view class="plan-item flex-column" style="width:240rpx;margin-right: 20rpx;">
  18. <view class="top-text flex-align-center">肌肤得分</view>
  19. <view class="bottom-box flex1 flex-column flex-center">
  20. <text class="sum">58</text>
  21. <text class="text">检测于5天前</text>
  22. </view>
  23. </view>
  24. <view class="plan-item flex1 flex-column">
  25. <view class="top-text flex-justify-space-between flex-align-center">
  26. <text>我的变美计划</text>
  27. <text>33%>></text>
  28. </view>
  29. <view class="bottom-box flex-align-center plan-scroll-x flex1 " style="overflow-x: scroll;">
  30. <image src="" wx:for="{{ 5 }}" wx:key="index"></image>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="title flex-align-center">开卡活动</view>
  35. <swiper indicator-dots autoplay circular indicator-color="#CECECE" indicator-active-color="#FA7D22">
  36. <swiper-item wx:for="{{homeData.banner}}" wx:key="index" bindtap="goToUrl" data-url="{{ item.url }}">
  37. <image src="{{item.image_url}}"></image>
  38. </swiper-item>
  39. </swiper>
  40. <view class="title flex-align-center flex-justify-space-between">
  41. <text class="title-text flex-align-center">推荐项目</text>
  42. <view class="right flex-align-center">
  43. <text>查看更多</text>
  44. <image src="/images/icon_08.png"></image>
  45. </view>
  46. </view>
  47. <view class="project-list">
  48. <view class="project-item flex flex-align-center" style="padding: 0 72rpx 0 48rpx;" wx:for="{{ 3 }}" wx:key="index">
  49. <view class="flex-column flex1">
  50. <text style="font-size: 28rpx;font-weight: 500;font-family: PingFangSC-Medium, PingFang SC;">水氧活肤</text>
  51. <text style="font-size: 24rpx;color:#666;margin-top: 18rpx;margin-bottom: 54rpx;">帮您解决缺水、细纹、干燥起皮、色斑、暗沉、粗糙</text>
  52. <text style="font-size: 28rpx;">时长45分钟</text>
  53. </view>
  54. <image src="" style="margin-left: 84rpx;"></image>
  55. </view>
  56. </view>
  57. <view class="flex article">
  58. <view class="article-item flex-column left flex-center">
  59. <image src="/images/icon_logo.png"></image>
  60. <text>互联网自助美容</text>
  61. </view>
  62. <view class="flex1 flex-column right">
  63. <view class="article-item flex1 right-item flex-align-center" style="margin-bottom: 20rpx;">
  64. <image src="/images/icon_09.png"></image>
  65. <text>设备介绍</text>
  66. </view>
  67. <view class="article-item flex1 right-item flex-align-center">
  68. <image src="/images/icon_10.png"></image>
  69. <text>会员以产品</text>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. <view class="location flex-align-center" bindtap="goToStore">
  75. <!-- <view class="img">
  76. <image class="img1" src="{{homeData.store.logo_url}}"></image>
  77. <image class="img2" src="/images/my/downsemicircle.png"></image>
  78. <text>已选</text>
  79. </view> -->
  80. <image src="{{homeData.store.logo_url}}"></image>
  81. <view class="text flex-column flex1">
  82. <view class="text-box flex-align-center" style="margin-bottom:8rpx;">
  83. <text class="ellipsis" style="font-family: PingFangSC-Semibold;">{{homeData.store.store_name}}</text>
  84. <view class="active flex-center">已选</view>
  85. </view>
  86. <view class="text-box flex-align-center">
  87. <text class="ellipsis" style="font-size:24rpx;width:280rpx;">{{homeData.store.belong_region}}</text>
  88. <text style="font-size:24rpx;color: #FA7D22;">更多>></text>
  89. </view>
  90. </view>
  91. </view>
  92. <view class="content">
  93. <view class="title flex-align-center">项目推荐</view>
  94. <view class="list">
  95. <!-- <navigator wx:for="{{list}}" wx:key="index"
  96. url="/pages/projectDetail/projectDetail?project_id={{item.id}}&store_id={{homeData.store.id}}"
  97. hover-class="none" id="goToProject">
  98. </navigator> -->
  99. <view bindtap="goToProject" class="goToProject" data-item="{{item}}" wx:for="{{list}}" wx:key="index">
  100. <view class="item radius flex-column">
  101. <image class="item-top" src="{{item.cover_url}}"></image>
  102. <view class="item-text flex-column">
  103. <!-- <view class="box">
  104. <image src="/images/my/tag.png"></image>
  105. <view class="flex-center">{{index+1}}</view>
  106. </view> -->
  107. <text class="ellipsis" style="font-family: PingFangSC-Medium, PingFang SC;">{{item.project_name}}</text>
  108. <text class="ellipsis" style="font-size: 24rpx;color: #666;margin-top: 10rpx;" wx:if="{{item.project_desc}}">{{item.project_desc}}</text>
  109. </view>
  110. <view class="item-btn flex-align-center">
  111. <text style="font-family: PingFangSC-Semibold;font-size: 44rpx;color: #E95564;">¥{{item.price}}</text>
  112. <text style="margin-left:24rpx;font-size: 28rpx;color: #CCCCCC;text-decoration:line-through;">¥{{item.original_price}}</text>
  113. <text class="flex1"></text>
  114. <view class="btn flex-center">预约项目</view>
  115. <!-- <image src="/images/my/button.png">
  116. <text class="flex-center">预约项目</text>
  117. </image> -->
  118. </view>
  119. </view>
  120. </view>
  121. <view style="text-align:center;margin-top:100rpx;color:#fff;display: {{list.length == 0 ? 'block' : 'none'}};">
  122. 该店铺暂无项目~
  123. </view>
  124. </view>
  125. <view class="title flex-align-center" style="justify-content: space-between" wx:if="{{ homeData.case_list && homeData.case_list.length > 0 }}">
  126. <text style="font-family: PingFangSC-Semibold, PingFang SC;">会员案例</text>
  127. <navigator url="/pages/caseList/caseList" hover-class="none">
  128. <view class="flex-align-center">
  129. <text style="font-size: 28rpx;color: #666666;">查看全部</text>
  130. <image style="width: 48rpx;height: 48rpx;" src="/images/icon_01.png"></image>
  131. <!-- <text style="font-size: 28rpx;color: #666666;">查看全部 >></text> -->
  132. </view>
  133. </navigator>
  134. </view>
  135. <scroll-view class="case-list" scroll-x>
  136. <view class="flex">
  137. <navigator url="/pages/caseDetail/caseDetail?id={{item.id}}" hover-class="none" wx:for="{{ homeData.case_list }}" wx:key="index" class="test">
  138. <view class="case-item flex-column">
  139. <image src="{{ item.cover }}"></image>
  140. <view class="text-box flex-column">
  141. <text class="ellipsis" style="font-size: 28rpx;font-family: PingFangSC-Medium, PingFang SC;">{{ item.title }}</text>
  142. <text class="ellipsis" style="font-size: 24rpx;color: #666666;">{{ item.desc }}</text>
  143. </view>
  144. </view>
  145. </navigator>
  146. </view>
  147. </scroll-view>
  148. </view>
  149. <navigator url="/pages/vip/vip" hover-class="none" wx:if="{{ activity.expire_time_seconds && activity.expire_time_seconds > 0 && btmToast }}">
  150. <view class="btm-toast">
  151. <view class="flex flex-center margin-box">
  152. <image src="/images/icon_avatar_01.png" class="left-image"></image>
  153. <view class="right flex1 flex-column">
  154. <view class="">
  155. <text>初次到店体验后福利,立即开卡享</text>
  156. <text style="color:#FF6CB2;">{{activity.discount}}</text>
  157. <text>折</text>
  158. </view>
  159. <text>福利活动剩余时间 {{activity.currentTime}}</text>
  160. <text>错过不再有,速领!</text>
  161. </view>
  162. <image src="/images/icon_close_01.png" class="close" catchtap="onCloseToast"></image>
  163. <view class="btn flex-center">立即开卡</view>
  164. </view>
  165. </view>
  166. </navigator>
  167. <wux-landscape visible="{{ visible }}" maskClosable="{{ true }}" closable="{{ true }}" bind:close="onClose" data-key="visible" class="home-coupon" newPrefixCls="wux-popup-widtn">
  168. <view class="img-box" bindtap="onConfirm">
  169. <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20220317/home_popup.png" class="coupon-popup-img" />
  170. <text>有效期:{{coupon.ex_time}}</text>
  171. </view>
  172. <!-- <view class="coupon-popup" style="display: none;">
  173. <text style="font-size: 36rpx;">恭喜获取优惠券一张</text>
  174. <view class="item flex">
  175. <view class="item-left flex-center">
  176. <text style="color: #fff;">新人\n体验券</text>
  177. </view>
  178. <view class="item-right flex1 flex-column">
  179. <text>有效期</text>
  180. <text>{{coupon.ex_time}}</text>
  181. <text>{{coupon.coupon_desc}}</text>
  182. </view>
  183. </view>
  184. <view class="btn flex-center" bindtap="onConfirm">确认领取</view>
  185. </view> -->
  186. </wux-landscape>
  187. <!-- 一天一次 -->
  188. <!-- 项目详情 -->
  189. <!-- !visible && posterPopup -->
  190. <wux-landscape visible="{{ !visible && posterPopup }}" maskClosable="{{ true }}" closable="{{ true }}" wx:if="{{ homeData.ad && homeData.ad.cover }}" bind:close="onClose" data-key="posterPopup" class="home-poster" newPrefixCls="wux-popup-widtn">
  191. <view class="img-box" bindtap="goToUrl" data-url="{{ homeData.ad.url }}">
  192. <image src="{{homeData.ad.cover}}" class="coupon-popup-img" />
  193. </view>
  194. </wux-landscape>
  195. </home-skeleton>