orderRefund.js.map 15 KB

1
  1. {"version":3,"sources":["uni-app:///main.js","webpack:///G:/item/appBase/pages/order/orderRefund.vue?45c2","webpack:///G:/item/appBase/pages/order/orderRefund.vue?4295","webpack:///G:/item/appBase/pages/order/orderRefund.vue?1c42","webpack:///G:/item/appBase/pages/order/orderRefund.vue?d974","uni-app:///pages/order/orderRefund.vue","webpack:///G:/item/appBase/pages/order/orderRefund.vue?523c","webpack:///G:/item/appBase/pages/order/orderRefund.vue?c8a7"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,yG;AACAA,UAAU,CAACC,oBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAwH;AACxH;AAC+D;AACL;AACc;;;AAGxE;AAC2K;AAC3K,gBAAgB,oLAAU;AAC1B,EAAE,iFAAM;AACR,EAAE,sFAAM;AACR,EAAE,+FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,0FAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAmoB,CAAgB,wpBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACuDvpB,4D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eACA,EACA,IADA,kBACA,CACA,SACA,UADA,EACA;AACA,gBAFA,EAEA;AACA,wEAHA,EAIA,WAJA,EAKA,QALA,EAMA,YANA,GAQA,CAVA,EAWA,MAXA,kBAWA,MAXA,EAWA,CACA,yBACA,oBACA,iBACA,CAfA,EAgBA,WACA;AACA,cAFA,sBAEA,CAFA,EAEA,CACA,yCACA,CAJA,EAKA;AACA,gBANA,0BAMA,kBACA,gDACA,qBACA,CAFA,EAGA,CAVA,EAWA,SAXA,uBAWA,mBACA,6DACA,qBACA,CAFA,EAGA,CAfA,EAgBA;AACA,WAjBA,qBAiBA,CACA,kBACA,gBACA,WADA,EAEA,kBAFA,EAGA,iBAHA,IAKA,aACA,CACA,eACA,qBACA,gBADA,EAEA,gBAFA,EAGA,qCAHA,IAIA,IAJA,CAIA,cACA,gBACA,aADA,EAEA,cAFA,IAIA,CATA,EAUA,CArCA,EAhBA,E;;;;;;;;;;;;;ACxDA;AAAA;AAAA;AAAA;AAA6pC,CAAgB,8nCAAG,EAAC,C;;;;;;;;;;;ACAjrC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/order/orderRefund.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/order/orderRefund.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./orderRefund.vue?vue&type=template&id=71dd097c&\"\nvar renderjs\nimport script from \"./orderRefund.vue?vue&type=script&lang=js&\"\nexport * from \"./orderRefund.vue?vue&type=script&lang=js&\"\nimport style0 from \"./orderRefund.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/order/orderRefund.vue\"\nexport default component.exports","export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./orderRefund.vue?vue&type=template&id=71dd097c&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./orderRefund.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./orderRefund.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"content\">\r\n\t\t<view class=\"order-item\">\r\n\t\t\t<scroll-view v-if=\"listStyle == 1\" class=\"goods-box\" scroll-x>\r\n\t\t\t\t<view v-for=\"(goodsItem, goodsIndex) in item.cartInfo\" :key=\"goodsIndex\" class=\"goods-item\">\r\n\t\t\t\t\t<image class=\"goods-img\" :src=\"goodsItem.productInfo.image\" mode=\"aspectFill\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t</scroll-view>\r\n\t\t\t<view v-if=\"listStyle == 2\" class=\"goods-box-single\" v-for=\"(goodsItem, goodsIndex) in item.cartInfo\" :key=\"goodsIndex\">\r\n\t\t\t\t<image class=\"goods-img\" :src=\"goodsItem.productInfo.image\" mode=\"aspectFill\"></image>\r\n\t\t\t\t<view class=\"right\">\r\n\t\t\t\t\t<text class=\"title clamp\">{{ goodsItem.productInfo.store_name }}</text>\r\n\t\t\t\t\t<text class=\"attr-box\">{{ goodsItem.attrInfo ? goodsItem.attrInfo.suk : '' }} x {{ goodsItem.cart_num }}</text>\r\n\t\t\t\t\t<text class=\"price\">{{ goodsItem.productInfo.price }}</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"orderDetial\">\r\n\t\t\t<view class=\"row b-b flex\">\r\n\t\t\t\t<text class=\"tit\">订单总价</text>\r\n\t\t\t\t<view class=\"input\">¥{{ item.total_price }}</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"row b-b flex\">\r\n\t\t\t\t<text class=\"tit\">邮费</text>\r\n\t\t\t\t<view class=\"input\">{{ item.pay_postage > 0 ? '¥' +item.pay_postage : '免邮费' }}</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"row b-b flex\" v-if=\"item.coupon_id > 0\">\r\n\t\t\t\t<text class=\"tit\">优惠券</text>\r\n\t\t\t\t<view class=\"input\">-¥{{ item.coupon_price }}</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"row b-b flex\" v-if=\"item.use_integral > 0\">\r\n\t\t\t\t<text class=\"tit\">积分抵扣</text>\r\n\t\t\t\t<view class=\"input\">-¥{{ item.use_integral }}</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"row b-b flex\">\r\n\t\t\t\t<text class=\"tit \">实付</text>\r\n\t\t\t\t<view class=\"input payColor\">¥{{ item.pay_price }}</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"row b-b\">\r\n\t\t\t<text class=\"tit\">退款理由</text>\r\n\t\t\t<picker mode=\"selector\" :range=\"value\" @change=\"bindChange\">\r\n\t\t\t\t<view class=\"refund\" v-if=\"refund\">{{ refund || '请选择退款理由' }}</view>\r\n\t\t\t\t<view class=\"noRefund\" v-else>请选择退款理由</view>\r\n\t\t\t</picker>\r\n\t\t</view>\r\n\t\t<view class=\"row b-b\">\r\n\t\t\t<text class=\"tit\">备注说明</text>\r\n\t\t\t<input class=\"input\" type=\"text\" v-model=\"reason\" placeholder=\"请填写备注\" placeholder-class=\"placeholder\" />\r\n\t\t</view>\r\n\t\t<button class=\"add-btn\" @click=\"confirm\">提交</button>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\nimport { refund, refundReason, orderDetail } from '@/api/order.js';\r\nexport default {\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\trefund: '', //退款理由\r\n\t\t\treason: '', //备注\r\n\t\t\tvalue: ['1', '2', '3', '4', '5', '6', '7', '8', 9, 10, 11, 12, 13],\r\n\t\t\torderId: '',\r\n\t\t\titem: {},\r\n\t\t\tlistStyle: 2\r\n\t\t};\r\n\t},\r\n\tonLoad(option) {\r\n\t\tthis.orderId = option.id;\r\n\t\tthis.refundReason();\r\n\t\tthis.loadOrder();\r\n\t},\r\n\tmethods: {\r\n\t\t// 切换选中事件\r\n\t\tbindChange(e) {\r\n\t\t\tthis.refund = this.value[e.detail.value];\r\n\t\t},\r\n\t\t// 加载退款理由\r\n\t\trefundReason() {\r\n\t\t\trefundReason({}).then(e => {\r\n\t\t\t\tthis.value = e.data;\r\n\t\t\t});\r\n\t\t},\r\n\t\tloadOrder() {\r\n\t\t\torderDetail({}, this.orderId).then(e => {\r\n\t\t\t\tthis.item = e.data;\r\n\t\t\t});\r\n\t\t},\r\n\t\t//提交\r\n\t\tconfirm() {\r\n\t\t\tif (!obj.refund) {\r\n\t\t\t\tuni.showModal({\r\n\t\t\t\t\ttitle: '错误',\r\n\t\t\t\t\tcontent: '请填写退货理由',\r\n\t\t\t\t\tshowCancel: false\r\n\t\t\t\t});\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tlet obj = this;\r\n\t\t\trefund({\r\n\t\t\t\ttext: obj.refund,\r\n\t\t\t\tuni: obj.orderId,\r\n\t\t\t\trefund_reason_wap_explain: obj.reason\r\n\t\t\t}).then(function(e) {\r\n\t\t\t\tuni.showToast({\r\n\t\t\t\t\ttitle:'提交成功',\r\n\t\t\t\t\tduration:1500\r\n\t\t\t\t})\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\">\r\npage {\r\n\tbackground: $page-color-base;\r\n\tpadding-top: 16rpx;\r\n}\r\n.orderDetial {\r\n\t.row {\r\n\t\t.input {\r\n\t\t\ttext-align: right;\r\n\t\t}\r\n\t}\r\n}\r\n.row {\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tposition: relative;\r\n\tpadding: 0 30rpx;\r\n\theight: 110rpx;\r\n\tbackground: #fff;\r\n\t.refund {\r\n\t\tfont-size: 30rpx;\r\n\t\tcolor: $font-color-dark;\r\n\t}\r\n\t.noRefund {\r\n\t\tfont-size: 30rpx;\r\n\t\tcolor: $font-color-light;\r\n\t\tpadding-left: 20rpx;\r\n\t}\r\n\t.tit {\r\n\t\tflex-shrink: 0;\r\n\t\twidth: 120rpx;\r\n\t\tfont-size: 30rpx;\r\n\t\tcolor: $font-color-dark;\r\n\t}\r\n\t.input {\r\n\t\tflex: 1;\r\n\t\tfont-size: 30rpx;\r\n\t\tcolor: $font-color-dark;\r\n\t\tpadding-left: 20rpx;\r\n\t\t&.payColor {\r\n\t\t\tcolor: $color-red;\r\n\t\t}\r\n\t}\r\n\t.iconlocation {\r\n\t\tfont-size: 36rpx;\r\n\t\tcolor: $font-color-light;\r\n\t}\r\n}\r\n.add-btn {\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n\twidth: 690rpx;\r\n\theight: 80rpx;\r\n\tmargin: 60rpx auto;\r\n\tfont-size: $font-lg;\r\n\tcolor: #fff;\r\n\tbackground-color: $base-color;\r\n\tborder-radius: 10rpx;\r\n\t// box-shadow: 1px 2px 5px rgba(219, 63, 96, 0.4);\r\n}\r\n\r\n/* 多条商品 */\r\n.order-item {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\tpadding-left: 30rpx;\r\n\tbackground: #fff;\r\n\tmargin-top: 16rpx;\r\n\t.goods-box {\r\n\t\theight: 160rpx;\r\n\t\tpadding: 20rpx 0;\r\n\t\twhite-space: nowrap;\r\n\t\t.goods-item {\r\n\t\t\twidth: 120rpx;\r\n\t\t\theight: 120rpx;\r\n\t\t\tdisplay: inline-block;\r\n\t\t\tmargin-right: 24rpx;\r\n\t\t}\r\n\t\t.goods-img {\r\n\t\t\tdisplay: block;\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t}\r\n\t}\r\n\t/* 单条商品 */\r\n\t.goods-box-single {\r\n\t\tdisplay: flex;\r\n\t\tpadding: 20rpx 0;\r\n\t\t.goods-img {\r\n\t\t\tdisplay: block;\r\n\t\t\twidth: 120rpx;\r\n\t\t\theight: 120rpx;\r\n\t\t}\r\n\t\t.right {\r\n\t\t\tflex: 1;\r\n\t\t\tdisplay: flex;\r\n\t\t\tflex-direction: column;\r\n\t\t\tpadding: 0 30rpx 0 24rpx;\r\n\t\t\toverflow: hidden;\r\n\t\t\t.title {\r\n\t\t\t\tfont-size: $font-base + 2rpx;\r\n\t\t\t\tcolor: $font-color-dark;\r\n\t\t\t\tline-height: 1;\r\n\t\t\t}\r\n\t\t\t.attr-box {\r\n\t\t\t\tfont-size: $font-sm + 2rpx;\r\n\t\t\t\tcolor: $font-color-light;\r\n\t\t\t\tpadding: 10rpx 12rpx;\r\n\t\t\t}\r\n\t\t\t.price {\r\n\t\t\t\tfont-size: $font-base + 2rpx;\r\n\t\t\t\tcolor: $font-color-dark;\r\n\t\t\t\t&:before {\r\n\t\t\t\t\tcontent: '¥';\r\n\t\t\t\t\tfont-size: $font-sm;\r\n\t\t\t\t\tmargin: 0 2rpx 0 8rpx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n</style>\r\n","import mod from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./orderRefund.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./orderRefund.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1618025084480\n var cssReload = require(\"D:/work/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}