Mycollect.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787
  1. <template>
  2. <!-- 购买记录 -->
  3. <div class="OrderManage personal-center">
  4. <EditTitle
  5. :title="$t('Key66')"
  6. :isDel="1"
  7. :isShowCheckBox="isShowCheckBox"
  8. :changeIsDel="changeIsDel"
  9. :changeIsCancle="changeIsCancle"
  10. :deleteMyCollection="deleteMyCollection"
  11. :listCount="listCount"
  12. :delCount="delCount"
  13. />
  14. <div style="width: fit-content; padding: 0 32px">
  15. <el-menu
  16. :default-active="activeIndex"
  17. class="el-menu-demo"
  18. mode="horizontal"
  19. @select="handleSelect"
  20. >
  21. <!-- <el-menu-item index="all">全部</el-menu-item> -->
  22. <el-menu-item index="book">{{ $t("Key44") }}</el-menu-item>
  23. <el-menu-item index="teaching">{{ $t("Key62") }}</el-menu-item>
  24. <el-menu-item index="video" v-if="userType != 'STUDENT'">{{
  25. $t("Key74")
  26. }}</el-menu-item>
  27. <el-menu-item index="live" v-if="userType != 'STUDENT'">{{
  28. $t("Key75")
  29. }}</el-menu-item>
  30. <el-menu-item index="jiaoyan" v-if="userType != 'STUDENT'">{{
  31. $t("Key63")
  32. }}</el-menu-item>
  33. <!-- 字词 -->
  34. <el-menu-item index="hanzi">{{ $t("Key476") }}</el-menu-item>
  35. <!-- 句子 -->
  36. <el-menu-item index="sentence">{{ $t("Key477") }}</el-menu-item>
  37. </el-menu>
  38. </div>
  39. <div class="list" v-loading="loading">
  40. <template v-if="!isEmpty">
  41. <div class="main" v-for="(item, index) in list" :key="'order' + index">
  42. <div class="main-content" v-if="item.goods_type == 501">
  43. <div
  44. v-if="isShowCheckBox"
  45. class="checkBox"
  46. @click.stop="selecedGoods(item, index)"
  47. >
  48. <img
  49. :src="item.checked ? checked_img : check_img"
  50. class="check-img"
  51. />
  52. </div>
  53. <template v-if="/^[\u4e00-\u9fa5]/.test(item.new_word.new_word)">
  54. <Hanzi
  55. :item="item"
  56. :index="index"
  57. @getMyCollectionList="getMyCollectionList"
  58. />
  59. </template>
  60. <template v-else>
  61. <Enword
  62. :item="item"
  63. :index="index"
  64. @getMyCollectionList="getMyCollectionList"
  65. />
  66. </template>
  67. </div>
  68. <div class="main-content" v-else-if="item.goods_type == 502">
  69. <div
  70. v-if="isShowCheckBox"
  71. class="checkBox"
  72. @click.stop="selecedGoods(item, index)"
  73. >
  74. <img
  75. :src="item.checked ? checked_img : check_img"
  76. class="check-img"
  77. />
  78. </div>
  79. <template
  80. v-if="/^[\u4e00-\u9fa5]/.test(item.sentence.sentence_text)"
  81. >
  82. <Sentence
  83. :key="item.id"
  84. :sItem="item"
  85. :index="index"
  86. @getMyCollectionList="getMyCollectionList"
  87. />
  88. </template>
  89. <template v-else>
  90. <SentenceEn
  91. :key="item.id"
  92. :sItem="item"
  93. :index="index"
  94. @getMyCollectionList="getMyCollectionList"
  95. />
  96. </template>
  97. </div>
  98. <div class="main-content" v-else>
  99. <div class="main-content-left" @click.stop="jump(item)">
  100. <div
  101. v-if="isShowCheckBox"
  102. class="checkBox"
  103. @click.stop="selecedGoods(item, index)"
  104. >
  105. <img
  106. :src="item.checked ? checked_img : check_img"
  107. class="check-img"
  108. />
  109. </div>
  110. <div class="coverUrl">
  111. <img :src="item.goods_picture_url" />
  112. </div>
  113. <div class="order-infor">
  114. <p class="name">{{ item.goods_name }}</p>
  115. <Goodstype :item="item" />
  116. <p class="author">{{ item.creator_name }}</p>
  117. </div>
  118. </div>
  119. <div class="main-content-right">
  120. <p
  121. :class="[
  122. 'collectTime',
  123. language_type == 'AR' ? 'textLeft' : '',
  124. ]"
  125. >
  126. {{ item.create_time }}
  127. </p>
  128. <div class="order-btn">
  129. <div class="price">
  130. ¥<span class="price_num" v-html="item.goods_price_str"></span>
  131. </div>
  132. <button
  133. class="goPay"
  134. v-if="item.goods_is_buy == 'false'"
  135. @click="reOrder(item)"
  136. >
  137. {{ $t("Key72") }}
  138. </button>
  139. <button class="goPay hasPay" v-if="item.goods_is_buy == 'true'">
  140. {{ $t("Key73") }}
  141. </button>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. <div class="paging">
  147. <el-pagination
  148. background
  149. layout="prev, pager, next"
  150. :current-page="pageNum"
  151. :total="total"
  152. :page-size="pageSize"
  153. @current-change="changecurrentPage"
  154. />
  155. </div>
  156. </template>
  157. <template v-else>
  158. <Empty :navType="navType" />
  159. </template>
  160. </div>
  161. <el-dialog
  162. class="orderDialog"
  163. :title="$t('Key52')"
  164. :visible.sync="isConfirmorder"
  165. width="720px"
  166. :before-close="closeConfirmorder"
  167. >
  168. <Confirmorder
  169. ref="Confirmorder"
  170. :data="goods_Data"
  171. :changeOrderNumber="changeOrderNumber"
  172. />
  173. </el-dialog>
  174. <el-dialog
  175. class="orderDialog"
  176. top="50px"
  177. :title="$t('Key471') + ':' + orderNumber"
  178. :visible.sync="isPayment"
  179. width="720px"
  180. :before-close="closePayment"
  181. >
  182. <Payment
  183. :data="goods_Data"
  184. :orderNumber="orderNumber"
  185. :judgePayResult="judgePayResult"
  186. />
  187. </el-dialog>
  188. </div>
  189. </template>
  190. <script>
  191. import EditTitle from "../common/EditTitle.vue";
  192. import Empty from "../common/Empty.vue";
  193. import Goodstype from "../common/Goodstype.vue";
  194. import Cookies from "js-cookie";
  195. import { getLearnWebContent } from "@/api/ajax";
  196. import Confirmorder from "../common/Confirmorder.vue";
  197. import Payment from "../common/Payment.vue";
  198. import { jumpPath } from "@/utils/jumpPath";
  199. import Hanzi from "../common/Hanzi.vue";
  200. import Sentence from "../common/Sentence.vue";
  201. import SentenceEn from "../common/SentenceEn.vue";
  202. import Enword from "../common/Enword.vue";
  203. import { mapGetters } from "vuex";
  204. export default {
  205. name: "MyCollect",
  206. //import引入的组件需要注入到对象中才能使用
  207. components: {
  208. EditTitle,
  209. Empty,
  210. Goodstype,
  211. Confirmorder,
  212. Payment,
  213. Hanzi,
  214. Sentence,
  215. SentenceEn,
  216. Enword,
  217. },
  218. props: ["userType"],
  219. data() {
  220. //这里存放数据
  221. return {
  222. navType: "6",
  223. isEmpty: false,
  224. activeIndex: "book",
  225. list: [],
  226. goods_name: "", // 商品名称,模糊查询,空表示查询所有
  227. goods_id_list: [], // 商品 ID 列表,空表示查询所有商品
  228. goods_type_list: [101], // 商品类型列表,具体参看数据字典 6.9,商品类型。空表示查询所有类型
  229. total: 0,
  230. pageSize: 20,
  231. pageNum: 1,
  232. currPageNum: 0,
  233. loading: false,
  234. isShowCheckBox: false,
  235. selecedGoodsList: [],
  236. check_img: require("../../assets/Personalcenter/check.png"),
  237. checked_img: require("../../assets/Personalcenter/checked.png"),
  238. listCount: 0,
  239. delCount: 0,
  240. isPayment: false,
  241. isConfirmorder: false,
  242. orderNumber: "",
  243. goods_Data: null,
  244. };
  245. },
  246. //计算属性 类似于data概念
  247. computed: {
  248. ...mapGetters(["language_type"]),
  249. },
  250. //监控data中数据变化
  251. watch: {},
  252. //方法集合
  253. methods: {
  254. jump(item) {
  255. jumpPath(item);
  256. },
  257. //完成
  258. changeIsDel(isShowCheckBox) {
  259. this.isShowCheckBox = isShowCheckBox;
  260. this.selecedGoodsList = [];
  261. this.delCount = 0;
  262. this.currPageNum = 0;
  263. this.list.map((item) => {
  264. item.checked = false;
  265. return item;
  266. });
  267. },
  268. //取消
  269. changeIsCancle(isShowCheckBox) {
  270. this.selecedGoodsList = [];
  271. this.delCount = 0;
  272. this.currPageNum = 0;
  273. this.list.map((item) => {
  274. item.checked = false;
  275. return item;
  276. });
  277. },
  278. changecurrentPage(val) {
  279. this.pageNum = val;
  280. this.getMyCollectionList();
  281. },
  282. getMyCollectionList() {
  283. let _this = this;
  284. _this.loading = true;
  285. _this.delCount = 0;
  286. if (_this.currPageNum != _this.pageNum) {
  287. _this.isShowCheckBox = false;
  288. }
  289. let MethodName = "page_query-PageQueryMyCollectionList";
  290. let data = {
  291. goods_id_list: [],
  292. goods_type_list: this.goods_type_list,
  293. goods_name: _this.goods_name,
  294. page_capacity: _this.pageSize,
  295. cur_page: _this.pageNum,
  296. };
  297. getLearnWebContent(MethodName, data)
  298. .then((res) => {
  299. _this.loading = false;
  300. _this.total = res.total_count;
  301. let collection_list = res.collection_list;
  302. if (collection_list.length > 0) {
  303. this.list = collection_list.map((item) => {
  304. let obj = this.handleGoodsType(item.goods_type);
  305. item.className = obj.className;
  306. item.goods_type_root_name = obj.rootName;
  307. if (item.goods_price) {
  308. let goods_price = this.handlePrice(item.goods_price);
  309. item.goods_price_str = goods_price.price_str;
  310. //item.goods_price = goods_price.price;
  311. }
  312. // if (item.discount_money) {
  313. // let dis_price = this.handlePrice(item.goods_price);
  314. // item.discount_money = dis_price.price;
  315. // }
  316. // if (item.receivables_money) {
  317. // let rec_price = this.handlePrice(item.receivables_money);
  318. // item.receivables_money = rec_price.rprice;
  319. // }
  320. item.checked = false;
  321. return item;
  322. });
  323. this.isEmpty = false;
  324. this.listCount = this.list.length;
  325. } else {
  326. this.isEmpty = true;
  327. this.list = [];
  328. this.listCount = 0;
  329. }
  330. console.log(this.list);
  331. })
  332. .catch((error) => {
  333. _this.loading = false;
  334. });
  335. },
  336. handlePrice(price) {
  337. let priceArr = price.toString().split(".");
  338. if (priceArr.length > 1 && priceArr[1]) {
  339. } else {
  340. price = priceArr[0] + ".00";
  341. }
  342. let price_str = this.handlePrice2(price);
  343. return { price: price, price_str: price_str };
  344. },
  345. handlePrice2(price) {
  346. price = price.toString();
  347. let arr = price.split(".");
  348. let str = `<span style="font-size:24px;">${arr[0]}</span>.<span style="font-size:16px;">${arr[1]}</span>`;
  349. return str;
  350. },
  351. handleGoodsType(type) {
  352. let className = "",
  353. rootName = "";
  354. if (type) {
  355. type = type.toString();
  356. if (type.indexOf("10") > -1) {
  357. className = "type10";
  358. rootName = this.$t("Key44"); //"教材";
  359. }
  360. if (type.indexOf("20") > -1) {
  361. rootName = this.$t("Key62"); //"教学课程";
  362. className = "type20";
  363. }
  364. if (type.indexOf("30") > -1) {
  365. className = "type30";
  366. rootName = this.$t("Key63"); //"教培课程";
  367. }
  368. if (type.indexOf("40") > -1) {
  369. className = "type40";
  370. rootName = this.$t("Key64"); //"教研资料";
  371. }
  372. }
  373. return { className: className, rootName: rootName };
  374. },
  375. handleSelect(val) {
  376. let _this = this;
  377. _this.activeIndex = val;
  378. _this.pageNum = 1;
  379. _this.goods_name = "";
  380. _this.selecedGoodsList = [];
  381. if (_this.activeIndex == "all") {
  382. _this.goods_type_list = [];
  383. } else if (_this.activeIndex == "book") {
  384. _this.goods_type_list = [101];
  385. } else if (_this.activeIndex == "teaching") {
  386. _this.goods_type_list = [201];
  387. } else if (_this.activeIndex == "video") {
  388. _this.goods_type_list = [302];
  389. } else if (_this.activeIndex == "live") {
  390. _this.goods_type_list = [301];
  391. } else if (_this.activeIndex == "jiaoyan") {
  392. _this.goods_type_list = [401];
  393. } else if (_this.activeIndex == "hanzi") {
  394. _this.goods_type_list = [501];
  395. } else if (_this.activeIndex == "sentence") {
  396. _this.goods_type_list = [502];
  397. }
  398. _this.getMyCollectionList();
  399. },
  400. //勾选我的收藏
  401. selecedGoods(item, index) {
  402. let _this = this;
  403. if (item.checked) {
  404. item.checked = false;
  405. this.delCount--;
  406. let selecedGoodsList = JSON.parse(
  407. JSON.stringify(_this.selecedGoodsList)
  408. );
  409. selecedGoodsList = selecedGoodsList.filter((ele) => ele != item.id);
  410. _this.selecedGoodsList = selecedGoodsList;
  411. } else {
  412. item.checked = true;
  413. this.delCount++;
  414. _this.selecedGoodsList.push(item.id);
  415. }
  416. },
  417. //删除我的收藏
  418. deleteMyCollection() {
  419. let _this = this;
  420. if (_this.selecedGoodsList.length < 1) {
  421. this.$message.warning("请先勾选");
  422. return;
  423. }
  424. return new Promise((resolve) => {
  425. _this.loading = true;
  426. let MethodName = "order-collection_manager-DeleteMyCollection";
  427. let data = {
  428. id_list: _this.selecedGoodsList,
  429. };
  430. getLearnWebContent(MethodName, data).then((res) => {
  431. _this.$message.success(this.$t("Key532"));
  432. _this.loading = false;
  433. setTimeout(() => {
  434. _this.currPageNum = _this.pageNum;
  435. _this.goods_name = "";
  436. _this.selecedGoodsList = [];
  437. _this.getMyCollectionList();
  438. }, 500);
  439. resolve();
  440. });
  441. });
  442. },
  443. //获取订单编号
  444. changeOrderNumber(
  445. id,
  446. back_discount_code,
  447. discount_money,
  448. receivables_money
  449. ) {
  450. this.isConfirmorder = false;
  451. this.orderNumber = id;
  452. this.isPayment = true;
  453. this.goods_Data.discount_code = back_discount_code;
  454. this.goods_Data.discount_money = discount_money;
  455. this.goods_Data.receivables_money = receivables_money;
  456. console.log(this.goods_Data);
  457. },
  458. //去购买
  459. reOrder(item) {
  460. this.isConfirmorder = true;
  461. this.goods_Data = item;
  462. console.log(this.goods_Data);
  463. },
  464. closeConfirmorder() {
  465. this.isConfirmorder = false;
  466. this.$refs.Confirmorder.clearData();
  467. },
  468. closePayment() {
  469. this.isPayment = false;
  470. this.$refs.Confirmorder.clearData();
  471. },
  472. judgePayResult(bool) {
  473. this.isPayment = false;
  474. this.isConfirmorder = false;
  475. if (bool) {
  476. this.$message.success("支付成功");
  477. } else {
  478. this.$message.warning("支付失败");
  479. }
  480. this.getMyCollectionList();
  481. },
  482. },
  483. //生命周期 - 创建完成(可以访问当前this实例)
  484. created() {},
  485. //生命周期 - 挂载完成(可以访问DOM元素)
  486. mounted() {
  487. this.getMyCollectionList();
  488. },
  489. //生命周期-创建之前
  490. beforeCreated() {},
  491. //生命周期-挂载之前
  492. beforeMount() {},
  493. //生命周期-更新之前
  494. beforUpdate() {},
  495. //生命周期-更新之后
  496. updated() {},
  497. //生命周期-销毁之前
  498. beforeDestory() {},
  499. //生命周期-销毁完成
  500. destoryed() {},
  501. //如果页面有keep-alive缓存功能,这个函数会触发
  502. activated() {},
  503. };
  504. </script>
  505. <style lang="scss" scoped>
  506. /* @import url(); 引入css类 */
  507. .OrderManage {
  508. .list {
  509. width: 100%;
  510. min-height: 400px;
  511. .main {
  512. width: 100%;
  513. box-sizing: border-box;
  514. padding: 16px 16px 16px 16px;
  515. background: #ffffff;
  516. box-shadow: inset 0px -1px 0px rgba(0, 0, 0, 0.15);
  517. .checkBox {
  518. display: flex;
  519. justify-content: center;
  520. align-items: center;
  521. height: 88px;
  522. margin-right: 16px;
  523. cursor: pointer;
  524. .check-img {
  525. width: 16px;
  526. height: 16px;
  527. }
  528. }
  529. &-top {
  530. width: 100%;
  531. display: flex;
  532. justify-content: space-between;
  533. align-items: center;
  534. margin-bottom: 16px;
  535. &-left {
  536. display: flex;
  537. justify-content: flex-start;
  538. align-items: center;
  539. cursor: pointer;
  540. .orderTime {
  541. font-weight: bold;
  542. font-size: 14px;
  543. line-height: 150%;
  544. text-align: right;
  545. color: #2c2c2c;
  546. margin-right: 16px;
  547. }
  548. .orderNo {
  549. font-weight: normal;
  550. font-size: 14px;
  551. line-height: 150%;
  552. color: #2c2c2c;
  553. }
  554. }
  555. .del-order {
  556. width: 16px;
  557. height: 16px;
  558. cursor: pointer;
  559. }
  560. }
  561. &-content {
  562. display: flex;
  563. justify-content: space-between;
  564. &-left {
  565. display: flex;
  566. justify-content: flex-start;
  567. .coverUrl {
  568. width: 88px;
  569. height: 88px;
  570. border-radius: 4px;
  571. display: flex;
  572. justify-content: center;
  573. align-items: center;
  574. > img {
  575. max-height: 100%;
  576. max-width: 100%;
  577. }
  578. }
  579. .order-infor {
  580. width: 528px;
  581. display: flex;
  582. flex-direction: column;
  583. align-items: flex-start;
  584. margin: 0 16px;
  585. .name {
  586. font-weight: normal;
  587. font-size: 16px;
  588. line-height: 150%;
  589. color: #2c2c2c;
  590. overflow: hidden;
  591. white-space: nowrap;
  592. text-overflow: ellipsis;
  593. }
  594. .intro {
  595. font-weight: normal;
  596. font-size: 16px;
  597. line-height: 150%;
  598. color: #2c2c2c;
  599. opacity: 0.7;
  600. overflow: hidden;
  601. white-space: nowrap;
  602. text-overflow: ellipsis;
  603. }
  604. .author {
  605. font-weight: normal;
  606. font-size: 14px;
  607. line-height: 150%;
  608. color: #2c2c2c;
  609. opacity: 0.7;
  610. }
  611. .pinyin {
  612. font-weight: normal;
  613. font-size: 20px;
  614. line-height: 23px;
  615. color: #2c2c2c;
  616. }
  617. .en {
  618. font-style: normal;
  619. font-weight: 600;
  620. font-size: 20px;
  621. line-height: 25px;
  622. color: #2c2c2c;
  623. margin: 4px 0 12px;
  624. }
  625. .hanzi-btn {
  626. display: flex;
  627. justify-content: flex-start;
  628. align-items: center;
  629. &-img {
  630. display: flex;
  631. justify-content: center;
  632. align-items: center;
  633. width: 24px;
  634. height: 24px;
  635. background: #ff5757;
  636. border-radius: 4px;
  637. margin-right: 8px;
  638. cursor: pointer;
  639. > img {
  640. width: 16px;
  641. height: 16px;
  642. }
  643. }
  644. .more-intp {
  645. font-weight: normal;
  646. font-size: 14px;
  647. line-height: 20px;
  648. color: #2c2c2c;
  649. opacity: 0.5;
  650. cursor: pointer;
  651. }
  652. }
  653. }
  654. .hanzi {
  655. display: flex;
  656. justify-content: center;
  657. align-items: center;
  658. width: 88px;
  659. height: 88px;
  660. background: #ffffff;
  661. border: 1px solid #e0e0e0;
  662. box-sizing: border-box;
  663. border-radius: 4px;
  664. font-weight: normal;
  665. font-size: 48px;
  666. line-height: 100%;
  667. display: flex;
  668. align-items: center;
  669. text-align: center;
  670. color: #2c2c2c;
  671. margin-right: 16px;
  672. }
  673. }
  674. &-right {
  675. display: flex;
  676. flex-direction: column;
  677. justify-content: space-around;
  678. .collectTime {
  679. font-weight: normal;
  680. font-size: 14px;
  681. line-height: 150%;
  682. text-align: right;
  683. color: #2c2c2c;
  684. opacity: 0.5;
  685. margin-bottom: 16px;
  686. }
  687. .order-btn {
  688. display: flex;
  689. justify-content: flex-end;
  690. align-items: center;
  691. height: 40px;
  692. width: 240px;
  693. .price {
  694. font-weight: normal;
  695. font-size: 24px;
  696. line-height: 40px;
  697. color: #2c2c2c;
  698. margin: 0 12px;
  699. }
  700. .goPay {
  701. width: 120px;
  702. height: 40px;
  703. background: #ff9900;
  704. border-radius: 4px;
  705. font-weight: normal;
  706. font-size: 16px;
  707. line-height: 40px;
  708. text-align: center;
  709. text-transform: uppercase;
  710. color: #ffffff;
  711. cursor: pointer;
  712. border: 0;
  713. outline: 0;
  714. &.hasPay {
  715. background: #e5e5e5;
  716. color: #919191;
  717. }
  718. }
  719. }
  720. &.hanzi-right {
  721. justify-content: center;
  722. align-items: flex-start;
  723. padding-right: 24px;
  724. .resource {
  725. font-style: normal;
  726. font-weight: normal;
  727. font-size: 14px;
  728. line-height: 20px;
  729. color: #2c2c2c;
  730. opacity: 0.5;
  731. margin-bottom: 8px;
  732. }
  733. .collectTime {
  734. font-weight: normal;
  735. font-size: 14px;
  736. line-height: 20px;
  737. color: #2c2c2c;
  738. opacity: 0.5;
  739. margin: 0;
  740. &.textLeft {
  741. text-align: left;
  742. }
  743. }
  744. }
  745. }
  746. }
  747. }
  748. }
  749. .paging {
  750. margin-left: 16px;
  751. margin-top: 20px;
  752. }
  753. }
  754. </style>
  755. <style lang="scss">
  756. .OrderManage {
  757. .el-menu.el-menu--horizontal {
  758. border: 0;
  759. padding: 0;
  760. }
  761. .el-menu--horizontal > .el-menu-item {
  762. height: 44px;
  763. font-size: 16px;
  764. line-height: 44px;
  765. text-align: center;
  766. padding: 0;
  767. margin-right: 24px;
  768. }
  769. .el-menu--horizontal > .el-menu-item.is-active {
  770. border-bottom: 1px solid #ff9900;
  771. color: #ff9900;
  772. }
  773. .el-pagination.is-background .el-pager li:not(.disabled).active {
  774. background: #ff9900;
  775. color: #fff;
  776. }
  777. }
  778. </style>