index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939
  1. <template>
  2. <view class="content-wrap bg-color">
  3. <view class="head-wrap ">
  4. <view class="content-info ">
  5. <view class="h-bg">
  6. <!-- 轮播图 -->
  7. <u-swiper
  8. :circular="true"
  9. :list="bannerList"
  10. :height="340"
  11. ></u-swiper>
  12. </view>
  13. <view class="content">
  14. <!-- 通知栏 -->
  15. <view v-if="noticeList.length > 0" class="h-notice-bar">
  16. <scroll-notice :dataList="noticeList" :type="2" :interval="3000" :height="46" :fontSize="12" color="#666666"
  17. @click="handleNoticeClick"></scroll-notice>
  18. </view>
  19. <!-- 温馨提示-->
  20. <view class="noticeCard">
  21. <uni-card>
  22. <text>温馨提示:“娇骄儿JJe”微信小程序为新系统限白云店和遵义店使用,微信小程序系统目前处于试运行阶段,老会员卡暂时不能使用;待开放正式版“娇骄儿JJe”微信小程序后会员退卡全店通用,具体时间请关注娇骄儿微信公众号以及“娇骄儿JJe”微信小程序通告。如有异常请联系工作人员:0851-85833828</text>
  23. </uni-card>
  24. </view>
  25. <!-- 个人信息、钱包、商店 -->
  26. <view class="h-content-wrap">
  27. <!-- 欢迎语 -->
  28. <view class="welcome-wrap">
  29. <view class="logo">
  30. <image v-if="userInfo.selfPhotoUrl" :src="userInfo.selfPhotoUrl" mode=""></image>
  31. <image v-else src="../../static/logo.png" mode=""></image>
  32. </view>
  33. <view class="text">
  34. <view class="phone">{{ userInfo.cellPhone }}</view>
  35. <view class="welcome">尊敬的{{ userInfo.ncikName }},下午好~</view>
  36. </view>
  37. <view @click="gotoReceiveCoupons()" class="arrow-right">
  38. <!-- <image v-if="userInfo.wxQrCode" class="qrcode" :src="userInfo.qrcode" mode=""></image> -->
  39. <!-- <image class="qrcode" src="../../static/index/qrcode.png" mode=""></image>
  40. <view class="h-text">会员码</view> -->
  41. <view class="coupon-wrap">
  42. <u-icon name="coupon-fill" color="#ffb83d" size="22"></u-icon>
  43. <text>领券中心</text>
  44. </view>
  45. </view>
  46. </view>
  47. <!-- 余额信息 -->
  48. <view class="balance-info">
  49. <view @click="gotoRechargeService()" class="balance-amount">
  50. <text class="number" v-if="userInfo.balance">¥{{ userInfo.balance }}</text>
  51. <text class="number" v-else>¥0.00</text>
  52. <view class="">余额</view>
  53. </view>
  54. <view @click="gotoIntgral()" class="score-info">
  55. <text class="number" v-if="userInfo.integral">{{ userInfo.integral }}</text>
  56. <text class="number" v-else>0</text>
  57. <view class="">积分</view>
  58. </view>
  59. <view @click="gotoCoupon()" class="coupon-info">
  60. <text class="number" v-if="userInfo.coupon">{{ userInfo.coupon }}</text>
  61. <text class="number" v-else>0</text>
  62. <view class="">优惠券</view>
  63. </view>
  64. <view class="e-currency-info">
  65. <text class="number" v-if="userInfo.electronicCurrency">{{ userInfo.electronicCurrency }}</text>
  66. <text class="number" v-else>0</text>
  67. <view class="">电子币</view>
  68. </view>
  69. </view>
  70. <view class="custom-line"></view>
  71. <view class="store-wrap">
  72. <view class="store-info">
  73. <view class="logo">
  74. <image src="../../static/index/u55.png" mode=""></image>
  75. </view>
  76. <view @click="gotoStoreChoose()" class="store-content">
  77. <view class="h-row">
  78. <view class="store-desc">
  79. <view class="store-name">
  80. <view class="">{{ storeInfo.storeName }}</view>
  81. </view>
  82. </view>
  83. <view class="arrow-right">
  84. <view class="change-store">更换门店</view>
  85. <u-icon name="arrow-right" color="#333" size="16"></u-icon>
  86. </view>
  87. </view>
  88. <view class="h-row">
  89. <text class="address">地址:{{ storeInfo.address }}</text>
  90. <!-- <text class="address">距你1.8km</text> -->
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. <!-- 上次订单 -->
  97. <view class="nav-wrap ">
  98. <view class="upper-order-wrap">
  99. <!-- 左边内容 -->
  100. <view @click="gotoServiceOrder()" class="left-content">
  101. <view class="title">
  102. 到店服务
  103. </view>
  104. <view class="desc">
  105. <!-- 多种服务模式任您选择-->
  106. </view>
  107. <view class="bg-img">
  108. <image src="../../static/index/u65.png" mode=""></image>
  109. </view>
  110. </view>
  111. <!-- 右边内容 -->
  112. <view class="right-content" @click="goBookService()">
  113. <view class="title">
  114. 预约服务
  115. </view>
  116. <view class="desc">
  117. <!-- 拼命研发中敬请期待...-->
  118. </view>
  119. <view class="bg-img">
  120. <image src="../../static/index/u67.png" mode=""></image>
  121. </view>
  122. </view>
  123. </view>
  124. <!-- 导航菜单 -->
  125. <view class="horizontal-dashed-line"></view>
  126. <view class="menu-tab">
  127. <!-- <view class="button-wrap">-->
  128. <!-- <view @click="gotoComeOrder()" class="btn">-->
  129. <!-- <view class="icon">-->
  130. <!-- <u-icon name="/static/index/u213.png" color="red" size="30"></u-icon>-->
  131. <!-- </view>-->
  132. <!-- <view class="name">-->
  133. <!-- 再来一单-->
  134. <!-- </view>-->
  135. <!-- </view>-->
  136. <!-- </view>-->
  137. <view class="button-wrap">
  138. <view @click="gotoRechargeService()" class="btn">
  139. <view class="icon">
  140. <u-icon name="/static/index/u215.png" color="red" size="30"></u-icon>
  141. </view>
  142. <view class="name">
  143. 储值服务
  144. </view>
  145. </view>
  146. </view>
  147. <view class="button-wrap">
  148. <view @click="gotoOrder()" class="btn">
  149. <view class="icon">
  150. <u-icon name="/static/index/u217.png" color="red" size="30"></u-icon>
  151. </view>
  152. <view class="name">
  153. 当前订单
  154. </view>
  155. </view>
  156. </view>
  157. <view class="button-wrap">
  158. <view @click="gotoReceiveCoupons()" class="btn">
  159. <view class="icon">
  160. <u-icon name="/static/index/u247.png" color="red" size="30"></u-icon>
  161. </view>
  162. <view class="name">
  163. 领优惠券
  164. </view>
  165. </view>
  166. </view>
  167. </view>
  168. </view>
  169. <!-- 为你推荐 -->
  170. <view class="recommend-wrap">
  171. <view class="recommend-nav">
  172. <view class="icon">
  173. <image src="/static/index/u87.png" mode=""></image>
  174. </view>
  175. <view class="title">
  176. 为你推荐
  177. </view>
  178. </view>
  179. <!-- 分割线 -->
  180. <view class="custom-line"></view>
  181. <!-- 门店列表 -->
  182. <view class="store-wrap ">
  183. <view class="store-list">
  184. <view class="store-content">
  185. <view class="store-img">
  186. <image src="../../static/logo.png" mode=""></image>
  187. </view>
  188. <view class="h-store-content">
  189. <view class="title">
  190. <text>{{ storeInfo.storeName }}</text>
  191. </view>
  192. <view class="adress">
  193. 地址:{{ storeInfo.address }}
  194. </view>
  195. <view class="desc">
  196. <view class="price">
  197. </view>
  198. <view @click="gotoGoods()" class="order-btn">
  199. <view class="btn">去下单</view>
  200. </view>
  201. </view>
  202. </view>
  203. </view>
  204. </view>
  205. </view>
  206. </view>
  207. <view class="footer ">
  208. <view class="">---到底了---</view>
  209. </view>
  210. </view>
  211. </view>
  212. </view>
  213. <view class="tabBarView">
  214. <tab-bar :tabIndex="tabIndex"></tab-bar>
  215. </view>
  216. </view>
  217. </template>
  218. <script>
  219. import tabBar from "../../components/tabBar/tabBar";
  220. import ScrollNotice from '../../components/scroll-notice/ScrollNotice.vue';
  221. export default {
  222. components: {
  223. ScrollNotice, tabBar
  224. },
  225. data() {
  226. return {
  227. noticeList: [],
  228. notice: '',
  229. userInfo: {},
  230. bannerList: [],
  231. reqParm: {
  232. auth: true,
  233. appid: 46,
  234. telphone: '',
  235. longitude: 0,
  236. latitude: 0
  237. },
  238. storeList: [],
  239. storeInfo: {}
  240. };
  241. },
  242. onShow() {
  243. // 查询门店信息
  244. const data = uni.getStorageSync('storeInfo');
  245. if (!data) {
  246. // 获取门店列表数据
  247. console.log('+++++++++++++++++++++++++++++++++', this.userInfo)
  248. this.getStoreListData();
  249. } else {
  250. this.storeInfo = data;
  251. }
  252. },
  253. onLoad() {
  254. uni.hideTabBar({
  255. animation: false
  256. })
  257. // 获取经纬度信息
  258. this.getLocation();
  259. //公告信息
  260. this.getNoticeListData();
  261. // 获取banner图列表
  262. this.getSlideshowList();
  263. // 用户信息
  264. this.userInfo = uni.getStorageSync('userInfo');
  265. if (this.userInfo.selfPhoto) {
  266. this.getImgUrlByOssId(this.userInfo.selfPhoto);
  267. }
  268. },
  269. // 分享到朋友圈
  270. onShareTimeline() {
  271. },
  272. // 分享到用户
  273. onShareAppMessage(OBJECT) {
  274. },
  275. methods: {
  276. // 去服务点单页面
  277. gotoServiceOrder() {
  278. uni.navigateTo({
  279. url: '/orderPages/storeService/index'
  280. })
  281. },
  282. goBookService() {
  283. uni.navigateTo({
  284. url: '/orderPages/bookService/index'
  285. })
  286. },
  287. //点击通知
  288. handleNoticeClick(e) {
  289. console.log(e)
  290. uni.$u.route({
  291. url: '/pages/notice/notice-detail',
  292. params: {
  293. noticeId: e.noticeId
  294. }
  295. })
  296. },
  297. // 去优惠劵大厅
  298. gotoReceiveCoupons() {
  299. uni.navigateTo({
  300. url: '/orderPages/receiveCoupons/index'
  301. })
  302. },
  303. // 去我的优惠劵页面
  304. gotoCoupon() {
  305. uni.navigateTo({
  306. url: '/orderPages/myCoupon/index'
  307. })
  308. },
  309. // 储值服务
  310. gotoRechargeService() {
  311. uni.navigateTo({
  312. url: '/myPages/recharge/index?name=lisa',
  313. })
  314. },
  315. // 获取banner图片
  316. getSlideshowList() {
  317. let that = this;
  318. this.$api.getSlideshowList({data: this.reqParm}).then((res) => {
  319. this.getImgUrlByBannerOssId(res.data.data);
  320. }).catch(() => {
  321. uni.showToast({
  322. title: "操作失败"
  323. })
  324. })
  325. },
  326. async getImgUrlByBannerOssId(items) {
  327. for (let i = 0; i < items.length; i++) {
  328. if (items[i].slideshowId) {
  329. this.$api.getImgUrlByOssId({ossId: items[i].slideshowId}).then(res => {
  330. this.bannerList.push(res.data.data[0].url.replace(/^http:/, "https:"))
  331. })
  332. }
  333. }
  334. },
  335. // 获取门店列表数据
  336. getStoreListData() {
  337. let that = this;
  338. // 用户绑定门店
  339. this.$api.storeList(this.reqParm).then((res) => {
  340. console.log(res.data.data[0])
  341. that.storeInfo = res.data.data[0]
  342. // 更新用户选择的门店信息
  343. uni.setStorageSync('storeInfo', res.data.data[0])
  344. }).catch(() => {
  345. uni.showToast({
  346. title: "操作失败"
  347. })
  348. })
  349. },
  350. // 积分详细页面
  351. gotoIntgral() {
  352. uni.$u.route({
  353. url: '/pages/integral/integral',
  354. params: {
  355. name: 'lisa'
  356. }
  357. })
  358. },
  359. getNoticeListData() {
  360. let req = {
  361. auth: true,
  362. noticeType: 2
  363. }
  364. this.$api.noticeList({data: req}).then((res) => {
  365. if (res.data.rows.length === 1) {
  366. this.noticeList.push(res.data.rows[0])
  367. this.noticeList.push(res.data.rows[0])
  368. } else {
  369. this.noticeList = res.data.rows;
  370. }
  371. }).catch(() => {
  372. uni.showToast({
  373. title: "操作失败"
  374. })
  375. })
  376. },
  377. getImgUrlByOssId(ossId) {
  378. if (ossId) {
  379. this.$api.getImgUrlByOssId(ossId).then(res => {
  380. console.log('++++++++用户头像+++++++++++++++', res)
  381. })
  382. this.userInfo.selfPhotoUrl = url;
  383. return url;
  384. }
  385. },
  386. // 获取经纬度信息
  387. getLocation() {
  388. uni.getLocation({
  389. type: 'gcj02',
  390. success: function (res) {
  391. var latitude = res.latitude; // 纬度
  392. var longitude = res.longitude; // 经度
  393. var speed = res.speed; // 速度
  394. var accuracy = res.accuracy; // 精确度
  395. // 在这里可以对位置信息进行处理
  396. console.log("纬度:" + latitude + ";经度" + longitude)
  397. this.reqParm.latitude = latitude
  398. this.reqParm.longitude = longitude
  399. }
  400. });
  401. },
  402. // 去选择门店
  403. gotoStoreChoose() {
  404. uni.navigateTo({
  405. url: '/storePages/store/store-choose?type=1',
  406. })
  407. },
  408. // 去再来一单
  409. gotoComeOrder() {
  410. uni.$u.route({
  411. url: '/pages/index/tabbar',
  412. params: {
  413. PageCur: 'orderList',
  414. status: '4'
  415. }
  416. })
  417. },
  418. // 去订单页面
  419. gotoOrder() {
  420. uni.setStorageSync('orderListIndex', 1)
  421. uni.switchTab({
  422. url: '/pages/order/index',
  423. })
  424. },
  425. // 去商品下单页面
  426. gotoGoods() {
  427. uni.navigateTo({
  428. url: '/orderPages/bookService/index',
  429. })
  430. },
  431. // 用户绑定门店
  432. userBindStore() {
  433. let that = this;
  434. // 用户绑定门店
  435. this.$api.userBindStore(this.reqParm).then((res) => {
  436. console.log(this.reqParm)
  437. }).catch(() => {
  438. uni.showToast({
  439. title: "操作失败"
  440. })
  441. })
  442. },
  443. }
  444. };
  445. </script>
  446. <style scoped lang="scss">
  447. /* 头部内容 */
  448. .head-wrap {
  449. height: 2200rpx;
  450. background: #FFE05C;
  451. .content-info {
  452. position: relative;
  453. .h-bg {
  454. height: 680rpx;
  455. }
  456. .content {
  457. position: absolute;
  458. top: 460rpx;
  459. left: 24rpx;
  460. right: 24rpx;
  461. border-radius: 12rpx;
  462. .h-notice-bar {
  463. padding-left: 20rpx;
  464. background: #FFFFFF;
  465. box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(237, 86, 159, 0.05);
  466. border-radius: 20rpx;
  467. }
  468. .noticeCard{
  469. margin-top: 10rpx;
  470. padding: 10rpx;
  471. background: #FFFFFF;
  472. box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(237, 86, 159, 0.05);
  473. border-radius: 10px;
  474. }
  475. .h-content-wrap {
  476. background: #fff;
  477. border-radius: 10px;
  478. /* 欢迎语 */
  479. .welcome-wrap {
  480. padding-top: 12px;
  481. display: flex;
  482. margin-left: 12px;
  483. margin-right: 12px;
  484. margin-top: 16px;
  485. align-items: center;
  486. .logo {
  487. width: 13%;
  488. image {
  489. border-radius: 15px;
  490. width: 36px;
  491. height: 36px;
  492. }
  493. }
  494. .text {
  495. width: 60%;
  496. font-size: 14px;
  497. .welcome-wrap {
  498. font-size: 12px;
  499. color: #999999;
  500. }
  501. .welcome {
  502. font-size: 12px;
  503. color: #999999;
  504. }
  505. }
  506. .arrow-right {
  507. width: 30%;
  508. text-align: center;
  509. cursor: pointer;
  510. display: flex;
  511. justify-content: center;
  512. background: #fff8db;
  513. // background: red;
  514. height: 32px;
  515. align-items: center;
  516. border-radius: 16px;
  517. .qrcode {
  518. height: 20px;
  519. width: 20px;
  520. }
  521. .h-text {
  522. font-size: 12px;
  523. color: #999999;
  524. }
  525. .coupon-wrap {
  526. display: flex;
  527. font-size: 14px;
  528. color: #666;
  529. align-items: center;
  530. }
  531. }
  532. }
  533. /* 钱包信息 */
  534. .balance-info {
  535. font-size: 12px;
  536. padding-left: 12px;
  537. margin-bottom: 16px;
  538. margin-top: 12px;
  539. color: #666;
  540. display: flex;
  541. justify-content: space-around;
  542. text-align: center;
  543. .balance-amount {
  544. padding-right: 4px;
  545. }
  546. .score-info {
  547. padding-right: 4px;
  548. }
  549. .coupon-info {
  550. padding-right: 4px;
  551. }
  552. .e-currency-info {
  553. padding-right: 4px;
  554. }
  555. .number {
  556. color: #333333;
  557. font-size: 14px;
  558. }
  559. }
  560. /* 商店信息 */
  561. .store-wrap {
  562. margin: 10px;
  563. .store-info {
  564. display: flex;
  565. .logo {
  566. width: 10%;
  567. text-align: center;
  568. display: flex;
  569. justify-content: center;
  570. align-items: center;
  571. image {
  572. width: 30px;
  573. height: 30px;
  574. }
  575. }
  576. .store-content {
  577. width: 90%;
  578. padding-bottom: 13px;
  579. .h-row {
  580. display: flex;
  581. align-items: center;
  582. justify-content: space-between;
  583. .store-desc {
  584. width: 90%;
  585. display: flex;
  586. line-height: 30px;
  587. font-size: 14px;
  588. .store-name {
  589. }
  590. }
  591. .arrow-right {
  592. text-align: right;
  593. margin: 0 auto;
  594. cursor: pointer;
  595. padding-top: 3px;
  596. width: 100px;
  597. display: flex;
  598. font-size: 14px;
  599. .change-store {
  600. text-align: right;
  601. color: #666;
  602. }
  603. image {
  604. width: 18px;
  605. height: 18px;
  606. }
  607. }
  608. .address {
  609. color: #999999;
  610. font-size: 12px;
  611. padding-right: 12px;
  612. }
  613. }
  614. }
  615. }
  616. .adress {
  617. font-size: 11px;
  618. white-space: nowrap;
  619. overflow: hidden;
  620. text-overflow: ellipsis;
  621. padding-left: 40px;
  622. color: #666;
  623. }
  624. }
  625. }
  626. }
  627. }
  628. }
  629. /* 上次订单 */
  630. .nav-wrap {
  631. background: #fff;
  632. border-radius: 8px;
  633. margin-top: 16px;
  634. .upper-order-wrap {
  635. display: flex;
  636. border-radius: 6px;
  637. justify-content: center;
  638. .left-content {
  639. margin-top: 20px;
  640. width: 50%;
  641. font-size: 12px;
  642. text-align: center;
  643. border-radius: 10px;
  644. .title {
  645. font-size: 18px;
  646. text-align: center;
  647. }
  648. .desc {
  649. padding-top: 6px;
  650. color: #999999;
  651. }
  652. .bg-img {
  653. text-align: center;
  654. height: 100px;
  655. display: flex;
  656. justify-content: center;
  657. align-items: center;
  658. image {
  659. width: 78px;
  660. height: 78px;
  661. }
  662. }
  663. }
  664. .right-content {
  665. margin-top: 20px;
  666. width: 50%;
  667. font-size: 12px;
  668. text-align: center;
  669. .title {
  670. font-size: 18px;
  671. text-align: center;
  672. }
  673. .desc {
  674. padding-top: 6px;
  675. color: #999999;
  676. }
  677. .bg-img {
  678. height: 100px;
  679. text-align: center;
  680. display: flex;
  681. justify-content: center;
  682. align-items: center;
  683. image {
  684. width: 78px;
  685. height: 78px;
  686. }
  687. }
  688. }
  689. }
  690. .menu-tab {
  691. display: flex;
  692. justify-content: space-around; // 平均分布
  693. justify-content: center;
  694. padding-bottom: 8px;
  695. .button-wrap {
  696. flex: 1;
  697. display: flex;
  698. align-items: center;
  699. justify-content: center;
  700. margin-top: 16px;
  701. margin-bottom: 18px;
  702. .name {
  703. padding-top: 3px;
  704. font-size: 12px;
  705. color: #666666;
  706. }
  707. .btn {
  708. padding-left: 12px;
  709. padding-right: 12px;
  710. height: 36px;
  711. border-radius: 18px;
  712. .icon {
  713. display: flex;
  714. padding-right: 6px;
  715. align-items: center;
  716. justify-content: center;
  717. image {
  718. height: 14px;
  719. width: 14px;
  720. }
  721. }
  722. }
  723. }
  724. }
  725. }
  726. /* 为你推荐 */
  727. .recommend-wrap {
  728. margin-top: 16px;
  729. background: #fff;
  730. border-radius: 8px;
  731. .recommend-nav {
  732. display: flex;
  733. margin-left: 12px;
  734. padding-top: 8px;
  735. padding-bottom: 4px;
  736. align-items: center;
  737. .icon {
  738. padding-right: 4px;
  739. image {
  740. height: 26px;
  741. width: 26px;
  742. }
  743. }
  744. .title {
  745. font-size: 16px;
  746. }
  747. }
  748. /* 门店列表 */
  749. .store-wrap {
  750. margin: 12px;
  751. height: 100px;
  752. .store-list {
  753. margin-top: 16px;
  754. .store-content {
  755. display: flex;
  756. .store-img {
  757. width: 30%;
  758. image {
  759. width: 100%;
  760. height: 78px;
  761. border-radius: 6px;
  762. }
  763. }
  764. .h-store-content {
  765. width: 70%;
  766. padding-left: 8px;
  767. padding-top: 4px;
  768. .title {
  769. font-size: 18px;
  770. font-family: "黑体", sans-serif;
  771. }
  772. .adress {
  773. font-size: 14px;
  774. color: #666;
  775. }
  776. .price {
  777. color: #666;
  778. width: 60%;
  779. font-size: 14px;
  780. line-height: 22px;
  781. .red {
  782. color: red;
  783. font-size: 16px;
  784. }
  785. }
  786. .desc {
  787. display: flex;
  788. padding-top: 3px;
  789. .price {
  790. width: 60%;
  791. font-size: 14px;
  792. line-height: 22px;
  793. }
  794. .order-btn {
  795. width: 100%;
  796. .btn {
  797. background: #FFE05C;
  798. text-align: center;
  799. border-radius: 14px;
  800. height: 26px;
  801. line-height: 26px;
  802. color: #333;
  803. font-size: 12px;
  804. }
  805. }
  806. }
  807. }
  808. }
  809. }
  810. }
  811. }
  812. /* 底部 */
  813. .footer {
  814. margin-top: 30px;
  815. height: 60px;
  816. font-size: 12px;
  817. text-align: center;
  818. color: #666;
  819. margin-bottom: 40px;
  820. }
  821. .tabBarView {
  822. position: fixed;
  823. bottom: 0;
  824. }
  825. </style>