5bd0471a1572bb7bbaaaef5b907d0207.json 8.5 KB

1
  1. {"remainingRequest":"D:\\front\\item\\zyAdmin\\node_modules\\babel-loader\\lib\\index.js!D:\\front\\item\\zyAdmin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\front\\item\\zyAdmin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\front\\item\\zyAdmin\\src\\pages\\kefu\\pc\\components\\order_detail.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\front\\item\\zyAdmin\\src\\pages\\kefu\\pc\\components\\order_detail.vue","mtime":1761614939026},{"path":"D:\\front\\item\\zyAdmin\\babel.config.js","mtime":1761614925168},{"path":"D:\\front\\item\\zyAdmin\\.babelrc","mtime":1761614925165},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1761614927801},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\babel-loader\\lib\\index.js","mtime":1761614927320},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1761614927801},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\vue-loader\\lib\\index.js","mtime":1761614937402}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMubnVtYmVyLmNvbnN0cnVjdG9yLmpzIjsKaW1wb3J0IHsgb3JkZXJJbmZvIH0gZnJvbSAnQC9hcGkva2VmdSc7CmV4cG9ydCBkZWZhdWx0IHsKICBuYW1lOiAnb3JkZXJfZGV0YWlsJywKICBwcm9wczogewogICAgb3JkZXJJZDogewogICAgICB0eXBlOiBTdHJpbmcgfCBOdW1iZXIsCiAgICAgIGRlZmF1bHQ6ICcnCiAgICB9CiAgfSwKICBkYXRhOiBmdW5jdGlvbiBkYXRhKCkgewogICAgcmV0dXJuIHsKICAgICAgb3JkZXJEZXRhaWw6IHt9LAogICAgICBvcmRlckxpc3Q6IFtdCiAgICB9OwogIH0sCiAgbW91bnRlZDogZnVuY3Rpb24gbW91bnRlZCgpIHsKICAgIHRoaXMuZ2V0T3JkZXJJbmZvKCk7CiAgfSwKICBtZXRob2RzOiB7CiAgICBnZXRPcmRlckluZm86IGZ1bmN0aW9uIGdldE9yZGVySW5mbygpIHsKICAgICAgdmFyIF90aGlzID0gdGhpczsKICAgICAgb3JkZXJJbmZvKHRoaXMub3JkZXJJZCkudGhlbihmdW5jdGlvbiAocmVzKSB7CiAgICAgICAgcmVzLmRhdGEub3JkZXJJbmZvLmFkZF90aW1lID0gX3RoaXMuJG1vbWVudChwYXJzZUludChyZXMuZGF0YS5vcmRlckluZm8uYWRkX3RpbWUpICogMTAwMCkuZm9ybWF0KCdZWVlZLU1NLUREJyk7CiAgICAgICAgX3RoaXMub3JkZXJEZXRhaWwgPSByZXMuZGF0YTsKICAgICAgICBfdGhpcy5vcmRlckxpc3QgPSByZXMuZGF0YS5vcmRlckluZm8uY2FydEluZm87CiAgICAgIH0pOwogICAgfQogIH0KfTs="},{"version":3,"names":["orderInfo","name","props","orderId","type","String","Number","default","data","orderDetail","orderList","mounted","getOrderInfo","methods","_this","then","res","add_time","$moment","parseInt","format","cartInfo"],"sources":["src/pages/kefu/pc/components/order_detail.vue"],"sourcesContent":["<template>\r\n <div class=\"order_detail\" v-if=\"orderDetail.userInfo\">\r\n <div class=\"msg-box\">\r\n <div class=\"box-title\">收货信息</div>\r\n <div class=\"msg-wrapper\">\r\n <div class=\"msg-item\">\r\n <div class=\"item\"><span>用户昵称:</span>{{ orderDetail.userInfo.nickname }}</div>\r\n <div class=\"item\"><span>收货人:</span>{{ orderDetail.orderInfo.real_name }}</div>\r\n </div>\r\n <div class=\"msg-item\">\r\n <div class=\"item\"><span>联系电话:</span>{{ orderDetail.orderInfo.user_phone }}</div>\r\n <div class=\"item\"><span>收货地址:</span>{{ orderDetail.orderInfo.user_address }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"msg-box\" style=\"border: none\">\r\n <div class=\"box-title\">订单信息</div>\r\n <div class=\"msg-wrapper\">\r\n <div class=\"msg-item\">\r\n <div class=\"item\"><span>订单ID:</span>{{ orderDetail.orderInfo.order_id }}</div>\r\n <div class=\"item\" style=\"color: red\">\r\n <span style=\"color: red\">订单状态:</span>{{ orderDetail.orderInfo._status._title }}\r\n </div>\r\n </div>\r\n <div class=\"msg-item\">\r\n <div class=\"item\"><span>商品总数:</span>{{ orderDetail.orderInfo.total_num }}</div>\r\n <div class=\"item\">\r\n <span>商品总价:</span\r\n >{{ parseFloat(orderDetail.orderInfo.total_price) + parseFloat(orderDetail.orderInfo.vip_true_price || 0) }}\r\n </div>\r\n </div>\r\n <div class=\"msg-item\">\r\n <div class=\"item\"><span>交付邮费:</span>{{ orderDetail.orderInfo.pay_postage }}</div>\r\n <div class=\"item\"><span>优惠券金额:</span>{{ orderDetail.orderInfo.coupon_price }}</div>\r\n </div>\r\n <div class=\"msg-item\">\r\n <div class=\"item\"><span>实际支付:</span>{{ orderDetail.orderInfo.pay_price }}</div>\r\n <div class=\"item\"><span>创建时间:</span>{{ orderDetail.orderInfo.add_time }}</div>\r\n </div>\r\n <div class=\"msg-item\">\r\n <div class=\"item\"><span>支付方式:</span>{{ orderDetail.orderInfo._status._payType }}</div>\r\n <div class=\"item\"><span>推广人:</span>{{ orderDetail.userInfo.spread_name }}</div>\r\n </div>\r\n <div class=\"msg-item\">\r\n <div class=\"item\"><span>商家备注:</span>{{ orderDetail.orderInfo.remark }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"goods-box\">\r\n <el-table :data=\"orderList\">\r\n <el-table-column label=\"商品ID\" width=\"80\">\r\n <template slot-scope=\"scope\">\r\n <span>{{ scope.row.productInfo.id }}</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"商品名称\" min-width=\"130\">\r\n <template slot-scope=\"scope\">\r\n <div class=\"product_info\">\r\n <img :src=\"scope.row.productInfo.image\" alt=\"\" />\r\n <p>{{ scope.row.productInfo.store_name }}</p>\r\n </div>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"商品分类\" min-width=\"130\">\r\n <template slot-scope=\"scope\">\r\n <span>{{ scope.row.class_name }}</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"商品售价\" min-width=\"130\">\r\n <template slot-scope=\"scope\">\r\n <span>{{ scope.row.productInfo.attrInfo.price }}</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"商品数量\" min-width=\"130\">\r\n <template slot-scope=\"scope\">\r\n <span>{{ scope.row.cart_num }}</span>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { orderInfo } from '@/api/kefu';\r\nexport default {\r\n name: 'order_detail',\r\n props: {\r\n orderId: {\r\n type: String | Number,\r\n default: '',\r\n },\r\n },\r\n data() {\r\n return {\r\n orderDetail: {},\r\n orderList: [],\r\n };\r\n },\r\n mounted() {\r\n this.getOrderInfo();\r\n },\r\n methods: {\r\n getOrderInfo() {\r\n orderInfo(this.orderId).then((res) => {\r\n res.data.orderInfo.add_time = this.$moment(parseInt(res.data.orderInfo.add_time) * 1000).format('YYYY-MM-DD');\r\n this.orderDetail = res.data;\r\n this.orderList = res.data.orderInfo.cartInfo;\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.order_detail {\r\n .msg-box {\r\n border-bottom: 1px solid #e8eaed;\r\n .box-title {\r\n padding-top: 20px;\r\n font-size: 16px;\r\n color: #333;\r\n }\r\n .msg-wrapper {\r\n margin-top: 15px;\r\n padding-bottom: 10px;\r\n .msg-item {\r\n display: flex;\r\n .item {\r\n flex: 1;\r\n margin-bottom: 15px;\r\n color: #606266;\r\n font-size: 13px;\r\n span {\r\n font-size: 13px;\r\n font-weight: 400;\r\n color: #909399;\r\n }\r\n }\r\n }\r\n }\r\n &:first-child .box-title {\r\n padding-top: 0;\r\n }\r\n }\r\n .product_info {\r\n display: flex;\r\n align-items: center;\r\n img {\r\n width: 36px;\r\n height: 36px;\r\n border-radius: 4px;\r\n margin-right: 10px;\r\n }\r\n }\r\n}\r\n</style>\r\n"],"mappings":";AAoFA,SAAAA,SAAA;AACA;EACAC,IAAA;EACAC,KAAA;IACAC,OAAA;MACAC,IAAA,EAAAC,MAAA,GAAAC,MAAA;MACAC,OAAA;IACA;EACA;EACAC,IAAA,WAAAA,KAAA;IACA;MACAC,WAAA;MACAC,SAAA;IACA;EACA;EACAC,OAAA,WAAAA,QAAA;IACA,KAAAC,YAAA;EACA;EACAC,OAAA;IACAD,YAAA,WAAAA,aAAA;MAAA,IAAAE,KAAA;MACAd,SAAA,MAAAG,OAAA,EAAAY,IAAA,WAAAC,GAAA;QACAA,GAAA,CAAAR,IAAA,CAAAR,SAAA,CAAAiB,QAAA,GAAAH,KAAA,CAAAI,OAAA,CAAAC,QAAA,CAAAH,GAAA,CAAAR,IAAA,CAAAR,SAAA,CAAAiB,QAAA,UAAAG,MAAA;QACAN,KAAA,CAAAL,WAAA,GAAAO,GAAA,CAAAR,IAAA;QACAM,KAAA,CAAAJ,SAAA,GAAAM,GAAA,CAAAR,IAAA,CAAAR,SAAA,CAAAqB,QAAA;MACA;IACA;EACA;AACA","ignoreList":[]}]}