index.vue 23 KB

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