shopHomepage.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889
  1. <template>
  2. <view class="selected-services">
  3. <!-- 头部 -->
  4. <navbar :config="config" backColor="#666"></navbar>
  5. <view class="shopCard">
  6. <view class="shop-info">
  7. <image :src="shop.logo" mode=""></image>
  8. <view class="shopNamebox">
  9. <view class="phone-btn" @click="goPhone(shop.customer_service_phone)">售后电话</view>
  10. <view class="shopName">{{ shop.shop_name }}</view>
  11. <view class="shopName_rate">
  12. <rate :value="shop.averageCopy"></rate> {{ shop.average }}分
  13. </view>
  14. </view>
  15. </view>
  16. <template v-if="false">
  17. <view class="shop_item mt30" style="alignItems: flex-start;">
  18. <image src="/static/convenienceService/location2.png" mode=""></image>
  19. <view>{{shop.province_name+shop.city_name+shop.area_name+shop.address}}</view>
  20. </view>
  21. <view class="shop_item" style="alignItems: flex-start;">
  22. <text class="iconfont2">&#xe651;</text>
  23. <view>营业时间:{{ shop.business_hours }}{{ shop.time_quantum }}</view>
  24. </view>
  25. </template>
  26. <view class="searchBox">
  27. <image src="/static/convenienceService/search.png" mode=""></image>
  28. <input @click="searchClick" v-model="value" type="text" placeholder-style="color:#B3B3B3;fontSize:28rpx"
  29. placeholder="可搜索本店商品" />
  30. </view>
  31. </view>
  32. <!-- 限时秒杀 -->
  33. <view class="seckill" v-if="currSeckill && currSeckill.length > 0">
  34. <view class="seckill-flex">
  35. <view class="seckill-top" @click="goProductDetails('/pages/research/nearby/timeLimit?shopid='+shopId)">
  36. <view class="seckill-left"> 限时秒杀 </view>
  37. <view class="seckill-line" v-if="currTime"> </view>
  38. <view class="seckill-time" v-if="currTime">{{ currTime }}点场 剩余
  39. </view>
  40. <view class="time-item">
  41. <uni-countdown :backgroundColor="'none'" @timeup="overDown2" :color="'#fff'"
  42. :splitorColor="'#fff'" :show-day="time2[0] > 0" :day="time2[0]" :hour="time2[1]"
  43. :minute="time2[2]" :second="time2[3]"></uni-countdown>
  44. </view>
  45. </view>
  46. <view class="commodity" v-if="currSeckill && currSeckill.length > 0">
  47. <swiper :indicator-dots="false" :autoplay="false" :display-multiple-items="itemsDis2"
  48. @change="imgActiveFun2" style="height: 220rpx" circular="true">
  49. <!-- <swiper-item class="option-item" @click="
  50. goProductDetails(
  51. '/pages/product/goods/seckillGoods?id=' + item.id
  52. )
  53. " v-for="item in currSeckill" :key="item.id">
  54. <image v-if="item && item.cover" :src="item.cover" mode=""></image>
  55. <view class="number">
  56. <rich-text :nodes="$mUtil.priceBigSmall(item.min_price)"></rich-text>
  57. </view>
  58. </swiper-item> -->
  59. <swiper-item v-for="(item,key) in currSeckill" :key="key">
  60. <div class="fa-item">
  61. <view class="option-item" v-for="itemSon in item"
  62. @click="goProductDetails('/pages/product/goods/seckillGoods?id=' + itemSon.id)"
  63. :key="item.id">
  64. <image v-if="itemSon && itemSon.cover" :src="itemSon.cover" mode=""></image>
  65. <view class="number">
  66. <rich-text :nodes="$mUtil.priceBigSmall(itemSon.min_price)"></rich-text>
  67. </view>
  68. </view>
  69. </div>
  70. </swiper-item>
  71. </swiper>
  72. <!-- <view class="slide-box">
  73. <view class="dotBox" v-if="currSeckill.length > 1">
  74. <view class="dotBox_item" v-for="(v, i) in currSeckill" :key="i"
  75. :class="{ active_dotBox: activeBannerIndex2 == i }"></view>
  76. </view>
  77. </view> -->
  78. <view class="dotBox" v-if="currSeckill.length > 1">
  79. <view class="dotBox_item" v-for="(v, i) in currSeckill" :key="i"
  80. :class="{ active_dotBox: activeBannerIndex2 == i }"></view>
  81. </view>
  82. </view>
  83. <nodata v-else :config="{ top: 1, content: '暂无商品~' }"></nodata>
  84. </view>
  85. </view>
  86. <!-- 拼团购 -->
  87. <view class="group-work" v-if="groupList && groupList.length > 0">
  88. <view class="group-item">
  89. <view class="group-top" @click="goProductDetails('/pages/research/homepage/groupList?shopid='+shopId)">
  90. <view class="group-left"> 拼团购 </view>
  91. <view class="group-right">
  92. 查看更多<text class="iconfont u-font24 u-999">&#xe6c7;</text>
  93. </view>
  94. </view>
  95. <view v-if="groupList && groupList.length > 0">
  96. <view class="work-item" v-for="(item, index) in groupList" :key="index" @click="
  97. goProductDetails('/pages/product/goods/puzzleGoods?id=' + item.id)
  98. ">
  99. <view class="work-left">
  100. <image :src="item.cover" class="work-image" mode=""></image>
  101. </view>
  102. <view class="work-title">
  103. <view class="u-text2 u-mt10">
  104. {{ item.title }}
  105. </view>
  106. <view class="go-group-work">
  107. <view class="work-number">
  108. <view class="num">
  109. <view class="large">
  110. <rich-text :nodes="$mUtil.priceBigSmall(item.min_price)"></rich-text>
  111. </view>
  112. <view class="small">
  113. <text class="pintuanc6">¥ {{ item.min_sale_price }}</text>
  114. </view>
  115. </view>
  116. <view class="how-many-people">
  117. {{ item.group_people_num }}人团,已拼<text class="number">{{
  118. item.result_sale_num
  119. }}</text>件
  120. </view>
  121. </view>
  122. <view class="go-btn">去拼团</view>
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. <nodata v-else :config="{ top: 1, content: '暂无商品~' }"></nodata>
  128. </view>
  129. </view>
  130. <!-- 拼团购 -->
  131. <!-- 精品服务 -->
  132. <view class="boutique">
  133. <view class="item" :class="{ itemswitch: isActive == index }" v-for="(item, index) in service"
  134. :key="item.id" @click="switchAssembly(index)">
  135. {{ item.name }}
  136. </view>
  137. </view>
  138. <!-- <view class="transformation" :is="currentView"> </view> -->
  139. <!-- <service v-if="isActive==0" :cate='serviceCate' :good='serviceGood' @typeChange='serviceTypeChange'></service> -->
  140. <commodity :cate="commCate" :good="commGood" :isActive='isActive' @typeChange="commTypeChange"></commodity>
  141. </view>
  142. </template>
  143. <script>
  144. import commodity from "../../../components/selected/commodity.vue";
  145. import rate from "@/components/rate.vue"
  146. export default {
  147. components: {
  148. commodity,
  149. rate
  150. },
  151. data() {
  152. return {
  153. service: [
  154. // {
  155. // id: 1,
  156. // name: "精品服务",
  157. // },
  158. {
  159. id: 2,
  160. name: "精选商品",
  161. },
  162. ],
  163. isActive: 0,
  164. config: {
  165. back: true, //false是tolbar页面 是则不写
  166. title: "店铺信息",
  167. color: "#1a1a1a",
  168. //背景颜色;参数一:透明度(0-1);参数二:背景颜色(array则为线性渐变,string为单色背景)
  169. backgroundColor: [1, "#fff"],
  170. },
  171. username: 123,
  172. scrollTop: 0,
  173. old: {
  174. scrollTop: 0,
  175. },
  176. shop: {}, //店铺信息
  177. currTime: null, //秒杀当前场
  178. currSeckill: [], //秒杀列表
  179. ml2: -22, //小红点偏移
  180. itemsDis2: 1, //当前小红点位置
  181. keyList2: 0, //一共几个点
  182. time2: [0, 0, 0, 0], //秒杀倒计时
  183. groupList: [],
  184. activeBannerIndex2: 0,
  185. shopId: null,
  186. commCate: [], //商品分类
  187. commGood: [], //商品列表
  188. commParams: {
  189. limit: 100000,
  190. },
  191. value: ""
  192. };
  193. },
  194. onLoad(options) {
  195. if (options.shopId) {
  196. this.shopId = options.shopId;
  197. this.getCommCate(options.shopId);
  198. this.getIndexList(options.shopId);
  199. this.seckillList(options.shopId);
  200. this.getgroupList(options.shopId);
  201. this.getCommGood(this.shopId);
  202. }
  203. },
  204. methods: {
  205. searchClick() {
  206. uni.navigateTo({
  207. url: "/pages/research/homepage/search",
  208. });
  209. },
  210. callPhone() {
  211. uni.makePhoneCall({
  212. phoneNumber: this.shop.customer_service_phone
  213. });
  214. },
  215. switchAssembly(index) {
  216. this.isActive = index;
  217. delete this.commParams.group_id;
  218. delete this.commParams.type;
  219. this.getCommCate(this.shopId);
  220. this.getCommGood(this.shopId);
  221. },
  222. commTypeChange(e) {
  223. if (e.type == undefined) {
  224. delete this.commParams.type;
  225. this.commParams.group_id = e.groupId;
  226. console.log(e)
  227. console.log('参数')
  228. } else {
  229. delete this.commParams.group_id;
  230. this.commParams.type = e.type;
  231. }
  232. this.getCommGood(this.shopId);
  233. },
  234. /**商品列表 */
  235. getCommGood(shopId) {
  236. this.$http
  237. .get(this.isActive == 0 ? `/service/goods/list/${shopId}` : `/goods/list/${shopId}`, this.commParams,
  238. false)
  239. .then((res) => {
  240. if (res && res.code == 200) {
  241. this.commGood = res.list;
  242. }
  243. });
  244. },
  245. /**商品分类 */
  246. getCommCate(shopId) {
  247. this.$http
  248. .get(this.isActive == 0 ? `/servicegoods/group/all/${shopId}` : `/goods_group/all/${shopId}`, {},
  249. false)
  250. .then((res) => {
  251. if (res && res.code == 200) {
  252. this.commCate = res.list;
  253. }
  254. });
  255. },
  256. imgActiveFun2(e) {
  257. this.activeBannerIndex2 = e.detail.current;
  258. },
  259. goProductDetails(url) {
  260. uni.navigateTo({
  261. url: url,
  262. });
  263. },
  264. /**限时秒杀 */
  265. seckillList(shopId) {
  266. this.$http
  267. .get(
  268. `/marketing/seckillActivityGoods/flash-sale?shop_id=${shopId}`, {
  269. limit: 10,
  270. page: 1
  271. },
  272. false
  273. )
  274. .then((res) => {
  275. if (res && res.code == 200) {
  276. this.currTime = res.data.start_hour;
  277. this.currSeckill = this.oneArrToTwoArr(res.data.list)
  278. // if (this.currSeckill && res.data.list.length <= 4) {
  279. // this.keyList2 = 1;
  280. // this.itemsDis2 = res.data.list.length;
  281. // }
  282. // if (
  283. // this.currSeckill &&
  284. // res.data.list.length > 4 &&
  285. // res.data.list.length <= 8
  286. // ) {
  287. // this.keyList2 = 2;
  288. // this.ml2 = -45;
  289. // this.itemsDis2 = 3;
  290. // }
  291. // if (
  292. // this.currSeckill &&
  293. // res.data.list.length > 8 &&
  294. // res.data.list.length <= 12
  295. // ) {
  296. // this.keyList2 = 3;
  297. // this.ml2 = -68;
  298. // this.itemsDis2 = 3;
  299. // }
  300. // if (
  301. // this.currSeckill &&
  302. // res.data.list.length > 12 &&
  303. // res.data.list.length <= 16
  304. // ) {
  305. // this.keyList2 = 4;
  306. // this.ml2 = -90;
  307. // this.itemsDis2 = 3;
  308. // }
  309. if (res.data.finish_time) {
  310. this.time2 = this.$mUtil
  311. .countDown(Math.floor(res.data.finish_time / 1000))
  312. .split(":")
  313. .map((val) => Number(val));
  314. }
  315. }
  316. });
  317. },
  318. oneArrToTwoArr(data) {
  319. let newData = [];
  320. let zyf = 4; //一维数组转二维数组长度(此处是二维数组每一个长度控制)
  321. for (var i = 0; i < Math.ceil(data.length / zyf); i++) {
  322. newData[i] = [];
  323. newData[i].push(data[i * zyf]);
  324. for (var j = 1; j < zyf; j++) {
  325. if (data[i * zyf + j] == undefined) {
  326. //超出长度控住
  327. return newData;
  328. } else {
  329. newData[i].push(data[i * zyf + j]);
  330. }
  331. }
  332. }
  333. return newData;
  334. },
  335. /**团购 */
  336. getgroupList(shopId) {
  337. this.$http
  338. .get(
  339. `/groupbuy/activitygoods/will-you-spell?shop_id=${shopId}`, {
  340. limit: 10,
  341. page: 1
  342. },
  343. false
  344. )
  345. .then((res) => {
  346. if (res && res.code == 200) {
  347. this.groupList = res.list;
  348. }
  349. });
  350. },
  351. /**查看地图 */
  352. openMap(shop) {
  353. uni.openLocation({
  354. latitude: Number(shop.tx_latitude),
  355. longitude: Number(shop.tx_longitude),
  356. name: shop.name,
  357. address: shop.address,
  358. success: function() {
  359. console.log("success");
  360. },
  361. });
  362. },
  363. /**获取店铺基本信息 */
  364. getIndexList(shopid) {
  365. this.$http.get("/yxt/shop/info/" + shopid).then((res) => {
  366. uni.stopPullDownRefresh();
  367. this.loading = false;
  368. if (res.data && res.code == 200) {
  369. this.shop = res.data;
  370. this.shop.averageCopy = Math.round(res.data.average)
  371. }
  372. });
  373. },
  374. scroll: function(e) {
  375. // console.log(e)
  376. this.old.scrollTop = e.detail.scrollTop;
  377. },
  378. },
  379. };
  380. </script>
  381. <style lang="scss" scoped>
  382. .itemswitch {
  383. border-bottom: 4px solid #FA6138;
  384. color: #FA6138;
  385. font-weight: 700;
  386. }
  387. .boutique {
  388. display: flex;
  389. justify-content: space-around;
  390. margin: 0 30rpx;
  391. background-color: #fff;
  392. font-weight: 500;
  393. line-height: 30rpx;
  394. // color: #FA6138;
  395. .item {
  396. padding: 50rpx 0 20rpx 0;
  397. margin-bottom: 26rpx;
  398. }
  399. }
  400. // .work-title:last-child{
  401. // border: none;
  402. // }
  403. .work-item {
  404. padding: 0 20rpx;
  405. display: flex;
  406. position: relative;
  407. .work-title {
  408. display: flex;
  409. flex-direction: column;
  410. justify-content: space-between;
  411. padding-top: 59rpx;
  412. padding-left: 25rpx;
  413. font-size: 28rpx;
  414. font-weight: Regular;
  415. color: rgba(24, 24, 24, 1);
  416. flex: 1;
  417. .how-many-people {
  418. margin-top: 8rpx;
  419. height: 33rpx;
  420. opacity: 1;
  421. font-size: 24rpx;
  422. font-weight: 400;
  423. text-align: left;
  424. color: #333333;
  425. line-height: 24rpx;
  426. .number {
  427. color: red;
  428. font-weight: Regular;
  429. }
  430. }
  431. }
  432. .work-image {
  433. border-radius: 16rpx;
  434. width: 226rpx;
  435. height: 226rpx;
  436. background-color: red;
  437. margin-top: 50rpx;
  438. flex: 1;
  439. }
  440. .go-group-work {
  441. display: flex;
  442. align-items: flex-end;
  443. justify-content: space-between;
  444. .work-number {
  445. margin-top: 46rpx;
  446. font-weight: Bold;
  447. font-size: 20rpx;
  448. color: red;
  449. .num {
  450. display: flex;
  451. align-items: center;
  452. }
  453. .small {
  454. color: #cccccc;
  455. font-size: 22rpx;
  456. font-weight: 500;
  457. text-decoration: line-through;
  458. margin-left: 17rpx;
  459. }
  460. .work-red {
  461. font-size: 36rpx;
  462. font-weight: Bold;
  463. margin-left: 5rpx;
  464. }
  465. }
  466. .go-btn {
  467. background-color: #FA6138;
  468. color: #ffffff;
  469. padding: 11rpx 27rpx 11rpx 27rpx;
  470. border-radius: 32rpx;
  471. font-size: 28rpx;
  472. font-weight: 500;
  473. }
  474. }
  475. }
  476. .group-work {
  477. margin: 0 30rpx;
  478. .group-item {
  479. margin-bottom: 20rpx;
  480. background-color: #ffffff;
  481. margin-top: 50rpx;
  482. border-radius: 20rpx;
  483. .group-top {
  484. display: flex;
  485. justify-content: space-between;
  486. align-items: center;
  487. margin: 0 30rpx 0 30rpx;
  488. padding: 30rpx 0;
  489. border-bottom: 1rpx solid rgba(230, 230, 230, 1);
  490. .group-left {
  491. color: #000000;
  492. font-size: 36rpx;
  493. font-weight: Bold;
  494. }
  495. .group-right {
  496. font-size: 24rpx;
  497. font-weight: 400;
  498. color: rgba(51, 51, 51, 1);
  499. .iconfont {
  500. // font-size: 10rpx;
  501. color: #666666;
  502. margin-left: 10rpx;
  503. }
  504. }
  505. }
  506. }
  507. }
  508. .commodity {
  509. // display: flex;
  510. position: relative;
  511. // padding: 12rpx 20rpx;
  512. margin: 20rpx 0;
  513. /deep/ .uni-swiper-slide-frame {
  514. width: 26% !important;
  515. }
  516. .fa-item {
  517. display: flex;
  518. }
  519. .option-item:first-child {
  520. margin-left: 0;
  521. }
  522. .option-item {
  523. margin-left: 24rpx;
  524. image {
  525. width: 140rpx;
  526. height: 140rpx;
  527. }
  528. .number {
  529. margin-top: 4rpx;
  530. text-align: center;
  531. font-size: 36rpx;
  532. font-weight: Bold;
  533. line-height: 24rpx;
  534. color: #333333;
  535. width: 140rpx;
  536. text {
  537. font-size: 28rpx;
  538. font-weight: Medium;
  539. }
  540. }
  541. }
  542. }
  543. .dotBox {
  544. position: absolute;
  545. bottom: 0rpx;
  546. left: 50%;
  547. transform: translateX(-50%);
  548. height: 14rpx;
  549. overflow: hidden;
  550. border-radius: 14rpx;
  551. background-color: #ccc;
  552. display: flex;
  553. justify-content: center;
  554. .dotBox_item {
  555. width: 45rpx;
  556. height: 14rpx;
  557. border-radius: 2rpx;
  558. background-color: #ccc;
  559. transition: all 0.5s;
  560. }
  561. .active_dotBox {
  562. width: 45rpx;
  563. background: rgba(254, 70, 3, 1);
  564. transition: all 0.5s;
  565. }
  566. }
  567. .seckill {
  568. color: #fefefe;
  569. margin-top: 45rpx;
  570. margin: 45rpx 30rpx;
  571. .seckill-flex {
  572. overflow: hidden;
  573. // margin: auto;
  574. background-color: rgba(255, 255, 255, 1);
  575. border-radius: 20rpx;
  576. padding: 0 29rpx;
  577. .seckill-top {
  578. display: flex;
  579. align-items: center;
  580. margin: 0;
  581. padding: 30rpx 0;
  582. border-bottom: 1rpx solid #e6e6e6;
  583. .seckill-left {
  584. color: black;
  585. font-size: 36rpx;
  586. font-weight: 700;
  587. font-weight: Bold;
  588. padding-right: 16rpx;
  589. }
  590. .seckill-line {
  591. margin: 0 16rpx;
  592. width: 1rpx;
  593. height: 33rpx;
  594. background-color: #707070;
  595. }
  596. .seckill-time {
  597. font-size: 24rpx;
  598. font-weight: 400;
  599. color: #666;
  600. }
  601. .time-item {
  602. background: #FF0000;
  603. padding: 0 15rpx;
  604. font-size: 24rpx;
  605. margin-left: 30rpx;
  606. border-radius: 17rpx;
  607. font-weight: 700;
  608. }
  609. }
  610. }
  611. }
  612. .shop {
  613. position: relative;
  614. box-shadow: 1rpx 1rpx 1rpx #f7f7f7;
  615. margin: -105rpx 30rpx 0 30rpx;
  616. background-color: white;
  617. border-radius: 25rpx;
  618. z-index: 10;
  619. .map {
  620. display: flex;
  621. padding: 0 20rpx;
  622. margin-top: 24rpx;
  623. font-weight: 400;
  624. font-size: 24rpx;
  625. font-weight: 400;
  626. .iconfont {
  627. color: #163c2a;
  628. margin-right: 12rpx;
  629. }
  630. .name {
  631. font-size: 24rpx;
  632. color: #333333;
  633. font-weight: 400;
  634. width: 440rpx;
  635. }
  636. .see {
  637. color: #fe9000;
  638. margin-left: 20rpx;
  639. }
  640. }
  641. .do-business {
  642. display: flex;
  643. align-items: center;
  644. font-style: 24rpx;
  645. font-weight: 400;
  646. color: #333333;
  647. margin-top: 26rpx;
  648. padding: 0 20rpx 34rpx 20rpx;
  649. .iconfont {
  650. color: #163c2a;
  651. margin-right: 12rpx;
  652. }
  653. }
  654. .item {
  655. display: flex;
  656. .img {
  657. width: 200rpx;
  658. height: 200rpx;
  659. background-color: #fff;
  660. margin-top: -75rpx;
  661. border-radius: 20rpx;
  662. margin-left: 15rpx;
  663. /* display: none; */
  664. }
  665. .item-right {
  666. margin-top: 30rpx;
  667. .name {
  668. font-size: 32rpx;
  669. color: #333333;
  670. font-weight: Bold;
  671. margin-left: 21rpx;
  672. font-size: 32rpx;
  673. }
  674. .comment {
  675. margin-top: 10rpx;
  676. padding-left: 16rpx;
  677. align-items: center;
  678. display: flex;
  679. .iconfont {
  680. color: #ff4e15;
  681. padding-left: 10rpx;
  682. }
  683. .five-stars {
  684. margin-left: 16rpx;
  685. font-size: 28rpx;
  686. font-weight: Medium;
  687. color: #ff4e15;
  688. }
  689. }
  690. }
  691. }
  692. }
  693. .searchBox {
  694. display: flex;
  695. padding: 10rpx 35rpx;
  696. border: 1rpx solid #CCCCCC;
  697. border-radius: 36rpx;
  698. margin: 30rpx 0 0;
  699. display: flex;
  700. align-items: center;
  701. margin-top: 10rpx;
  702. background: #fff;
  703. image {
  704. width: 35rpx;
  705. height: 35rpx;
  706. margin-right: 15rpx;
  707. flex-shrink: 0;
  708. }
  709. input {
  710. text-align: left;
  711. }
  712. }
  713. .shopCard {
  714. // margin: 100rpx auto 0;
  715. width: 720rpx;
  716. // min-height: 320rpx;
  717. padding: 30rpx;
  718. // background: url('/static/convenienceService/cardBg.png')0 0 no-repeat;
  719. // background-size: 720rpx 320rpx;
  720. box-shadow: 0rpx 4rpx 8rpx 0rpx #f1f1f1;
  721. background: #ffffff;
  722. border-radius: 20rpx;
  723. position: relative;
  724. .shop-info {
  725. display: flex;
  726. align-items: center;
  727. >image {
  728. // position: absolute;
  729. // top: -70rpx;
  730. // left: 30rpx;
  731. width: 120rpx;
  732. height: 120rpx;
  733. border-radius: 20rpx;
  734. background: #fff;
  735. flex-shrink: 0;
  736. }
  737. }
  738. .shopNamebox {
  739. flex: 1;
  740. margin-left: 20rpx;
  741. position: relative;
  742. .phone-btn {
  743. width: 150rpx;
  744. margin-left: auto;
  745. padding: 6rpx 10rpx;
  746. text-align: center;
  747. color: #666;
  748. border-radius: 8rpx;
  749. background-color: #fff;
  750. border: 1rpx solid #666;
  751. position: absolute;
  752. right: 0;
  753. bottom: 0;
  754. }
  755. .shopName {
  756. font-size: 32rpx;
  757. color: #333333;
  758. font-weight: 700;
  759. // margin-top: 30rpx;
  760. }
  761. .shopName_rate {
  762. font-size: 28rpx;
  763. color: #333333;
  764. display: flex;
  765. margin-top: 15rpx;
  766. }
  767. }
  768. .shop_item {
  769. font-size: 24rpx;
  770. color: #333333;
  771. display: flex;
  772. align-items: center;
  773. margin-top: 22rpx;
  774. padding: 0 10rpx;
  775. text {
  776. color: #108948;
  777. font-size: 34rpx;
  778. }
  779. view {
  780. margin-left: 20rpx;
  781. }
  782. image {
  783. width: 34rpx;
  784. height: 37rpx;
  785. flex-shrink: 0;
  786. }
  787. .blueicon {
  788. color: #FA6138;
  789. }
  790. }
  791. }
  792. </style>