index.vue 19 KB

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