index.wxml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  1. <view class='index-box pb100 {{showNewCoupon?"preventTouchMove":""}}' wx:if="{{(isDiy==1||loadOver)&&isblack!=1&&isparse_formdata!=1}}">
  2. <import src="template/pin.wxml"></import>
  3. <import src="template/pinrow.wxml"></import>
  4. <import src="template/cube.wxml"></import>
  5. <import src="template/seckill.wxml"></import>
  6. <import src="template/video.wxml"></import>
  7. <import src="template/navlist.wxml"></import>
  8. <import src="template/presalerow.wxml"></import>
  9. <import src="coupon.wxml"></import>
  10. <import src="template/virtualcardrow.wxml"></import>
  11. <view class="miniAppTip" wx:if="{{isTipShow}}">
  12. <view bindtap="handleProxy" class="add-myapp">
  13. <text>添加到「我的小程序」团购更方便</text>
  14. </view>
  15. </view>
  16. <view bindtap="handleHideProxy" class="guide" wx:if="{{isShowGuide}}">
  17. <image mode="widthFix" src="{{index_lead_image}}"></image>
  18. </view>
  19. <!-- 旧版首页 -->
  20. <block wx:if="{{isDiy==0}}">
  21. <view class="bg-f">
  22. <image wx:if="{{shop_info.index_top_img_bg_open==0}}" class="header-bg" src="{{shop_info.common_header_backgroundimage?shop_info.common_header_backgroundimage:'../../images/TOP_background@2x.png'}}"></image>
  23. <view class="header-content" wx:if="{{hide_top_community==0}}">
  24. <view class="location" style='color: {{shop_info.index_top_font_color}}' wx:if="{{shop_info.index_communityinfo_showtype!=1}}">
  25. <view class="location-left" wx:if="{{community&&community.communityName}}">
  26. <navigator hoverClass="router-hover" url="/lionfish_comshop/pages/position/community" wx:if="{{hide_community_change_btn==0&&open_danhead_model!=1}}">
  27. <view class="community-title">
  28. <view class="text-overflow1" style="max-width: 360rpx;">{{community.communityName}}</view>
  29. <text class='community-change' wx:if="{{hide_community_change_word==0}}">切换</text>
  30. <text class="iconfont icon-youjiantou"></text>
  31. </view>
  32. </navigator>
  33. <view wx:else>
  34. <view class="community-title">
  35. <span>{{community.communityName}}</span>
  36. </view>
  37. </view>
  38. <view class="community-address" bindtap='gotoMap' wx:if="{{index_hide_headdetail_address==0}}">
  39. <text class="iconfont icon-weizhi-tianchong"></text>{{community.address||community.communityAddress||community.fullAddress}}
  40. </view>
  41. </view>
  42. <view class="location-left" wx:else>
  43. <navigator hoverClass="router-hover" url="/lionfish_comshop/pages/position/community">
  44. 您还没有选择{{groupInfo.owner_name}},轻触去选择 <text class="iconfont icon-weizhi-tianchong"></text>
  45. </navigator>
  46. </view>
  47. <view class="location-right">
  48. <image src='{{community.headImg ? community.headImg: community.disUserHeadImg}}' class='img'></image>
  49. <text>{{community.disUserName}}</text>
  50. </view>
  51. </view>
  52. <view class="location-theme2" style='color: {{shop_info.index_top_font_color}}' wx:else>
  53. <block wx:if="{{community&&community.communityName}}">
  54. <view class="loc-l">
  55. <image src='{{community.headImg ? community.headImg: community.disUserHeadImg}}' class='img'></image>
  56. </view>
  57. <view class="loc-m" wx:if="{{hide_community_change_btn==0&&open_danhead_model!=1}}" bindtap="goLink" data-link="/lionfish_comshop/pages/position/community">
  58. {{community.communityName}} <text style='font-size:12px;' wx:if="{{hide_community_change_word==0}}">切换</text><text class="iconfont icon-youjiantou" style='font-size:12px;'></text>
  59. </view>
  60. <view class="loc-m" wx:else>{{community.communityName}}</view>
  61. </block>
  62. <view class="loc-l" wx:else>
  63. <navigator hoverClass="router-hover" url="/lionfish_comshop/pages/position/community">
  64. 您还没有选择{{groupInfo.owner_name}},轻触去选择 <text class="iconfont icon-weizhi-tianchong"></text>
  65. </navigator>
  66. </view>
  67. <view class="top-search" bindtap="goLink" data-link="/lionfish_comshop/pages/type/search">
  68. <text class="iconfont icon-sousuo1"></text>搜索
  69. </view>
  70. </view>
  71. </view>
  72. <view class='blank10'></view>
  73. <!-- 幻灯片 -->
  74. <view class="swipe" wx:if="{{slider_list.length>0}}">
  75. <swiper indicatorDots class="swiper-content" duration="400" autoplay indicatorActiveColor="{{skin.color}}" indicatorColor="#E7E9E7" interval="5000" circular>
  76. <swiper-item wx:for="{{slider_list}}" wx:key="id">
  77. <button class="banner nav-contact" openType="contact" wx:if="{{item.linktype==5}}">
  78. <i-img iClass="banner-img" loadImage="{{item.image}}"></i-img>
  79. </button>
  80. <view class='banner' bindtap='goBannerUrl' data-idx="{{index}}" wx:else>
  81. <i-img iClass="banner-img" loadImage="{{item.image}}"></i-img>
  82. </view>
  83. </swiper-item>
  84. </swiper>
  85. </view>
  86. <!-- 导航列表 -->
  87. <template is="navlist" data="{{navigat, navigatEmpty, navigatSwiper, skin}}"></template>
  88. <!-- 弹窗广告 -->
  89. <advimg pos="0" bind:switchType="goIndexType" />
  90. <!-- 优惠券 -->
  91. <template is="coupon" data="{{hasCoupon, quan}}"></template>
  92. <!-- 公告 -->
  93. <view style="padding-bottom:20rpx;" wx:if="{{notice_list.length>0}}">
  94. <view class="top-msg" style="color: {{notice_setting.font_color}};background:{{notice_setting.background_color}};">
  95. <image wx:if="{{notice_setting.horn}}" src="{{notice_setting.horn}}"></image>
  96. <text wx:else class="iconfont icon-laba"></text>
  97. <swiper class='notice-swipe' autoplay interval="3000" vertical circular>
  98. <block wx:for="{{notice_list}}" wx:key="id">
  99. <swiper-item class='notice-swipe-item' bindtap='showNoticeTextHandle' data-status="{{true}}" data-idx="{{index}}">
  100. {{item.content}}
  101. </swiper-item>
  102. </block>
  103. </swiper>
  104. </view>
  105. </view>
  106. <!-- 魔方图 -->
  107. <template is="cube" data="{{data:cube}}"></template>
  108. </view>
  109. <!-- 列表 Start -->
  110. <view class="list-content">
  111. <!-- 新人专享 -->
  112. <i-new-comer bind:openSku="openSku" refresh="{{newComerRefresh}}" wx:if="{{is_show_new_buy==1}}" skin="{{skin}}" />
  113. <!-- 拼团 -->
  114. <template is="pin" data="{{pinList:pinList,skin}}"></template>
  115. <!-- 限时秒杀 -->
  116. <i-spike bind:openSku="openSku" refresh="{{newComerRefresh}}" wx:if="{{is_show_spike_buy==1}}" skin="{{skin}}" />
  117. <!-- 多时段限时秒杀 -->
  118. <template is="seckill" data="{{secRushList:secRushList,skin,scekillTimeList,secKillActiveIdx,secKillGoodsIndex,needAuth,seckill_bg_color}}" wx:if="{{seckill_is_open==1&&seckill_is_show_index==1}}"></template>
  119. <!-- 专题 -->
  120. <i-topic refresh="{{couponRefresh}}" bind:openSku="openSku" showPos="0" />
  121. <!-- 分类专题 -->
  122. <view class="theme3 bg-f" wx:if="{{typeTopicList.length&&(typeItem.banner||typeItem.list.length)}}" wx:for="{{typeTopicList}}" wx:key="id" wx:for-index="idx" wx:for-item="typeItem">
  123. <image class='topic-img' src="{{typeItem.banner}}" mode="widthFix" wx:if="{{typeItem.banner}}" bindtap="goLink" data-link="/lionfish_comshop/pages/type/details?id={{typeItem.id}}"></image>
  124. <view class="theme3-list">
  125. <i-rush-spu class="item" wx:for="{{typeItem.list}}" wx:if="{{typeItem.list.length}}" wx:for-item="item" wx:key="actId" spuItem="{{item}}" reduction="{{reduction}}" stopClick="{{stopClick}}" bind:openSku="openSku" needAuth="{{needAuth}}" bind:authModal="authModal" bind:changeCartNum="changeNotListCartNum" notNum="{{true}}" is_open_vipcard_buy="{{is_open_vipcard_buy}}" canLevelBuy="{{canLevelBuy}}"></i-rush-spu>
  126. </view>
  127. <view class="theme3-more" bindtap="goLink" data-link="/lionfish_comshop/pages/type/details?id={{typeItem.id}}" wx:if="{{typeItem.list.length}}">
  128. 查看全部 <text class="iconfont icon-youjiantou"></text>
  129. </view>
  130. </view>
  131. <!-- 预售 -->
  132. <template is="presalerow" data="{{data:presale_index_info,skin}}"></template>
  133. <!-- 礼品卡 -->
  134. <template is="virtualcardrow" data="{{data:virtualcard_info,skin}}"></template>
  135. <!-- 拼团展示2 -->
  136. <template is="pinrow" data="{{pinList:pinList,skin,goods_sale_unit}}"></template>
  137. <!-- 视频 -->
  138. <template is="video" data="{{data:index_video_arr,fmShow,imageSize}}" wx:if="{{index_video_arr&&index_video_arr.enabled==1}}"></template>
  139. <image id='rush-title' wx:if="{{shop_info.index_list_top_image&&shop_info.index_list_top_image_on!=1}}" class="rush-list-title" src="{{shop_info.index_list_top_image}}"></image>
  140. <!--搜索框begin-->
  141. <form bindsubmit="goResult" style="display: block;width: 100%;" wx:if="{{index_switch_search==1}}">
  142. <view class='search-bar'>
  143. <view class='search-box'>
  144. <input class='ipt' placeholder="搜索商品" confirm-type="搜索" type="text" name="keyword"></input>
  145. <view class='search-icon'>
  146. <text class="iconfont icon-sousuo1"></text>
  147. </view>
  148. </view>
  149. <button class="search-btn" formType="submit" style="color:{{skin.color}}">搜索</button>
  150. </view>
  151. </form>
  152. <!--搜索框end-->
  153. <!-- 分类导航 Start -->
  154. <block wx:if="{{ishide_index_goodslist!=1}}">
  155. <view class='sticky-cate' wx:if="{{index_change_cate_btn==1}}">
  156. <block wx:if="{{hide_index_type!=1}}">
  157. <view hidden="{{!isShowClassification||tabIdx!==0}}">
  158. <i-tabs activeIndex="{{classification.activeIndex}}" bind:activeIndexChange="classificationChange" data-idx="1" fontColor="#000" iClass="category-list" tabs="{{classification.tabs}}" lineBgColor="{{'background:linear-gradient(to right, '+skin.color+', '+skin.light+')'}}"></i-tabs>
  159. </view>
  160. <view class="tab-nav-query"></view>
  161. </block>
  162. </view>
  163. <view wx:else class="sticky-content {{isSticky?'sticky-top':''}} {{scrollDirect==='up'&&isSticky?'tab-nav-sticky':''}}">
  164. <view class="tab-nav tab-nav-query" style='border-color:{{qgtab.bottom_color?qgtab.bottom_color:"#F75451"}}'>
  165. <view bindtap="tabSwitch" class="tab-nav-item {{tabIdx===0?'active':''}}" data-idx="0">
  166. <image wx:if="{{tabIdx===0}}" src="{{qgtab.one_select?qgtab.one_select:'../../images/index-tab-left-active.png'}}"></image>
  167. <image wx:else src="{{qgtab.one_selected?qgtab.one_selected:'../../images/index-tab-left-disabled.png'}}"></image>
  168. <span>{{index_qgtab_text[0]?index_qgtab_text[0]:'正在抢购'}}</span>
  169. </view>
  170. <view bindtap="tabSwitch" class="tab-nav-item {{tabIdx===1?'active':''}}" data-idx="1">
  171. <image wx:if="{{tabIdx===1}}" src="{{qgtab.two_select?qgtab.two_select:'../../images/index-tab-right-active.png'}}"></image>
  172. <image wx:else src="{{qgtab.two_selected?qgtab.two_selected:'../../images/index-tab-right-disabled.png'}}"></image>
  173. <span>{{index_qgtab_text[1]?index_qgtab_text[1]:'即将开抢'}}
  174. </span>
  175. </view>
  176. <view class="count-down-content" wx:if="{{tabIdx===0}}">
  177. <i-count-down countdownClass="count-down" itemClass="item-time" showDay="true" target="{{rushEndTime}}" wx:if="{{rushEndTime&&!stopNotify&&index_qgtab_counttime!=1}}" clearTimer="{{stopNotify}}">
  178. <span class="count-down-left-text">仅剩</span>
  179. </i-count-down>
  180. </view>
  181. </view>
  182. <block wx:if="{{hide_index_type!=1}}">
  183. <view hidden="{{!isShowClassification||tabIdx!==0}}">
  184. <i-tabs activeIndex="{{classification.activeIndex}}" bind:activeIndexChange="classificationChange" data-idx="1" fontColor="#000" iClass="category-list" tabs="{{classification.tabs}}" lineBgColor="{{'background:linear-gradient(to right, '+skin.color+', '+skin.light+')'}}"></i-tabs>
  185. </view>
  186. <view hidden="{{!isShowCommingClassification||tabIdx!==1}}">
  187. <i-tabs activeIndex="{{commingClassification.activeIndex}}" bind:activeIndexChange="commingClassificationChange" data-idx="2" fontColor="#000" iClass="category-list" tabs="{{classification.tabs}}" lineBgColor="{{'background:linear-gradient(to right, '+skin.color+', '+skin.light+')'}}"></i-tabs>
  188. </view>
  189. </block>
  190. </view>
  191. <!-- 分类导航 End -->
  192. <view class='rush-list-box'>
  193. <!-- <view wx:if="{{hide_index_type!=1}}" style="height: {{isSticky?'70rpx':'0'}}"></view> -->
  194. <block wx:if="{{rushList.length>0 && tabIdx===0}}">
  195. <!-- 样式一 Start -->
  196. <block wx:for="{{rushList}}" wx:key="idx" wx:for-item="rush" wx:for-index="idx" wx:if="{{rushList.length>0 && theme==0}}">
  197. <skeleton wx:for="{{rush}}" wx:key="id">
  198. <view class="active-item">
  199. <view class="list-item-tag-content" wx:if="{{isShowListTimer==1}}">
  200. <view class="empty-1"></view>
  201. <view class="empty-2" wx:if="{{item.spuDescribe}}"></view>
  202. <view class="empty-3"></view>
  203. <view class="list-item-count-down" style="color:{{skin.color}}" wx:if="{{item.spuCanBuyNum!=0 && !actEndMap[item.end_time]}}" data-xx="{{item.spuCanBuyNum}}">
  204. 仅剩
  205. <em wx:if="{{countDownMap[item.end_time].day>0}}">{{countDownMap[item.end_time].day}}天</em>
  206. <span class="item-class">{{countDownMap[item.end_time].hour}}</span>:
  207. <span class="item-class">{{countDownMap[item.end_time].minute}}</span>:
  208. <span class="item-class">{{countDownMap[item.end_time].second}}</span>
  209. </view>
  210. </view>
  211. <i-new-rush-spu actEnd="{{actEndMap[item.end_time]}}" stopClick="{{stopClick}}" bind:openSku="openSku" spuItem="{{item}}" reduction="{{reduction}}" isShowListCount="{{isShowListCount}}" bind:changeCartNum="changeCartNum" changeCarCount="{{changeCarCount}}" bind:authModal="authModal" needAuth="{{needAuth}}" is_open_vipcard_buy="{{is_open_vipcard_buy}}" canLevelBuy="{{canLevelBuy}}" isShowListTimer="{{isShowListTimer==1}}" showPickTime="{{ishow_index_pickup_time==1}}" bind:vipModal="vipModal" skin="{{skin}}" saleUnit="{{goods_sale_unit}}"></i-new-rush-spu>
  212. </view>
  213. </skeleton>
  214. </block>
  215. <!-- 样式一 End -->
  216. <!-- 样式二 Start -->
  217. <block wx:for="{{rushList}}" wx:key="idx" wx:for-item="rush" wx:for-index="idx" wx:if="{{rushList.length>0&&theme==1}}">
  218. <skeleton wx:for="{{rush}}" wx:key="id">
  219. <view class="active-item-two">
  220. <view class="list-item-tag-content" wx:if="{{isShowListTimer==1}}">
  221. <view class="list-item-count-down type-two" style="background:{{skin.color}}" wx:if="{{item.spuCanBuyNum!=0 && !actEndMap[item.end_time]}}">
  222. 仅剩
  223. <em wx:if="{{countDownMap[item.end_time].day>0}}">{{countDownMap[item.end_time].day}}天</em>
  224. <span class="item-class">{{countDownMap[item.end_time].hour}}</span>:
  225. <span class="item-class">{{countDownMap[item.end_time].minute}}</span>:
  226. <span class="item-class">{{countDownMap[item.end_time].second}}</span>
  227. </view>
  228. </view>
  229. <i-rush-spu-big actEnd="{{actEndMap[item.end_time]}}" stopClick="{{stopClick}}" bind:openSku="openSku" spuItem="{{item}}" reduction="{{reduction}}" isShowListCount="{{isShowListCount}}" bind:changeCartNum="changeCartNum" changeCarCount="{{changeCarCount}}" bind:authModal="authModal" needAuth="{{needAuth}}" is_open_vipcard_buy="{{is_open_vipcard_buy}}" canLevelBuy="{{canLevelBuy}}" showPickTime="{{ishow_index_pickup_time==1}}" bind:vipModal="vipModal" skin="{{skin}}" saleUnit="{{goods_sale_unit}}"></i-rush-spu-big>
  230. </view>
  231. </skeleton>
  232. </block>
  233. <!-- 样式二 End -->
  234. <!-- 样式三 Start -->
  235. <view class="theme3" wx:if="{{rushList.length>0 && theme==2}}">
  236. <image class='topic-img' src="{{cate_info.banner}}" mode="widthFix" wx:if="{{cate_info.banner}}" bindtap="goLink" data-link="/lionfish_comshop/pages/type/details?id={{classificationId}}"></image>
  237. <view class="theme3-list">
  238. <block wx:for="{{rushList}}" wx:key="idx" wx:for-item="rush" wx:for-index="idx">
  239. <block class="item" wx:for="{{rush}}" wx:key="actId">
  240. <i-rush-spu spuItem="{{item}}" reduction="{{reduction}}" stopClick="{{stopClick}}" bind:openSku="openSku" needAuth="{{needAuth}}" bind:authModal="authModal" bind:changeCartNum="changeCartNum" changeCarCount="{{changeCarCount}}" is_open_vipcard_buy="{{is_open_vipcard_buy}}" canLevelBuy="{{canLevelBuy}}" bind:vipModal="vipModal" actEnd="{{actEndMap[item.end_time]}}"></i-rush-spu>
  241. </block>
  242. </block>
  243. </view>
  244. </view>
  245. <!-- 样式三 End -->
  246. <!-- 样式4 Start -->
  247. <view class="comming-list themeTwo" wx:if="{{rushList.length>0&&theme==3}}">
  248. <block wx:for="{{rushList}}" wx:key="idx" wx:for-item="rush" wx:for-index="idx">
  249. <skeleton wx:for="{{rush}}" wx:key="id" class="comming-spu-item">
  250. <i-tworow actEnd="{{actEndMap[item.end_time]}}" stopClick="{{stopClick}}" bind:openSku="openSku" spuItem="{{item}}" reduction="{{reduction}}" isShowListCount="{{isShowListCount}}" bind:changeCartNum="changeCartNum" changeCarCount="{{changeCarCount}}" bind:authModal="authModal" needAuth="{{needAuth}}" is_open_vipcard_buy="{{is_open_vipcard_buy}}" canLevelBuy="{{canLevelBuy}}" isShowListTimer="{{isShowListTimer==1}}" showPickTime="{{ishow_index_pickup_time==1}}" bind:vipModal="vipModal" skin="{{skin}}" saleUnit="{{goods_sale_unit}}"></i-tworow>
  251. </skeleton>
  252. </block>
  253. </view>
  254. <!-- 样式4 End -->
  255. <i-load-more iClass="loadMore" loading="{{loadMore}}" tip="{{loadText}}" wx:if="{{loadMore}}"></i-load-more>
  256. </block>
  257. <block wx:if="{{tabIdx===1}}">
  258. <view class="comming-list" wx:if="{{commingList.length}}">
  259. <i-comming-spu category="{{commingClassification.tabs[commingClassification.activeIndex].name}}" class="comming-spu-item" spuItem="{{item}}" wx:if="{{commingList.length}}" wx:for="{{commingList}}" wx:key="id"></i-comming-spu>
  260. <i-load-more iClass="loadMore" loading="{{commigLoadMore}}" tip="{{commigTip}}" wx:if="{{commigLoadMore}}"></i-load-more>
  261. </view>
  262. <view class="none-rush-list" wx:if="{{showCommingEmpty}}">
  263. <image class="img-block" src="../../images/icon-index-empty.png"></image>
  264. <view class="h1">暂时没有商品</view>
  265. <view class="h2">我们正在为您准备更优惠的商品</view>
  266. </view>
  267. <view class="slogan" wx:if="{{!commigLoadMore&&commingList.length}}">
  268. <image src="{{indexBottomImage?indexBottomImage:'../../images/icon-index-slogan.png'}}"></image>
  269. </view>
  270. </block>
  271. <block wx:if="{{tabIdx===0}}">
  272. <view class="none-rush-list" wx:if="{{showEmpty}}">
  273. <image class="img-block" src="../../images/icon-index-empty.png"></image>
  274. <view class="h1">暂时没有商品</view>
  275. <view class="h2">我们正在为您准备更优惠的商品</view>
  276. </view>
  277. <view class="slogan" wx:if="{{!loadMore&&rushList.length}}">
  278. <image src="{{indexBottomImage?indexBottomImage:'../../images/icon-index-slogan.png'}}"></image>
  279. </view>
  280. </block>
  281. </view>
  282. </block>
  283. <!-- 专题 -->
  284. <i-topic refresh="{{couponRefresh}}" bind:openSku="openSku" showPos="1" />
  285. </view>
  286. <!-- 列表 End -->
  287. <view class='copytext-btn' bindtap='showCopyTextHandle' data-status="{{true}}" wx:if="{{ishow_index_copy_text==1}}">
  288. 一键复制拼团信息
  289. </view>
  290. <view class="fixed-aside">
  291. <button class="fixed-service" bindtap='share_handler' wx:if="{{isShowShareBtn==1}}">
  292. <text class="iconfont icon-fenxiang"></text>
  293. <view>分享</view>
  294. </button>
  295. <button class="fixed-service" openType="contact" wx:if="{{isShowContactBtn==1}}">
  296. <text class="iconfont icon-kefu"></text>
  297. <view>客服</view>
  298. </button>
  299. <button class="fixed-service" hidden="{{!isSticky}}" bindtap="backTop" wx:if="{{ishow_index_gotop==1}}">
  300. <text class="iconfont icon-fanhuidingbu"></text>
  301. <view>顶部</view>
  302. </button>
  303. </view>
  304. </block>
  305. <!-- diy组件 -->
  306. <view wx:if="{{isDiy==1&&diyLoaded}}" class="diy-box safebottom" style="background: url({{globalDiyData.bgUrl}}) no-repeat top center {{globalDiyData.bgColor}};background-size: 100%;">
  307. <import src="communityShow.wxml"></import>
  308. <import src="richtext.wxml"></import>
  309. <import src="text.wxml"></import>
  310. <import src="blank.wxml"></import>
  311. <import src="banner.wxml"></import>
  312. <import src="notice.wxml"></import>
  313. <import src="search.wxml"></import>
  314. <import src="line.wxml"></import>
  315. <import src="floatBtn.wxml"></import>
  316. <import src="cube.wxml"></import>
  317. <import src="goodsList.wxml"></import>
  318. <import src="diySeckill.wxml"></import>
  319. <import src="video.wxml"></import>
  320. <import src="diySingleImg.wxml"></import>
  321. <import src="diyCoupon.wxml"></import>
  322. <block wx:for="{{diyJson}}" wx:key="index">
  323. <!-- 社区展示 -->
  324. <template is="communityShow" data="{{item, community, hide_community_change_btn, open_danhead_model, index_hide_headdetail_address, hide_community_change_word}}" wx:if="{{item.controller=='CommunityShow'}}"></template>
  325. <!-- 导航图标 -->
  326. <diy-nav list="{{item}}" skin="{{skin}}" wx:if="{{item.controller=='GraphicNav'}}"></diy-nav>
  327. <!-- 公告 -->
  328. <template is="notice" data="{{item}}" wx:if="{{item.controller=='Notice'}}"></template>
  329. <!-- 优惠券 -->
  330. <template is="diyCoupon" data="{{hasCoupon, quan, item}}" wx:if="{{item.controller=='Coupon'}}"></template>
  331. <!-- 幻灯片 -->
  332. <template is="banner" data="{{item}}" wx:if="{{item.controller=='Slider'}}"></template>
  333. <!-- 搜索框 -->
  334. <template is="search" data="{{item}}" wx:if="{{item.controller=='Search'}}"></template>
  335. <!-- 辅助线 -->
  336. <template is="line" data="{{item}}" wx:if="{{item.controller=='HorzLine'}}"></template>
  337. <!-- 辅助空白 -->
  338. <template is="blank" data="{{item}}" wx:if="{{item.controller=='HorzBlank'}}"></template>
  339. <!-- 富文本 -->
  340. <template is="richtext" data="{{item}}" wx:if="{{item.controller=='RichText'}}"></template>
  341. <!-- 文本 -->
  342. <template is="text" data="{{item}}" wx:if="{{item.controller=='Text'}}"></template>
  343. <!-- 浮动按钮 -->
  344. <template is="floatBtn" data="{{item}}" wx:if="{{item.controller=='FloatBtn'}}"></template>
  345. <!-- 图片魔方 -->
  346. <template is="cube" data="{{item}}" wx:if="{{item.controller=='RubikCube'}}"></template>
  347. <!-- 商品列表 -->
  348. <block wx:if="{{item.controller=='GoodsList'}}">
  349. <diy-goods-list value="{{item}}" idx="{{index}}" bind:diyGoodsList="getDiyGoodsList">
  350. <template is="goodsList" data="{{rushList: diyGoodsList[index], value: item, isShowListTimer, actEndMap, countDownMap, stopClick, isShowListCount, needAuth, is_open_vipcard_buy, ishow_index_pickup_time, skin, goods_sale_unit}}" wx:if="{{diyGoodsList.length}}"></template>
  351. </diy-goods-list>
  352. </block>
  353. <!-- 拼团 -->
  354. <diy-pintuan refresh="{{couponRefresh}}" diyInfo="{{item}}" wx:if="{{item.controller=='Pintuan'}}" skin="{{skin}}" />
  355. <!-- 多时段限时秒杀 -->
  356. <template is="diySeckill" wx:if="{{item.controller=='Seckill'}}" data="{{secRushList:secRushList,skin,scekillTimeList,secKillActiveIdx,secKillGoodsIndex,needAuth,diyInfo:item}}"></template>
  357. <!-- 视频 -->
  358. <template is="video" data="{{item}}" wx:if="{{item.controller=='Video'}}"></template>
  359. <!-- 新人专享 -->
  360. <block wx:if="{{item.controller=='Newcome'}}">
  361. <i-new-comer bind:openSku="openSku" refresh="{{newComerRefresh}}" diyData="{{item}}" skin="{{skin}}" />
  362. </block>
  363. <!-- 专题 -->
  364. <block wx:if="{{item.controller=='Special'}}">
  365. <i-topic refresh="{{couponRefresh}}" bind:openSku="openSku" showPos="0" diyInfo="{{item}}" />
  366. </block>
  367. <!-- 多商品组 -->
  368. <block wx:if="{{item.controller=='ManyGoodsList'}}">
  369. <diy-many-goods-list value="{{item}}" idx="{{index}}" bind:diyGoodsList="getDiyManyGoodsList">
  370. <template is="goodsList" data="{{rushList: diyManyGoodsList, value: item, isShowListTimer, actEndMap, countDownMap, stopClick, isShowListCount, needAuth, is_open_vipcard_buy, ishow_index_pickup_time, skin, goods_sale_unit}}" wx:if="{{diyManyGoodsList.length}}"></template>
  371. <view wx:else><i-empty>暂无商品~</i-empty></view>
  372. </diy-many-goods-list>
  373. </block>
  374. <!-- 单图组 -->
  375. <template is="diySingleImg" data="{{item}}" wx:if="{{item.controller=='SingleImg'}}"></template>
  376. </block>
  377. <view style="height:100rpx;"></view>
  378. </view>
  379. <i-tabbar currentIdx='0' cartNum='{{cartNum}}' needAuth="{{needAuth}}" tabbarRefresh="{{tabbarRefresh}}" bind:authModal="authModal" />
  380. <i-order-notify i-class="order-notify" wx:if="{{shop_info.order_notify_switch==1}}" stopNotify="{{stopNotify}}" />
  381. <i-change-community wx:if="{{showChangeCommunity}}" wx:if="{{showChangeCommunity}}" visible="{{showChangeCommunity}}" changeCommunity="{{changeCommunity}}" community="{{community}}" bind:changeComunity="confrimChangeCommunity" canChange="{{hide_community_change_btn==0}}" groupInfo="{{groupInfo}}"></i-change-community>
  382. <!-- 弹窗优惠券begin -->
  383. <view class='new-coupou' wx:if="{{showCouponModal && hasAlertCoupon && !showChangeCommunity}}">
  384. <view class='new-coupou-content'>
  385. <view class='new-coupou-body'>
  386. <view class='new-coupou-body-head'>恭喜你获得{{totalAlertMoney}}元红包券</view>
  387. <view class='new-coupou-body-scroll'>
  388. <scroll-view scroll-y style='max-height:580rpx;'>
  389. <view class='new-coupou-item' wx:for="{{alert_quan_list}}" wx:key="id">
  390. <view class="m-coupon-l"><view class='m-coupou-price'><text>¥</text>{{item.credit}}</view></view>
  391. <view class='m-coupou-m'>
  392. <view class='m-coupou-name'>{{item.voucher_title}}</view>
  393. <view class='m-coupou-title' wx:if="{{item.limit_money >0}}">满{{item.limit_money}}元可用</view>
  394. <view class='m-coupou-title' wx:if="{{item.is_limit_goods_buy==0}}">使用范围:所有商品</view>
  395. <view class='m-coupou-title' wx:elif="{{item.is_limit_goods_buy==1}}">使用范围:指定商品</view>
  396. <view class='m-coupou-title' wx:elif="{{item.is_limit_goods_buy==2}}">使用范围:指定分类</view>
  397. </view>
  398. <view class='m-coupou-r'>
  399. <view class='new-coupou-use kong' bindtap='goUse' data-idx='{{index}}'>去使用</view>
  400. </view>
  401. </view>
  402. </scroll-view>
  403. </view>
  404. <view class='new-coupou-body-foot'>
  405. <view class='new-coupou-body-btn' bindtap='toggleCoupon' data-auth="true">立即使用</view>
  406. </view>
  407. </view>
  408. <view class='new-coupou-foot'>
  409. <text class="iconfont icon-guanbi" bindtap='toggleCoupon'></text>
  410. </view>
  411. </view>
  412. </view>
  413. <!-- 弹窗优惠券end -->
  414. <!-- 弹窗广告 -->
  415. <ad-alert pop_page="0" wx:else />
  416. </view>
  417. <!-- 禁用界面 -->
  418. <view class="forbid i-flex-col i-flex-alc" wx:if="{{isblack==1}}">
  419. <text class="iconfont icon-icon-test1"></text>
  420. <view class="h1">您已被禁止访问</view>
  421. <view class="h2">请联系管理员</view>
  422. </view>
  423. <!---规格选择begin-->
  424. <i-sku visible="{{visible}}" skin="{{skin}}" skuList="{{skuList}}" cur_sku_arr="{{cur_sku_arr}}" bind:cancel="closeSku" sku_val="{{sku_val}}" sku="{{sku}}" goodsid="{{addCar_goodsid}}" bind:changeCartNum="changeCartNum" bind:vipModal="vipModal"></i-sku>
  425. <!---规格选择end-->
  426. <!-- 会员表单申请 -->
  427. <form-apply wx:if="{{isparse_formdata==1}}"></form-apply>
  428. <!-- 分享 -->
  429. <view class='ui-mask' bindtap='hide_share_handler' hidden='{{is_share_html}}'></view>
  430. <view class="model-services show" hidden='{{is_share_html}}'>
  431. <view class="model-services-title">分享</view>
  432. <view class="model-services-content">
  433. <view class="service-list">
  434. <view class="service-item">
  435. <button open-type="share" class='none_btn' plain="true">
  436. <text class="iconfont icon-weixin2 service-icon"></text>
  437. <view class="cube-text">
  438. <text>好友</text>
  439. </view>
  440. </button>
  441. </view>
  442. <view class="service-item" bindtap="goLink" data-link='/lionfish_comshop/pages/index/share' data-needauth="{{true}}">
  443. <text class="iconfont icon-pengyouquan service-icon"></text>
  444. <view class="cube-text">
  445. <text>海报</text>
  446. </view>
  447. </view>
  448. </view>
  449. </view>
  450. </view>
  451. <!-- 分享 End -->
  452. <!-- 文本复制 Begin -->
  453. <i-modal scrollUp="{{false}}" visible="{{showCopyText}}">
  454. <view class="copytext">
  455. <view class="copytext-title" style="background:{{skin.color}}">
  456. - {{groupInfo.owner_name}}信息 -
  457. <text class="iconfont icon-guanbi copytext-close" bindtap='showCopyTextHandle' data-status="{{false}}"></text>
  458. </view>
  459. <view class="copytext-p">小区:{{community.communityName}}</view>
  460. <view class="copytext-p">{{groupInfo.owner_name}}:{{community.disUserName}}</view>
  461. <view class="copytext-p">自提点:{{community.address||community.communityAddress||community.fullAddress}}</view>
  462. <view class="copytext-h3">今日推荐</view>
  463. <scroll-view class="copytext-content" scroll-y>
  464. <view class="copytext-item" wx:for="{{copy_text_arr}}" wx:key="id" wx:if="{{copy_text_arr.length}}">
  465. {{index+1}}. 【{{item.goods_name}}】 <text>团购价{{item.price}}元</text>
  466. </view>
  467. </scroll-view>
  468. <i-button class="community-content-btn" iClass="btn" bindtap="copyText" style="background:{{skin.color}}">一键复制</i-button>
  469. </view>
  470. </i-modal>
  471. <!-- 文本复制 End -->
  472. <i-new-auth needAuth="{{needAuth&&showAuthModal}}" bind:authSuccess="authSuccess" bind:cancel="authModal" needPosition="{{needPosition}}"></i-new-auth>
  473. <i-vip-modal visible="{{showVipModal}}" imgUrl="{{pop_vipmember_buyimage}}" />
  474. <!-- 公众号关注组件 -->
  475. <view class="mp-account" wx:if="{{show_index_wechat_oa==1&&!hideMpAccount}}">
  476. <text class="iconfont icon-guanbi" bindtap="closeMpaccount"></text>
  477. <official-account binderror="binderror" bindload="bindload"></official-account>
  478. </view>
  479. <!-- 公告弹窗 Begin -->
  480. <i-modal scrollUp="{{false}}" visible="{{showNoticeText}}">
  481. <view class="copytext">
  482. <view class="copytext-title" style="background:{{skin.color}}">
  483. - 公告 -
  484. <text class="iconfont icon-guanbi copytext-close" bindtap='showNoticeTextHandle' data-status="{{false}}"></text>
  485. </view>
  486. <scroll-view class="copytext-content" scroll-y>
  487. <view class="copytext-item" wx:if="{{noticeIdx>=0}}">
  488. {{notice_list[noticeIdx].content}}
  489. </view>
  490. </scroll-view>
  491. </view>
  492. </i-modal>
  493. <!-- 公告弹窗 End -->