home.wxml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. <view class="bg">
  2. <!-- <view class="newyear" bindtap="newyear">新年入口</view> -->
  3. <view class="home">
  4. <view class="swiper-container">
  5. <swiper class="swiper" indicator-dots="{{swiper.indicatorDots}}" current="{{swiperCurrent}}" indicator-color="#fff" indicator-active-color="#eab86a" autoplay="{{swiper.autoplay}}" interval="{{swiper.interval}}">
  6. <block wx:for="{{bannerList}}" wx:key="{{index}}">
  7. <swiper-item>
  8. <image src="{{item.img}}" class="swiperImage" bindtap="toColumn" data-val="{{item}}" />
  9. </swiper-item>
  10. </block>
  11. </swiper>
  12. <!--current="{{swiperCurrent}}"-->
  13. <!--<view class="swiper-dots">
  14. <block wx:for="{{bannerList}}" wx:key="{{index}}">
  15. <view class="swiper-dot {{index == swiperCurrent ? 'swiper-active' : ''}}"></view>
  16. </block>
  17. </view>-->
  18. </view>
  19. <view class="selectitem" wx:if="{{iconslist.length > 0}}">
  20. <view wx:key="{{index}}" wx:for="{{iconslist}}">
  21. <!--<navigator url="{{item.url}}" hover-class="none" open-type="switchTab" wx:if="{{}}">
  22. </navigator>-->
  23. <view bindtap="toview" data-val="{{item}}">
  24. <image src="{{item.cover}}" class="item-index" />
  25. <view class="item-name">{{item.name}}</view>
  26. </view>
  27. </view>
  28. <view bindtap="todz">
  29. <image src="https://fohow.oss-cn-shenzhen.aliyuncs.com/navigate_icon_config/7427d1a0.jpg" class="item-index" />
  30. <view class="item-name" wx:if="{{userinfo.rank < 2}}">申请店长</view>
  31. <view class="item-name" wx:if="{{userinfo.rank == 2}}">店长专区</view>
  32. </view>
  33. <view bindtap="toabout">
  34. <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/navigation_icons/about.png" class="item-index" />
  35. <view class="item-name">关于商城</view>
  36. </view>
  37. <view bindtap="topyq">
  38. <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/navigation_icons/pyq.png" class="item-index" />
  39. <view class="item-name">发圈素材</view>
  40. </view>
  41. </view>
  42. <view class="column" wx:if="{{vershow}}" wx:if="{{firstProject.length > 0}}">
  43. <view class="first-project">
  44. <image src="{{item.cover}}" wx:key="{{index}}" wx:for="{{firstProject}}" bindtap="toColumn" data-val="{{item}}" class="first-project__image" />
  45. <view class="clean"></view>
  46. </view>
  47. <view class="second-project">
  48. <image src="{{item.cover}}" wx:key="{{index}}" wx:for="{{secondProject}}" bindtap="toColumn" data-val="{{item}}" class="second-project__image" />
  49. <view class="clean"></view>
  50. </view>
  51. </view>
  52. <view class="seckill" wx:if="{{seckilltimelist.length > 0}}">
  53. <view class="seckill-top">
  54. <view class="seckill-title">
  55. <view class="seckill-time">
  56. <view wx:if="{{changeshow === 'seckill'}}">
  57. <view class="time-click">
  58. <!--<view class="time-item time-kuang1">{{msecond}}</view>-->
  59. <view class="time-item time-kuang">{{second}}</view>
  60. <view class="time-item time-color"> : </view>
  61. <view class="time-item time-kuang">{{min}}</view>
  62. <view class="time-item time-color"> : </view>
  63. <view class="time-item time-kuang">{{hour}}</view>
  64. </view>
  65. <view class="time-text">本期剩余时间</view>
  66. </view>
  67. <view wx:if="{{changeshow === 'end'}}">
  68. <view class="time-text" style="font-weight:600;padding-right:0">本期已结束</view>
  69. </view>
  70. <view wx:if="{{changeshow === 'none'}}">
  71. <view class="time-text" style="font-weight:600;padding-right:0">暂无秒杀</view>
  72. </view>
  73. <view wx:if="{{changeshow === 'preparing'}}">
  74. <view wx:if="{{showtime == 12}}" class="time-text" style="font-weight:600;padding-right:0">当天<text style="color:#f85550">中午{{showtime}}点</text>开始 , 敬请期待 ! </view>
  75. <view wx:if="{{showtime < 12}}" class="time-text" style="font-weight:600;padding-right:0">当天<text style="color:#f85550">早上{{showtime}}点</text>开始 , 敬请期待 ! </view>
  76. <view wx:if="{{showtime > 12 && showtime <= 18}}" class="time-text" style="font-weight:600;padding-right:0">当天<text style="color:#f85550">下午{{showtime}}点</text>开始 , 敬请期待 ! </view>
  77. <view wx:if="{{showtime > 18}}" class="time-text" style="font-weight:600;padding-right:0">当天<text style="color:#f85550">晚上{{showtime}}点</text>开始 , 敬请期待 ! </view>
  78. </view>
  79. </view>
  80. </view>
  81. <view><image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/neverse/seckill.png" class="seckill-img" /></view>
  82. </view>
  83. <view class="seckill-scrol">
  84. <scroll-view scroll-x="true" class="time-nav" scroll-into-view="{{toView}}" scroll-left="{{navScrollLeft}}" scroll-with-animation="{{true}}">
  85. <view class="time-part" wx:for="{{seckilltimelist}}" wx:for-index="idx" wx:key="{{idx}}" id="a{{item.date_format}}">
  86. <view class="{{currentTab === item.date_format ?'active':''}}" data-val="{{idx}}" data-current="{{item.state}}" data-showtime="{{item.start_time}}" data-time="{{item.date_format}}" wx:show="{{!change}}" bindtap="switchtime">
  87. <view class="{{currentTab === idx ?'active':''}}" data-val="{{idx}}" data-current="{{item.state}}" data-showtime="{{item.start_time}}" data-time="{{item.date_format}}" wx:show="{{change}}" bindtap="switchtime">
  88. <view class="part-text"><format-time type="formatmonth2" value="{{item.date}}"></format-time></view>
  89. <view class="part-text1">{{item.state_cn}}</view>
  90. <view class="{{currentTab === item.date_format ?'part-bottom':''}}" wx:show="{{!change}}"></view>
  91. <view class="{{currentTab === idx ?'part-bottom':''}}" wx:show="{{change}}"></view>
  92. </view>
  93. </view>
  94. </view>
  95. </scroll-view>
  96. </view>
  97. <view>
  98. <view class="seckill-teambuy" wx:if="{{false}}">
  99. <view class="teambuy-top">
  100. <view class="teambuy-top-left">
  101. <image src="" class="teambuy-buyimg" />
  102. </view>
  103. <view class="teambuy-top-right">
  104. <view class="teambuy-buytext">限时特价团购</view>
  105. <view class="teambuy-buytext1">¥88.88</view>
  106. <view class="teambuy-buytext2">¥128.88</view>
  107. </view>
  108. <view class="clear"></view>
  109. </view>
  110. <view class="teambuy-bottom">
  111. <view class="teambuy-bottom-left">
  112. <view class="teambuy-bottom-title">
  113. 啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦
  114. </view>
  115. <view>
  116. <view>
  117. <image class="teambuy-bottom-shopcar" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/neverse/shopcar.png" />
  118. </view>
  119. <view class="teambuy-bottom-shoptext">
  120. 剩余888份
  121. </view>
  122. <view class="clear"></view>
  123. </view>
  124. </view>
  125. <view class="teambuy-bottom-right">
  126. <view class="teambuy-bottom-btn">立即抢购</view>
  127. </view>
  128. <view class="clear"></view>
  129. </view>
  130. </view>
  131. <view class="seckill-project" wx:if="{{killgoodslist.length > 0}}" wx:for="{{killgoodslist}}" wx:key="{{index}}" bindtap="toProject" data-val="{{item.id}}">
  132. <view class="seckill-project-left">
  133. <image class="seckill-project-img" src="{{item.cover}}" />
  134. </view>
  135. <view class="seckill-project-right">
  136. <!--<view class="seckill-project-text">限时特价单品</view>-->
  137. <!--<view class="seckill-project-text1">啦啦啦啦啦啦啦啦啦啦拉拉拉拉拉拉啊啦啦啊拉拉啊啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦</view>-->
  138. <view class="seckill-project-text1">{{item.name}}</view>
  139. <view class="seckill-project-text2">已售出{{item.sold_count}}件</view>
  140. <view>
  141. <view class="seckill-project-moneypart">
  142. <view class="seckill-moneypart-text">¥{{item.price / 100}}</view>
  143. <view class="seckill-moneypart-text1">¥{{item.seckill_show_price / 100}}</view>
  144. </view>
  145. <view class="seckill-project-btnpart">
  146. <view class="seckill-project-btn" wx:if="{{item.seckill_state === 'seckill' && leftTime > 0 && item.left_count > 0}}">立即抢购</view>
  147. <view class="seckill-project-btn othercolor" wx:if="{{item.seckill_state === 'preparing'}}" bindtap="toProject" data-val="{{item.id}}">准备中...</view>
  148. <view class="seckill-project-btn othercolor1" wx:if="{{item.seckill_state === 'end' || leftTime < 0}}" bindtap="toProject" data-val="{{item.id}}">秒杀结束</view>
  149. <view class="seckill-project-btn othercolor2" wx:if="{{item.seckill_state === 'seckill' && item.left_count <= 0 && leftTime > 0}}" bindtap="toProject" data-val="{{item.id}}">已售罄</view>
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. <view class="seckill-no" wx:if="{{killgoodslist.length == 0}}">
  155. <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/home/no.png" class="seckill-no-img"/>
  156. <!--<view class="seckill-no-text">暂无秒杀活动</view>-->
  157. </view>
  158. </view>
  159. </view>
  160. <!--
  161. <view class="teamshopping" wx:if="{{zhunongList.length}}">
  162. <view class="teamshopping-title"></view>
  163. <view><image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/neverse/teambuy.png" class="teamshopping-titleimg" /></view>
  164. <view class="teamshopping-item" wx:key="{{index}}" wx:for="{{zhunongList}}" data-val="{{item.id}}" data-state="{{item.state}}" bindtap="toZhunong">
  165. <view class="teamshopping-top">
  166. <view class="teamshopping-topleft">
  167. <image src="{{item.thumb_img}}" class="teamshopping-img" />
  168. </view>
  169. <view class="teamshopping-topright">
  170. <view class="circle" wx:if="{{percent[index] <= 50.00 }}">
  171. <view class="circle_left" style="transform:rotate({{0}}deg)">
  172. <view class="clip_left"></view>
  173. </view>
  174. <view class="circle_right" style="transform:rotate({{percent[index] * 3.6 }}deg);background:#eee">
  175. <view class="clip_right"></view>
  176. </view>
  177. <view class="mask">
  178. <text>{{percent[index]}}</text>%
  179. </view>
  180. </view>
  181. <view class="circle" wx:if="{{percent[index] >= 100.00}}">
  182. <view class="circle_left" style="transform:rotate({{(100-50) * 3.6}}deg)">
  183. <view class="clip_left"></view>
  184. </view>
  185. <view class="circle_right" style="transform:rotate({{0}}deg);background:#ff7655">
  186. <view class="clip_right"></view>
  187. </view>
  188. <view class="mask">
  189. <text>{{percent[index]}}</text>%
  190. </view>
  191. </view>
  192. <view class="circle" wx:if="{{percent[index] > 50.00 && percent[index] < 100.00}}">
  193. <view class="circle_left" style="transform:rotate({{(percent[index]-50) * 3.6}}deg)">
  194. <view class="clip_left"></view>
  195. </view>
  196. <view class="circle_right" style="transform:rotate({{0}}deg);background:#ff7655">
  197. <view class="clip_right"></view>
  198. </view>
  199. <view class="mask">
  200. <text>{{percent[index]}}</text>%
  201. </view>
  202. </view>
  203. <view class="end">完成度</view>
  204. <view class="clean"></view>
  205. </view>
  206. <view class="clear"></view>
  207. </view>
  208. <view class="teamshopping-bottom">
  209. <view class="teamshopping-name">{{item.title}}</view>
  210. <view class="teamshopping-moneypart">
  211. <view class="teamshopping-text">单价</view>
  212. <view class="teamshopping-text3">{{item.min_project_way_price / 100}}</view>
  213. <view class="teamshopping-text1">元起</view>
  214. <view class="teamshopping-text2" wx:if="{{item.state !== 2}}">
  215. <text wx:if="{{item.left_copies_min === item.left_copies_max}}">剩余份数 {{item.left_copies_min}}份</text>
  216. <text wx:if="{{item.left_copies_min !== item.left_copies_max && !item.left_copies_min}}">剩余份数 {{item.left_copies_max}}份</text>
  217. <text wx:if="{{item.left_copies_min !== item.left_copies_max && item.left_copies_min}}">剩余份数 {{item.left_copies_min}}~{{item.left_copies_max}}份</text>
  218. </view>
  219. <view class="teamshopping-text2" wx:if="{{item.state === 2}}">
  220. <text wx:if="{{item.min_funding === item.max_funding}}">共团购 {{item.current_funding / item.unit_price}}份</text>
  221. <text wx:if="{{item.min_funding !== item.max_funding}}">共团购 {{item.min_funding / item.unit_price}} ~ {{item.current_funding / item.unit_price}}份</text>
  222. </view>
  223. <view class="project-jizhu" wx:if="{{item.state === 1}}">进行中</view>
  224. <view class="project-no" wx:if="{{item.state === 0}}">未开始</view>
  225. <view class="project-chenggong" wx:if="{{item.state === 2}}">已完成</view>
  226. <view class="clear"></view>
  227. </view>
  228. </view>
  229. </view>
  230. </view>
  231. -->
  232. <!-- <view class="recommend">
  233. <text class="recommend-title">首选商品</text>
  234. <view class="recommend-bg">
  235. <view>
  236. <image class="recommend-image" src="{{recommend.url}}"></image>
  237. <view class="recommend-info">
  238. <text class="recommend-projectTitle ellipsisLn">{{recommend.title}}</text>
  239. <view class="recommend-price">{{recommend.price / 100}}元</view>
  240. <view class="recommend-point">(或{{recommend.point}}代金券)</view>
  241. </view>
  242. <view class="clean"></view>
  243. </view>
  244. <navigator url="../projects/projects" open-type="switchTab" class="recommend-more">查看详情</navigator>
  245. </view>
  246. </view> -->
  247. <!--<view class="projects" wx:if="{{zhunongList.length}}">
  248. <view class="projects-title">————————— <text style="color: #98a4b0">团购优选</text> —————————</view>
  249. <view class="projectbg">
  250. <view class="project1" wx:key="{{index}}" wx:for="{{zhunongList}}" data-val="{{item.id}}" data-state="{{item.state}}" bindtap="toZhunong">
  251. <image class="project-image" src="{{item.thumb_img}}"></image>
  252. <view class="project-describe">
  253. <view class="project-title1">{{item.title}}</view>
  254. <view class="project-count1" wx:if="{{item.state !== 2}}">
  255. <text wx:if="{{item.left_copies_min === item.left_copies_max}}">剩余份数 {{item.left_copies_min}}份</text>
  256. <text wx:if="{{item.left_copies_min !== item.left_copies_max && !item.left_copies_min}}">剩余份数 {{item.left_copies_max}}份</text>
  257. <text wx:if="{{item.left_copies_min !== item.left_copies_max && item.left_copies_min}}">剩余份数 {{item.left_copies_min}}~{{item.left_copies_max}}份</text>
  258. </view>
  259. <view class="project-count1" wx:if="{{item.state === 2}}">
  260. <text wx:if="{{item.min_funding === item.max_funding}}">共团购 {{item.current_funding / item.unit_price}}份</text>
  261. <text wx:if="{{item.min_funding !== item.max_funding}}">共团购 {{item.min_funding / item.unit_price}} ~ {{item.current_funding / item.unit_price}}份</text>
  262. </view>
  263. <view class="project-price1"><text style="color:#bbbbbb;padding-right:30rpx">单价</text><text style="font-size: 35rpx">{{item.min_project_way_price / 100}}</text> 元起</view>
  264. <view class="clean"></view>
  265. </view>
  266. <view class="project-jizhu" wx:if="{{item.state === 1}}">{{item.state_cn}}</view>
  267. <view class="project-no" wx:if="{{item.state === 0}}">{{item.state_cn}}</view>
  268. <view class="project-chenggong" wx:if="{{item.state === 2}}">{{item.state_cn}}</view>
  269. <view class="project-jieshu" wx:if="{{item.state === 3}}">{{item.state_cn}}</view>
  270. <view class="project-tuikuan" wx:if="{{item.state === 4}}">{{item.state_cn}}</view>
  271. <view class="clean"></view>
  272. <view class="project-jindu">
  273. <view class="jindu">进度</view>
  274. <progress style="flex:5;" percent="{{percent[index]}}" stroke-width="10" activeColor="#fe7554"/>
  275. <view class="jindu-percent">{{percent[index]}}%</view>
  276. </view>
  277. </view>
  278. </view>
  279. </view>-->
  280. <!--
  281. <text class="jindu">进度</text>
  282. <progress percent="{{percent[index]}}" stroke-width="10" activeColor="#fe7554"/>
  283. <text class="jindu-percent">{{percent[index]}}%</text>-->
  284. <view class="projects">
  285. <!--<view class="projects-title">————————— <text style="color: #98a4b0">精选推荐</text> —————————</view>-->
  286. <view class="newprojects-title"></view>
  287. <view><image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/neverse/goods.png" class="newprojects-titleimg" /></view>
  288. <view class="projectbg">
  289. <view class="project" wx:key="{{index}}" wx:for="{{productsList}}">
  290. <view wx:if="{{!item.video_state}}" bindtap="toProject" data-val="{{item.id}}">
  291. <view class="project-left">
  292. <view class="project-title ellipsisLn">{{item.name}}</view>
  293. <view class="project-count">已售{{item.sold_count}}件</view>
  294. <image wx:if="{{item.seckill_state === 'seckill'}}" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/icon/miaosha.png" class="project-miaosha"/>
  295. <view class="project-price" style="padding-top:20rpx;color: #999;text-decoration: line-through;font-size: 23rpx;">零售价:<currency symbol="¥" value="{{item.user_sale_price}}" /><!-- <currency symbol="¥" value="{{item.price}}" wx:if="{{balance === 0 || balance < item.price}}"></currency><text wx:if="{{balance !== 0 && balance >= item.price}}" class="project-point">{{item.price}}代金券</text> --></view>
  296. <view class="project-price" style="float: left;padding-top:10rpx;width:50%;font-size: 35rpx;"><currency symbol="¥" value="{{item.price}}" /><!-- <currency symbol="¥" value="{{item.price}}" wx:if="{{balance === 0 || balance < item.price}}"></currency><text wx:if="{{balance !== 0 && balance >= item.price}}" class="project-point">{{item.price}}代金券</text> --></view>
  297. <!--<image wx:if="{{item.mall_balance_price}}" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/icon/integralpay_icon.png" style="float: right;width: 30rpx;height: 30rpx;margin-left: 5rpx;margin-top: 95rpx;"></image>
  298. <image wx:if="{{item.robo_balance_price}}" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/icon/rabbitpay_icon.png" style="float: right;width: 30rpx;height: 30rpx;margin-top: 94rpx;"></image>
  299. <image wx:if="{{item.price}}" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/icon/weixinpay.png" style="float: right;width: 30rpx;height: 30rpx;margin-top: 94rpx;margin-right: 5rpx;"></image>-->
  300. <view class="clear"></view>
  301. </view>
  302. <image class="project-right" src="{{item.cover}}"></image>
  303. <view class="project-out" wx:if="{{item.left_count <= 0}}"></view>
  304. <view class="project-green" wx:if="{{item.is_support_poor === 1}}"></view>
  305. <view class="project-stop" wx:if="{{todaysend < item.deliver_start_time && todaysend > item.deliver_stop_time}}">将于<format-time type="formatmonth2" value="{{item.deliver_start_time}}"></format-time>发货</view>
  306. <view class="clean"></view>
  307. </view>
  308. <view wx:else class="video-box">
  309. <video class="project-video" custom-cache="{{false}}" bindtap='videoTap' data-index="{{index}}" id='video{{index}}' show-fullscreen-btn="{{false}}" enable-progress-gesture="{{false}}" src="{{item.video_url}}" controls="{{false}}" show-center-play-btn='{{false}}'>
  310. <cover-image class="playImg" src="../../images/footer/play.png" wx:if="{{!item.video_play}}"></cover-image>
  311. </video>
  312. <view class="project-title ellipsisLn">{{item.name}}</view>
  313. <view class="project-price" style="color: #999;text-decoration: line-through;font-size: 23rpx;">零售价:<currency symbol="¥" value="{{item.user_sale_price}}" /><!-- <currency symbol="¥" value="{{item.price}}" wx:if="{{balance === 0 || balance < item.price}}"></currency><text wx:if="{{balance !== 0 && balance >= item.price}}" class="project-point">{{item.price}}代金券</text> --></view>
  314. <view class="project-price" style="float: left;font-size:35rpx;"><currency symbol="¥" value="{{item.price}}" /><!-- <currency symbol="¥" value="{{item.price}}" wx:if="{{balance === 0 || balance < item.price}}"></currency><text wx:if="{{balance !== 0 && balance >= item.price}}" class="project-point">{{item.price}}代金券</text> --></view>
  315. <view class="project-count">已售{{item.sold_count}}件</view>
  316. <image wx:if="{{item.seckill_state === 'seckill'}}" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/icon/miaosha.png" class="project-miaosha"/>
  317. <view class="project-out" wx:if="{{item.left_count <= 0}}"></view>
  318. <view class="project-green" wx:if="{{item.is_support_poor === 1}}"></view>
  319. <view class="project-stop" wx:if="{{todaysend < item.deliver_start_time && todaysend > item.deliver_stop_time}}">将于<format-time type="formatmonth2" value="{{item.deliver_start_time}}"></format-time>发货</view>
  320. <view class="clean"></view>
  321. <button bindtap="toProject" data-val="{{item.id}}" class="video-buybtn">立即购买</button>
  322. </view>
  323. </view>
  324. </view>
  325. </view>
  326. <!--
  327. <image src="../../images/custom/kefu.png" bindtap="toCustom" class="kefu-icon"/>
  328. -->
  329. </view>
  330. <view><text wx:if="{{projects_more}}" style="text-align: center;padding: 10px;color: #999;display: block;margin-bottom: 15px;">正在努力加载...</text></view>
  331. </view>