coursesHistory.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786
  1. <template>
  2. <div class="context">
  3. <div class="panel">
  4. <h5>课程管理
  5. </h5>
  6. <div class="likeTab">
  7. <el-button type="" @click="goType('courses')">当前课程</el-button>
  8. <el-button type="primary" @click="goType('coursesHistory')">历史记录</el-button>
  9. </div>
  10. <div class="panel-body">
  11. <div class="panel_control">
  12. <el-row :gutter="20">
  13. <el-date-picker
  14. v-model="panel.timeScope"
  15. type="daterange"
  16. range-separator="至"
  17. start-placeholder="开始日期"
  18. end-placeholder="结束日期">
  19. </el-date-picker>
  20. <el-col :span="4">
  21. <el-button size="" type="primary" @click="query" :disabled="serachBtnStatus" plain>查询
  22. </el-button>
  23. </el-col>
  24. </el-row>
  25. </div>
  26. </div>
  27. </div>
  28. <div class="table">
  29. <el-table
  30. :data="tableData"
  31. border
  32. is-horizontal-resize
  33. :default-sort="{prop: 'date', order: 'descending'}"
  34. element-loading-background="rgba(0, 0, 0, 0.8)"
  35. class=""
  36. @selection-change="handleSelectionChange"
  37. >
  38. >
  39. <el-table-column
  40. type="index"
  41. label="序号"
  42. align="center"
  43. width="50">
  44. </el-table-column>
  45. <el-table-column
  46. prop="BeginTime"
  47. label="上课时间"
  48. :formatter="filterFmtDate"
  49. width="180"
  50. >
  51. </el-table-column>
  52. <el-table-column
  53. prop="ClassName"
  54. label="课程"
  55. sortable
  56. >
  57. <template slot-scope="scope">
  58. <span class="lessonSpan"
  59. :style="{background:scope.row.ClassColor}">{{scope.row.ClassName}}</span>
  60. </template>
  61. </el-table-column>
  62. <el-table-column
  63. prop="ConsumeHour"
  64. label="消耗课时"
  65. width="110"
  66. sortable
  67. >
  68. </el-table-column>
  69. <el-table-column
  70. prop="OrderNum"
  71. label="实际预约人数"
  72. width="130"
  73. sortable
  74. >
  75. </el-table-column>
  76. <el-table-column
  77. prop="SvName"
  78. label="区域"
  79. width="110"
  80. sortable
  81. >
  82. </el-table-column>
  83. <el-table-column
  84. prop="ClassType"
  85. label="课程类型"
  86. width="110"
  87. sortable
  88. >
  89. <template slot-scope="scope">
  90. <span v-if="scope.row.ClassType == 1">团课</span>
  91. <span v-if="scope.row.ClassType == 3">私教</span>
  92. <span v-if="scope.row.ClassType == 2 && scope.row.PkNum == 2">两队PK</span>
  93. <span v-if="scope.row.ClassType == 2 && scope.row.PkNum == 3">三队PK</span>
  94. </template>
  95. </el-table-column>
  96. <el-table-column
  97. prop="FinishClass"
  98. label="当前状态"
  99. width="110"
  100. sortable
  101. >
  102. <template slot-scope="scope">
  103. <span v-if="scope.row.FinishClass == 0" style="color: red">未上课</span>
  104. <span v-if="scope.row.FinishClass == 1">已下课</span>
  105. <span v-if="scope.row.FinishClass == 2" style="color: yellowgreen">已上课</span>
  106. <span v-if="scope.row.FinishClass == 3">准备上课</span>
  107. <span v-if="scope.row.FinishClass == 4">已完成</span>
  108. </template>
  109. </el-table-column>
  110. <el-table-column
  111. prop="Status"
  112. label="操作"
  113. width="160"
  114. >
  115. <template slot-scope="scope">
  116. <!--<el-button type="primary" round size="mini" @click="checkClassOverPrepare(scope.row)">-->
  117. <!--下课-->
  118. <!--</el-button>-->
  119. <el-button type="primary" round size="mini" v-if="scope.row.FinishClass == 0"
  120. @click="showDialogMemberVisible(scope.row)">
  121. 上课
  122. </el-button>
  123. <el-button type="primary" round size="mini"
  124. v-if="scope.row.FinishClass == 3 || scope.row.FinishClass == 2"
  125. @click="seeEdit(scope.row)"
  126. >
  127. 管理
  128. </el-button>
  129. <!--修改区域 todo-->
  130. <el-button type="primary" round plain size="mini" v-if="scope.row.FinishClass == 3"
  131. @click="changeShopVenue(scope.row)"
  132. >
  133. 编辑
  134. </el-button>
  135. <!--已完成才能看详情-->
  136. <el-button type="primary" round plain size="mini" v-if="scope.row.FinishClass == 1 || scope.row.FinishClass == 4"
  137. @click="seeDetail(scope.row)"
  138. >
  139. 详情
  140. </el-button>
  141. </template>
  142. </el-table-column>
  143. </el-table>
  144. <br>
  145. <el-pagination
  146. background
  147. :total="pageination.total"
  148. :page-size="pageination.pageItem"
  149. @current-change="pageChange"
  150. ></el-pagination>
  151. </div>
  152. <el-dialog :title="dialogTitle" :visible.sync="dialogMemberVisible" width="650px">
  153. <div class="dialogContent">
  154. <h5 class="classNames">{{className}}</h5>
  155. <div class="">
  156. <el-form ref="form" :model="form" label-width="160px">
  157. <el-form-item label="区域" :required="true">
  158. <el-select v-model="form.svId" filterable placeholder="请选择" @change="changeLocationValue">
  159. <el-option
  160. v-for="item in form.svList"
  161. :key="item.SvId"
  162. :label="item.Name"
  163. :value="item.SvId">
  164. </el-option>
  165. </el-select>
  166. </el-form-item>
  167. <el-form-item label="类型" :required="true">
  168. <el-select v-model="form.classType" filterable placeholder="请选择">
  169. <el-option
  170. v-for="item in form.ClassTypeOptions"
  171. :key="item.value"
  172. :label="item.label"
  173. :value="item.value">
  174. </el-option>
  175. </el-select>
  176. </el-form-item>
  177. <el-form-item label="组队方式" v-if="form.classType == 2">
  178. <el-select v-model="form.pkNum" filterable placeholder="请选择">
  179. <el-option
  180. v-for="item in form.PKTypeOptions"
  181. :key="item.value"
  182. :label="item.label"
  183. :value="item.value">
  184. </el-option>
  185. </el-select>
  186. </el-form-item>
  187. </el-form>
  188. </div>
  189. </div>
  190. <div class="dialogFooter">
  191. <el-button type="primary" size="small" v-if="form.btnType == 0" @click="getClassStartPrepare()">确定
  192. </el-button>
  193. <el-button type="primary" size="small" v-if="form.btnType == 1" @click="getClassStartPrepareForEdit()">
  194. 确定
  195. </el-button>
  196. <el-button size="small" @click="dialogMemberVisible = false">取消</el-button>
  197. </div>
  198. </el-dialog>
  199. </div>
  200. </template>
  201. <script>
  202. import Global from '../Global.js'
  203. import {
  204. ClassPreFinishListQuery,
  205. ClassOverPrepare,
  206. ClassDetailQuery,
  207. QueryShopVenue,
  208. ClassStartPrepare,
  209. DispPlanInfoEdit,
  210. } from "../api/getApiRes";
  211. let qs = require('qs');
  212. export default {
  213. data() {
  214. return {
  215. dialogMemberVisible: false,
  216. serachBtnStatus: false,
  217. dialogVisible: false,//其他dialog
  218. dialogFinishVisible: false,//确认下课dialog
  219. dialogLesson: false,//课时调整
  220. dialogGift: false,//赠送课时调整
  221. dialogExpTime: false,//有效期调整
  222. dialogLessonTable: false,//会员课程
  223. dialogTitle: '上课准备',
  224. className: '',
  225. current: getNowDate(),
  226. dialogValue: [],
  227. // panel 配置项目
  228. panel: {
  229. usercode: '',
  230. username: '',
  231. compname: '',
  232. keyword: '',
  233. USERCODE: '',
  234. endType: '',
  235. taskstatus: 99,
  236. draw: 1,
  237. start: 0,
  238. recordsTotal: 0,
  239. tableData: [],
  240. allTableData: [],
  241. limit: '10',
  242. multipleSort: false,
  243. loading: false,
  244. fileList: [],
  245. multipleSelection: [],
  246. detectedmac: '',
  247. options: [
  248. {value: 99, label: '全部'},
  249. {value: 1, label: '进行中'},
  250. {value: 2, label: '已完成'},
  251. ],
  252. endTypeOptions: [
  253. {value: 99, label: '全部'},
  254. {value: 30, label: '近一个月'},
  255. {value: 7, label: '近一周'},
  256. {value: 1, label: '当日'},
  257. ],
  258. time1: globalBt(),
  259. timeScope: globalBt2(0),
  260. },
  261. multipleSelection: [],
  262. pageination: {
  263. pageItem: 100,
  264. pageoptions: pageOptions(),
  265. total: 100,
  266. pageIndex: 1,
  267. },
  268. form: {
  269. name: '',
  270. svId: '',
  271. svName: '',
  272. classType: 1,
  273. userCode: '',
  274. coach: '',
  275. coachOptions: [],
  276. shopId: '',
  277. memberType: 1,
  278. lesson: 1,
  279. gift: 1,
  280. pktype: 1,
  281. pkNum: 2,
  282. btnType: 0,//0新建,1编辑
  283. memo: '',
  284. expTime: '',
  285. StdId: '',
  286. svList: [],//区域列表
  287. dialogdata: [],//穿梭待选
  288. dialogValue: [],//穿梭已选
  289. ClassTypeOptions: [
  290. {value: 1, label: '团课'},
  291. // {value: 2, label: '竞技PK'},
  292. {value: 3, label: '私教'},
  293. ],
  294. PKTypeOptions: [
  295. {value: 2, label: '2队PK'},
  296. {value: 3, label: '3队PK'},
  297. ],
  298. },
  299. memberTypes: [
  300. {value: 1, label: '年会员'},
  301. {value: 2, label: '充值会员'},
  302. ],
  303. tableData: []
  304. }
  305. },
  306. mounted() {
  307. this.getTableQuery();
  308. },
  309. methods: {
  310. goType(url) {
  311. this.$router.push({path: '/' + url});
  312. },
  313. // 更改上课区域
  314. changeShopVenue(row) {
  315. this.dialogMemberVisible = true;
  316. this.form.btnType = 1;//0新建,1编辑
  317. // 读取本行信息
  318. this.dialogMemberVisible = true;
  319. this.className = row.ClassName + ' ' + row.BeginStr + ' - ' + row.EndStr;
  320. this.form.StdId = row.StdId;
  321. this.getQueryShopVenue();
  322. this.form.svId = row.SvId;
  323. this.form.classType = row.ClassType;
  324. this.form.pkNum = row.PkNum;
  325. },
  326. // 准备上课
  327. getClassStartPrepare() {
  328. let that = this;
  329. if (!that.form.svId) {
  330. that.$message.error('上课区域不能为空');
  331. return false
  332. }
  333. // 不是竞技pk的时候为0
  334. let uppkNum = that.form.classType == 2 ? that.form.pkNum : 0;
  335. let param = {
  336. token: localStorage.token,
  337. stdId: that.form.StdId,
  338. svId: that.form.svId,
  339. svName: that.form.svName,
  340. classType: that.form.classType,
  341. pkNum: uppkNum,
  342. };
  343. let postdata = qs.stringify(param);
  344. ClassStartPrepare(postdata).then(res => {
  345. let json = res;
  346. if (json.Code == 0) {
  347. // NewId: 0
  348. that.dialogMemberVisible = false;
  349. this.getTableQuery();
  350. this.$router.push({
  351. path: '/courseEdit',
  352. query: {
  353. StdId: that.form.StdId,
  354. ClassName: that.form.ClassName,
  355. BeginStr: that.form.BeginStr,
  356. EndStr: that.form.EndStr,
  357. FinishClass:3,
  358. }
  359. });
  360. } else {
  361. that.$message.error(json.Memo);
  362. }
  363. })
  364. },
  365. // 编辑
  366. getClassStartPrepareForEdit() {
  367. let that = this;
  368. if (!that.form.svId) {
  369. that.$message.error('上课区域不能为空');
  370. return false
  371. }
  372. // 不是竞技pk的时候为0
  373. let uppkNum = that.form.classType == 2 ? that.form.pkNum : 0;
  374. let param = {
  375. token: localStorage.token,
  376. stdId: that.form.StdId,
  377. svId: that.form.svId,
  378. svName: that.form.svName,
  379. classType: that.form.classType,
  380. pkNum: uppkNum,
  381. };
  382. let postdata = qs.stringify(param);
  383. DispPlanInfoEdit(postdata).then(res => {
  384. let json = res;
  385. if (json.Code == 0) {
  386. // NewId: 0
  387. that.dialogMemberVisible = false;
  388. this.getTableQuery();
  389. } else {
  390. that.$message.error(json.Memo);
  391. }
  392. })
  393. },
  394. seeDetail(row) {
  395. this.$router.push({
  396. path: '/classInfoDetail', query: {
  397. StdId: row.StdId,
  398. ClassName: row.ClassName,
  399. BeginStr: row.BeginStr,
  400. EndStr: row.EndStr,
  401. }
  402. });
  403. },
  404. seeEdit(row) {
  405. this.$router.push({
  406. path: '/courseEdit', query: {
  407. StdId: row.StdId,
  408. ClassName: row.ClassName,
  409. BeginStr: row.BeginStr,
  410. EndStr: row.EndStr,
  411. FinishClass: row.FinishClass,
  412. }
  413. });
  414. },
  415. // 获取select的label
  416. changeLocationValue(val) {
  417. //locations是v-for里面的也是datas里面的值
  418. let obj = {};
  419. obj = this.form.svList.find((item) => {
  420. return item.SvId === val;
  421. });
  422. this.form.svName = obj.Name;
  423. },
  424. // 获取区域列表
  425. getQueryShopVenue() {
  426. let that = this;
  427. let param = {
  428. key: localStorage.ServiceKey,
  429. shopId: localStorage.ServiceId,
  430. };
  431. let postdata = qs.stringify(param);
  432. QueryShopVenue(postdata).then(res => {
  433. let json = res;
  434. if (json.Code == 0) {
  435. that.form.svList = json.Rs;
  436. } else {
  437. that.$message.error(json.Memo);
  438. }
  439. })
  440. },
  441. vipSelect(stdId) {
  442. let that = this;
  443. // 筛选相同的stdid的classId
  444. that.form.stdList.map(function (item) {
  445. if (item.value == stdId) {
  446. let param = {
  447. token: localStorage.token,
  448. // classId: item.classId
  449. };
  450. let postdata = qs.stringify(param);
  451. // VipUserListQuery
  452. VipUserSimpleQuery(postdata).then(res => {
  453. let json = res;
  454. if (json.Code == 0) {
  455. that.form.userId = '';
  456. that.form.userList = turnResToOptionBySimViper(json.Rs);
  457. } else {
  458. that.$message.error(json.Memo);
  459. }
  460. })
  461. }
  462. })
  463. },
  464. showDialogMemberVisible(row) {
  465. this.dialogMemberVisible = true;
  466. this.form.btnType = 0;//0新建,1编辑编辑
  467. // clear
  468. this.form.svList = "";
  469. this.form.classType = 1;
  470. this.form.pkNum = "";
  471. this.form.StdId = row.StdId;
  472. this.form.ClassName= row.ClassName;
  473. this.form.BeginStr= row.BeginStr;
  474. this.form.EndStr= row.EndStr;
  475. this.form.FinishClass= row.FinishClass;
  476. this.className = row.ClassName + ' ' + row.BeginStr + ' - ' + row.EndStr;
  477. this.form.StdId = row.StdId;
  478. this.getQueryShopVenue();
  479. },
  480. // 检测当前课是否处于可改变状态
  481. // 固定下当前已预约人数列表
  482. checkClassOverPrepare(row) {
  483. let that = this;
  484. let param = {
  485. token: localStorage.token,
  486. stdId: row.StdId,
  487. };
  488. let postdata = qs.stringify(param);
  489. ClassOverPrepare(postdata).then(res => {
  490. let json = res;
  491. if (json.Code == 0) {
  492. that.goFinish(row);
  493. } else {
  494. that.$message.error(json.Memo);
  495. }
  496. })
  497. },
  498. goFinish(row) {
  499. this.$router.push({
  500. path: '/finishDetail', query: {
  501. id: row.StdId,
  502. classId: row.ClassId,
  503. ClassName: row.ClassName,
  504. BeginTime: row.BeginTime,
  505. }
  506. });
  507. },
  508. handleSelectionChange(val) {
  509. this.multipleSelection = val;
  510. },
  511. // 查询按钮
  512. query() {
  513. let that = this;
  514. that.serachBtnStatus = true;
  515. let totalTime = 2;
  516. let clock = window.setInterval(() => {
  517. totalTime--;
  518. if (totalTime < 0) {
  519. totalTime = 2;
  520. that.serachBtnStatus = false;
  521. }
  522. }, 1000);
  523. this.getTableQuery();
  524. this.$message.success('查询完毕');
  525. },
  526. // 页面数据查询
  527. getTableQuery() {
  528. let that = this;
  529. that.loading = true;
  530. let param = {
  531. token: localStorage.token,
  532. tagname: that.panel.tagname,//标签名
  533. bt: nonTfmtDatetoLength(that.panel.timeScope[0], 10) + " 00:00:00",
  534. et: nonTfmtDatetoLength(that.panel.timeScope[1], 10) + " 23:59:59",
  535. fcStatus: '1,4',//状态字符串,空是全部 或 0,3,2 是待上课 或 1,4 已下课
  536. start: 1,//
  537. tableMax: 9999,//
  538. };
  539. let postdata = qs.stringify(param);
  540. ClassDetailQuery(postdata).then(res => {
  541. let json = res;
  542. if (json.Code == 0) {
  543. that.loading = false;
  544. if (json.Rs) {
  545. that.allTableData = json.Rs;
  546. that.recordsTotal = json.Rs.length;
  547. } else {
  548. that.allTableData = [];
  549. that.recordsTotal = 0;
  550. }
  551. // 设置分页数据
  552. that.setPaginations();
  553. } else {
  554. that.$message.error(json.Memo);
  555. }
  556. })
  557. },
  558. // 设置分页数据
  559. setPaginations() {
  560. // 分页属性
  561. let that = this;
  562. that.pageination.total = that.recordsTotal;
  563. // 默认分页
  564. that.tableData = that.allTableData.filter((item, index) => {
  565. return index < that.pageination.pageItem;
  566. });
  567. },
  568. // 每页显示数量
  569. handleSizeChange() {
  570. let that = this;
  571. that.tableData = that.allTableData.filter((item, index) => {
  572. return index < that.pageination.pageItem;
  573. });
  574. that.draw = that.pageination.pageItem;
  575. // that.getTableQuery();
  576. },
  577. // 翻页
  578. pageChange(pageIndex) {
  579. let that = this;
  580. // 获取当前页
  581. let index = that.pageination.pageItem * (pageIndex - 1);
  582. // 数据总数
  583. let nums = that.pageination.pageItem * pageIndex;
  584. // 容器
  585. let tables = [];
  586. for (var i = index; i < nums; i++) {
  587. if (that.allTableData[i]) {
  588. tables.push(that.allTableData[i])
  589. }
  590. this.tableData = tables;
  591. }
  592. that.start = index * that.draw;
  593. // that.getTableQuery();
  594. },
  595. // 过滤时间
  596. filterFmtDate(value, row, column) {
  597. let that = this;
  598. return nonTfmtDate(column, 11);
  599. },
  600. },
  601. watch: {
  602. $route(to) {
  603. if (to.name == 'courses') {
  604. this.getTableQuery();
  605. }
  606. },
  607. },
  608. }
  609. </script>
  610. <style scoped>
  611. @import "../assets/css/panel.css";
  612. .context {
  613. height: 770px;
  614. overflow-y: scroll;
  615. display: block;
  616. margin: 0 auto;
  617. background-color: #fff !important;
  618. padding: 30px;
  619. }
  620. .panel-body {
  621. padding: 20px;
  622. background: #F0F2F5;
  623. }
  624. .change {
  625. width: 100%;
  626. overflow: hidden;
  627. display: block;
  628. margin: 0 auto;
  629. padding-top: 10px;
  630. padding-bottom: 10px;
  631. }
  632. .change button {
  633. float: left;
  634. }
  635. .change button.pull-right {
  636. float: right;
  637. }
  638. .dialogTitle {
  639. width: 100%;
  640. overflow: hidden;
  641. display: block;
  642. margin: 0 auto;
  643. color: #000000;
  644. font-size: 18px;
  645. text-align: center;
  646. }
  647. .dialogTitle em {
  648. float: none;
  649. font-style: normal;
  650. color: #3799FF;
  651. margin: 0;
  652. }
  653. /deep/ .el-transfer-panel__item .el-checkbox__input {
  654. left: 40px;
  655. }
  656. .dialogFooter {
  657. width: 90%;
  658. overflow: hidden;
  659. display: block;
  660. margin: 0 auto;
  661. margin-top: 10px;
  662. }
  663. .dialogFooter button {
  664. float: right;
  665. margin-left: 10px;
  666. }
  667. .dialogContent {
  668. width: 100%;
  669. overflow: hidden;
  670. display: block;
  671. margin: 0 auto;
  672. }
  673. .dialogContent .pull-left {
  674. width: 30%;
  675. float: left;
  676. }
  677. .dialogContent .pull-right {
  678. width: 70%;
  679. float: right;
  680. }
  681. .blueTitle {
  682. width: 200px;
  683. overflow: hidden;
  684. display: block;
  685. margin: 0 auto;
  686. margin-top: 10px;
  687. margin-bottom: 40px;
  688. background: #F0F2F5;
  689. border-radius: 19px;
  690. text-align: center;
  691. color: #3799FF;
  692. font-size: 16px;
  693. padding: 5px 24px;
  694. }
  695. .current {
  696. width: 158px;
  697. height: 23px;
  698. /*float: left;*/
  699. border-radius: 250px;
  700. text-align: center;
  701. background: #F0F2F5;
  702. color: #545454;
  703. font-size: 14px;
  704. padding: 3px 10px;
  705. margin-left: 20px;
  706. }
  707. .lessonSpan {
  708. width: 78px;
  709. height: 22px;
  710. border-radius: 11px;
  711. margin-right: 5px;
  712. float: left;
  713. margin-bottom: 3px;
  714. text-align: center;
  715. color: #000;
  716. font-size: 12px;
  717. }
  718. .classNames {
  719. width: 211px;
  720. height: 25px;
  721. background: #f0f2f5;
  722. font-family: "Source Han Sans CN";
  723. font-weight: normal;
  724. font-size: 16px;
  725. color: #3799ff;
  726. border-radius: 250px;
  727. text-align: center;
  728. margin: 0 auto;
  729. margin-bottom: 10px;
  730. }
  731. /deep/ .el-date-editor .el-range-separator {
  732. line-height: 25px;
  733. }
  734. .likeTab {
  735. width: 100%;
  736. overflow: hidden;
  737. display: block;
  738. margin: 0 auto;
  739. padding-top: 10px;
  740. padding-bottom: 0;
  741. border-bottom: 1px solid #ccc;
  742. margin-bottom: 10px;
  743. }
  744. .likeTab button {
  745. float: left;
  746. border-radius: 0;
  747. }
  748. .likeTab button.pull-right {
  749. float: right;
  750. }
  751. </style>