1 line
11 KiB
Plaintext
1 line
11 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/subPages/electronic-stub/index.vue?5c98","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/subPages/electronic-stub/index.vue?2b7b","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/subPages/electronic-stub/index.vue?a3cf","uni-app:///subPages/electronic-stub/index.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,0G,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACoE;AACL;AAC4B;;;AAG3F;AAC+L;AAC/L,gBAAgB,sMAAU;AAC1B,EAAE,sFAAM;AACR,EAAE,4FAAM;AACR,EAAE,qGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAA4uB,CAAgB,uvBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC2EhwB;;;;AAIA;;;;AAIA,+K;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,8BACA,qCACA,wBADA,EAEA,gBAFA,EAGA,mBAHA,EAIA,oBAJA,EAKA,iBALA,EAMA,cANA,EAOA,iBAPA,EAQA,kBARA,EASA,eATA,EAUA,SAVA,EAWA,eAXA,EAYA,iBAZA,EAaA,UAbA,EAcA,WAdA,EAeA,oBAfA,IAiBA,wCACA,gCACA,qBACA,CAHA,E,CAIA;AACA,wDACA,+DACA,2BADA,gBAsBA,QAtBA,CAGA,oBAHA,aAGA,oBAHA,CAIA,YAJA,aAIA,YAJA,CAKA,UALA,aAKA,UALA,CAMA,gBANA,aAMA,gBANA,CAOA,YAPA,aAOA,YAPA,CAQA,cARA,aAQA,cARA,CASA,eATA,aASA,eATA,CAUA,cAVA,aAUA,cAVA,CAWA,UAXA,aAWA,UAXA,CAYA,YAZA,aAYA,YAZA,CAaA,aAbA,aAaA,aAbA,CAcA,aAdA,aAcA,aAdA,CAeA,aAfA,aAeA,aAfA,CAgBA,MAhBA,aAgBA,MAhBA,CAiBA,WAjBA,aAiBA,WAjBA,CAkBA,aAlBA,aAkBA,aAlBA,CAmBA,UAnBA,aAmBA,UAnBA,CAoBA,OApBA,aAoBA,OApBA,CAqBA,gBArBA,aAqBA,gBArBA,CAuBA,sDACA,sCACA,kCACA,8FACA,eADA,CAEA,oGACA,+FACA,SADA,CACA,IADA,GACA,GADA,GACA,EADA,EAEA,qDACA,4DACA,0BACA,wCACA,oCACA,mDACA,+CACA,kCACA,4BACA,8CACA,CAzCA,EA0CA,CA3CA,C","file":"subPages/electronic-stub/index.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './subPages/electronic-stub/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=eccf7176&scoped=true&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./index.vue?vue&type=script&setup=true&lang=js&\"\nimport style0 from \"./index.scss?vue&type=style&index=0&id=eccf7176&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!C:\\\\Users\\\\itcast\\\\Downloads\\\\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 \"eccf7176\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"subPages/electronic-stub/index.vue\"\nexport default component.exports","export * from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=eccf7176&scoped=true&\"","import mod from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&setup=true&lang=js&\"","<template>\r\n\t<!-- 头部导航栏 -->\r\n\t<nav-bar title='电子存根'></nav-bar>\r\n\t<view class=\"electronic-stub\">\r\n\t\t<view class=\"content\">\r\n\t\t\t<view class=\"code-box\">\r\n\t\t\t\t<image class=\"code-url\" :src=\"orderInfo.barCode?orderInfo.barCode:'../../static/collect.png'\" />\r\n\t\t\t\t<view class=\"order-num\">{{orderInfo.transportOrderId}}</view>\r\n\t\t\t</view>\r\n\t\t\t<!-- 运单地点信息 -->\r\n\t\t\t<view class=\"address-box\">\r\n\t\t\t\t<view class=\"left\">\r\n\t\t\t\t\t<view class=\"send\">寄</view>\r\n\t\t\t\t\t<view class=\"line\"></view>\r\n\t\t\t\t\t<view class=\"get\">收</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"right\">\r\n\t\t\t\t\t<view class=\"send-people\">\r\n\t\t\t\t\t\t<view class=\"send-title\">\r\n\t\t\t\t\t\t\t<view class=\"send-sub-title\">\r\n\t\t\t\t\t\t\t\t{{orderInfo.senderName}}\r\n\t\t\t\t\t\t\t\t<text>{{orderInfo.senderPhone.replace(/(\\d{3})\\d{4}(\\d{4})/, \"$1****$2\")}}</text>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view class=\"send-desc\">{{orderInfo.senderAddress}}</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"line\"></view>\r\n\t\t\t\t\t<view class=\"get-people\">\r\n\t\t\t\t\t\t<view class=\"send-title\">\r\n\t\t\t\t\t\t\t<view class=\"send-sub-title\">\r\n\t\t\t\t\t\t\t\t{{orderInfo.receiverName}}\r\n\t\t\t\t\t\t\t\t<text>{{orderInfo.receiverPhone.replace(/(\\d{3})\\d{4}(\\d{4})/, \"$1****$2\")}}</text>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view class=\"send-desc\">{{orderInfo.receiverAddress}}</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<!-- 运单详情 -->\r\n\t\t\t<view class=\"order-info\">\r\n\t\t\t\t<view class=\"order-item\">\r\n\t\t\t\t\t<view class=\"label\">物品</view>\r\n\t\t\t\t\t<view class=\"value\">{{orderInfo.goods}}</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"order-item\">\r\n\t\t\t\t\t<view class=\"label\">计费重量</view>\r\n\t\t\t\t\t<view class=\"value\">{{orderInfo.goodsWeight}}kg</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"order-item\">\r\n\t\t\t\t\t<view class=\"label\">数量</view>\r\n\t\t\t\t\t<view class=\"value\">1</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"order-item\">\r\n\t\t\t\t\t<view class=\"label\">付费方式</view>\r\n\t\t\t\t\t<view class=\"value\">{{orderInfo.paymentMethod}}</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"order-item\">\r\n\t\t\t\t\t<view class=\"label\">基础运费</view>\r\n\t\t\t\t\t<view class=\"value\">{{orderInfo.amount}}元</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"order-item\">\r\n\t\t\t\t\t<view class=\"label\">下单时间</view>\r\n\t\t\t\t\t<view class=\"value\">{{orderInfo.createTime}}</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"order-item\">\r\n\t\t\t\t\t<view class=\"label\">运单号</view>\r\n\t\t\t\t\t<view class=\"value\">{{orderInfo.transportOrderId}}</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref,\r\n\t\treactive\r\n\t} from 'vue';\r\n\timport {\r\n\t\tdoOrder,\r\n\t\tgetOrderDetail\r\n\t} from '@/pages/api/order.js'\r\n\timport {\r\n\t\tonLoad\r\n\t} from '@dcloudio/uni-app';\r\n\tlet orderId = ref()\r\n\tlet orderInfo = reactive({\r\n\t\testimatedArrivalTime: '',\r\n\t\treceiverName: '',\r\n\t\treceiverAddress: '',\r\n\t\treceiverProvince: '',\r\n\t\treceiverPhone: '',\r\n\t\tsenderName: '',\r\n\t\tsenderAddress: '',\r\n\t\tsenderProvince: '',\r\n\t\tsenderPhone: '',\r\n\t\tgoods: '',\r\n\t\tgoodsWeight: '',\r\n\t\tpaymentMethod: '',\r\n\t\tamount: '',\r\n\t\tbarCode: '',\r\n\t\ttransportOrderId: ''\r\n\t})\r\n\tonLoad((options) => {\r\n\t\torderId.value = options.orderId\r\n\t\tgetOrderDetailFunc()\r\n\t})\r\n\t//获取订单详情\r\n\tconst getOrderDetailFunc = () => {\r\n\t\tgetOrderDetail(orderId.value).then((res) => {\r\n\t\t\tconsole.log(res, '获取订单详情')\r\n\t\t\tconst {\r\n\t\t\t\testimatedArrivalTime,\r\n\t\t\t\treceiverName,\r\n\t\t\t\tsenderName,\r\n\t\t\t\treceiverProvince,\r\n\t\t\t\treceiverCity,\r\n\t\t\t\treceiverCounty,\r\n\t\t\t\treceiverAddress,\r\n\t\t\t\tsenderProvince,\r\n\t\t\t\tsenderCity,\r\n\t\t\t\tsenderCounty,\r\n\t\t\t\tsenderAddress,\r\n\t\t\t\torderCargoVOS,\r\n\t\t\t\tpaymentMethod,\r\n\t\t\t\tamount,\r\n\t\t\t\tsenderPhone,\r\n\t\t\t\treceiverPhone,\r\n\t\t\t\tcreateTime,\r\n\t\t\t\tbarCode,\r\n\t\t\t\ttransportOrderId\r\n\t\t\t} = res.data\r\n\t\t\torderInfo.estimatedArrivalTime = estimatedArrivalTime\r\n\t\t\torderInfo.receiverName = receiverName\r\n\t\t\torderInfo.senderName = senderName\r\n\t\t\torderInfo.receiverAddress = receiverProvince.name + receiverCity.name + receiverCounty.name +\r\n\t\t\t\treceiverAddress\r\n\t\t\torderInfo.senderAddress = senderProvince.name + senderCity.name + senderCounty.name + senderAddress\r\n\t\t\torderInfo.goods = orderCargoVOS[0].name + (orderCargoVOS[0].goodsType ? ('(' + orderCargoVOS[0]\r\n\t\t\t\t.goodsType.name + ')') : '')\r\n\t\t\torderInfo.goodsWeight = orderCargoVOS[0].totalWeight\r\n\t\t\torderInfo.paymentMethod = paymentMethod === 1 ? '寄付' : '到付'\r\n\t\t\torderInfo.amount = amount\r\n\t\t\torderInfo.receiverPhone = receiverPhone\r\n\t\t\torderInfo.senderPhone = senderPhone\r\n\t\t\torderInfo.receiverProvince = receiverProvince.name\r\n\t\t\torderInfo.senderProvince = senderProvince.name\r\n\t\t\torderInfo.createTime = createTime\r\n\t\t\torderInfo.barCode = barCode\r\n\t\t\torderInfo.transportOrderId = transportOrderId\r\n\t\t})\r\n\t}\r\n</script>\r\n\r\n<style src=\"./index.scss\" lang=\"scss\" scoped></style>\n"],"sourceRoot":""} |