index.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <template>
  2. <view class="goPlayRank">
  3. <image class="top-bg"
  4. src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/kynrF1ZmdXVI649d1cace048eb7433a05834312872ce.png/1.png"
  5. mode=""></image>
  6. <view class="recommend-box">
  7. <view class="left-box">
  8. <view class="item">
  9. <image class="icon"
  10. src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/HBkaaPIYl3HF7dff4e9fb2931dab0ccae15e045f0bea.png/1.png"
  11. mode=""></image>
  12. </view>
  13. </view>
  14. <view class="right-box">
  15. <view class="item">
  16. <image class="icon"
  17. src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/noSKNjBdB8ui89742d420a79b0f3993e269d66649c9a.png/1.png"
  18. mode=""></image>
  19. </view>
  20. <view class="item">
  21. <image class="icon"
  22. src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/kozSJdN59XK9ed45006bf5d4a5339fcc6a47f2b8bbda.png/1.png"
  23. mode=""></image>
  24. </view>
  25. </view>
  26. </view>
  27. <image class="title-bg"
  28. src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/fK7AypgN5KfWb967da8ba8f6ca5dcd756a65b11831f8.png/1.png"
  29. mode=""></image>
  30. <zs-list class="store-box" mt="0" @load="loadMore" :status="status">
  31. <view class="left">
  32. <view class="store-item" v-for="(item,index) in list" :key="index" @click="goShopDetail(item)">
  33. <zs-img :src="item.src" width="335rpx" mode="widthFix" ></zs-img>
  34. <view class="info">
  35. <view class="title">
  36. {{item.title}}
  37. </view>
  38. <view class="desc">
  39. <view class="label">
  40. </view>
  41. <view class="value">
  42. {{item.desc}}
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="right">
  49. <view class="store-item" v-for="(item,index) in list1" :key="index" @click="goShopDetail(item)">
  50. <zs-img :src="item.src" width="335rpx" mode="widthFix" ></zs-img>
  51. <view class="info">
  52. <view class="title">
  53. {{item.title}}
  54. </view>
  55. <view class="desc">
  56. <view class="label">
  57. </view>
  58. <view class="value">
  59. {{item.desc}}
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </zs-list>
  66. </view>
  67. </template>
  68. <script>
  69. export default {
  70. data() {
  71. return {
  72. status: 'more',
  73. list: [{
  74. src: 'http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/lDTOgZR2SPIUbece750289a8a2210d95336d78c03385.png/1.png',
  75. title: 'V9健身房',
  76. desc:'满200享7折'
  77. },
  78. {
  79. src: 'http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/rSFr1hJyeCyX3992256c11e35eb35a6b5bcd6241aecb.png/1.png',
  80. title: '奥尔良烤鸡排',
  81. desc:'满200享7折'
  82. },
  83. {
  84. id: 2,
  85. src:'https://img2.baidu.com/it/u=242243300,1128843585&fm=253&fmt=auto&app=138&f=JPEG?w=696&h=500',
  86. title: '泊斯曼酒店',
  87. desc:'满200享7折',
  88. },
  89. {
  90. id: 3,
  91. src:'https://img-md.veimg.cn/meadinindex/img5/2021/11/69F51D249ADA446EB5507352AA4ABD6E.jpg',
  92. title: '贵阳万丽酒店',
  93. desc:'满200享7折',
  94. },
  95. {
  96. id: 2,
  97. src:'https://img2.baidu.com/it/u=242243300,1128843585&fm=253&fmt=auto&app=138&f=JPEG?w=696&h=500',
  98. title: '泊斯曼酒店',
  99. desc:'满200享7折',
  100. },
  101. ],
  102. list1: [
  103. {
  104. id: 3,
  105. src:'http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/RLcEyVwfImHU4c2c52e4d6e58373bbf024639ce148a1.png/1.png',
  106. title: '黄果树瀑布',
  107. desc:'满200享7折',
  108. },
  109. {
  110. id: 3,
  111. src:'http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/XNDGAjYTjDOe8e144e30e1ffda0d1d2bc2f6fe0d0d82.png/1.png',
  112. title: '星巴克咖啡(复地...',
  113. desc:'满200享7折',
  114. },
  115. {
  116. id: 3,
  117. src:'http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/RkslqrV9Gj3f7c363ce5d4d2151c4ea19208860164d4.png/1.png',
  118. title: '陈言V+健身房',
  119. desc:'满200享7折',
  120. },
  121. {
  122. id: 2,
  123. src:'http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/Ez80sIneA4PXa7fb2a53743a00f05921b08a7fa070a6.png/1.png',
  124. title: '泊斯曼酒店',
  125. desc:'满200享7折',
  126. },
  127. {
  128. id: 3,
  129. src:'http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/Ez80sIneA4PXa7fb2a53743a00f05921b08a7fa070a6.png/1.png',
  130. title: '贵阳万丽酒店',
  131. desc:'满200享7折',
  132. },
  133. {
  134. id: 2,
  135. src:'http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/Ez80sIneA4PXa7fb2a53743a00f05921b08a7fa070a6.png/1.png',
  136. title: '泊斯曼酒店',
  137. desc:'满200享7折',
  138. },
  139. ]
  140. }
  141. },
  142. methods: {
  143. goShopDetail(item) {
  144. uni.setStorageSync('shopInfo', JSON.stringify(item))
  145. uni.navigateTo({
  146. url: `../../detail/shopDetail/shopDetail`
  147. })
  148. },
  149. loadMore() {
  150. }
  151. },
  152. }
  153. </script>
  154. <style lang="scss" scoped>
  155. .goPlayRank {
  156. .top-bg {
  157. height: 652rpx;
  158. width: 100%;
  159. }
  160. .recommend-box {
  161. margin: 20rpx 30rpx;
  162. height: 430rpx;
  163. padding: 130rpx 35rpx 30rpx;
  164. box-sizing: border-box;
  165. background: url('http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/ZDbdEx1qHgky546a4685e9f7bdc0654b72922b0e0fe5.png/1.png') no-repeat;
  166. background-size: 100% 100%;
  167. display: flex;
  168. .left-box {
  169. width: 230rpx;
  170. .item {
  171. .icon {
  172. width: 230rpx;
  173. height: 268rpx;
  174. }
  175. }
  176. }
  177. .right-box {
  178. flex: 1;
  179. padding-left: 20rpx;
  180. display: flex;
  181. flex-direction: column;
  182. justify-content: space-between;
  183. .item {
  184. .icon {
  185. width: 374rpx;
  186. height: 124rpx;
  187. }
  188. }
  189. }
  190. }
  191. .title-bg {
  192. width: 100%;
  193. height: 142rpx;
  194. }
  195. zs-list ::v-deep .zs-list {
  196. display: flex;
  197. flex-wrap: wrap;
  198. justify-content: space-between;
  199. padding: 0 30rpx;
  200. .store-item {
  201. width: 335rpx;
  202. margin-bottom: 25rpx;
  203. border-radius: 16rpx;
  204. box-shadow: 0rpx 0rpx 24rpx 2rpx rgba(0, 0, 0, 0.08);
  205. .icon {
  206. width: 100%;
  207. height: 300rpx;
  208. border-radius: 16rpx 16rpx 0 0;
  209. }
  210. .info {
  211. padding: 20rpx;
  212. background: #fff;
  213. border-radius: 0 0 16rpx 16rpx;
  214. .title {
  215. font-weight: bold;
  216. }
  217. .desc {
  218. display: flex;
  219. align-items: center;
  220. height: 44rpx;
  221. line-height: 44rpx;
  222. margin-top: 24rpx;
  223. font-size: 24rpx;
  224. .label {
  225. background: linear-gradient(180deg, #FF4A39 0%, #FC8B45 100%);
  226. color: #fff;
  227. width: 44rpx;
  228. text-align: center;
  229. border-radius: 8rpx 0 0 8rpx;
  230. }
  231. .value {
  232. color: #FE5B47;
  233. background: rgba(254, 91, 71, 0.1);
  234. padding: 0 15rpx;
  235. border-radius: 0 8rpx 8rpx 0;
  236. }
  237. }
  238. }
  239. }
  240. }
  241. }
  242. </style>