shopList.vue 6.7 KB

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