index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889
  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. mounted() {
  240. // 获取经纬度信息
  241. this.getLocation();
  242. //公告信息
  243. this.getNoticeListData();
  244. // 获取banner图列表
  245. this.getSlideshowList();
  246. // 用户信息
  247. this.userInfo = uni.getStorageSync('userInfo');
  248. this.getImgUrlByOssId(this.userInfo.selfPhoto);
  249. // 查询门店信息
  250. const data = uni.getStorageSync('storeInfo');
  251. if(!data){
  252. // 获取门店列表数据
  253. console.log('+++++++++++++++++++++++++++++++++',this.userInfo)
  254. this.getStoreListData();
  255. } else {
  256. this.storeInfo = data;
  257. }
  258. },
  259. onLoad(){
  260. uni.hideTabBar({
  261. animation:false
  262. })
  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.$u.route({
  402. url: '/pages/goods/store-choose',
  403. params: {
  404. type: '1'
  405. }
  406. })
  407. },
  408. // 去再来一单
  409. gotoComeOrder(){
  410. uni.$u.route({
  411. url: '/pages/index/tabbar',
  412. params: {
  413. PageCur: 'orderList',
  414. status : '4'
  415. }
  416. })
  417. },
  418. // 储值服务
  419. gotoRechargeService(){
  420. uni.$u.route({
  421. url: '/pages/transaction/recharge-service',
  422. params: {
  423. name: 'lisa'
  424. }
  425. })
  426. },
  427. // 去优惠劵页面
  428. gotoCoupon(){
  429. uni.$u.route({
  430. url: '/pages/coupon/coupon',
  431. params: {
  432. name: 'lisa'
  433. }
  434. })
  435. },
  436. // 去订单页面
  437. gotoOrder(){
  438. uni.$u.route({
  439. url: '/pages/index/tabbar',
  440. params: {
  441. PageCur: 'orderList'
  442. }
  443. })
  444. },
  445. // 去商品下单页面
  446. gotoGoods(){
  447. uni.$u.route({
  448. url: '/pages/index/tabbar',
  449. params: {
  450. PageCur: 'goods'
  451. }
  452. })
  453. },
  454. // 去会员页面
  455. gotoMember(){
  456. uni.$u.route({
  457. url: '/pages/index/tabbar',
  458. params: {
  459. PageCur: 'qrcode'
  460. }
  461. })
  462. },
  463. // 用户绑定门店
  464. userBindStore(){
  465. let that = this;
  466. // 用户绑定门店
  467. userBindStore(null,{data:this.reqParm}).then((res)=>{
  468. console.log(this.reqParm)
  469. }).catch(() =>{
  470. uni.showToast({
  471. title: "操作失败"
  472. })
  473. })
  474. },
  475. }
  476. };
  477. </script>
  478. <style scoped lang="scss">
  479. /* 头部内容 */
  480. .head-wrap{
  481. height: 1080px;
  482. .content-info{
  483. position: relative;
  484. .h-bg{
  485. height: 340px;
  486. }
  487. .content{
  488. position: absolute;
  489. top: 230px;
  490. left: 12px;
  491. right: 12px;
  492. border-radius: 6px;
  493. .h-notice-bar{
  494. padding-left: 10px;
  495. height: 46px;
  496. background: #FFFFFF;
  497. box-shadow: 0px 4px 8px 0px rgba(237,86,159,0.05);
  498. border-radius: 10px;
  499. }
  500. .h-content-wrap{
  501. background: #fff;
  502. border-radius: 10px;
  503. /* 欢迎语 */
  504. .welcome-wrap{
  505. padding-top: 12px;
  506. display: flex;
  507. margin-left: 12px;
  508. margin-right: 12px;
  509. margin-top: 16px;
  510. align-items: center;
  511. .logo {
  512. width: 13%;
  513. image{
  514. border-radius: 15px;
  515. width: 36px;
  516. height: 36px;
  517. }
  518. }
  519. .text{
  520. width: 60%;
  521. font-size: 14px;
  522. .welcome-wrap{
  523. font-size: 12px;
  524. color: #999999 ;
  525. }
  526. .welcome{
  527. font-size: 12px;
  528. color: #999999 ;
  529. }
  530. }
  531. .arrow-right{
  532. width: 30%;
  533. text-align: center;
  534. cursor: pointer;
  535. display: flex;
  536. justify-content: center;
  537. background: #fff8db;
  538. // background: red;
  539. height: 32px;
  540. align-items: center;
  541. border-radius: 16px;
  542. .qrcode{
  543. height: 20px;
  544. width: 20px;
  545. }
  546. .h-text{
  547. font-size: 12px;
  548. color: #999999 ;
  549. }
  550. .coupon-wrap{
  551. display: flex;
  552. font-size: 14px;
  553. color: #666;
  554. align-items: center;
  555. }
  556. }
  557. }
  558. /* 钱包信息 */
  559. .balance-info{
  560. font-size: 12px;
  561. padding-left: 12px;
  562. margin-bottom: 16px;
  563. margin-top: 12px;
  564. color: #666;
  565. display: flex;
  566. justify-content: space-around;
  567. text-align: center;
  568. .balance-amount{padding-right: 4px;}
  569. .score-info{padding-right: 4px;}
  570. .coupon-info{padding-right: 4px;}
  571. .e-currency-info{padding-right: 4px;}
  572. .number{
  573. color: #333333;
  574. font-size: 14px;
  575. }
  576. }
  577. /* 商店信息 */
  578. .store-wrap{
  579. margin: 10px;
  580. .store-info{
  581. display: flex;
  582. .logo {
  583. width: 10%;
  584. text-align: center;
  585. display: flex;
  586. justify-content: center;
  587. align-items: center;
  588. image{
  589. width: 30px;
  590. height: 30px;
  591. }
  592. }
  593. .store-content{
  594. width: 90%;
  595. padding-bottom: 13px;
  596. .h-row{
  597. display: flex;
  598. align-items: center;
  599. justify-content: space-between;
  600. .store-desc{
  601. width: 90%;
  602. display: flex;
  603. line-height: 30px;
  604. font-size: 14px;
  605. .store-name{
  606. }
  607. }
  608. .arrow-right{
  609. text-align: right;
  610. margin: 0 auto;
  611. cursor: pointer;
  612. padding-top: 3px;
  613. width: 100px;
  614. display: flex;
  615. font-size: 14px;
  616. .change-store{
  617. text-align: right;
  618. color: #666;
  619. }
  620. image{
  621. width: 18px;
  622. height: 18px;
  623. }
  624. }
  625. .address{
  626. color: #999999;
  627. font-size: 12px;
  628. padding-right: 12px;
  629. }
  630. }
  631. }
  632. }
  633. .adress{
  634. font-size: 11px;
  635. white-space: nowrap;
  636. overflow: hidden;
  637. text-overflow: ellipsis;
  638. padding-left:40px;
  639. color: #666;
  640. }
  641. }
  642. }
  643. }
  644. }
  645. }
  646. /* 上次订单 */
  647. .nav-wrap{
  648. background: #fff;
  649. border-radius: 8px;
  650. margin-top: 16px;
  651. .upper-order-wrap{
  652. display: flex;
  653. border-radius: 6px;
  654. justify-content: center;
  655. .left-content{
  656. margin-top: 20px;
  657. width: 50%;
  658. font-size: 12px;
  659. text-align: center;
  660. border-radius: 10px;
  661. .title{
  662. font-size: 18px;
  663. text-align: center;
  664. }
  665. .desc{
  666. padding-top: 6px;
  667. color: #999999;
  668. }
  669. .bg-img{
  670. text-align: center;
  671. height: 100px;
  672. display: flex;
  673. justify-content: center;
  674. align-items: center;
  675. image{
  676. width: 78px;
  677. height: 78px;
  678. }
  679. }
  680. }
  681. .right-content{
  682. margin-top: 20px;
  683. width: 50%;
  684. font-size: 12px;
  685. text-align: center;
  686. .title{
  687. font-size: 18px;
  688. text-align: center;
  689. }
  690. .desc{
  691. padding-top: 6px;
  692. color: #999999;
  693. }
  694. .bg-img{
  695. height: 100px;
  696. text-align: center;
  697. display: flex;
  698. justify-content: center;
  699. align-items: center;
  700. image{
  701. width: 78px;
  702. height: 78px;
  703. }
  704. }
  705. }
  706. }
  707. .menu-tab{
  708. display: flex;
  709. justify-content: space-around; // 平均分布
  710. justify-content: center;
  711. padding-bottom: 8px;
  712. .button-wrap{
  713. flex: 1;
  714. display: flex;
  715. align-items: center;
  716. justify-content: center;
  717. margin-top: 16px;
  718. margin-bottom: 18px;
  719. .name{
  720. padding-top: 3px;
  721. font-size: 12px;
  722. color: #666666;
  723. }
  724. .btn{
  725. padding-left: 12px;
  726. padding-right: 12px;
  727. height: 36px;
  728. border-radius: 18px;
  729. .icon{
  730. display: flex;
  731. padding-right: 6px;
  732. align-items: center;
  733. justify-content: center;
  734. image{
  735. height: 14px;
  736. width: 14px;
  737. }
  738. }
  739. }
  740. }
  741. }
  742. }
  743. /* 为你推荐 */
  744. .recommend-wrap{
  745. margin-top: 16px;
  746. background: #fff;
  747. border-radius: 8px;
  748. .recommend-nav{
  749. display: flex;
  750. margin-left: 12px;
  751. padding-top: 8px;
  752. padding-bottom: 4px;
  753. align-items: center;
  754. .icon{
  755. padding-right: 4px;
  756. image{
  757. height: 26px;
  758. width: 26px;
  759. }
  760. }
  761. .title{
  762. font-size: 16px;
  763. }
  764. }
  765. /* 门店列表 */
  766. .store-wrap{
  767. margin: 12px;
  768. height: 100px;
  769. .store-list{
  770. margin-top: 16px;
  771. .store-content{
  772. display: flex;
  773. .store-img{
  774. width: 30%;
  775. image{
  776. width: 100%;
  777. height: 78px;
  778. border-radius: 6px;
  779. }
  780. }
  781. .h-store-content{
  782. width: 70%;
  783. padding-left: 8px;
  784. padding-top: 4px;
  785. .title{
  786. font-size: 18px;
  787. font-family: "黑体", sans-serif;
  788. }
  789. .adress{
  790. font-size: 14px;
  791. color: #666;
  792. }
  793. .price{
  794. color: #666;
  795. width: 60%;
  796. font-size: 14px;
  797. line-height: 22px;
  798. .red{
  799. color: red;
  800. font-size: 16px;
  801. }
  802. }
  803. .desc{
  804. display: flex;
  805. padding-top: 3px;
  806. .price{
  807. width: 60%;
  808. font-size: 14px;
  809. line-height: 22px;
  810. }
  811. .order-btn{
  812. width: 100%;
  813. .btn{
  814. background: #FFE05C;
  815. text-align: center;
  816. border-radius: 14px;
  817. height: 26px;
  818. line-height: 26px;
  819. color: #333;
  820. font-size: 12px;
  821. }
  822. }
  823. }
  824. }
  825. }
  826. }
  827. }
  828. }
  829. /* 底部 */
  830. .footer{
  831. margin-top: 30px;
  832. height: 60px;
  833. font-size: 12px;
  834. text-align: center;
  835. color: #666;
  836. margin-bottom: 40px;
  837. }
  838. .tabBarView{
  839. position: fixed;
  840. bottom: 0;
  841. }
  842. </style>