OrderManage.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841
  1. <template>
  2. <!-- 购买记录 -->
  3. <div class="OrderManage personal-center">
  4. <EditTitle title="订单管理" />
  5. <div class="menuBox">
  6. <el-menu
  7. :default-active="activeIndex"
  8. class="el-menu-demo"
  9. mode="horizontal"
  10. @select="handleSelect"
  11. >
  12. <el-menu-item index="-1">全部</el-menu-item>
  13. <el-menu-item index="0">未支付</el-menu-item>
  14. <el-menu-item index="1">已支付</el-menu-item>
  15. <el-menu-item index="2">已取消</el-menu-item>
  16. </el-menu>
  17. <el-select v-model="navValue" placeholder="请选择" @change="changeNav">
  18. <el-option
  19. v-for="(item, index) in navList"
  20. :key="'navList' + index"
  21. :label="item.name"
  22. :value="item.code"
  23. >
  24. </el-option>
  25. </el-select>
  26. </div>
  27. <div v-loading="loading" class="list">
  28. <template v-if="!isEmpty">
  29. <div class="main" v-for="(item, index) in list" :key="'order' + index">
  30. <div class="main-top">
  31. <div class="main-top-left">
  32. <p class="orderTime">{{ item.create_time }}</p>
  33. <div class="orderNo">
  34. 订单编号:<span>{{ item.id }}</span>
  35. </div>
  36. </div>
  37. <template v-if="item.is_pay == 'true' || item.is_cancel == 'true'">
  38. <img
  39. src="../../assets/Personalcenter/del-order.png"
  40. class="del-order"
  41. @click="deleteMyOrder(item.id)"
  42. />
  43. </template>
  44. </div>
  45. <div class="main-content">
  46. <div class="main-content-left" @click="jump(item)">
  47. <div class="coverUrl">
  48. <img :src="item.goods_picture_url" />
  49. </div>
  50. <div class="order-infor">
  51. <p class="name">{{ item.goods_name }}</p>
  52. <Goodstype :item="item" />
  53. <p class="author" v-if="item.goods_person_name_desc">
  54. {{ item.goods_person_name_desc }}
  55. </p>
  56. </div>
  57. </div>
  58. <div class="main-content-middle">
  59. <div class="middle-con">
  60. <span class="middle-con-text">原价</span>
  61. <span
  62. :class="[
  63. 'middle-con-p1',
  64. language_type == 'AR' ? 'textLeft' : '',
  65. ]"
  66. >¥{{ item.price }}</span
  67. >
  68. </div>
  69. <div class="middle-con middle-con-discount">
  70. <span class="middle-con-text">折扣 </span>
  71. <span
  72. :class="[
  73. 'middle-con-p1',
  74. language_type == 'AR' ? 'textLeft' : '',
  75. ]"
  76. >¥{{ item.discount_money }}</span
  77. >
  78. <template v-if="item.discount_code">
  79. <el-tooltip
  80. class="item"
  81. effect="dark"
  82. :content="'已使用优惠码 ' + item.discount_code"
  83. placement="bottom"
  84. >
  85. <img
  86. src="../../assets/Personalcenter/notice.png"
  87. class="notice"
  88. />
  89. </el-tooltip>
  90. </template>
  91. </div>
  92. <div class="middle-con">
  93. <span class="middle-con-text">实付</span>
  94. <span class="middle-con-p1 middle-con-p2"
  95. >¥{{ item.receivables_money }}</span
  96. >
  97. </div>
  98. </div>
  99. <div class="main-content-right">
  100. <p class="order-status" v-if="item.is_pay == 'true'">
  101. <span class="priceText pay">交易成功</span>
  102. </p>
  103. <template v-else>
  104. <div class="order-btn" v-if="item.is_cancel == 'true'">
  105. <button class="goPay" @click="reOrder(item)">重新下单</button>
  106. <span class="priceText cancel-success">交易已取消</span>
  107. </div>
  108. <div class="order-btn" v-if="item.is_cancel == 'false'">
  109. <!-- -->
  110. <template v-if="item.goods_type == 201">
  111. <span
  112. class="pcom_verfiy pcom_verfiy_zhong"
  113. v-if="item.audit_status == 0"
  114. >审核中</span
  115. >
  116. <span
  117. v-if="item.audit_status == 1"
  118. class="pcom_verfiy pcom_verfiy_agree"
  119. >审核通过</span
  120. >
  121. <span
  122. v-if="item.audit_status == 2"
  123. class="pcom_verfiy pcom_verfiy_failed"
  124. >审核未通过</span
  125. >
  126. </template>
  127. <template v-if="item.goods_type != 201">
  128. <button class="goPay" @click="goPay(item)">去付款</button>
  129. </template>
  130. <template v-if="item.goods_type == 201">
  131. <button
  132. class="goPay"
  133. v-if="item.audit_status == 1"
  134. @click="goPay(item)"
  135. >
  136. 去付款
  137. </button>
  138. <button class="goPay noPay_ad" v-else>去付款</button>
  139. </template>
  140. <span class="cancelOrder" @click="cancleMyOrder(item.id)"
  141. >取消订单</span
  142. >
  143. </div>
  144. </template>
  145. </div>
  146. </div>
  147. </div>
  148. </template>
  149. <template v-else>
  150. <Empty :navType="navType" />
  151. </template>
  152. </div>
  153. <div class="paging" v-if="!isEmpty">
  154. <el-pagination
  155. background
  156. layout="prev, pager, next"
  157. :current-page="pageNum"
  158. :total="total"
  159. :page-size="pageSize"
  160. @current-change="changecurrentPage"
  161. />
  162. </div>
  163. <el-dialog
  164. class="orderDialog"
  165. title="商品详情"
  166. :visible.sync="isConfirmorder"
  167. width="720px"
  168. :before-close="closeConfirmorder"
  169. >
  170. <Confirmorder
  171. ref="Confirmorder"
  172. :data="goods_Data"
  173. :changeOrderNumber="changeOrderNumber"
  174. />
  175. </el-dialog>
  176. <el-dialog
  177. class="orderDialog"
  178. top="50px"
  179. :title="'订单号:' + orderNumber"
  180. :visible.sync="isPayment"
  181. width="720px"
  182. :before-close="closePayment"
  183. >
  184. <Payment
  185. :data="goods_Data"
  186. :orderNumber="orderNumber"
  187. :judgePayResult="judgePayResult"
  188. />
  189. </el-dialog>
  190. </div>
  191. </template>
  192. <script>
  193. import EditTitle from "../common/EditTitle.vue";
  194. import { getLearnWebContent } from "@/api/ajax";
  195. import { jumpPath } from "@/utils/jumpPath";
  196. import Empty from "../common/Empty.vue";
  197. import Goodstype from "../common/Goodstype.vue";
  198. import Confirmorder from "../common/Confirmorder.vue";
  199. import Payment from "../common/Payment.vue";
  200. import { mapGetters } from "vuex";
  201. export default {
  202. components: { EditTitle, Empty, Goodstype, Confirmorder, Payment },
  203. props: {},
  204. data() {
  205. //这里存放数据
  206. return {
  207. navType: "5",
  208. isEmpty: false,
  209. activeIndex: "-1",
  210. navValue: "",
  211. navList: [
  212. {
  213. code: "",
  214. name: "全部",
  215. },
  216. {
  217. code: [101],
  218. name: "教材",
  219. },
  220. {
  221. code: [201],
  222. name: "教学课程",
  223. },
  224. {
  225. code: [301, 302, 303],
  226. name: "教培课程",
  227. },
  228. {
  229. code: [401],
  230. name: "教研资料",
  231. },
  232. ],
  233. goods_name: "",
  234. total: 0,
  235. pageSize: 5,
  236. pageNum: 1,
  237. list: [],
  238. loading: false,
  239. orderNumber: "", //订单编号
  240. goods_Data: null,
  241. isPayment: false,
  242. isConfirmorder: false,
  243. };
  244. },
  245. //计算属性 类似于data概念
  246. computed: {
  247. ...mapGetters(["language_type"]),
  248. },
  249. //监控data中数据变化
  250. watch: {},
  251. //方法集合
  252. methods: {
  253. jump(item) {
  254. jumpPath(item);
  255. },
  256. // 选择已购买还是待付款
  257. handleSelect(val) {
  258. let _this = this;
  259. _this.activeIndex = val;
  260. _this.navValue = "";
  261. _this.pageNum = 1;
  262. _this.goods_name = "";
  263. this.getOrderList();
  264. },
  265. changeNav() {
  266. console.log(this.navValue);
  267. this.getOrderList();
  268. },
  269. changecurrentPage(val) {
  270. this.pageNum = val;
  271. this.getOrderList();
  272. },
  273. //分页查询我的订单列表
  274. getOrderList() {
  275. let _this = this;
  276. _this.loading = true;
  277. let MethodName = "page_query-PageQueryMyOrderList";
  278. let data = {
  279. goods_id_list: [], // 商品 ID 列表,空表示查询所有商品
  280. goods_type_list: _this.navValue ? _this.navValue : [], // 商品类型列表,具体参看数据字典 6.9,订单商品类型。空表示查询所有类型
  281. goods_name: _this.goods_name, // 商品名称,模糊查询,空表示查询所有
  282. page_capacity: _this.pageSize, // 每页容量,最大不能超过 200
  283. cur_page: _this.pageNum, // 当前查询第几页,页码序号从 1 开始
  284. };
  285. if (_this.activeIndex == "-1") {
  286. //全部
  287. data.pay_status = -1; //支付状态 -1全部0未支付1已支付
  288. data.cancel_status = -1; //取消状态 -1 全部 0 未取消 1 已取消(只有未支付的订单才会有取消状态)
  289. } else if (_this.activeIndex == "0") {
  290. //未支付
  291. data.pay_status = 0; //支付状态 -1全部0未支付1已支付
  292. data.cancel_status = 0; //取消状态 -1 全部 0 未取消 1 已取消(只有未支付的订单才会有取消状态)
  293. } else if (_this.activeIndex == "1") {
  294. //已支付
  295. data.pay_status = 1; //支付状态 -1全部0未支付1已支付
  296. data.cancel_status = 0; //取消状态 -1 全部 0 未取消 1 已取消(只有未支付的订单才会有取消状态)
  297. } else if (_this.activeIndex == "2") {
  298. //已取消
  299. data.cancel_status = 1; //取消状态 -1 全部 0 未取消 1 已取消(只有未支付的订单才会有取消状态)
  300. }
  301. getLearnWebContent(MethodName, data).then((res) => {
  302. _this.loading = false;
  303. this.total = res.total_count;
  304. if (res.order_list && res.order_list.length > 0) {
  305. let list = res.order_list;
  306. list = list.map((item) => {
  307. // item.price = this.handlePrice(item.price);
  308. // item.discount_money = this.handlePrice(item.discount_money);
  309. // item.receivables_money = this.handlePrice(item.receivables_money);
  310. let obj = this.handleGoodsType(item.goods_type);
  311. item.className = obj.className;
  312. item.goods_type_root_name = obj.rootName;
  313. item.isPop = false;
  314. return item;
  315. });
  316. this.list = list;
  317. console.log(this.list);
  318. this.isEmpty = false;
  319. } else {
  320. this.isEmpty = true;
  321. }
  322. });
  323. },
  324. handlePrice(price) {
  325. let priceArr = price.toString().split(".");
  326. if (priceArr.length > 1 && priceArr[1]) {
  327. } else {
  328. price = priceArr[0] + ".00";
  329. }
  330. return price;
  331. },
  332. handleGoodsType(type) {
  333. let className = "",
  334. rootName = "";
  335. if (type) {
  336. type = type.toString();
  337. if (type.indexOf("10") > -1) {
  338. className = "type10";
  339. rootName = "教材";
  340. }
  341. if (type.indexOf("20") > -1) {
  342. rootName = "教学课程";
  343. className = "type20";
  344. }
  345. if (type.indexOf("30") > -1) {
  346. className = "type30";
  347. rootName = "教培课程";
  348. }
  349. if (type.indexOf("40") > -1) {
  350. className = "type40";
  351. rootName = "教研资料";
  352. }
  353. }
  354. return { className: className, rootName: rootName };
  355. },
  356. handlePrice2(price) {
  357. let str = "";
  358. price = toString("price");
  359. if (price.indexOf(".") > -1) {
  360. let arr = price.split(".");
  361. str = `<span class="num1">${arr[0]}</span>.<span class="num2">${arr[1]}</span>`;
  362. } else {
  363. str = `<span class="num1">${price}</span>.<span class="num2">00</span>`;
  364. }
  365. return str;
  366. },
  367. close(item) {
  368. item.isPop = false;
  369. },
  370. //取消我的订单
  371. cancleMyOrder(id) {
  372. let _this = this;
  373. let MethodName = "order-order_manager-CancelMyOrder";
  374. let data = {
  375. id: id,
  376. };
  377. getLearnWebContent(MethodName, data).then((res) => {
  378. _this.$message.success("取消成功");
  379. _this.handleSelect(this.activeIndex);
  380. });
  381. },
  382. //删除我的订单
  383. deleteMyOrder(id) {
  384. let _this = this;
  385. _this
  386. .$confirm("此操作将永久删除该订单, 是否继续?", "提示", {
  387. confirmButtonText: "确定",
  388. cancelButtonText: "取消",
  389. type: "warning",
  390. })
  391. .then(() => {
  392. _this.setDeleteMyOrder(id);
  393. })
  394. .catch(() => {
  395. this.$message({
  396. type: "info",
  397. message: "已取消删除",
  398. });
  399. });
  400. },
  401. setDeleteMyOrder(id) {
  402. let _this = this;
  403. let MethodName = "order-order_manager-DeleteMyOrder";
  404. let data = {
  405. id: id,
  406. };
  407. getLearnWebContent(MethodName, data).then((res) => {
  408. _this.$message.success("删除成功");
  409. _this.handleSelect(this.activeIndex);
  410. });
  411. },
  412. //获取订单编号
  413. changeOrderNumber(
  414. id,
  415. back_discount_code,
  416. discount_money,
  417. receivables_money
  418. ) {
  419. this.orderNumber = id;
  420. this.isPayment = true;
  421. this.goods_Data.discount_code = back_discount_code;
  422. this.goods_Data.discount_money = discount_money;
  423. this.goods_Data.receivables_money = receivables_money;
  424. },
  425. //未支付订单,去购买
  426. goPay(item) {
  427. this.isPayment = true;
  428. this.goods_Data = item;
  429. this.orderNumber = item.id;
  430. },
  431. //重新下单
  432. reOrder(item) {
  433. this.isConfirmorder = true;
  434. this.goods_Data = item;
  435. },
  436. closeConfirmorder() {
  437. this.isConfirmorder = false;
  438. this.$refs.Confirmorder.clearData();
  439. },
  440. closePayment() {
  441. this.isPayment = false;
  442. this.$refs.Confirmorder.clearData();
  443. },
  444. judgePayResult(bool) {
  445. this.isPayment = false;
  446. this.isConfirmorder = false;
  447. if (bool) {
  448. this.$message.success("支付成功");
  449. } else {
  450. this.$message.warning("支付失败");
  451. }
  452. this.getOrderList();
  453. },
  454. // 处理价格
  455. changePrice(type, item) {
  456. if (item.indexOf(".") != -1) {
  457. if (type == 1) {
  458. return item.split(".")[0];
  459. } else if (type == 2) {
  460. return "." + item.split(".")[1];
  461. }
  462. } else {
  463. if (type == 1) {
  464. return item;
  465. }
  466. }
  467. },
  468. },
  469. //生命周期 - 创建完成(可以访问当前this实例)
  470. created() {},
  471. //生命周期 - 挂载完成(可以访问DOM元素)
  472. mounted() {
  473. this.getOrderList();
  474. },
  475. //生命周期-创建之前
  476. beforeCreated() {},
  477. //生命周期-挂载之前
  478. beforeMount() {},
  479. //生命周期-更新之前
  480. beforUpdate() {},
  481. //生命周期-更新之后
  482. updated() {},
  483. //生命周期-销毁之前
  484. beforeDestory() {},
  485. //生命周期-销毁完成
  486. destoryed() {},
  487. //如果页面有keep-alive缓存功能,这个函数会触发
  488. activated() {},
  489. };
  490. </script>
  491. <style lang="scss" scoped>
  492. /* @import url(); 引入css类 */
  493. .OrderManage {
  494. .menuBox {
  495. padding: 0 32px;
  496. display: flex;
  497. justify-content: space-between;
  498. align-items: center;
  499. margin-bottom: 8px;
  500. }
  501. .list {
  502. width: 100%;
  503. min-height: 221px;
  504. margin-bottom: 20px;
  505. .main {
  506. width: 100%;
  507. box-sizing: border-box;
  508. padding: 0px 0px 0px 32px;
  509. background: #ffffff;
  510. box-shadow: inset 0px -1px 0px rgba(0, 0, 0, 0.15);
  511. &:hover {
  512. background: #fff9f1;
  513. }
  514. &-top {
  515. width: 100%;
  516. height: 53px;
  517. display: flex;
  518. justify-content: space-between;
  519. align-items: center;
  520. border-bottom: 1px rgba(44, 44, 44, 0.15) solid;
  521. padding-right: 24px;
  522. &-left {
  523. display: flex;
  524. justify-content: flex-start;
  525. align-items: center;
  526. .orderTime {
  527. font-weight: bold;
  528. font-size: 14px;
  529. line-height: 150%;
  530. text-align: right;
  531. color: #2c2c2c;
  532. margin-right: 16px;
  533. }
  534. .orderNo {
  535. font-weight: normal;
  536. font-size: 14px;
  537. line-height: 150%;
  538. color: #2c2c2c;
  539. }
  540. }
  541. .del-order {
  542. width: 16px;
  543. height: 16px;
  544. cursor: pointer;
  545. }
  546. }
  547. &-content {
  548. padding: 16px 0 16px;
  549. display: flex;
  550. justify-content: space-between;
  551. align-items: center;
  552. cursor: pointer;
  553. &-left {
  554. display: flex;
  555. justify-content: flex-start;
  556. margin-right: 18px;
  557. .coverUrl {
  558. width: 120px;
  559. height: 120px;
  560. border-radius: 4px;
  561. display: flex;
  562. justify-content: center;
  563. align-items: center;
  564. > img {
  565. max-width: 100%;
  566. max-height: 100%;
  567. }
  568. }
  569. .order-infor {
  570. width: 352px;
  571. display: flex;
  572. flex-direction: column;
  573. justify-content: flex-start;
  574. align-items: flex-start;
  575. margin: 0 16px;
  576. .name {
  577. max-height: 48px;
  578. word-break: break-all;
  579. display: -webkit-box;
  580. -webkit-box-orient: vertical;
  581. -webkit-line-clamp: 2;
  582. text-overflow: ellipsis;
  583. overflow: hidden;
  584. font-weight: normal;
  585. font-size: 16px;
  586. line-height: 150%;
  587. color: #2c2c2c;
  588. }
  589. .goodsType {
  590. width: 64px;
  591. height: 24px;
  592. background: #ffefd8;
  593. border-radius: 4px;
  594. margin: 8px 0;
  595. font-weight: bold;
  596. font-size: 12px;
  597. line-height: 24px;
  598. text-align: center;
  599. &.type10 {
  600. background: #ffefd8;
  601. color: #ff9900;
  602. }
  603. &.type20 {
  604. background: #def6cc;
  605. color: #73b740;
  606. }
  607. &.type30 {
  608. background: #ecf1ff;
  609. color: #5079e2;
  610. }
  611. &.type40 {
  612. background: #eee1ff;
  613. color: #7f43ff;
  614. }
  615. }
  616. .author {
  617. font-weight: normal;
  618. font-size: 14px;
  619. line-height: 150%;
  620. color: #2c2c2c;
  621. opacity: 0.65;
  622. }
  623. }
  624. }
  625. &-middle {
  626. height: 136px;
  627. display: flex;
  628. flex-direction: column;
  629. justify-content: center;
  630. align-items: center;
  631. box-sizing: border-box;
  632. padding: 0 48px 0 32px;
  633. border-width: 0 1px 0 1px;
  634. border-style: solid;
  635. border-color: rgba(44, 44, 44, 0.15);
  636. .middle-con {
  637. position: relative;
  638. width: 100%;
  639. display: flex;
  640. justify-content: center;
  641. align-items: center;
  642. &-discount {
  643. margin: 16px 0;
  644. }
  645. &-text {
  646. font-weight: normal;
  647. font-size: 14px;
  648. line-height: 22px;
  649. text-align: right;
  650. color: #2c2c2c;
  651. margin-right: 8px;
  652. width: 30px;
  653. }
  654. &-p1 {
  655. width: 72px;
  656. font-weight: normal;
  657. font-size: 14px;
  658. line-height: 22px;
  659. text-align: right;
  660. color: #2c2c2c;
  661. &.textLeft {
  662. text-align: left;
  663. }
  664. }
  665. &-p2 {
  666. font-weight: bold;
  667. color: #ff2727;
  668. }
  669. .notice {
  670. position: absolute;
  671. right: -20px;
  672. width: 16px;
  673. height: 16px;
  674. }
  675. }
  676. }
  677. &-right {
  678. display: flex;
  679. flex-direction: column;
  680. justify-content: space-around;
  681. align-items: flex-end;
  682. padding: 0 40px;
  683. .price {
  684. font-weight: bold;
  685. font-size: 16px;
  686. line-height: 150%;
  687. text-align: right;
  688. color: #2c2c2c;
  689. margin-bottom: 8px;
  690. }
  691. .order-status {
  692. display: flex;
  693. justify-content: center;
  694. align-items: center;
  695. > span {
  696. width: 120px;
  697. height: 40px;
  698. font-weight: normal;
  699. font-size: 16px;
  700. line-height: 40px;
  701. text-align: center;
  702. &.noPay {
  703. color: #ff9900;
  704. }
  705. &.pay {
  706. color: #27c579;
  707. }
  708. &.cancel {
  709. color: #888888;
  710. }
  711. }
  712. }
  713. .order-btn {
  714. display: flex;
  715. flex-direction: column;
  716. justify-content: center;
  717. align-items: center;
  718. height: 136px;
  719. .cancelOrder {
  720. height: 40px;
  721. padding: 0 12px;
  722. font-weight: normal;
  723. font-size: 16px;
  724. line-height: 40px;
  725. text-align: center;
  726. color: #2c2c2c;
  727. cursor: pointer;
  728. }
  729. .pcom_verfiy {
  730. font-size: 16px;
  731. line-height: 40px;
  732. text-align: center;
  733. text-transform: uppercase;
  734. margin-bottom: 8px;
  735. &_zhong {
  736. color: #ff9900;
  737. }
  738. &_agree {
  739. color: #27c579;
  740. }
  741. &_failed {
  742. color: #ff3c3c;
  743. }
  744. }
  745. .goPay {
  746. width: 120px;
  747. height: 40px;
  748. background: #ff9900;
  749. border-radius: 4px;
  750. font-weight: normal;
  751. font-size: 16px;
  752. line-height: 40px;
  753. text-align: center;
  754. text-transform: uppercase;
  755. color: #ffffff;
  756. cursor: pointer;
  757. border: 0;
  758. outline: 0;
  759. margin-bottom: 8px;
  760. &.noPay_ad {
  761. background: #e5e5e5;
  762. color: rgba(44, 44, 44, 0.5);
  763. cursor: default;
  764. }
  765. }
  766. .cancel-success {
  767. width: 120px;
  768. height: 40px;
  769. border-radius: 4px;
  770. font-weight: normal;
  771. font-size: 16px;
  772. line-height: 40px;
  773. text-align: center;
  774. text-transform: uppercase;
  775. color: #888888;
  776. cursor: pointer;
  777. border: 0;
  778. outline: 0;
  779. }
  780. }
  781. }
  782. }
  783. }
  784. }
  785. }
  786. </style>
  787. <style lang="scss">
  788. .OrderManage {
  789. .el-menu.el-menu--horizontal {
  790. border: 0;
  791. padding: 0;
  792. }
  793. .el-menu--horizontal > .el-menu-item {
  794. height: 44px;
  795. font-size: 16px;
  796. line-height: 44px;
  797. text-align: center;
  798. padding: 0;
  799. margin-right: 24px;
  800. }
  801. .el-menu--horizontal > .el-menu-item.is-active {
  802. border-bottom: 1px solid #ff9900;
  803. }
  804. .el-pagination.is-background .el-pager li:not(.disabled).active {
  805. background: #ff9900;
  806. color: #fff;
  807. }
  808. .menuBox {
  809. .el-input__inner {
  810. width: 128px;
  811. height: 40px;
  812. background: #ffffff;
  813. border: 1px solid #d9d9d9;
  814. box-sizing: border-box;
  815. border-radius: 4px;
  816. font-size: 16px;
  817. color: #2c2c2c;
  818. }
  819. }
  820. .orderDialog {
  821. .el-dialog__header {
  822. padding: 32px 20px 24px 32px;
  823. .el-dialog__title {
  824. line-height: 150%;
  825. font-size: 20px;
  826. color: #000;
  827. }
  828. }
  829. .el-dialog__body {
  830. padding: 0px 32px 32px 32px;
  831. }
  832. }
  833. }
  834. </style>