index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820
  1. <template>
  2. <view class="order-details pos-order-details">
  3. <view class="header acea-row row-middle">
  4. <view class="state">{{ title }}</view>
  5. <view class="data">
  6. <view class="order-num">订单:{{ orderInfo.order_id }}</view>
  7. <view>
  8. <span class="time">{{ orderInfo._add_time }}</span>
  9. </view>
  10. </view>
  11. </view>
  12. <view class="remarks acea-row row-between-wrapper" v-if="goname != 'looks'">
  13. <span class="iconfont icon-zhinengkefu-"></span>
  14. <input class="line1" style="text-align: left;" :value="
  15. orderInfo.remark ? orderInfo.remark : '订单未备注,点击添加备注信息'
  16. " disabled @click="modify('1')" />
  17. </view>
  18. <view class="orderingUser acea-row row-middle">
  19. <span class="iconfont icon-yonghu2"></span>{{ orderInfo.nickname }}
  20. </view>
  21. <view class="address">
  22. <view class="name">
  23. {{ orderInfo.real_name
  24. }}<span class="phone">{{ orderInfo.user_phone }}</span>
  25. <!-- #ifdef H5 -->
  26. <span class="copy copy-data"
  27. :data-clipboard-text="`${orderInfo.real_name} ${orderInfo.user_phone} ${orderInfo.user_address}`">复制</span>
  28. <!-- #endif -->
  29. <!-- #ifdef MP -->
  30. <span class="copy copy-data"
  31. @click="copyNum(`${orderInfo.real_name} ${orderInfo.user_phone} ${orderInfo.user_address}`)">复制</span>
  32. <!-- #endif -->
  33. </view>
  34. <view>{{ orderInfo.user_address }}</view>
  35. </view>
  36. <view class="line">
  37. <image src="/static/images/line.jpg" />
  38. </view>
  39. <view class="pos-order-goods">
  40. <navigator :url="`/pages/goods_details/index?id=${item.productInfo.id}`" hover-class="none"
  41. class="goods acea-row row-between-wrapper" v-for="(item, index) in orderInfo.cartInfo" :key="index">
  42. <view class="picTxt acea-row row-between-wrapper">
  43. <view class="pictrue">
  44. <image :src="item.productInfo.image" />
  45. </view>
  46. <view class="text acea-row row-between row-column">
  47. <view class="info line2">
  48. {{ item.productInfo.store_name }}
  49. </view>
  50. <view class="attr">{{ item.productInfo.attrInfo.suk }}</view>
  51. </view>
  52. </view>
  53. <view class="money">
  54. <view class="x-money">¥{{ item.productInfo.price }}</view>
  55. <view class="num">x{{ item.cart_num }}</view>
  56. <view class="y-money">¥{{ item.productInfo.ot_price }}</view>
  57. </view>
  58. </navigator>
  59. </view>
  60. <view class="public-total">
  61. 共{{ orderInfo.total_num }}件商品,应支付
  62. <span class="money">¥{{ orderInfo.pay_price }}</span> ( 邮费 ¥{{
  63. orderInfo.pay_postage
  64. }}
  65. )
  66. </view>
  67. <view class="wrapper">
  68. <view class="item acea-row row-between">
  69. <view>订单编号:</view>
  70. <view class="conter acea-row row-middle row-right">
  71. {{ orderInfo.order_id
  72. }}
  73. <!-- #ifdef H5 -->
  74. <span class="copy copy-data" :data-clipboard-text="orderInfo.order_id">复制</span>
  75. <!-- #endif -->
  76. <!-- #ifdef MP -->
  77. <span class="copy copy-data" @click="copyNum(orderInfo.order_id)">复制</span>
  78. <!-- #endif -->
  79. </view>
  80. </view>
  81. <view class="item acea-row row-between">
  82. <view>下单时间:</view>
  83. <view class="conter">{{ orderInfo._add_time }}</view>
  84. </view>
  85. <view class="item acea-row row-between">
  86. <view>支付状态:</view>
  87. <view class="conter">
  88. {{ orderInfo.paid == 1 ? "已支付" : "未支付" }}
  89. </view>
  90. </view>
  91. <view class="item acea-row row-between">
  92. <view>支付方式:</view>
  93. <view class="conter">{{ payType }}</view>
  94. </view>
  95. <view class="item acea-row row-between">
  96. <view>买家留言:</view>
  97. <view class="conter">{{ orderInfo.mark }}</view>
  98. </view>
  99. </view>
  100. <view class="wrapper">
  101. <view class="item acea-row row-between">
  102. <view>支付金额:</view>
  103. <view class="conter">¥{{ orderInfo.total_price }}</view>
  104. </view>
  105. <view class="item acea-row row-between">
  106. <view>优惠券抵扣:</view>
  107. <view class="conter">-¥{{ orderInfo.coupon_price }}</view>
  108. </view>
  109. <view class="item acea-row row-between">
  110. <view>运费:</view>
  111. <view class="conter">¥{{ orderInfo.pay_postage }}</view>
  112. </view>
  113. <view class="actualPay acea-row row-right">
  114. 实付款:<span class="money">¥{{ orderInfo.pay_price }}</span>
  115. </view>
  116. </view>
  117. <view class="wrapper" v-if="
  118. orderInfo.delivery_type != 'fictitious' && orderInfo._status._type === 2
  119. ">
  120. <view class="item acea-row row-between">
  121. <view>配送方式:</view>
  122. <view class="conter" v-if="orderInfo.delivery_type === 'express'">
  123. 快递
  124. </view>
  125. <view class="conter" v-if="orderInfo.delivery_type === 'send'">送货</view>
  126. </view>
  127. <view class="item acea-row row-between">
  128. <view v-if="orderInfo.delivery_type === 'express'">快递公司:</view>
  129. <view v-if="orderInfo.delivery_type === 'send'">送货人:</view>
  130. <view class="conter">{{ orderInfo.delivery_name }}</view>
  131. </view>
  132. <view class="item acea-row row-between">
  133. <view v-if="orderInfo.delivery_type === 'express'">快递单号:</view>
  134. <view v-if="orderInfo.delivery_type === 'send'">送货人电话:</view>
  135. <view class="conter">
  136. {{ orderInfo.delivery_id}}
  137. <!-- #ifdef H5 -->
  138. <span class="copy copy-data" :data-clipboard-text="orderInfo.delivery_id">复制</span>
  139. <!-- #endif -->
  140. <!-- #ifdef MP -->
  141. <span class="copy copy-data" @click="copyNum(orderInfo.delivery_id)">复制</span>
  142. <!-- #endif -->
  143. </view>
  144. </view>
  145. </view>
  146. <view style="height:120upx;"></view>
  147. <view class="footer acea-row row-right row-middle" v-if="goname != 'looks'">
  148. <view class="more"></view>
  149. <view class="bnt cancel" @click="modify('0')" v-if="types == 0">
  150. 一键改价
  151. </view>
  152. <view class="bnt cancel" @click="modify('0')" v-if="types == -1">
  153. 立即退款
  154. </view>
  155. <view class="bnt cancel" @click="modify('1')">订单备注</view>
  156. <view class="bnt cancel" v-if="orderInfo.pay_type === 'offline' && orderInfo.paid === 0"
  157. @click="offlinePay">
  158. 确认付款
  159. </view>
  160. <navigator class="bnt delivery"
  161. v-if="types == 1 && orderInfo.shipping_type === 1 && (orderInfo.pinkStatus === null || orderInfo.pinkStatus === 2)"
  162. :url="'/pages/admin/delivery/index?id='+orderInfo.order_id">去发货</navigator>
  163. </view>
  164. <PriceChange :change="change" :orderInfo="orderInfo" v-on:closechange="changeclose($event)"
  165. v-on:savePrice="savePrice" :status="status"></PriceChange>
  166. </view>
  167. </template>
  168. <script>
  169. import PriceChange from "@/components/PriceChange";
  170. // #ifdef H5
  171. import ClipboardJS from "@/plugin/clipboard/clipboard.js";
  172. // #endif
  173. import {
  174. getAdminOrderDetail,
  175. getAdminRefundOrderDetail,
  176. setAdminOrderPrice,
  177. setAdminOrderRemark,
  178. setAdminRefundRemark,
  179. setOfflinePay,
  180. setOrderRefund,
  181. } from "@/api/admin";
  182. // import { required, num } from "@utils/validate";
  183. // import { validatorDefaultCatch } from "@utils/dialog";
  184. import {
  185. isMoney
  186. } from '@/utils/validate.js'
  187. export default {
  188. name: "AdminOrder",
  189. components: {
  190. PriceChange
  191. },
  192. props: {},
  193. data: function() {
  194. return {
  195. order: false,
  196. change: false,
  197. order_id: "",
  198. orderInfo: {
  199. _status: {}
  200. },
  201. status: "",
  202. title: "",
  203. payType: "",
  204. types: "",
  205. order_type: "",
  206. clickNum: 1,
  207. goname: ''
  208. };
  209. },
  210. watch: {
  211. "$route.params.oid": function(newVal) {
  212. let that = this;
  213. if (newVal != undefined) {
  214. that.order_id = newVal;
  215. that.getIndex();
  216. }
  217. }
  218. },
  219. onShow() {
  220. console.log('111')
  221. this.getIndex();
  222. },
  223. onLoad(option) {
  224. let self = this
  225. this.order_id = option.id;
  226. this.goname = option.goname
  227. this.order_type = option.types
  228. // #ifdef H5
  229. this.$nextTick(function() {
  230. var clipboard = new ClipboardJS('.copy-data');
  231. // var copybtn = document.getElementsByClassName("copy-data");
  232. // var clipboard = new Clipboard(copybtn);
  233. clipboard.on('success', function(e) {
  234. self.$util.Tips({
  235. title: '复制成功'
  236. })
  237. });
  238. clipboard.on('error', function(e) {
  239. self.$util.Tips({
  240. title: '复制失败'
  241. })
  242. });
  243. });
  244. // #endif
  245. },
  246. methods: {
  247. more: function() {
  248. this.order = !this.order;
  249. },
  250. modify(status) {
  251. this.change = true;
  252. this.status = status;
  253. },
  254. changeclose: function(msg) {
  255. this.change = msg;
  256. },
  257. getIndex: function() {
  258. let that = this;
  259. let fn = this.order_type == -3 ? getAdminRefundOrderDetail : getAdminOrderDetail
  260. fn(that.order_id).then(
  261. res => {
  262. that.orderInfo = res.data;
  263. that.types = res.data._status._type;
  264. that.title = res.data._status._title;
  265. that.payType = res.data._status._payType;
  266. },
  267. err => {
  268. // that.$util.Tips({
  269. // title: err
  270. // }, {
  271. // tab: 3,
  272. // url: 1
  273. // });
  274. }
  275. );
  276. },
  277. async savePrice(opt) {
  278. let that = this,
  279. data = {},
  280. price = opt.price,
  281. refund_price = opt.refund_price,
  282. refund_status = that.orderInfo.refund_status,
  283. remark = opt.remark;
  284. data.order_id = that.orderInfo.order_id;
  285. if (that.status == 0 && refund_status === 0) {
  286. if (!isMoney(price)) {
  287. return that.$util.Tips({
  288. title: '请输入正确的金额'
  289. });
  290. }
  291. data.price = price;
  292. setAdminOrderPrice(data).then(
  293. function() {
  294. that.change = false;
  295. that.$util.Tips({
  296. title: '改价成功',
  297. icon: 'success'
  298. })
  299. that.getIndex();
  300. },
  301. function() {
  302. that.change = false;
  303. that.$util.Tips({
  304. title: '改价失败',
  305. icon: 'none'
  306. })
  307. }
  308. );
  309. } else if (that.status == 0 && refund_status === 1) {
  310. if (!isMoney(refund_price)) {
  311. return that.$util.Tips({
  312. title: '请输入正确的金额'
  313. });
  314. }
  315. data.price = refund_price;
  316. data.type = opt.type;
  317. setOrderRefund(data).then(
  318. res => {
  319. that.change = false;
  320. that.$util.Tips({
  321. title: res.msg
  322. });
  323. that.getIndex();
  324. },
  325. err => {
  326. that.change = false;
  327. that.$util.Tips({
  328. title: err
  329. });
  330. }
  331. );
  332. } else {
  333. if (!remark) {
  334. return this.$util.Tips({
  335. title: '请输入备注'
  336. })
  337. }
  338. data.remark = remark;
  339. let obj
  340. if (that.order_type == -3) {
  341. obj = setAdminRefundRemark(data);
  342. } else {
  343. obj = setAdminOrderRemark(data);
  344. }
  345. obj.then(
  346. res => {
  347. that.change = false;
  348. this.$util.Tips({
  349. title: res.msg,
  350. icon: 'success'
  351. })
  352. that.getIndex();
  353. },
  354. err => {
  355. that.change = false;
  356. that.$util.Tips({
  357. title: err
  358. });
  359. }
  360. );
  361. }
  362. },
  363. offlinePay: function() {
  364. setOfflinePay({
  365. order_id: this.orderInfo.order_id
  366. }).then(
  367. res => {
  368. this.$util.Tips({
  369. title: res.msg,
  370. icon: 'success'
  371. });
  372. this.getIndex();
  373. },
  374. err => {
  375. this.$util.Tips({
  376. title: err
  377. });
  378. }
  379. );
  380. },
  381. // #ifdef MP
  382. copyNum(id) {
  383. uni.setClipboardData({
  384. data: id,
  385. success: function() {}
  386. });
  387. },
  388. // #endif
  389. // #ifdef H5
  390. webCopy(item, index) {
  391. let items = item
  392. let indexs = index
  393. let self = this
  394. if (self.clickNum == 1) {
  395. self.clickNum += 1
  396. self.webCopy(items, indexs)
  397. }
  398. }
  399. // #endif
  400. }
  401. };
  402. </script>
  403. <style>
  404. /*商户管理订单详情*/
  405. .pos-order-details .header {
  406. background: linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  407. background: -webkit-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  408. background: -moz-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  409. }
  410. .pos-order-details .header .state {
  411. font-size: 36upx;
  412. color: #fff;
  413. }
  414. .pos-order-details .header .data {
  415. margin-left: 35upx;
  416. font-size: 28upx;
  417. }
  418. .pos-order-details .header .data .order-num {
  419. font-size: 30upx;
  420. margin-bottom: 8upx;
  421. }
  422. .pos-order-details .remarks {
  423. width: 100%;
  424. height: 86upx;
  425. background-color: #fff;
  426. padding: 0 30upx;
  427. }
  428. .pos-order-details .remarks .iconfont {
  429. font-size: 40upx;
  430. color: #2a7efb;
  431. }
  432. .pos-order-details .remarks input {
  433. width: 630upx;
  434. height: 100%;
  435. font-size: 30upx;
  436. }
  437. .pos-order-details .remarks input::placeholder {
  438. color: #666;
  439. }
  440. .pos-order-details .orderingUser {
  441. font-size: 26upx;
  442. color: #282828;
  443. padding: 0 30upx;
  444. height: 67upx;
  445. background-color: #fff;
  446. margin-top: 16upx;
  447. border-bottom: 1px solid #f5f5f5;
  448. }
  449. .pos-order-details .orderingUser .iconfont {
  450. font-size: 40upx;
  451. color: #2a7efb;
  452. margin-right: 15upx;
  453. }
  454. .pos-order-details .address {
  455. margin-top: 0;
  456. }
  457. .pos-order-details .pos-order-goods {
  458. margin-top: 17upx;
  459. }
  460. .pos-order-details .footer .more {
  461. font-size: 27upx;
  462. color: #aaa;
  463. width: 100upx;
  464. height: 64upx;
  465. text-align: center;
  466. line-height: 64upx;
  467. margin-right: 25upx;
  468. position: relative;
  469. }
  470. .pos-order-details .footer .delivery {
  471. background: linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  472. background: -webkit-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  473. background: -moz-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  474. }
  475. .pos-order-details .footer .more .order .arrow {
  476. width: 0;
  477. height: 0;
  478. border-left: 11upx solid transparent;
  479. border-right: 11upx solid transparent;
  480. border-top: 20upx solid #e5e5e5;
  481. position: absolute;
  482. left: 15upx;
  483. bottom: -18upx;
  484. }
  485. .pos-order-details .footer .more .order .arrow:before {
  486. content: '';
  487. width: 0;
  488. height: 0;
  489. border-left: 9upx solid transparent;
  490. border-right: 9upx solid transparent;
  491. border-top: 19upx solid #fff;
  492. position: absolute;
  493. left: -10upx;
  494. bottom: 0;
  495. }
  496. .pos-order-details .footer .more .order {
  497. width: 200upx;
  498. background-color: #fff;
  499. border: 1px solid #eee;
  500. border-radius: 10upx;
  501. position: absolute;
  502. top: -200upx;
  503. z-index: 9;
  504. }
  505. .pos-order-details .footer .more .order .item {
  506. height: 77upx;
  507. line-height: 77upx;
  508. }
  509. .pos-order-details .footer .more .order .item~.item {
  510. border-top: 1px solid #f5f5f5;
  511. }
  512. .pos-order-details .footer .more .moreName {
  513. width: 100%;
  514. height: 100%;
  515. }
  516. /*订单详情*/
  517. .order-details .header {
  518. padding: 0 30upx;
  519. height: 150upx;
  520. }
  521. .order-details .header.on {
  522. background-color: #666 !important;
  523. }
  524. .order-details .header .pictrue {
  525. width: 110upx;
  526. height: 110upx;
  527. }
  528. .order-details .header .pictrue image {
  529. width: 100%;
  530. height: 100%;
  531. }
  532. .order-details .header .data {
  533. color: rgba(255, 255, 255, 0.8);
  534. font-size: 24upx;
  535. margin-left: 27upx;
  536. }
  537. .order-details .header.on .data {
  538. margin-left: 0;
  539. }
  540. .order-details .header .data .state {
  541. font-size: 30upx;
  542. font-weight: bold;
  543. color: #fff;
  544. margin-bottom: 7upx;
  545. }
  546. /* .order-details .header .data .time{margin-left:20upx;} */
  547. .order-details .nav {
  548. background-color: #fff;
  549. font-size: 26upx;
  550. color: #282828;
  551. padding: 25upx 0;
  552. }
  553. .order-details .nav .navCon {
  554. padding: 0 40upx;
  555. }
  556. .order-details .nav .navCon .on {
  557. font-weight: bold;
  558. color: #e93323;
  559. }
  560. .order-details .nav .progress {
  561. padding: 0 65upx;
  562. margin-top: 10upx;
  563. }
  564. .order-details .nav .progress .line {
  565. width: 100upx;
  566. height: 2upx;
  567. background-color: #939390;
  568. }
  569. .order-details .nav .progress .iconfont {
  570. font-size: 25upx;
  571. color: #939390;
  572. margin-top: -2upx;
  573. width: 30upx;
  574. height: 30upx;
  575. line-height: 33upx;
  576. text-align: center;
  577. margin-right: 0 !important;
  578. }
  579. .order-details .address {
  580. font-size: 26upx;
  581. color: #868686;
  582. background-color: #fff;
  583. padding: 25upx 30upx 30upx 30upx;
  584. }
  585. .order-details .address .name {
  586. font-size: 30upx;
  587. color: #282828;
  588. margin-bottom: 0.1rem;
  589. }
  590. .order-details .address .name .phone {
  591. margin-left: 40upx;
  592. }
  593. .order-details .line {
  594. width: 100%;
  595. height: 3upx;
  596. }
  597. .order-details .line image {
  598. width: 100%;
  599. height: 100%;
  600. display: block;
  601. }
  602. .order-details .wrapper {
  603. background-color: #fff;
  604. margin-top: 12upx;
  605. padding: 30upx;
  606. }
  607. .order-details .wrapper .item {
  608. font-size: 28upx;
  609. color: #282828;
  610. }
  611. .order-details .wrapper .item~.item {
  612. margin-top: 20upx;
  613. }
  614. .order-details .wrapper .item .conter {
  615. color: #868686;
  616. width: 500upx;
  617. text-align: right;
  618. }
  619. .order-details .wrapper .item .conter .copy {
  620. font-size: 20rpx;
  621. color: #333;
  622. border-radius: 3rpx;
  623. border: 1px solid #666;
  624. padding: 0rpx 15rpx;
  625. margin-left: 24rpx;
  626. height: 40rpx;
  627. }
  628. .order-details .wrapper .actualPay {
  629. border-top: 1upx solid #eee;
  630. margin-top: 30upx;
  631. padding-top: 30upx;
  632. }
  633. .order-details .wrapper .actualPay .money {
  634. font-weight: bold;
  635. font-size: 30upx;
  636. color: #e93323;
  637. }
  638. .order-details .footer {
  639. width: 100%;
  640. height: 100upx;
  641. position: fixed;
  642. bottom: 0;
  643. left: 0;
  644. background-color: #fff;
  645. padding: 0 30upx;
  646. border-top: 1px solid #eee;
  647. }
  648. .order-details .footer .bnt {
  649. width: auto;
  650. height: 60upx;
  651. line-height: 60upx;
  652. text-align: center;
  653. line-height: upx;
  654. border-radius: 50upx;
  655. color: #fff;
  656. font-size: 27upx;
  657. padding: 0 3%;
  658. }
  659. .order-details .footer .bnt.cancel {
  660. color: #aaa;
  661. border: 1px solid #ddd;
  662. }
  663. .order-details .footer .bnt.default {
  664. color: #444;
  665. border: 1px solid #444;
  666. }
  667. .order-details .footer .bnt~.bnt {
  668. margin-left: 18upx;
  669. }
  670. .pos-order-goods {
  671. padding: 0 30upx;
  672. background-color: #fff;
  673. }
  674. .pos-order-goods .goods {
  675. height: 185upx;
  676. }
  677. .pos-order-goods .goods~.goods {
  678. border-top: 1px dashed #e5e5e5;
  679. }
  680. .pos-order-goods .goods .picTxt {
  681. width: 515upx;
  682. }
  683. .pos-order-goods .goods .picTxt .pictrue {
  684. width: 130upx;
  685. height: 130upx;
  686. }
  687. .pos-order-goods .goods .picTxt .pictrue image {
  688. width: 100%;
  689. height: 100%;
  690. border-radius: 6upx;
  691. }
  692. .pos-order-goods .goods .picTxt .text {
  693. width: 365upx;
  694. display: flex;
  695. justify-content: space-between;
  696. flex-direction: column;
  697. height: 130upx;
  698. }
  699. .pos-order-goods .goods .picTxt .text .info {
  700. font-size: 28upx;
  701. color: #282828;
  702. }
  703. .pos-order-goods .goods .picTxt .text .attr {
  704. font-size: 24upx;
  705. color: #999;
  706. width: 100%;
  707. overflow: hidden;
  708. white-space: nowrap;
  709. text-overflow: ellipsis;
  710. }
  711. .pos-order-goods .goods .money {
  712. width: 164upx;
  713. text-align: right;
  714. font-size: 28upx;
  715. }
  716. .pos-order-goods .goods .money .x-money {
  717. color: #282828;
  718. }
  719. .pos-order-goods .goods .money .num {
  720. color: #ff9600;
  721. margin: 5upx 0;
  722. }
  723. .pos-order-goods .goods .money .y-money {
  724. color: #999;
  725. text-decoration: line-through;
  726. }
  727. .public-total {
  728. font-size: 28upx;
  729. color: #282828;
  730. border-top: 1px solid #eee;
  731. height: 92upx;
  732. line-height: 92upx;
  733. text-align: right;
  734. padding: 0 30upx;
  735. background-color: #fff;
  736. }
  737. .public-total .money {
  738. color: #ff4c3c;
  739. }
  740. .copy-data {
  741. font-size: 10px;
  742. color: #333;
  743. -webkit-border-radius: 1px;
  744. border-radius: 1px;
  745. border: 1px solid #666;
  746. padding: 0px 7px;
  747. margin-left: 12px;
  748. height: 20px;
  749. }
  750. </style>