index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850
  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" @click="handleNoticeClick"></scroll-notice>
  17. </view>
  18. <!-- 个人信息、钱包、商店 -->
  19. <view class="h-content-wrap">
  20. <!-- 欢迎语 -->
  21. <view class="welcome-wrap">
  22. <view class="logo">
  23. <image v-if="userInfo.selfPhotoUrl" :src="userInfo.selfPhotoUrl" mode=""></image>
  24. <image v-else src="../../static/logo.png" mode=""></image>
  25. </view>
  26. <view class="text">
  27. <view class="phone">{{userInfo.cellPhone}}</view>
  28. <view class="welcome">尊敬的{{userInfo.ncikName}},下午好~</view>
  29. </view>
  30. <view @click="gotoReceiveCoupons()" class="arrow-right">
  31. <!-- <image v-if="userInfo.wxQrCode" class="qrcode" :src="userInfo.qrcode" mode=""></image> -->
  32. <!-- <image class="qrcode" src="../../static/index/qrcode.png" mode=""></image>
  33. <view class="h-text">会员码</view> -->
  34. <view class="coupon-wrap">
  35. <u-icon name="coupon-fill" color="#ffb83d" size="22"></u-icon>
  36. <text>领券中心</text>
  37. </view>
  38. </view>
  39. </view>
  40. <!-- 余额信息 -->
  41. <view class="balance-info">
  42. <view @click="gotoRechargeService()" class="balance-amount">
  43. <text class="number" v-if="userInfo.balance" >¥{{userInfo.balance}}</text>
  44. <text class="number" v-else>¥0.00</text>
  45. <view class="">余额 </view>
  46. </view>
  47. <view @click="gotoIntgral()" class="score-info">
  48. <text class="number" v-if="userInfo.integral" >{{userInfo.integral}}</text>
  49. <text class="number" v-else>0</text>
  50. <view class="">积分 </view>
  51. </view>
  52. <view @click="gotoCoupon()" class="coupon-info">
  53. <text class="number" v-if="userInfo.coupon">{{userInfo.coupon}}</text>
  54. <text class="number" v-else>0</text>
  55. <view class="">优惠券 </view>
  56. </view>
  57. <view class="e-currency-info">
  58. <text class="number" v-if="userInfo.electronicCurrency">{{userInfo.electronicCurrency}}</text>
  59. <text class="number" v-else>0</text>
  60. <view class="">电子币</view>
  61. </view>
  62. </view>
  63. <view class="custom-line"></view>
  64. <view class="store-wrap">
  65. <view class="store-info">
  66. <view class="logo">
  67. <image src="../../static/index/u55.png" mode=""></image>
  68. </view>
  69. <view @click="gotoStoreChoose()" class="store-content">
  70. <view class="h-row">
  71. <view class="store-desc">
  72. <view class="store-name">
  73. <view class="">{{storeInfo.storeName}}</view>
  74. </view>
  75. </view>
  76. <view class="arrow-right">
  77. <view class="change-store">更换门店</view>
  78. <u-icon name="arrow-right" color="#333" size="16"></u-icon>
  79. </view>
  80. </view>
  81. <view class="h-row">
  82. <text class="address">地址:{{storeInfo.address}}</text>
  83. <!-- <text class="address">距你1.8km</text> -->
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. <!-- 上次订单 -->
  90. <view class="nav-wrap ">
  91. <view class="upper-order-wrap">
  92. <!-- 左边内容 -->
  93. <view @click="gotoServiceOrder()" class="left-content">
  94. <view class="title">
  95. 到店服务
  96. </view>
  97. <view class="desc">
  98. <!-- 多种服务模式任您选择-->
  99. </view>
  100. <view class="bg-img">
  101. <image src="../../static/index/u65.png" mode=""></image>
  102. </view>
  103. </view>
  104. <!-- 右边内容 -->
  105. <view class="right-content" @click="goBookService()">
  106. <view class="title">
  107. 预约服务
  108. </view>
  109. <view class="desc">
  110. <!-- 拼命研发中敬请期待...-->
  111. </view>
  112. <view class="bg-img">
  113. <image src="../../static/index/u67.png" mode=""></image>
  114. </view>
  115. </view>
  116. </view>
  117. <!-- 导航菜单 -->
  118. <view class="horizontal-dashed-line"></view>
  119. <view class="menu-tab">
  120. <!-- <view class="button-wrap">-->
  121. <!-- <view @click="gotoComeOrder()" class="btn">-->
  122. <!-- <view class="icon">-->
  123. <!-- <u-icon name="/static/index/u213.png" color="red" size="30"></u-icon>-->
  124. <!-- </view>-->
  125. <!-- <view class="name">-->
  126. <!-- 再来一单-->
  127. <!-- </view>-->
  128. <!-- </view>-->
  129. <!-- </view>-->
  130. <view class="button-wrap">
  131. <view @click="gotoRechargeService()" class="btn">
  132. <view class="icon">
  133. <u-icon name="/static/index/u215.png" color="red" size="30"></u-icon>
  134. </view>
  135. <view class="name">
  136. 储值服务
  137. </view>
  138. </view>
  139. </view>
  140. <view class="button-wrap">
  141. <view @click="gotoOrder()" class="btn">
  142. <view class="icon">
  143. <u-icon name="/static/index/u217.png" color="red" size="30"></u-icon>
  144. </view>
  145. <view class="name">
  146. 当前订单
  147. </view>
  148. </view>
  149. </view>
  150. <view class="button-wrap">
  151. <view @click="gotoReceiveCoupons()" class="btn">
  152. <view class="icon">
  153. <u-icon name="/static/index/u247.png" color="red" size="30"></u-icon>
  154. </view>
  155. <view class="name">
  156. 领优惠券
  157. </view>
  158. </view>
  159. </view>
  160. </view>
  161. </view>
  162. <!-- 为你推荐 -->
  163. <view class="recommend-wrap">
  164. <view class="recommend-nav">
  165. <view class="icon">
  166. <image src="/static/index/u87.png" mode=""></image>
  167. </view>
  168. <view class="title">
  169. 为你推荐
  170. </view>
  171. </view>
  172. <!-- 分割线 -->
  173. <view class="custom-line"></view>
  174. <!-- 门店列表 -->
  175. <view class="store-wrap ">
  176. <view class="store-list" v-for="item in 1">
  177. <view class="store-content">
  178. <view class="store-img">
  179. <image src="../../static/logo.png" mode=""></image>
  180. </view>
  181. <view class="h-store-content">
  182. <view class="title">
  183. <text>{{storeInfo.storeName}}</text>
  184. </view>
  185. <view class="adress">
  186. 地址:{{storeInfo.address}}
  187. </view>
  188. <view class="desc">
  189. <view class="price">
  190. </view>
  191. <view @click="gotoGoods()" class="order-btn">
  192. <view class="btn">去下单</view>
  193. </view>
  194. </view>
  195. </view>
  196. </view>
  197. </view>
  198. </view>
  199. </view>
  200. <view class="footer ">
  201. <view class="">---到底了---</view>
  202. </view>
  203. </view>
  204. </view>
  205. </view>
  206. <view class="tabBarView">
  207. <tab-bar :tabIndex="tabIndex"></tab-bar>
  208. </view>
  209. </view>
  210. </template>
  211. <script>
  212. import tabBar from "../../components/tabBar/tabBar";
  213. import ScrollNotice from '../../components/scroll-notice/ScrollNotice.vue';
  214. export default {
  215. components: {
  216. ScrollNotice,tabBar
  217. },
  218. data() {
  219. return {
  220. noticeList: [],
  221. notice: '',
  222. userInfo: {},
  223. bannerList: [],
  224. reqParm: {
  225. auth: true,
  226. appid: 46,
  227. telphone: '',
  228. longitude: 0,
  229. latitude: 0
  230. },
  231. storeList: [],
  232. storeInfo: {}
  233. };
  234. },
  235. onShow(){
  236. // 查询门店信息
  237. const data = uni.getStorageSync('storeInfo');
  238. if(!data){
  239. // 获取门店列表数据
  240. console.log('+++++++++++++++++++++++++++++++++',this.userInfo)
  241. this.getStoreListData();
  242. } else {
  243. this.storeInfo = data;
  244. }
  245. },
  246. onLoad(){
  247. uni.hideTabBar({
  248. animation:false
  249. })
  250. // 获取经纬度信息
  251. this.getLocation();
  252. //公告信息
  253. this.getNoticeListData();
  254. // 获取banner图列表
  255. this.getSlideshowList();
  256. // 用户信息
  257. this.userInfo = uni.getStorageSync('userInfo');
  258. if (this.userInfo.selfPhoto){
  259. this.getImgUrlByOssId(this.userInfo.selfPhoto);
  260. }
  261. },
  262. // 分享到朋友圈
  263. onShareTimeline() {},
  264. // 分享到用户
  265. onShareAppMessage(OBJECT) {},
  266. methods: {
  267. // 去服务点单页面
  268. gotoServiceOrder(){
  269. uni.navigateTo({
  270. url:'/orderPages/storeService/index'
  271. })
  272. },
  273. goBookService(){
  274. uni.navigateTo({
  275. url:'/orderPages/bookService/index'
  276. })
  277. },
  278. //点击通知
  279. handleNoticeClick(e) {
  280. console.log(e)
  281. uni.$u.route({
  282. url: '/pages/notice/notice-detail',
  283. params: {
  284. noticeId: e.noticeId
  285. }
  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.getImgUrlByOssId({ossId: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: 1080px;
  441. background: #FFE05C;
  442. .content-info{
  443. position: relative;
  444. .h-bg{
  445. height: 340px;
  446. }
  447. .content{
  448. position: absolute;
  449. top: 230px;
  450. left: 12px;
  451. right: 12px;
  452. border-radius: 6px;
  453. .h-notice-bar{
  454. padding-left: 10px;
  455. height: 46px;
  456. background: #FFFFFF;
  457. box-shadow: 0px 4px 8px 0px rgba(237,86,159,0.05);
  458. border-radius: 10px;
  459. }
  460. .h-content-wrap{
  461. background: #fff;
  462. border-radius: 10px;
  463. /* 欢迎语 */
  464. .welcome-wrap{
  465. padding-top: 12px;
  466. display: flex;
  467. margin-left: 12px;
  468. margin-right: 12px;
  469. margin-top: 16px;
  470. align-items: center;
  471. .logo {
  472. width: 13%;
  473. image{
  474. border-radius: 15px;
  475. width: 36px;
  476. height: 36px;
  477. }
  478. }
  479. .text{
  480. width: 60%;
  481. font-size: 14px;
  482. .welcome-wrap{
  483. font-size: 12px;
  484. color: #999999 ;
  485. }
  486. .welcome{
  487. font-size: 12px;
  488. color: #999999 ;
  489. }
  490. }
  491. .arrow-right{
  492. width: 30%;
  493. text-align: center;
  494. cursor: pointer;
  495. display: flex;
  496. justify-content: center;
  497. background: #fff8db;
  498. // background: red;
  499. height: 32px;
  500. align-items: center;
  501. border-radius: 16px;
  502. .qrcode{
  503. height: 20px;
  504. width: 20px;
  505. }
  506. .h-text{
  507. font-size: 12px;
  508. color: #999999 ;
  509. }
  510. .coupon-wrap{
  511. display: flex;
  512. font-size: 14px;
  513. color: #666;
  514. align-items: center;
  515. }
  516. }
  517. }
  518. /* 钱包信息 */
  519. .balance-info{
  520. font-size: 12px;
  521. padding-left: 12px;
  522. margin-bottom: 16px;
  523. margin-top: 12px;
  524. color: #666;
  525. display: flex;
  526. justify-content: space-around;
  527. text-align: center;
  528. .balance-amount{padding-right: 4px;}
  529. .score-info{padding-right: 4px;}
  530. .coupon-info{padding-right: 4px;}
  531. .e-currency-info{padding-right: 4px;}
  532. .number{
  533. color: #333333;
  534. font-size: 14px;
  535. }
  536. }
  537. /* 商店信息 */
  538. .store-wrap{
  539. margin: 10px;
  540. .store-info{
  541. display: flex;
  542. .logo {
  543. width: 10%;
  544. text-align: center;
  545. display: flex;
  546. justify-content: center;
  547. align-items: center;
  548. image{
  549. width: 30px;
  550. height: 30px;
  551. }
  552. }
  553. .store-content{
  554. width: 90%;
  555. padding-bottom: 13px;
  556. .h-row{
  557. display: flex;
  558. align-items: center;
  559. justify-content: space-between;
  560. .store-desc{
  561. width: 90%;
  562. display: flex;
  563. line-height: 30px;
  564. font-size: 14px;
  565. .store-name{
  566. }
  567. }
  568. .arrow-right{
  569. text-align: right;
  570. margin: 0 auto;
  571. cursor: pointer;
  572. padding-top: 3px;
  573. width: 100px;
  574. display: flex;
  575. font-size: 14px;
  576. .change-store{
  577. text-align: right;
  578. color: #666;
  579. }
  580. image{
  581. width: 18px;
  582. height: 18px;
  583. }
  584. }
  585. .address{
  586. color: #999999;
  587. font-size: 12px;
  588. padding-right: 12px;
  589. }
  590. }
  591. }
  592. }
  593. .adress{
  594. font-size: 11px;
  595. white-space: nowrap;
  596. overflow: hidden;
  597. text-overflow: ellipsis;
  598. padding-left:40px;
  599. color: #666;
  600. }
  601. }
  602. }
  603. }
  604. }
  605. }
  606. /* 上次订单 */
  607. .nav-wrap{
  608. background: #fff;
  609. border-radius: 8px;
  610. margin-top: 16px;
  611. .upper-order-wrap{
  612. display: flex;
  613. border-radius: 6px;
  614. justify-content: center;
  615. .left-content{
  616. margin-top: 20px;
  617. width: 50%;
  618. font-size: 12px;
  619. text-align: center;
  620. border-radius: 10px;
  621. .title{
  622. font-size: 18px;
  623. text-align: center;
  624. }
  625. .desc{
  626. padding-top: 6px;
  627. color: #999999;
  628. }
  629. .bg-img{
  630. text-align: center;
  631. height: 100px;
  632. display: flex;
  633. justify-content: center;
  634. align-items: center;
  635. image{
  636. width: 78px;
  637. height: 78px;
  638. }
  639. }
  640. }
  641. .right-content{
  642. margin-top: 20px;
  643. width: 50%;
  644. font-size: 12px;
  645. text-align: center;
  646. .title{
  647. font-size: 18px;
  648. text-align: center;
  649. }
  650. .desc{
  651. padding-top: 6px;
  652. color: #999999;
  653. }
  654. .bg-img{
  655. height: 100px;
  656. text-align: center;
  657. display: flex;
  658. justify-content: center;
  659. align-items: center;
  660. image{
  661. width: 78px;
  662. height: 78px;
  663. }
  664. }
  665. }
  666. }
  667. .menu-tab{
  668. display: flex;
  669. justify-content: space-around; // 平均分布
  670. justify-content: center;
  671. padding-bottom: 8px;
  672. .button-wrap{
  673. flex: 1;
  674. display: flex;
  675. align-items: center;
  676. justify-content: center;
  677. margin-top: 16px;
  678. margin-bottom: 18px;
  679. .name{
  680. padding-top: 3px;
  681. font-size: 12px;
  682. color: #666666;
  683. }
  684. .btn{
  685. padding-left: 12px;
  686. padding-right: 12px;
  687. height: 36px;
  688. border-radius: 18px;
  689. .icon{
  690. display: flex;
  691. padding-right: 6px;
  692. align-items: center;
  693. justify-content: center;
  694. image{
  695. height: 14px;
  696. width: 14px;
  697. }
  698. }
  699. }
  700. }
  701. }
  702. }
  703. /* 为你推荐 */
  704. .recommend-wrap{
  705. margin-top: 16px;
  706. background: #fff;
  707. border-radius: 8px;
  708. .recommend-nav{
  709. display: flex;
  710. margin-left: 12px;
  711. padding-top: 8px;
  712. padding-bottom: 4px;
  713. align-items: center;
  714. .icon{
  715. padding-right: 4px;
  716. image{
  717. height: 26px;
  718. width: 26px;
  719. }
  720. }
  721. .title{
  722. font-size: 16px;
  723. }
  724. }
  725. /* 门店列表 */
  726. .store-wrap{
  727. margin: 12px;
  728. height: 100px;
  729. .store-list{
  730. margin-top: 16px;
  731. .store-content{
  732. display: flex;
  733. .store-img{
  734. width: 30%;
  735. image{
  736. width: 100%;
  737. height: 78px;
  738. border-radius: 6px;
  739. }
  740. }
  741. .h-store-content{
  742. width: 70%;
  743. padding-left: 8px;
  744. padding-top: 4px;
  745. .title{
  746. font-size: 18px;
  747. font-family: "黑体", sans-serif;
  748. }
  749. .adress{
  750. font-size: 14px;
  751. color: #666;
  752. }
  753. .price{
  754. color: #666;
  755. width: 60%;
  756. font-size: 14px;
  757. line-height: 22px;
  758. .red{
  759. color: red;
  760. font-size: 16px;
  761. }
  762. }
  763. .desc{
  764. display: flex;
  765. padding-top: 3px;
  766. .price{
  767. width: 60%;
  768. font-size: 14px;
  769. line-height: 22px;
  770. }
  771. .order-btn{
  772. width: 100%;
  773. .btn{
  774. background: #FFE05C;
  775. text-align: center;
  776. border-radius: 14px;
  777. height: 26px;
  778. line-height: 26px;
  779. color: #333;
  780. font-size: 12px;
  781. }
  782. }
  783. }
  784. }
  785. }
  786. }
  787. }
  788. }
  789. /* 底部 */
  790. .footer{
  791. margin-top: 30px;
  792. height: 60px;
  793. font-size: 12px;
  794. text-align: center;
  795. color: #666;
  796. margin-bottom: 40px;
  797. }
  798. .tabBarView{
  799. position: fixed;
  800. bottom: 0;
  801. }
  802. </style>