shopList.vue 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. <template>
  2. <view class="content">
  3. <view class="search-top">
  4. <view class="search flex">
  5. <view class="shop-name clamp">椒江区</view>
  6. <image class="shop-jt" src="../../static/icon/dsjh.png" mode=""></image>
  7. <view class="input-box flex">
  8. <view class=" input-content flex">
  9. <image src="../../static/icon/search-h.png" mode="" class=""
  10. style="width: 32rpx;height: 32rpx;"></image>
  11. <view class="input"><input type="text" value="输入关键字搜索" /></view>
  12. </view>
  13. </view>
  14. <view class="search-tit" @click.stop="clickSearch">搜索</view>
  15. </view>
  16. <view class="shop">
  17. <view class="shop-title">
  18. <view class="shop-item">
  19. <view class="sitem-font">智能排序</view>
  20. <image class="jt-down" src="../../static/index/index06.png" mode=""></image>
  21. </view>
  22. <view class="shop-item">
  23. <view class="sitem-font">位置距离</view>
  24. <image class="jt-down" src="../../static/index/index06.png" mode=""></image>
  25. </view>
  26. <view class="shop-item">
  27. <view class="sitem-font">折扣优惠</view>
  28. <image class="jt-down" src="../../static/index/index06.png" mode=""></image>
  29. </view>
  30. <!-- <view class="shop-item">
  31. <view class="sitem-font">筛选</view>
  32. <image class="jt-down" src="../../static/index/index06.png" mode=""></image>
  33. </view> -->
  34. </view>
  35. </view>
  36. </view>
  37. <scroll-view scroll-y="true" :style="{'height': height}" class="shop-list-wrap">
  38. <view class="djq-wrap flex f-ai-s" v-for="item in 10">
  39. <image src="../../static/error/errorImage.jpg" mode="" class="djq-img"></image>
  40. <view class="djq-right pl20">
  41. <view class="djq-tit flex f-j-sb f-ai-s">
  42. <view class="djq-name clamp">
  43. 岭上会推拿SPA岭上会推拿SPA岭上会推拿SPA岭上会推拿SPA岭上会推拿SPA
  44. </view>
  45. <view class="djq-dis">
  46. <image src="../../static/icon/dw.png" mode=""></image>
  47. 距离0.3KM
  48. </view>
  49. </view>
  50. <view class="flex f-d-c f-j-sb f-ai-s fg1" style="height: 110rpx;">
  51. <view class="djq-dz clamp2">
  52. 椒江区市府大道200号椒江区市府大道200号椒江区
  53. </view>
  54. <view class="djq-hd flex f-j-sb">
  55. <view class="buy-info">
  56. 1425人已购买
  57. </view>
  58. <view class="hd-btn">
  59. <image src="../../static/icon/call.png" mode="" style="margin-right: 15rpx;"
  60. @click="makeCall()"></image>
  61. <image src="../../static/icon/dh.png" mode="" @click="dh()"></image>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="" style="padding: 10rpx 0 0 0;">
  66. <view class="left-btm flex f-j-s" v-for="itemt in 3">
  67. <view class="j-logo">
  68. </view>
  69. <view class="j-price">
  70. <text>¥</text>25
  71. </view>
  72. <view class="j-zk">
  73. 5.8折
  74. </view>
  75. <view class="j-name">
  76. 50元代金券
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. <uni-load-more :status="loadingType"></uni-load-more>
  83. </scroll-view>
  84. </view>
  85. </template>
  86. <script>
  87. export default {
  88. data() {
  89. return {
  90. height: '',
  91. loadingType: 'more'
  92. }
  93. },
  94. onLoad() {
  95. },
  96. onShow() {
  97. },
  98. onReachBottom() {
  99. },
  100. onReady() {
  101. var obj = this;
  102. uni.getSystemInfo({
  103. success: resu => {
  104. const query = uni.createSelectorQuery();
  105. query.select('.shop-list-wrap').boundingClientRect();
  106. query.exec(function(res) {
  107. obj.height = resu.windowHeight - res[0].top + 'px';
  108. });
  109. },
  110. fail: res => {}
  111. });
  112. },
  113. methods: {
  114. // 拨打电话
  115. makeCall() {
  116. },
  117. // 导航
  118. dh() {
  119. }
  120. }
  121. }
  122. </script>
  123. <style lang="scss">
  124. .search-top {
  125. // position: fixed;
  126. // top: 0;
  127. // z-index: 99;
  128. }
  129. .search {
  130. justify-content: flex-start;
  131. padding: 10rpx 32rpx 20rpx;
  132. align-items: center;
  133. background-color: #fff;
  134. .address {
  135. width: 32rpx;
  136. height: 38rpx;
  137. }
  138. .shop-name {
  139. height: 38rpx;
  140. position: relative;
  141. top: -4rpx;
  142. z-index: 100;
  143. font-size: 30rpx;
  144. font-family: PingFang SC;
  145. font-weight: 500;
  146. color: #666;
  147. padding-left: 10rpx;
  148. }
  149. .shop-jt {
  150. margin-left: 8rpx;
  151. width: 16rpx;
  152. height: 10rpx;
  153. }
  154. .input-box {
  155. margin-left: 10rpx;
  156. position: relative;
  157. z-index: 99;
  158. width: 520rpx;
  159. height: 60rpx;
  160. // background: rgba(255, 255, 255, 0.4);
  161. border-radius: 30rpx;
  162. .input-content {
  163. position: relative;
  164. z-index: 11;
  165. // border-radius: 99rpx;
  166. flex-grow: 1;
  167. padding: 5rpx 30rpx;
  168. background: #f6f6f6;
  169. .iconsearch {
  170. font-size: 50rpx;
  171. color: #ffffff;
  172. }
  173. .input {
  174. margin-left: 19rpx;
  175. flex-grow: 1;
  176. color: #666;
  177. background: #f6f6f6;
  178. input {
  179. font-size: 28rpx;
  180. }
  181. }
  182. }
  183. .input-button {
  184. padding-left: 20rpx;
  185. // font-size: $font-base;
  186. height: 100%;
  187. }
  188. }
  189. .search-tit {
  190. font-size: 28rpx;
  191. font-family: PingFang SC;
  192. font-weight: 500;
  193. color: #666666;
  194. flex-shrink: 0;
  195. padding-left: 10rpx;
  196. }
  197. }
  198. .shop {
  199. // margin-top: 20rpx;
  200. background: #ffffff;
  201. padding: 0 12rpx;
  202. .shop-title {
  203. padding: 30rpx 0 20rpx;
  204. display: flex;
  205. align-items: center;
  206. border-bottom: 1px solid #e3e6e7;
  207. .shop-item {
  208. width: 33%;
  209. display: flex;
  210. align-items: center;
  211. justify-content: center;
  212. .sitem-font {
  213. font-size: 26rpx;
  214. font-family: PingFang SC;
  215. font-weight: bold;
  216. color: #333333;
  217. }
  218. .jt-down {
  219. width: 10rpx;
  220. height: 8rpx;
  221. margin-left: 12rpx;
  222. }
  223. }
  224. }
  225. }
  226. .shop-list-wrap {
  227. // background-color: red;
  228. padding-top: 20rpx;
  229. }
  230. .djq-wrap {
  231. width: 701rpx;
  232. // height: 255rpx;
  233. background: #FFFFFF;
  234. box-shadow: 0px 0px 27rpx 0px rgba(50, 50, 52, 0.06);
  235. border-radius: 20rpx;
  236. margin: 0 auto 20rpx;
  237. padding: 23rpx 22rpx;
  238. &:last-of-type {
  239. margin-bottom: 0;
  240. }
  241. .djq-img {
  242. flex-shrink: 0;
  243. width: 150rpx;
  244. height: 150rpx;
  245. border-radius: 10rpx;
  246. }
  247. .djq-right {
  248. flex-grow: 1;
  249. .djq-tit {
  250. font-size: 34rpx;
  251. font-weight: bold;
  252. color: #333333;
  253. line-height: 52rpx;
  254. .djq-name {
  255. max-width: 300rpx;
  256. }
  257. .djq-dis {
  258. flex-shrink: 0;
  259. image {
  260. width: 20rpx;
  261. height: 28rpx;
  262. margin-right: 10rpx;
  263. }
  264. font-size: 22rpx;
  265. font-weight: 500;
  266. color: #666666;
  267. }
  268. }
  269. .djq-dz {
  270. width: 100%;
  271. font-size: 24rpx;
  272. font-weight: 500;
  273. color: #666666;
  274. }
  275. .djq-hd {
  276. width: 100%;
  277. border-bottom: 1rpx solid #EAECED;
  278. .buy-info {
  279. display: inline-block;
  280. height: 32rpx;
  281. border-radius: 16rpx 16rpx 16rpx 0px;
  282. line-height: 32rpx;
  283. font-size: 20rpx;
  284. font-weight: 500;
  285. color: #FF440D;
  286. padding: 0 15rpx;
  287. background-color: #fcf3f0;
  288. }
  289. .hd-btn {
  290. image {
  291. width: 46rpx;
  292. height: 46rpx;
  293. }
  294. }
  295. }
  296. }
  297. }
  298. .left-btm {
  299. height: 50rpx;
  300. .j-logo {
  301. width: 32rpx;
  302. line-height: 33rpx;
  303. background: linear-gradient(-48deg, #FFA30B, #FFD158);
  304. border-radius: 13rpx;
  305. font-size: 21rpx;
  306. font-weight: 500;
  307. color: #FFFFFF;
  308. text-align: center;
  309. }
  310. .j-price {
  311. font-size: 27rpx;
  312. font-weight: bold;
  313. color: #FF4C4C;
  314. margin: 0 10rpx 0 5rpx;
  315. }
  316. .j-zk {
  317. height: 31rpx;
  318. border: 1rpx solid #FF4C4C;
  319. border-radius: 7rpx;
  320. line-height: 31rpx;
  321. padding: 0 8rpx;
  322. font-size: 20rpx;
  323. font-weight: bold;
  324. color: #FF4C4C;
  325. margin-right: 5rpx;
  326. }
  327. .j-name {
  328. font-size: 23rpx;
  329. font-weight: bold;
  330. color: #333333;
  331. }
  332. }
  333. </style>