chunk-07f76812.d00264bb.js.map 15 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/order/ReturnList.vue?0da9","webpack:///src/views/order/ReturnList.vue","webpack:///./src/views/order/ReturnList.vue?7b19","webpack:///./src/views/order/ReturnList.vue","webpack:///./src/assets/images/noOrder.png","webpack:///./src/views/order/ReturnList.vue?82ea","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","$event","$router","push","path","attrs","productInfo","image","stopPropagation","store_name","cart_num","attrInfo","suk","price","cartInfo","length","pay_price","orderList","page","_m","loaded","loading","staticRenderFns","name","components","Loading","data","limit","methods","getOrderList","type","mounted","$scroll","$refs","container","component","module","exports","postOrderConfirm","cartId","request","post","postOrderComputed","getOrderCoupon","get","parseFloat","createOrder","getOrderData","cancelOrder","orderDetail","getRefundReason","postOrderRefund","takeOrder","uni","delOrder","express","payOrder","paytype","from","orderVerific","verify_code","is_confirm","orderAgain"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,IAAI,YAAYC,YAAY,eAAe,CAACP,EAAIQ,GAAIR,EAAa,WAAE,SAASS,GAAO,OAAOL,EAAG,MAAM,CAACM,IAAID,EAAME,SAASJ,YAAY,eAAe,EAA2B,IAAzBE,EAAMG,QAAQC,MAAcT,EAAG,MAAM,CAACG,YAAY,sCAAsCP,EAAIc,MAA+B,IAAzBL,EAAMG,QAAQC,MAAcT,EAAG,MAAM,CAACG,YAAY,4BAA4BP,EAAIc,KAAKV,EAAG,MAAM,CAACG,YAAY,YAAY,CAACP,EAAIe,GAAG,OAAOf,EAAIgB,GAAGP,EAAME,aAAaX,EAAIQ,GAAIC,EAAc,UAAE,SAASQ,GAAM,OAAOb,EAAG,MAAM,CAACM,IAAIO,EAAKC,GAAGX,YA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P,OAAQI,IAAI,eAOd,SAASf,EAAaH,GAC3B,OAAOc,OAAQI,IAAI,cAAelB,GAO7B,SAASsB,EAAYjD,GAC1B,OAAOyC,OAAQC,KAAK,gBAAiB,CAAE1C,OAOlC,SAASkD,EAAYlD,GAC1B,OAAOyC,OAAQI,IAAI,iBAAmB7C,GAOjC,SAASmD,IACd,OAAOV,OAAQI,IAAI,wBAOd,SAASO,EAAgBzB,GAC9B,OAAOc,OAAQC,KAAK,uBAAwBf,GAOvC,SAAS0B,EAAUC,GACxB,OAAOb,OAAQC,KAAK,cAAe,CAAEY,QAOhC,SAASC,EAASD,GACvB,OAAOb,OAAQC,KAAK,aAAc,CAAEY,QAO/B,SAASE,EAAQF,GACtB,OAAOb,OAAQI,IAAI,iBAAmBS,GAOjC,SAASG,EAASH,EAAKI,EAASC,GACrC,OAAOlB,OAAQC,KAAK,YAAa,CAAEY,MAAKI,UAASC,SAM5C,SAASC,EAAaC,EAAaC,GACxC,OAAOrB,OAAQC,KAAK,sBAAuB,CAAEmB,cAAaC,eAOrD,SAASC,EAAWT,GACzB,OAAOb,OAAQC,KAAK,cAAe,CAAEY,IAAKA","file":"h5/js/chunk-07f76812.d00264bb.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@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./ReturnList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.0@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@15.9.0@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@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/_vue-loader@15.9.0@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.0@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@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/_vue-loader@15.9.0@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.0@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, data) {\r\n return request.get(\"/coupons/order/\" + (parseFloat(price) || 0), data);\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/**\r\n * 再次下单\r\n * @param string uni\r\n *\r\n */\r\nexport function orderAgain(uni) {\r\n return request.post(\"order/again\", { uni: uni });\r\n}\r\n"],"sourceRoot":""}