xlcs/xlcs-user/unpackage/dist/dev/.sourcemap/mp-weixin/pagesOrder/getOrderInfo/getOrderInfo.js.map
2024-01-23 13:29:13 +08:00

1 line
17 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"version":3,"sources":["uni-app:///main.js","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/pagesOrder/getOrderInfo/getOrderInfo.vue?6fc0","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/pagesOrder/getOrderInfo/getOrderInfo.vue?3491","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/pagesOrder/getOrderInfo/getOrderInfo.vue?8189","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/pagesOrder/getOrderInfo/getOrderInfo.vue?ac24","uni-app:///pagesOrder/getOrderInfo/getOrderInfo.vue","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/pagesOrder/getOrderInfo/getOrderInfo.vue?824f","webpack:////Users/yovinchen/Desktop/project/xlcs/xlcs-user/pagesOrder/getOrderInfo/getOrderInfo.vue?5864"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","timer","resul","orderId","order","onLoad","methods","getOrderInfoById","result","copyOrderNo","uni","success","title","icon","payOrder","orderNo","timeStamp","nonceStr","package","signType","paySign","url","fail","mounted"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,qBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAyH;AACzH;AACgE;AACL;AACc;;;AAGzE;AACmN;AACnN,gBAAgB,iNAAU;AAC1B,EAAE,kFAAM;AACR,EAAE,uFAAM;AACR,EAAE,gGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,2FAAU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;AACA;AAAA,2B;;;;;;;;;;;;;AC1IA;AAAA;AAAA;AAAA;AAAokD,CAAgB,y6CAAG,EAAC,C;;;;;;;;;;;ACAxlD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pagesOrder/getOrderInfo/getOrderInfo.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesOrder/getOrderInfo/getOrderInfo.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./getOrderInfo.vue?vue&type=template&id=5e87b718&\"\nvar renderjs\nimport script from \"./getOrderInfo.vue?vue&type=script&lang=js&\"\nexport * from \"./getOrderInfo.vue?vue&type=script&lang=js&\"\nimport style0 from \"./getOrderInfo.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../Applications/HBuilderX.app/Contents/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 = \"pagesOrder/getOrderInfo/getOrderInfo.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./getOrderInfo.vue?vue&type=template&id=5e87b718&\"","var components\ntry {\n components = {\n uNavbar: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-navbar/u-navbar\" */ \"uview-ui/components/u-navbar/u-navbar.vue\"\n )\n },\n uCard: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-card/u-card\" */ \"uview-ui/components/u-card/u-card.vue\"\n )\n },\n uImage: function () {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-image/u-image\" */ \"uview-ui/components/u-image/u-image.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\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 \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./getOrderInfo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./getOrderInfo.vue?vue&type=script&lang=js&\"","<template>\n <view class=\"gg\">\n <u-navbar :border-bottom=\"false\" :is-back=\"true\">\n <view class=\"u-flex u-m-l-20 u-m-r-20\">\n <view class=\"u-font-xl u-m-r-20\">订单详情</view>\n </view>\n </u-navbar>\n <view class=\"gg-content\">\n <scroll-view class=\"gg-cart-sv-container\" scroll-y=\"true\">\n <!-- 提货点 -->\n <u-card :padding=\"10\" :show-head=\"true\">\n <view slot=\"head\" class=\"u-m-10\">提货人联系方式</view>\n <view slot=\"body\" class=\"u-m-10\">\n <view class=\"u-p-20\">收货人员:{{ order.receiverName }}</view>\n <view class=\"u-p-20\">联系方式:{{ order.receiverPhone }}</view>\n <view class=\"u-p-20\">提货地点:{{ order.receiverAddress }}</view>\n </view>\n </u-card>\n\n <!-- 商品 -->\n <u-card :padding=\"10\" :show-head=\"true\">\n <view slot=\"head\" class=\"u-m-10\">选购商品</view>\n <view slot=\"body\" class=\"u-m-10\">\n <view v-for=\"(orderItem, index) in order.orderItemList\" :key=\"orderItem.id\">\n <view class=\"u-body-item u-flex u-col-between u-p-10\">\n <u-image :height=\"200\" :lazy-load=\"true\" :src=\"orderItem.imgUrl\" :width=\"200\"></u-image>\n <view class=\"orderItemPrices u-p-20\">\n <view class=\"u-font-xl\">{{ orderItem.skuName }}</view>\n <view>单价:¥{{ orderItem.skuPrice }}</view>\n <view>数量:{{ orderItem.skuNum }}</view>\n <view v-if=\"orderItem.splitActivityAmount > 0\">活动金额:¥{{ orderItem.splitActivityAmount }}</view>\n <view v-if=\"orderItem.splitCouponAmount > 0\">优惠券额:¥{{ orderItem.splitCouponAmount }}</view>\n <view>\n 小计:\n <text class=\"u-type-error\">¥{{ orderItem.splitTotalAmount }}</text>\n </view>\n </view>\n </view>\n </view>\n <view>\n <view class=\"u-flex u-row-between u-p-20\">\n <view>商品总额:</view>\n <view>¥{{ order.originalTotalAmount }}</view>\n </view>\n <view class=\"u-flex u-row-between u-p-20\">\n <view>实际付款:</view>\n <view>¥{{ order.totalAmount }}</view>\n </view>\n </view>\n </view>\n </u-card>\n\n <u-card :padding=\"10\" :show-head=\"false\">\n <view slot=\"body\" class=\"u-m-10\">\n <view class=\"u-flex u-row-between u-p-20\">\n <view class=\"u-flex-1\">订单编号:</view>\n <view class=\"u-flex\">\n <view>{{ order.orderNo }}</view>\n <view class=\"u-type-primary u-p-l-10\" @click=\"copyOrderNo\">复制</view>\n </view>\n </view>\n <view class=\"u-flex u-row-between u-p-20\">\n <view class=\"u-flex-1\">下单时间:</view>\n <view>{{ order.createTime }}</view>\n </view>\n </view>\n </u-card>\n </scroll-view>\n\n <view class=\"gg-navigation\">\n <view class=\"navigation\">\n <view class=\"buy btn u-line-1\" @click=\"payOrder\">支付订单</view>\n </view>\n </view>\n </view>\n </view>\n</template>\n\n<script>\nexport default {\n data() {\n return {\n timer: null,\n resul: {},\n orderId: 0,\n order: {}\n };\n },\n onLoad(options) {\n this.orderId = +options.orderId;\n },\n methods: {\n async getOrderInfoById(orderId) {\n const result = await this.$u.api.getOrderInfo({orderId});\n this.order = result;\n },\n copyOrderNo() {\n uni.setClipboardData({\n data: this.order.orderNo, //要被复制的内容\n success: () => {\n //复制成功的回调函数\n uni.showToast({\n title: '复制成功',\n icon: 'none'\n });\n }\n });\n },\n async payOrder() {\n const result = await this.$u.api.getWxPayment({orderNo: this.order.orderNo});\n wx.requestPayment({\n timeStamp: result.timeStamp,\n nonceStr: result.nonceStr,\n package: result.package,\n signType: 'MD5',\n paySign: result.paySign,\n success: res => {\n this.$u.api.getOrderStatus({orderNo: this.order.orderNo});\n uni.showToast({\n title: '支付成功',\n icon: 'none'\n });\n uni.switchTab({\n url: '/pages/index/index'\n });\n },\n fail: err => {\n uni.showToast({\n icon: 'none',\n title: err\n });\n }\n });\n }\n },\n mounted() {\n this.getOrderInfoById(this.orderId);\n }\n};\n</script>\n\n<style lang=\"scss\">\n.gg {\n height: 100%;\n background-color: $u-bg-color;\n\n // scrollView的固定高度设置\n // 底部导航与顶部自定义导航高度需要减去\n &-cart-sv-container {\n height: calc(100vh - 90rpx - 136rpx);\n }\n\n .orderItemPrices {\n display: flex;\n flex-direction: column;\n }\n\n // 底部导航\n &-navigation {\n width: 100%;\n height: 90rpx;\n position: fixed;\n bottom: 0;\n\n .navigation {\n height: 100%;\n display: flex;\n justify-content: flex-end;\n border: solid 2rpx #f2f2f2;\n background-color: #ffffff;\n padding: 12rpx 0;\n\n .btn {\n line-height: 66rpx;\n padding: 0 30rpx;\n border-radius: 36rpx;\n color: #ffffff;\n }\n\n .buy {\n background-color: #ff7900;\n margin: 0 30rpx;\n }\n }\n }\n}\n</style>\n","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./getOrderInfo.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./getOrderInfo.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1705987583999\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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":""}