index.vue 23 KB

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