Detail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  1. <template>
  2. <div>
  3. <!-- 加载中 -->
  4. <a-spin :spinning="isLoading" />
  5. <!-- 订单内容 -->
  6. <div v-if="!isLoading" class="order-content">
  7. <!-- 订单进度步骤条 -->
  8. <a-card :bordered="false">
  9. <div class="order-progress" :class="`progress-${progress}`">
  10. <ul>
  11. <li>
  12. <span>下单时间</span>
  13. <div class="tip">{{ record.create_time }}</div>
  14. </li>
  15. <li>
  16. <span>付款</span>
  17. <div
  18. v-if="record.pay_status == PayStatusEnum.SUCCESS.value"
  19. class="tip"
  20. >付款于 {{ record.pay_time }}</div>
  21. </li>
  22. <li>
  23. <span>发货</span>
  24. <div
  25. v-if="record.delivery_status != DeliveryStatusEnum.NOT_DELIVERED.value"
  26. class="tip"
  27. >发货于 {{ record.delivery_time }}</div>
  28. </li>
  29. <li>
  30. <span>收货</span>
  31. <div
  32. v-if="record.receipt_status == ReceiptStatusEnum.RECEIVED.value"
  33. class="tip"
  34. >收货于 {{ record.receipt_time }}</div>
  35. </li>
  36. <li>
  37. <span>完成</span>
  38. <div
  39. v-if="record.order_status == OrderStatusEnum.COMPLETED.value"
  40. class="tip"
  41. >完成于 {{ record.receipt_time }}</div>
  42. </li>
  43. </ul>
  44. </div>
  45. </a-card>
  46. <!-- 订单信息 -->
  47. <a-card class="mt-20" :bordered="false">
  48. <!-- 订单操作 -->
  49. <template v-if="record.order_status != OrderStatusEnum.CANCELLED.value">
  50. <div class="ant-descriptions-title">订单操作</div>
  51. <!-- 提示栏 -->
  52. <div class="alerts mt-10 mb-15">
  53. <a-alert
  54. v-if="record.order_status== OrderStatusEnum.APPLY_CANCEL.value"
  55. message="当前买家已付款并申请取消订单,请审核是否同意,如同意则自动退回付款金额(原路退款)并关闭订单。"
  56. banner
  57. />
  58. </div>
  59. <!-- 操作栏 -->
  60. <div class="actions clearfix mt-10">
  61. <div
  62. v-if="$module('order-updatePrice') &&$auth('/order/detail.updatePrice')"
  63. class="action-item"
  64. >
  65. <a-button
  66. v-if="record.pay_status == PayStatusEnum.PENDING.value"
  67. @click="handleUpdatePrice"
  68. >订单改价</a-button>
  69. </div>
  70. <div class="action-item" v-if="$auth('/order/list/all.deliver')">
  71. <a-button
  72. v-if="(
  73. record.pay_status == PayStatusEnum.SUCCESS.value
  74. && inArray(record.delivery_type, [ DeliveryTypeEnum.EXPRESS.value, DeliveryTypeEnum.NOTHING.value])
  75. && record.delivery_status != DeliveryStatusEnum.DELIVERED.value
  76. && !inArray(record.order_status, [OrderStatusEnum.CANCELLED.value, OrderStatusEnum.APPLY_CANCEL.value])
  77. )"
  78. type="primary"
  79. @click="handleDelivery"
  80. >发货</a-button>
  81. </div>
  82. <div class="action-item" v-if="$auth('/order/list/all.cancel')">
  83. <a-button
  84. v-if="record.order_status == OrderStatusEnum.APPLY_CANCEL.value"
  85. type="primary"
  86. @click="handleCancel"
  87. >审核取消订单</a-button>
  88. </div>
  89. <div class="action-item" v-if="$auth('/order/detail.merchantRemark')">
  90. <a-button @click="handleMerchantRemark">商家备注</a-button>
  91. </div>
  92. <div
  93. v-if="$module('order-printer') && $auth('/order/detail.printer')"
  94. class="action-item"
  95. >
  96. <a-button @click="handlePrinter">打印小票</a-button>
  97. </div>
  98. </div>
  99. <a-divider class="o-divider" />
  100. </template>
  101. <!-- 订单信息 -->
  102. <a-descriptions title="订单信息">
  103. <a-descriptions-item label="订单号">{{ record.order_no }}</a-descriptions-item>
  104. <a-descriptions-item label="实付款金额">¥{{ record.pay_price }}</a-descriptions-item>
  105. <a-descriptions-item label="支付方式">
  106. <a-tag
  107. color="green"
  108. v-if="record.pay_method"
  109. >{{ PaymentMethodEnum[record.pay_method].name }}</a-tag>
  110. <span v-else>--</span>
  111. </a-descriptions-item>
  112. <a-descriptions-item label="配送方式">
  113. <a-tag color="green">{{ DeliveryTypeEnum[record.delivery_type].name }}</a-tag>
  114. </a-descriptions-item>
  115. <a-descriptions-item label="运费金额">¥{{ record.express_price }}</a-descriptions-item>
  116. <a-descriptions-item label="订单状态">
  117. <a-tag
  118. :color="renderOrderStatusColor(record.order_status)"
  119. >{{ OrderStatusEnum[record.order_status].name }}</a-tag>
  120. </a-descriptions-item>
  121. <a-descriptions-item label="买家信息">
  122. <a-tooltip>
  123. <template slot="title">会员ID: {{ record.user ? record.user.user_id : '-' }}</template>
  124. <span class="c-p">{{ record.user ? record.user.nick_name: '-' }}</span>
  125. </a-tooltip>
  126. </a-descriptions-item>
  127. <a-descriptions-item label="买家留言">
  128. <span>{{ record.buyer_remark ? record.buyer_remark :'-' }}</span>
  129. </a-descriptions-item>
  130. <a-descriptions-item label="商家备注">
  131. <span>{{ record.merchant_remark ? record.merchant_remark :'-' }}</span>
  132. </a-descriptions-item>
  133. <a-descriptions-item v-if="record.trade" label="第三方支付订单号">
  134. <span>{{ record.trade ? record.trade.out_trade_no :'-' }}</span>
  135. </a-descriptions-item>
  136. <a-descriptions-item v-if="record.trade" label="支付流水号">
  137. <span>{{ record.trade ? record.trade.trade_no :'-' }}</span>
  138. </a-descriptions-item>
  139. </a-descriptions>
  140. </a-card>
  141. <!-- 商品信息 -->
  142. <a-card class="mt-20" :bordered="false">
  143. <div class="ant-descriptions-title">订单商品</div>
  144. <div class="goods-list">
  145. <a-table
  146. rowKey="order_goods_id"
  147. :columns="goodsColumns"
  148. :dataSource="record.goods"
  149. :pagination="false"
  150. >
  151. <!-- 商品信息 -->
  152. <template slot="goodsInfo" slot-scope="text, item">
  153. <GoodsItem
  154. :data="{
  155. image: item.goods_image,
  156. imageAlt: '商品图片',
  157. title: item.goods_name,
  158. goodsProps: item.goods_props
  159. }"
  160. />
  161. </template>
  162. <!-- 商品编码 -->
  163. <span slot="goods_no" slot-scope="text">{{ text ? text : '--' }}</span>
  164. <!-- 单价 -->
  165. <template slot="goods_price" slot-scope="text, item">
  166. <p :class="{ 'f-through': item.is_user_grade }">¥{{ text }}</p>
  167. <p v-if="item.is_user_grade">
  168. <a-tooltip>
  169. <template slot="title">
  170. <span class="f-13">会员等级折扣价</span>
  171. </template>
  172. <strong>会员价:</strong>
  173. <span>¥{{ item.grade_goods_price }}</span>
  174. </a-tooltip>
  175. </p>
  176. </template>
  177. <!-- 购买数量 -->
  178. <span slot="total_num" slot-scope="text">x{{ text }}</span>
  179. <!-- 商品总价 -->
  180. <span slot="total_price" slot-scope="text">¥{{ text }}</span>
  181. </a-table>
  182. <!-- 订单价格明细 -->
  183. <div class="order-price clearfix">
  184. <table class="fl-r">
  185. <tbody>
  186. <tr>
  187. <td>订单金额:</td>
  188. <td>¥{{ record.total_price }}</td>
  189. </tr>
  190. <tr v-if="record.coupon_money > 0">
  191. <td>优惠券抵扣:</td>
  192. <td>-¥{{ record.coupon_money }}</td>
  193. </tr>
  194. <tr v-if="record.points_money > 0">
  195. <td>积分抵扣:</td>
  196. <td>-¥{{ record.points_money }}</td>
  197. </tr>
  198. <tr v-if="record.update_price.value != 0">
  199. <td>商家改价:</td>
  200. <td>{{ record.update_price.symbol }}¥{{ record.update_price.value }}</td>
  201. </tr>
  202. <tr>
  203. <td>运费金额:</td>
  204. <td>+¥{{ record.express_price }}</td>
  205. </tr>
  206. <tr>
  207. <td>实付款金额:</td>
  208. <td>
  209. <strong class="c-p f-15">¥{{ record.pay_price }}</strong>
  210. </td>
  211. </tr>
  212. </tbody>
  213. </table>
  214. </div>
  215. </div>
  216. </a-card>
  217. <template v-if="record.order_type == OrderTypeEnum.PHYSICAL.value">
  218. <!-- 物流配送信息 -->
  219. <a-card
  220. v-if="(
  221. record.pay_status == PayStatusEnum.SUCCESS.value
  222. && record.delivery_status != DeliveryStatusEnum.NOT_DELIVERED.value
  223. && !inArray(record.order_status, [OrderStatusEnum.CANCELLED.value, OrderStatusEnum.APPLY_CANCEL.value])
  224. )"
  225. class="mt-20"
  226. :bordered="false"
  227. >
  228. <!-- 此处仅用于兼容旧物流数据 -->
  229. <a-descriptions v-if="!record.delivery.length && record.express" title="配送信息">
  230. <a-descriptions-item label="物流公司">{{ record.express.express_name }}</a-descriptions-item>
  231. <a-descriptions-item label="物流单号">{{ record.express_no }}</a-descriptions-item>
  232. <a-descriptions-item label="发货状态">
  233. <a-tag
  234. :color="record.delivery_status == DeliveryStatusEnum.DELIVERED.value ? 'green' : ''"
  235. >{{ DeliveryStatusEnum[record.delivery_status].name }}</a-tag>
  236. </a-descriptions-item>
  237. <a-descriptions-item label="发货时间">{{ record.delivery_time }}</a-descriptions-item>
  238. </a-descriptions>
  239. <!-- 新物流数据 (来源于发货单) -->
  240. <div v-if="record.delivery.length">
  241. <a-descriptions title="发货信息"></a-descriptions>
  242. <a-tabs :default-active-key="1" :class="{ 'hide-bar': record.delivery.length < 2 }">
  243. <a-tab-pane
  244. :tab="`包裹${index + 1}`"
  245. v-for="(item, index) in record.delivery"
  246. :key="index + 1"
  247. >
  248. <a-descriptions>
  249. <a-descriptions-item label="发货状态">
  250. <a-tag color="green">已发货</a-tag>
  251. </a-descriptions-item>
  252. <a-descriptions-item
  253. label="物流公司"
  254. >{{ item.delivery_method == DeliveryMethodEnum.NORMAL.value ? '无需物流' : item.express.express_name }}</a-descriptions-item>
  255. <a-descriptions-item label="物流单号">{{ item.express_no ? item.express_no : '--' }}</a-descriptions-item>
  256. <a-descriptions-item
  257. v-if="item.delivery_method != DeliveryMethodEnum.NORMAL.value"
  258. label="物流跟踪"
  259. >
  260. <a href="javascript:void(0);" @click="handleShowExpress(index)">点击查看</a>
  261. </a-descriptions-item>
  262. </a-descriptions>
  263. <!-- 发货商品列表 -->
  264. <div class="deliver-goods-list clearfix">
  265. <div class="goods-item" v-for="(goods, idx) in item.goods" :key="idx">
  266. <a-tooltip>
  267. <template slot="title">{{ goods.goods.goods_name }}</template>
  268. <img class="goods-img" :src="goods.goods.goods_image" alt="商品图片" />
  269. <div class="title">共{{ goods.delivery_num }}件</div>
  270. </a-tooltip>
  271. </div>
  272. </div>
  273. </a-tab-pane>
  274. </a-tabs>
  275. </div>
  276. </a-card>
  277. <!-- 买家收货信息 -->
  278. <a-card
  279. v-if="record.delivery_type == DeliveryTypeEnum.EXPRESS.value"
  280. class="mt-20"
  281. :bordered="false"
  282. >
  283. <!-- 收货信息 -->
  284. <a-descriptions title="买家收货地址">
  285. <a-descriptions-item label="收货人姓名">{{ record.address.name }}</a-descriptions-item>
  286. <a-descriptions-item label="联系电话">{{ record.address.phone }}</a-descriptions-item>
  287. <a-descriptions-item label="收货地区">
  288. {{ record.address.region.province }}
  289. {{ record.address.region.city }}
  290. {{ record.address.region.region }}
  291. </a-descriptions-item>
  292. <a-descriptions-item label="详细地址">{{ record.address.detail }}</a-descriptions-item>
  293. </a-descriptions>
  294. </a-card>
  295. </template>
  296. </div>
  297. <DeliveryForm ref="DeliveryForm" @handleSubmit="handleRefresh" />
  298. <CancelForm ref="CancelForm" @handleSubmit="handleRefresh" />
  299. <PrinterForm ref="PrinterForm" @handleSubmit="handleRefresh" />
  300. <PriceForm ref="PriceForm" @handleSubmit="handleRefresh" />
  301. <RemarkForm ref="RemarkForm" @handleSubmit="handleRefresh" />
  302. <ExpressForm ref="ExpressForm" />
  303. </div>
  304. </template>
  305. <script>
  306. import { inArray } from '@/utils/util'
  307. import * as Api from '@/api/order'
  308. import { GoodsItem, UserItem } from '@/components/Table'
  309. import { DeliveryForm, CancelForm, PrinterForm, PriceForm, RemarkForm, ExpressForm } from './modules'
  310. import {
  311. OrderTypeEnum,
  312. DeliveryStatusEnum,
  313. DeliveryTypeEnum,
  314. OrderSourceEnum,
  315. OrderStatusEnum,
  316. PayStatusEnum,
  317. ReceiptStatusEnum
  318. } from '@/common/enum/order'
  319. import { PaymentMethodEnum } from '@/common/enum/payment'
  320. import { DeliveryMethodEnum } from '@/common/enum/order/delivery'
  321. // 商品内容表头
  322. const goodsColumns = [
  323. {
  324. title: '商品信息',
  325. scopedSlots: { customRender: 'goodsInfo' }
  326. },
  327. {
  328. title: '商品编码',
  329. dataIndex: 'goods_no',
  330. scopedSlots: { customRender: 'goods_no' }
  331. },
  332. {
  333. title: '重量(Kg)',
  334. dataIndex: 'goods_weight',
  335. scopedSlots: { customRender: 'goods_weight' }
  336. },
  337. {
  338. title: '单价',
  339. dataIndex: 'goods_price',
  340. scopedSlots: { customRender: 'goods_price' }
  341. },
  342. {
  343. title: '购买数量',
  344. dataIndex: 'total_num',
  345. scopedSlots: { customRender: 'total_num' }
  346. },
  347. {
  348. title: '商品总价',
  349. dataIndex: 'total_price',
  350. scopedSlots: { customRender: 'total_price' }
  351. }
  352. ]
  353. export default {
  354. name: 'Index',
  355. components: {
  356. GoodsItem,
  357. UserItem,
  358. DeliveryForm,
  359. CancelForm,
  360. PrinterForm,
  361. PriceForm,
  362. RemarkForm,
  363. ExpressForm
  364. },
  365. data () {
  366. return {
  367. // 枚举类
  368. OrderTypeEnum,
  369. DeliveryStatusEnum,
  370. DeliveryTypeEnum,
  371. OrderSourceEnum,
  372. OrderStatusEnum,
  373. PayStatusEnum,
  374. ReceiptStatusEnum,
  375. PaymentMethodEnum,
  376. DeliveryMethodEnum,
  377. // 外部方法
  378. inArray,
  379. // 正在加载
  380. isLoading: true,
  381. // 订单ID
  382. orderId: null,
  383. // 订单详情
  384. record: {},
  385. // 订单步骤位置
  386. progress: 2,
  387. // 商品内容表头
  388. goodsColumns
  389. }
  390. },
  391. created () {
  392. // 记录订单ID
  393. this.orderId = this.$route.query.orderId
  394. // 刷新页面
  395. this.handleRefresh()
  396. },
  397. methods: {
  398. // 刷新页面
  399. handleRefresh () {
  400. // 获取当前记录
  401. this.getDetail()
  402. },
  403. // 获取当前记录
  404. getDetail () {
  405. const { orderId } = this
  406. this.isLoading = true
  407. Api.detail({ orderId })
  408. .then(result => {
  409. // 当前记录
  410. this.record = result.data.detail
  411. // 初始化数据
  412. this.initData()
  413. })
  414. .finally(() => this.isLoading = false)
  415. },
  416. // 初始化数据
  417. initData () {
  418. // 步骤条位置
  419. this.initProgress()
  420. // 发货单的商品信息
  421. this.initDeliveryGoods()
  422. },
  423. // 步骤条位置
  424. initProgress () {
  425. const { record } = this
  426. this.progress = 2
  427. record.pay_status == PayStatusEnum.SUCCESS.value && (this.progress += 1)
  428. record.delivery_status != DeliveryStatusEnum.NOT_DELIVERED.value && (this.progress += 1)
  429. record.receipt_status == ReceiptStatusEnum.RECEIVED.value && (this.progress += 1)
  430. },
  431. // 发货单的商品信息
  432. initDeliveryGoods () {
  433. const { record } = this
  434. if (record.delivery.length) {
  435. record.delivery.forEach(deliveryItem => {
  436. deliveryItem.goods.forEach(deliveryGoodsItem => {
  437. deliveryGoodsItem.goods = record.goods.find(goods => goods.order_goods_id == deliveryGoodsItem.order_goods_id)
  438. })
  439. })
  440. }
  441. },
  442. // 渲染订单状态标签颜色
  443. renderOrderStatusColor (orderStatus) {
  444. const { OrderStatusEnum } = this
  445. const ColorEnum = {
  446. [OrderStatusEnum.NORMAL.value]: '',
  447. [OrderStatusEnum.CANCELLED.value]: 'red',
  448. [OrderStatusEnum.APPLY_CANCEL.value]: 'red',
  449. [OrderStatusEnum.COMPLETED.value]: 'green'
  450. }
  451. return ColorEnum[orderStatus]
  452. },
  453. // 订单发货
  454. handleDelivery () {
  455. const { record } = this
  456. this.$refs.DeliveryForm.show(record)
  457. },
  458. // 审核取消订单
  459. handleCancel () {
  460. const { record } = this
  461. this.$refs.CancelForm.show(record)
  462. },
  463. // 小票打印
  464. handlePrinter () {
  465. const { record } = this
  466. this.$refs.PrinterForm.show(record)
  467. },
  468. // 订单改价
  469. handleUpdatePrice () {
  470. const { record } = this
  471. this.$refs.PriceForm.show(record)
  472. },
  473. // 商家备注
  474. handleMerchantRemark () {
  475. const { record } = this
  476. this.$refs.RemarkForm.show(record)
  477. },
  478. // 查看物流跟踪信息
  479. handleShowExpress (index) {
  480. const { record } = this
  481. this.$refs.ExpressForm.show(record.delivery[index], index)
  482. },
  483. }
  484. }
  485. </script>
  486. <style lang="less" scoped>
  487. @import '~ant-design-vue/es/style/themes/default.less';
  488. // 订单详情页
  489. .order-content {
  490. margin-bottom: 70px;
  491. /deep/.ant-descriptions-item > span {
  492. vertical-align: middle;
  493. }
  494. // 分割线
  495. .o-divider {
  496. margin-bottom: 32px;
  497. }
  498. // 步骤条
  499. .order-progress {
  500. height: 26px;
  501. line-height: 26px;
  502. background: #f8f8f8;
  503. border-radius: 13px;
  504. font-size: @font-size-base;
  505. text-align: center;
  506. position: relative;
  507. &:before,
  508. &:after {
  509. content: '';
  510. position: absolute;
  511. z-index: 2;
  512. left: 0;
  513. top: 0;
  514. bottom: 0;
  515. border-radius: 13px;
  516. background: @primary-color;
  517. }
  518. &:after {
  519. background: ~`colorPalette('@{primary-color}', 3) `;
  520. z-index: 1;
  521. }
  522. &.progress-1 {
  523. &:before {
  524. width: 0;
  525. }
  526. &:after {
  527. width: 20%;
  528. }
  529. }
  530. &.progress-2 {
  531. &:before {
  532. width: 20%;
  533. }
  534. &:after {
  535. width: 40%;
  536. }
  537. }
  538. &.progress-3 {
  539. &:before {
  540. width: 40%;
  541. }
  542. &:after {
  543. width: 60%;
  544. }
  545. }
  546. &.progress-4 {
  547. &:before {
  548. width: 60%;
  549. }
  550. &:after {
  551. width: 80%;
  552. }
  553. }
  554. &.progress-5 {
  555. &:before {
  556. width: 100%;
  557. }
  558. &:after {
  559. width: 100%;
  560. }
  561. li {
  562. &:nth-child(5) {
  563. color: #fff;
  564. }
  565. }
  566. }
  567. li {
  568. width: 20%;
  569. float: left;
  570. border-radius: 13px;
  571. position: relative;
  572. z-index: 3;
  573. }
  574. .tip {
  575. font-size: 12px;
  576. padding-top: 10px;
  577. color: #8c8c8c;
  578. }
  579. &.progress-1 li:nth-child(1),
  580. &.progress-2 li:nth-child(1),
  581. &.progress-3 li:nth-child(1),
  582. &.progress-4 li:nth-child(1),
  583. &.progress-5 li:nth-child(1) {
  584. color: #fff;
  585. }
  586. &.progress-2 li:nth-child(2),
  587. &.progress-3 li:nth-child(2),
  588. &.progress-4 li:nth-child(2),
  589. &.progress-5 li:nth-child(2) {
  590. color: #fff;
  591. }
  592. &.progress-3 li:nth-child(3),
  593. &.progress-4 li:nth-child(3),
  594. &.progress-5 li:nth-child(3) {
  595. color: #fff;
  596. }
  597. &.progress-4 li:nth-child(4),
  598. &.progress-5 li:nth-child(4) {
  599. color: #fff;
  600. }
  601. }
  602. // 商品列表
  603. .goods-list {
  604. /deep/table {
  605. table-layout: auto;
  606. }
  607. .order-price {
  608. padding: 8px 20px;
  609. text-align: right;
  610. }
  611. }
  612. // 操作栏
  613. .actions {
  614. .action-item {
  615. float: left;
  616. margin-right: 8px;
  617. }
  618. }
  619. }
  620. // 隐藏tab的标签
  621. .hide-bar {
  622. /deep/.ant-tabs-bar {
  623. display: none;
  624. }
  625. }
  626. /deep/.ant-tabs-bar {
  627. margin-bottom: 20px;
  628. }
  629. // 已发货的商品列表
  630. .deliver-goods-list {
  631. .goods-item {
  632. position: relative;
  633. border-radius: 4px;
  634. overflow: hidden;
  635. width: 65px;
  636. height: 65px;
  637. float: left;
  638. margin-right: 15px;
  639. }
  640. .goods-img {
  641. display: block;
  642. width: 100%;
  643. height: 100%;
  644. }
  645. .title {
  646. position: absolute;
  647. bottom: 0;
  648. width: 100%;
  649. text-align: center;
  650. background: rgba(0, 0, 0, 0.6);
  651. color: #fff;
  652. padding: 2px 0;
  653. font-size: 12px;
  654. }
  655. }
  656. </style>