index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933
  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.$u.route({
  285. url: '/pages/notice/notice-detail',
  286. params: {
  287. noticeId: e.noticeId
  288. }
  289. })
  290. },
  291. // 去优惠劵大厅
  292. gotoReceiveCoupons() {
  293. uni.navigateTo({
  294. url: '/orderPages/receiveCoupons/index'
  295. })
  296. },
  297. // 去我的优惠劵页面
  298. gotoCoupon() {
  299. uni.navigateTo({
  300. url: '/orderPages/myCoupon/index'
  301. })
  302. },
  303. // 储值服务
  304. gotoRechargeService() {
  305. uni.navigateTo({
  306. url: '/myPages/recharge/index?name=lisa',
  307. })
  308. },
  309. // 获取banner图片
  310. getSlideshowList() {
  311. let that = this;
  312. this.$api.getSlideshowList({data: this.reqParm}).then((res) => {
  313. this.getImgUrlByBannerOssId(res.data.data);
  314. }).catch(() => {
  315. uni.showToast({
  316. title: "操作失败"
  317. })
  318. })
  319. },
  320. async getImgUrlByBannerOssId(items) {
  321. for (let i = 0; i < items.length; i++) {
  322. if (items[i].slideshowId) {
  323. this.$api.getImgUrlByOssId({ossId: items[i].slideshowId}).then(res => {
  324. this.bannerList.push(res.data.data[0].url.replace(/^http:/, "https:"))
  325. })
  326. }
  327. }
  328. },
  329. // 获取门店列表数据
  330. getStoreListData() {
  331. let that = this;
  332. // 用户绑定门店
  333. this.$api.storeList(this.reqParm).then((res) => {
  334. console.log(res.data.data[0])
  335. that.storeInfo = res.data.data[0]
  336. // 更新用户选择的门店信息
  337. uni.setStorageSync('storeInfo', res.data.data[0])
  338. }).catch(() => {
  339. uni.showToast({
  340. title: "操作失败"
  341. })
  342. })
  343. },
  344. // 积分详细页面
  345. gotoIntgral() {
  346. uni.$u.route({
  347. url: '/pages/integral/integral',
  348. params: {
  349. name: 'lisa'
  350. }
  351. })
  352. },
  353. getNoticeListData() {
  354. let req = {
  355. auth: true,
  356. noticeType: 2
  357. }
  358. this.$api.noticeList({data: req}).then((res) => {
  359. if (res.data.rows.length === 1) {
  360. this.noticeList.push(res.data.rows[0])
  361. this.noticeList.push(res.data.rows[0])
  362. } else {
  363. this.noticeList = res.data.rows;
  364. }
  365. }).catch(() => {
  366. uni.showToast({
  367. title: "操作失败"
  368. })
  369. })
  370. },
  371. getImgUrlByOssId(ossId) {
  372. if (ossId) {
  373. this.$api.getImgUrlByOssId(ossId).then(res => {
  374. console.log('++++++++用户头像+++++++++++++++', res)
  375. })
  376. this.userInfo.selfPhotoUrl = url;
  377. return url;
  378. }
  379. },
  380. // 获取经纬度信息
  381. getLocation() {
  382. uni.getLocation({
  383. type: 'gcj02',
  384. success: function (res) {
  385. var latitude = res.latitude; // 纬度
  386. var longitude = res.longitude; // 经度
  387. var speed = res.speed; // 速度
  388. var accuracy = res.accuracy; // 精确度
  389. // 在这里可以对位置信息进行处理
  390. console.log("纬度:" + latitude + ";经度" + longitude)
  391. this.reqParm.latitude = latitude
  392. this.reqParm.longitude = longitude
  393. }
  394. });
  395. },
  396. // 去选择门店
  397. gotoStoreChoose() {
  398. uni.navigateTo({
  399. url: '/storePages/store/store-choose?type=1',
  400. })
  401. },
  402. // 去再来一单
  403. gotoComeOrder() {
  404. uni.$u.route({
  405. url: '/pages/index/tabbar',
  406. params: {
  407. PageCur: 'orderList',
  408. status: '4'
  409. }
  410. })
  411. },
  412. // 去订单页面
  413. gotoOrder() {
  414. uni.setStorageSync('orderListIndex', 1)
  415. uni.switchTab({
  416. url: '/pages/order/index',
  417. })
  418. },
  419. // 去商品下单页面
  420. gotoGoods() {
  421. uni.navigateTo({
  422. url: '/orderPages/bookService/index',
  423. })
  424. },
  425. // 用户绑定门店
  426. userBindStore() {
  427. let that = this;
  428. // 用户绑定门店
  429. this.$api.userBindStore(this.reqParm).then((res) => {
  430. console.log(this.reqParm)
  431. }).catch(() => {
  432. uni.showToast({
  433. title: "操作失败"
  434. })
  435. })
  436. },
  437. }
  438. };
  439. </script>
  440. <style scoped lang="scss">
  441. /* 头部内容 */
  442. .head-wrap {
  443. height: 2200rpx;
  444. background: #FFE05C;
  445. .content-info {
  446. position: relative;
  447. .h-bg {
  448. height: 680rpx;
  449. }
  450. .content {
  451. position: absolute;
  452. top: 460rpx;
  453. left: 24rpx;
  454. right: 24rpx;
  455. border-radius: 12rpx;
  456. .h-notice-bar {
  457. padding-left: 20rpx;
  458. background: #FFFFFF;
  459. box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(237, 86, 159, 0.05);
  460. border-radius: 20rpx;
  461. }
  462. .noticeCard{
  463. margin-top: 10rpx;
  464. padding: 10rpx;
  465. background: #FFFFFF;
  466. box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(237, 86, 159, 0.05);
  467. border-radius: 10px;
  468. }
  469. .h-content-wrap {
  470. background: #fff;
  471. border-radius: 10px;
  472. /* 欢迎语 */
  473. .welcome-wrap {
  474. padding-top: 12px;
  475. display: flex;
  476. margin-left: 12px;
  477. margin-right: 12px;
  478. margin-top: 16px;
  479. align-items: center;
  480. .logo {
  481. width: 13%;
  482. image {
  483. border-radius: 15px;
  484. width: 36px;
  485. height: 36px;
  486. }
  487. }
  488. .text {
  489. width: 60%;
  490. font-size: 14px;
  491. .welcome-wrap {
  492. font-size: 12px;
  493. color: #999999;
  494. }
  495. .welcome {
  496. font-size: 12px;
  497. color: #999999;
  498. }
  499. }
  500. .arrow-right {
  501. width: 30%;
  502. text-align: center;
  503. cursor: pointer;
  504. display: flex;
  505. justify-content: center;
  506. background: #fff8db;
  507. // background: red;
  508. height: 32px;
  509. align-items: center;
  510. border-radius: 16px;
  511. .qrcode {
  512. height: 20px;
  513. width: 20px;
  514. }
  515. .h-text {
  516. font-size: 12px;
  517. color: #999999;
  518. }
  519. .coupon-wrap {
  520. display: flex;
  521. font-size: 14px;
  522. color: #666;
  523. align-items: center;
  524. }
  525. }
  526. }
  527. /* 钱包信息 */
  528. .balance-info {
  529. font-size: 12px;
  530. padding-left: 12px;
  531. margin-bottom: 16px;
  532. margin-top: 12px;
  533. color: #666;
  534. display: flex;
  535. justify-content: space-around;
  536. text-align: center;
  537. .balance-amount {
  538. padding-right: 4px;
  539. }
  540. .score-info {
  541. padding-right: 4px;
  542. }
  543. .coupon-info {
  544. padding-right: 4px;
  545. }
  546. .e-currency-info {
  547. padding-right: 4px;
  548. }
  549. .number {
  550. color: #333333;
  551. font-size: 14px;
  552. }
  553. }
  554. /* 商店信息 */
  555. .store-wrap {
  556. margin: 10px;
  557. .store-info {
  558. display: flex;
  559. .logo {
  560. width: 10%;
  561. text-align: center;
  562. display: flex;
  563. justify-content: center;
  564. align-items: center;
  565. image {
  566. width: 30px;
  567. height: 30px;
  568. }
  569. }
  570. .store-content {
  571. width: 90%;
  572. padding-bottom: 13px;
  573. .h-row {
  574. display: flex;
  575. align-items: center;
  576. justify-content: space-between;
  577. .store-desc {
  578. width: 90%;
  579. display: flex;
  580. line-height: 30px;
  581. font-size: 14px;
  582. .store-name {
  583. }
  584. }
  585. .arrow-right {
  586. text-align: right;
  587. margin: 0 auto;
  588. cursor: pointer;
  589. padding-top: 3px;
  590. width: 100px;
  591. display: flex;
  592. font-size: 14px;
  593. .change-store {
  594. text-align: right;
  595. color: #666;
  596. }
  597. image {
  598. width: 18px;
  599. height: 18px;
  600. }
  601. }
  602. .address {
  603. color: #999999;
  604. font-size: 12px;
  605. padding-right: 12px;
  606. }
  607. }
  608. }
  609. }
  610. .adress {
  611. font-size: 11px;
  612. white-space: nowrap;
  613. overflow: hidden;
  614. text-overflow: ellipsis;
  615. padding-left: 40px;
  616. color: #666;
  617. }
  618. }
  619. }
  620. }
  621. }
  622. }
  623. /* 上次订单 */
  624. .nav-wrap {
  625. background: #fff;
  626. border-radius: 8px;
  627. margin-top: 16px;
  628. .upper-order-wrap {
  629. display: flex;
  630. border-radius: 6px;
  631. justify-content: center;
  632. .left-content {
  633. margin-top: 20px;
  634. width: 50%;
  635. font-size: 12px;
  636. text-align: center;
  637. border-radius: 10px;
  638. .title {
  639. font-size: 18px;
  640. text-align: center;
  641. }
  642. .desc {
  643. padding-top: 6px;
  644. color: #999999;
  645. }
  646. .bg-img {
  647. text-align: center;
  648. height: 100px;
  649. display: flex;
  650. justify-content: center;
  651. align-items: center;
  652. image {
  653. width: 78px;
  654. height: 78px;
  655. }
  656. }
  657. }
  658. .right-content {
  659. margin-top: 20px;
  660. width: 50%;
  661. font-size: 12px;
  662. text-align: center;
  663. .title {
  664. font-size: 18px;
  665. text-align: center;
  666. }
  667. .desc {
  668. padding-top: 6px;
  669. color: #999999;
  670. }
  671. .bg-img {
  672. height: 100px;
  673. text-align: center;
  674. display: flex;
  675. justify-content: center;
  676. align-items: center;
  677. image {
  678. width: 78px;
  679. height: 78px;
  680. }
  681. }
  682. }
  683. }
  684. .menu-tab {
  685. display: flex;
  686. justify-content: space-around; // 平均分布
  687. justify-content: center;
  688. padding-bottom: 8px;
  689. .button-wrap {
  690. flex: 1;
  691. display: flex;
  692. align-items: center;
  693. justify-content: center;
  694. margin-top: 16px;
  695. margin-bottom: 18px;
  696. .name {
  697. padding-top: 3px;
  698. font-size: 12px;
  699. color: #666666;
  700. }
  701. .btn {
  702. padding-left: 12px;
  703. padding-right: 12px;
  704. height: 36px;
  705. border-radius: 18px;
  706. .icon {
  707. display: flex;
  708. padding-right: 6px;
  709. align-items: center;
  710. justify-content: center;
  711. image {
  712. height: 14px;
  713. width: 14px;
  714. }
  715. }
  716. }
  717. }
  718. }
  719. }
  720. /* 为你推荐 */
  721. .recommend-wrap {
  722. margin-top: 16px;
  723. background: #fff;
  724. border-radius: 8px;
  725. .recommend-nav {
  726. display: flex;
  727. margin-left: 12px;
  728. padding-top: 8px;
  729. padding-bottom: 4px;
  730. align-items: center;
  731. .icon {
  732. padding-right: 4px;
  733. image {
  734. height: 26px;
  735. width: 26px;
  736. }
  737. }
  738. .title {
  739. font-size: 16px;
  740. }
  741. }
  742. /* 门店列表 */
  743. .store-wrap {
  744. margin: 12px;
  745. height: 100px;
  746. .store-list {
  747. margin-top: 16px;
  748. .store-content {
  749. display: flex;
  750. .store-img {
  751. width: 30%;
  752. image {
  753. width: 100%;
  754. height: 78px;
  755. border-radius: 6px;
  756. }
  757. }
  758. .h-store-content {
  759. width: 70%;
  760. padding-left: 8px;
  761. padding-top: 4px;
  762. .title {
  763. font-size: 18px;
  764. font-family: "黑体", sans-serif;
  765. }
  766. .adress {
  767. font-size: 14px;
  768. color: #666;
  769. }
  770. .price {
  771. color: #666;
  772. width: 60%;
  773. font-size: 14px;
  774. line-height: 22px;
  775. .red {
  776. color: red;
  777. font-size: 16px;
  778. }
  779. }
  780. .desc {
  781. display: flex;
  782. padding-top: 3px;
  783. .price {
  784. width: 60%;
  785. font-size: 14px;
  786. line-height: 22px;
  787. }
  788. .order-btn {
  789. width: 100%;
  790. .btn {
  791. background: #FFE05C;
  792. text-align: center;
  793. border-radius: 14px;
  794. height: 26px;
  795. line-height: 26px;
  796. color: #333;
  797. font-size: 12px;
  798. }
  799. }
  800. }
  801. }
  802. }
  803. }
  804. }
  805. }
  806. /* 底部 */
  807. .footer {
  808. margin-top: 30px;
  809. height: 60px;
  810. font-size: 12px;
  811. text-align: center;
  812. color: #666;
  813. margin-bottom: 40px;
  814. }
  815. .tabBarView {
  816. position: fixed;
  817. bottom: 0;
  818. }
  819. </style>