1 |
- {"version":3,"sources":["webpack:///./src/views/order/ReturnList.vue?e618","webpack:///src/views/order/ReturnList.vue","webpack:///./src/views/order/ReturnList.vue?a140","webpack:///./src/views/order/ReturnList.vue","webpack:///./src/assets/images/noOrder.png","webpack:///./src/views/order/ReturnList.vue?f746","webpack:///./src/api/order.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","ref","staticClass","_l","order","key","order_id","_status","_type","_e","_v","_s","cart","id","on","click","$event","$router","push","path","attrs","src","productInfo","image","stopPropagation","store_name","cart_num","attrInfo","suk","price","cartInfo","length","pay_price","orderList","page","_m","loaded","loading","staticRenderFns","__webpack_require__","ReturnListvue_type_script_lang_js_","name","components","Loading","data","limit","methods","getOrderList","_this","Object","type","then","res","concat","mounted","_this2","$scroll","$refs","container","order_ReturnListvue_type_script_lang_js_","component","componentNormalizer","__webpack_exports__","module","exports","p","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ReturnList_vue_vue_type_style_index_0_id_69b4fdee_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ReturnList_vue_vue_type_style_index_0_id_69b4fdee_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default","n","d","postOrderConfirm","postOrderComputed","getOrderCoupon","createOrder","getOrderData","cancelOrder","orderDetail","getRefundReason","postOrderRefund","takeOrder","delOrder","express","payOrder","order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,SAASd,EAAkBlE,EAAKuC,GACrC,OAAO0C,OAAQC,KAAK,mBAAqBlF,EAAKuC,GAQzC,SAAS4B,EAAe3C,GAC7B,OAAOyD,OAAQE,IAAI,mBAAqBC,WAAW5D,IAAU,IASxD,SAAS4C,EAAYpE,EAAKuC,GAC/B,OAAO0C,OAAQC,KAAK,iBAAmBlF,EAAKuC,GAAQ,IAO/C,SAAS8B,IACd,OAAOY,OAAQE,IAAI,eAOd,SAASzC,EAAaH,GAC3B,OAAO0C,OAAQE,IAAI,cAAe5C,GAO7B,SAAS+B,EAAY9D,GAC1B,OAAOyE,OAAQC,KAAK,gBAAiB,CAAE1E,OAOlC,SAAS+D,EAAY/D,GAC1B,OAAOyE,OAAQE,IAAI,iBAAmB3E,GAOjC,SAASgE,IACd,OAAOS,OAAQE,IAAI,wBAOd,SAASV,EAAgBlC,GAC9B,OAAO0C,OAAQC,KAAK,uBAAwB3C,GAOvC,SAASmC,EAAUW,GACxB,OAAOJ,OAAQC,KAAK,cAAe,CAAEG,QAOhC,SAASV,EAASU,GACvB,OAAOJ,OAAQC,KAAK,aAAc,CAAEG,QAO/B,SAAST,EAAQS,GACtB,OAAOJ,OAAQE,IAAI,iBAAmBE,GAOjC,SAASR,EAASQ,EAAKC,EAASC,GACrC,OAAON,OAAQC,KAAK,YAAa,CAAEG,MAAKC,UAASC,SAM5C,SAAST,EAAaU,EAAaC,GACxC,OAAOR,OAAQC,KAAK,sBAAuB,CAAEM,cAAaC","file":"h5/js/chunk-40ea473b.d9d1aed3.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"container\",staticClass:\"return-list\"},[_vm._l((_vm.orderList),function(order){return _c('div',{key:order.order_id,staticClass:\"goodWrapper\"},[(order._status._type === -1)?_c('div',{staticClass:\"iconfont icon-tuikuanzhong powder\"}):_vm._e(),(order._status._type === -2)?_c('div',{staticClass:\"iconfont icon-yituikuan\"}):_vm._e(),_c('div',{staticClass:\"orderNum\"},[_vm._v(\"订单号:\"+_vm._s(order.order_id))]),_vm._l((order.cartInfo),function(cart){return _c('div',{key:cart.id,staticClass:\"item acea-row row-between-wrapper\",on:{\"click\":function($event){return _vm.$router.push({ path: '/order/detail/' + order.order_id })}}},[_c('div',{staticClass:\"pictrue\"},[_c('img',{staticClass:\"image\",attrs:{\"src\":cart.productInfo.image},on:{\"click\":function($event){$event.stopPropagation();return _vm.$router.push({ path: '/detail/' + cart.productInfo.id })}}})]),_c('div',{staticClass:\"text\"},[_c('div',{staticClass:\"acea-row row-between-wrapper\"},[_c('div',{staticClass:\"name line1\"},[_vm._v(_vm._s(cart.productInfo.store_name))]),_c('div',{staticClass:\"num\"},[_vm._v(\"x \"+_vm._s(cart.cart_num))])]),(cart.productInfo.attrInfo)?_c('div',{staticClass:\"attr line1\"},[_vm._v(\"\\n \"+_vm._s(cart.productInfo.attrInfo.suk)+\"\\n \")]):_c('div',{staticClass:\"attr line1\"},[_vm._v(_vm._s(cart.productInfo.store_name))]),_c('div',{staticClass:\"money\"},[_vm._v(\"¥\"+_vm._s(cart.productInfo.price))])])])}),_c('div',{staticClass:\"totalSum\"},[_vm._v(\"\\n 共\"+_vm._s(order.cartInfo.length || 0)+\"件商品,总金额\\n \"),_c('span',{staticClass:\"font-color-red price\"},[_vm._v(\"¥\"+_vm._s(order.pay_price))])])],2)}),(_vm.orderList.length === 0 && _vm.page > 1)?_c('div',{staticClass:\"noCart\"},[_vm._m(0)]):_vm._e(),_c('Loading',{attrs:{\"loaded\":_vm.loaded,\"loading\":_vm.loading}})],2)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"pictrue\"},[_c('img',{attrs:{\"src\":require(\"@assets/images/noOrder.png\")}})])}]\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"return-list\" ref=\"container\">\r\n <div class=\"goodWrapper\" v-for=\"order in orderList\" :key=\"order.order_id\">\r\n <div\r\n class=\"iconfont icon-tuikuanzhong powder\"\r\n v-if=\"order._status._type === -1\"\r\n ></div>\r\n <div\r\n class=\"iconfont icon-yituikuan\"\r\n v-if=\"order._status._type === -2\"\r\n ></div>\r\n <div class=\"orderNum\">订单号:{{ order.order_id }}</div>\r\n <div\r\n class=\"item acea-row row-between-wrapper\"\r\n v-for=\"cart in order.cartInfo\"\r\n :key=\"cart.id\"\r\n @click=\"$router.push({ path: '/order/detail/' + order.order_id })\"\r\n >\r\n <div class=\"pictrue\">\r\n <img\r\n :src=\"cart.productInfo.image\"\r\n class=\"image\"\r\n @click.stop=\"\r\n $router.push({ path: '/detail/' + cart.productInfo.id })\r\n \"\r\n />\r\n </div>\r\n <div class=\"text\">\r\n <div class=\"acea-row row-between-wrapper\">\r\n <div class=\"name line1\">{{ cart.productInfo.store_name }}</div>\r\n <div class=\"num\">x {{ cart.cart_num }}</div>\r\n </div>\r\n <div class=\"attr line1\" v-if=\"cart.productInfo.attrInfo\">\r\n {{ cart.productInfo.attrInfo.suk }}\r\n </div>\r\n <div class=\"attr line1\" v-else>{{ cart.productInfo.store_name }}</div>\r\n <div class=\"money\">¥{{ cart.productInfo.price }}</div>\r\n </div>\r\n </div>\r\n <div class=\"totalSum\">\r\n 共{{ order.cartInfo.length || 0 }}件商品,总金额\r\n <span class=\"font-color-red price\">¥{{ order.pay_price }}</span>\r\n </div>\r\n </div>\r\n <div class=\"noCart\" v-if=\"orderList.length === 0 && page > 1\">\r\n <div class=\"pictrue\"><img src=\"@assets/images/noOrder.png\" /></div>\r\n </div>\r\n <Loading :loaded=\"loaded\" :loading=\"loading\"></Loading>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { getOrderList } from \"@api/order\";\r\nimport Loading from \"@components/Loading\";\r\n\r\nexport default {\r\n name: \"ReturnList\",\r\n components: {\r\n Loading\r\n },\r\n data() {\r\n return {\r\n orderList: [],\r\n page: 1,\r\n limit: 20,\r\n loading: false,\r\n loaded: false\r\n };\r\n },\r\n methods: {\r\n getOrderList() {\r\n const { page, limit } = this;\r\n if (this.loading || this.loaded) return;\r\n this.loading = true;\r\n getOrderList({\r\n page,\r\n limit,\r\n type: -3\r\n }).then(res => {\r\n this.orderList = this.orderList.concat(res.data);\r\n this.loading = false;\r\n this.loaded = res.data.length < limit;\r\n this.page++;\r\n });\r\n }\r\n },\r\n mounted() {\r\n this.getOrderList();\r\n this.$scroll(this.$refs.container, () => {\r\n !this.loading && this.getOrderList();\r\n });\r\n }\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.noCart {\r\n margin-top: 0.17rem;\r\n padding-top: 0.1rem;\r\n}\r\n\r\n.noCart .pictrue {\r\n width: 4rem;\r\n height: 3rem;\r\n margin: 0.7rem auto 0.5rem auto;\r\n}\r\n\r\n.noCart .pictrue img {\r\n width: 100%;\r\n height: 100%;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReturnList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReturnList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ReturnList.vue?vue&type=template&id=69b4fdee&scoped=true&\"\nimport script from \"./ReturnList.vue?vue&type=script&lang=js&\"\nexport * from \"./ReturnList.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ReturnList.vue?vue&type=style&index=0&id=69b4fdee&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"69b4fdee\",\n null\n \n)\n\nexport default component.exports","module.exports = __webpack_public_path__ + \"h5/img/noOrder.90017ce2.png\";","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReturnList.vue?vue&type=style&index=0&id=69b4fdee&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReturnList.vue?vue&type=style&index=0&id=69b4fdee&scoped=true&lang=css&\"","/*\r\n * 订单确认\r\n * */\r\nimport request from \"@utils/request\";\r\n\r\n/**\r\n * 通过购物车 id 获取订单信息\r\n * @param cartId\r\n * @returns {*}\r\n */\r\nexport function postOrderConfirm(cartId) {\r\n return request.post(\"/order/confirm\", { cartId });\r\n}\r\n\r\n/**\r\n * 计算订单金额\r\n * @param key\r\n * @param data\r\n * @returns {*}\r\n */\r\nexport function postOrderComputed(key, data) {\r\n return request.post(\"/order/computed/\" + key, data);\r\n}\r\n\r\n/**\r\n * 获取指定金额可用优惠券\r\n * @param price\r\n * @returns {*}\r\n */\r\nexport function getOrderCoupon(price) {\r\n return request.get(\"/coupons/order/\" + (parseFloat(price) || 0));\r\n}\r\n\r\n/**\r\n * 生成订单\r\n * @param key\r\n * @param data\r\n * @returns {*}\r\n */\r\nexport function createOrder(key, data) {\r\n return request.post(\"/order/create/\" + key, data || {});\r\n}\r\n\r\n/**\r\n * 订单统计数据\r\n * @returns {*}\r\n */\r\nexport function getOrderData() {\r\n return request.get(\"/order/data\");\r\n}\r\n\r\n/**\r\n * 订单列表\r\n * @returns {*}\r\n */\r\nexport function getOrderList(data) {\r\n return request.get(\"/order/list\", data);\r\n}\r\n\r\n/**\r\n * 取消订单\r\n * @returns {*}\r\n */\r\nexport function cancelOrder(id) {\r\n return request.post(\"/order/cancel\", { id });\r\n}\r\n\r\n/**\r\n * 订单详情\r\n * @returns {*}\r\n */\r\nexport function orderDetail(id) {\r\n return request.get(\"/order/detail/\" + id);\r\n}\r\n\r\n/**\r\n * 退款理由\r\n * @returns {*}\r\n */\r\nexport function getRefundReason() {\r\n return request.get(\"/order/refund/reason\");\r\n}\r\n\r\n/**\r\n * 提交退款\r\n * @returns {*}\r\n */\r\nexport function postOrderRefund(data) {\r\n return request.post(\"/order/refund/verify\", data);\r\n}\r\n\r\n/**\r\n * 确认收货\r\n * @returns {*}\r\n */\r\nexport function takeOrder(uni) {\r\n return request.post(\"/order/take\", { uni });\r\n}\r\n\r\n/**\r\n * 删除订单\r\n * @returns {*}\r\n */\r\nexport function delOrder(uni) {\r\n return request.post(\"/order/del\", { uni });\r\n}\r\n\r\n/**\r\n * 订单查询物流信息\r\n * @returns {*}\r\n */\r\nexport function express(uni) {\r\n return request.get(\"order/express/\" + uni);\r\n}\r\n\r\n/**\r\n * 订单查询物流信息\r\n * @returns {*}\r\n */\r\nexport function payOrder(uni, paytype, from) {\r\n return request.post(\"order/pay\", { uni, paytype, from });\r\n}\r\n/**\r\n * 订单核销\r\n * @returns {*}\r\n */\r\nexport function orderVerific(verify_code, is_confirm) {\r\n return request.post(\"order/order_verific\", { verify_code, is_confirm });\r\n}\r\n"],"sourceRoot":""}
|