limited-source-pre-sale.vue 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <!-- 限源预售 -->
  2. <template>
  3. <view class="wrap">
  4. <view class="swiper-box">
  5. <swiper class="swiper" indicator-dots="true" indicator-color="#fff" indicator-active-color="#000"
  6. :circular="true" autoplay="true" interval="3000" duration="500">
  7. <swiper-item v-for="(item,index) in swiperList" :key="index">
  8. <view class="swiper-item">
  9. <image :src="item" class="banner-img" mode="aspectFill" />
  10. </view>
  11. </swiper-item>
  12. </swiper>
  13. </view>
  14. <view class="header-bottom">
  15. <view class="header-item" @tap="showSeason">
  16. 时令
  17. <image src="../../../static/sanjiao-bottom.png"
  18. :class="[isShowSeason == false ? 'sanjiao' : 'sanjiaoSelect']" mode="widthFix"></image>
  19. </view>
  20. <view class="header-item" @tap="showArea">
  21. 地域
  22. <image src="../../../static/sanjiao-bottom.png"
  23. :class="[isShowArea == false ? 'sanjiao' : 'sanjiaoSelect']" mode="widthFix"></image>
  24. </view>
  25. <view class="header-item" @tap="showType">
  26. 品类
  27. <image src="../../../static/sanjiao-bottom.png"
  28. :class="[isShowType == false ? 'sanjiao' : 'sanjiaoSelect']" mode="widthFix"></image>
  29. </view>
  30. <!-- 时令-弹窗 -->
  31. <view v-show="isShowSeason">
  32. <view class="mask" @tap="closeSeason"></view>
  33. <view class="collectionTime-window">
  34. <view class="collectionTime-item">
  35. 1月
  36. </view>
  37. <view class="collectionTime-item">
  38. 2月
  39. </view>
  40. <view class="collectionTime-item">
  41. 3月
  42. </view>
  43. <view class="collectionTime-item">
  44. 4月
  45. </view>
  46. <view class="collectionTime-item">
  47. 5月
  48. </view>
  49. <view class="collectionTime-item">
  50. 6月
  51. </view>
  52. <view class="collectionTime-item">
  53. 7月
  54. </view>
  55. <view class="collectionTime-item">
  56. 8月
  57. </view>
  58. <view class="collectionTime-item">
  59. 9月
  60. </view>
  61. <view class="collectionTime-item">
  62. 10月
  63. </view>
  64. <view class="collectionTime-item">
  65. 11月
  66. </view>
  67. <view class="collectionTime-item">
  68. 12月
  69. </view>
  70. </view>
  71. </view>
  72. <!-- 时令-弹窗 -->
  73. <!-- 地域-弹窗 -->
  74. <view v-show="isShowArea">
  75. <view class="mask" @tap="closeArea"></view>
  76. <view class="collectionTime-window">
  77. <view class="collectionTime-item">
  78. 华中地区
  79. </view>
  80. <view class="collectionTime-item">
  81. 华北地区
  82. </view>
  83. <view class="collectionTime-item">
  84. 华东地区
  85. </view>
  86. <view class="collectionTime-item">
  87. 华南地区
  88. </view>
  89. <view class="collectionTime-item">
  90. 东北地区
  91. </view>
  92. <view class="collectionTime-item">
  93. 西北地区
  94. </view>
  95. </view>
  96. </view>
  97. <!-- 地域-弹窗 -->
  98. <!-- 品类-弹窗 -->
  99. <view v-show="isShowType">
  100. <view class="mask" @tap="closeType"></view>
  101. <view class="allCategories-window">
  102. <view class="allCategories-item">
  103. <image src="../../../static/categories-1.png" mode="heightFix"></image>
  104. 地产本草
  105. </view>
  106. <view class="allCategories-item">
  107. <image src="../../../static/categories-2.png" mode="heightFix"></image>
  108. 草本茗茶
  109. </view>
  110. <view class="allCategories-item">
  111. <image src="../../../static/categories-3.png" mode="heightFix"></image>
  112. 干菌蔬果
  113. </view>
  114. <view class="allCategories-item">
  115. <image src="../../../static/categories-4.png" mode="heightFix"></image>
  116. 五谷杂粮
  117. </view>
  118. <view class="allCategories-item">
  119. <image src="../../../static/categories-5.png" mode="heightFix"></image>
  120. 水产干货
  121. </view>
  122. <view class="allCategories-item">
  123. <image src="../../../static/categories-6.png" mode="heightFix"></image>
  124. 调味佳料
  125. </view>
  126. <view class="allCategories-item">
  127. <image src="../../../static/categories-7.png" mode="heightFix"></image>
  128. 地产畜禽
  129. </view>
  130. <view class="allCategories-item">
  131. <image src="../../../static/categories-8.png" mode="heightFix"></image>
  132. 生态饮品
  133. </view>
  134. <view class="allCategories-item">
  135. <image src="../../../static/categories-9.png" mode="heightFix"></image>
  136. 养生器皿
  137. </view>
  138. <view class="allCategories-item">
  139. <image src="../../../static/categories-10.png" mode="heightFix"></image>
  140. 地产良酿
  141. </view>
  142. </view>
  143. </view>
  144. <!-- 品类-弹窗 -->
  145. </view>
  146. <scroll-view scroll-x="true" class="tab-list">
  147. <view :class="{ 'active' : isActive === index }" class="child" v-for="(item,index) in navList"
  148. :key="index" @click="checked(index)">
  149. {{item.title}}
  150. </view>
  151. </scroll-view>
  152. <view class="list">
  153. <view class="product-item">
  154. <image src="../../../static/img-4.png" class="product-item-img" mode="aspectFill"></image>
  155. <view class="product-item-column">
  156. <view class="product-name">冻干柠檬片 蜂蜜柠檬茶 保留鲜度96% 美白神器</view>
  157. <view class="recommend-tag">
  158. <image src="../../../static/icon-3.png" mode=""></image>
  159. 口干多汁,品质极佳
  160. </view>
  161. <view class="recommend-msg">7月、8月采摘 | 新疆</view>
  162. <view class="recommend-row">
  163. 限量100份 <text class="margin">已预订<text class="red">56</text>份</text>
  164. </view>
  165. <view class="product-item-price">¥394.00</view>
  166. </view>
  167. </view>
  168. <view class="product-item">
  169. <image src="../../../static/img-4.png" class="product-item-img" mode="aspectFill"></image>
  170. <view class="product-item-column">
  171. <view class="product-name">冻干柠檬片 蜂蜜柠檬茶 保留鲜度96% 美白神器</view>
  172. <view class="recommend-tag">
  173. <image src="../../../static/icon-3.png" mode=""></image>
  174. 口干多汁,品质极佳
  175. </view>
  176. <view class="recommend-msg">7月、8月采摘 | 新疆</view>
  177. <view class="recommend-row">
  178. 限量100份 <text class="margin">已预订<text class="red">56</text>份</text>
  179. </view>
  180. <view class="product-item-price">¥394.00</view>
  181. </view>
  182. </view>
  183. </view>
  184. </view>
  185. </template>
  186. <script>
  187. export default {
  188. data() {
  189. return {
  190. //轮播
  191. swiperList: [
  192. '../../../static/banner-5.png',
  193. '../../../static/banner-5.png',
  194. '../../../static/banner-5.png'
  195. ],
  196. //时令-弹窗
  197. isShowSeason: false,
  198. //地域-弹窗
  199. isShowArea: false,
  200. //品类-弹窗
  201. isShowType: false,
  202. //选项卡
  203. isActive: 0,
  204. navList: [{
  205. index: 0,
  206. title: '春季预售',
  207. }, {
  208. index: 1,
  209. title: "夏季预售",
  210. }, {
  211. index: 2,
  212. title: "秋季预售",
  213. }, {
  214. index: 3,
  215. title: "冬季预售",
  216. }],
  217. }
  218. },
  219. methods: {
  220. /**
  221. * 时令-弹窗
  222. */
  223. showSeason() {
  224. this.isShowSeason = true;
  225. },
  226. closeSeason() {
  227. this.isShowSeason = false;
  228. },
  229. /**
  230. * 地域-弹窗
  231. */
  232. showArea() {
  233. this.isShowArea = true;
  234. },
  235. closeArea() {
  236. this.isShowArea = false;
  237. },
  238. /**
  239. * 品类-弹窗
  240. */
  241. showType() {
  242. this.isShowType = true;
  243. },
  244. closeType() {
  245. this.isShowType = false;
  246. },
  247. //选项卡
  248. checked(index) {
  249. this.isActive = index
  250. },
  251. }
  252. }
  253. </script>
  254. <style scoped lang="scss">
  255. @import "./limited-source-pre-sale.css";
  256. </style>