Commit b3c3041b by 肖康

x

parent 5cf11fb0
Showing with 411 additions and 15 deletions
......@@ -301,4 +301,8 @@
i{color:#e14e4e;}
}
}
.van-empty__image{
width:244px;
height:184px;
}
}
\ No newline at end of file
.shiplist{
padding-top:89px ;
.o-header{
height: 40px;
background: #8D9598;
position: fixed;
z-index: 2;
left:0px;top:0px;right:0px;
.order-back{
margin-left: 0.36rem;
margin-right: 0.25rem;
color:#fff;
font-size: 20px;
position: relative;
top:0.20rem;
cursor: pointer;
}
.search-box{
padding-top: 0.17rem;
position: relative;
i{
font-size: 20px;position: absolute;
top: 0.22rem;
left: 0.24rem;color:#999999;
cursor: pointer;
}
input{
width:5.33rem;height: 27px;
border-radius: 27px;
padding-left: 1rem;
background: #FFFFFF;
}
}
.shift{
color:#fff;
font-size: 15px;
margin-left: 0.4rem;
margin-top: 0.25rem;
cursor: pointer;
}
.order-kf{
color:#fff;
font-size: 20px;
cursor: pointer;
margin-top: 0.22rem;
margin-right: 0.37rem;
}
}
.o-tabnav{
height:49px;
.van-tabs__wrap{height:49px;}
.van-tab__text{color:#333;font-size: 14px;}
.van-tab--active .van-tab__text{color:#1969F9;}
.van-tabs__line{background-color:#1969F9;}
.van-tabs__line{width:55px;}
position: fixed;
z-index: 2;
left:0px;top:40px;right:0px;
}
.o-list{
.van-hairline--surround::after,.van-hairline--top::after{
border:1px solid #e5e5e5;
}
.list-group{
background: #fff;
margin-top: 0.4rem;
padding:0.33rem;
.l-h{
color:#6F6F6F;
font-size: 12px;
height: 17px;
line-height: 17px;
margin-bottom: 0.44rem;
span{
color:#333;
display: inline-block;
width: 1.12rem;
height: 17px;
background: #F9F9F9;
border-radius: 2px;
border: 1px solid #E5E5E5;
text-align: center;
cursor: pointer;
margin-left: 0.22rem;
margin-right: 0.22rem;
}
@media screen and (max-width:320px) {
span{ margin-left: 0.1rem;
margin-right: 0.1rem;}
p{height:17px;width:67px;overflow: hidden;}
}
font{
color:#333;
&.yellows{color:#F1730F}
&.reds{color:#E25555;}
&.greens{color:#2CA521;}
}
}
.l-c{
background: #F9F9F9;
margin-bottom: 0.33rem;
.goods-group{
padding:0.24rem 0.3rem;
height:17px;
line-height: 17px;
a{width:4.88rem;margin-right: 0.4rem;color:#333;}
@media screen and (max-width:320px) {
a{width:4rem;margin-right: 0.2rem;}
}
}
}
.l-b{
font-size: 12px;
text-align: right;
span{color:#6F6F6F;}
div{color:#FF693D;margin-left: 0.31rem;}
p{color:#333;font-size: 17px;
b{color:#FF693D;font-weight: normal;}
i{display: block;color:#999;font-size: 12px;margin-top: 10px;.mr10{margin-right: 10px;}}
}
.van-count-down{font-size: 12px;margin-left: 0px;margin-top: -0.02rem;}
}
.btn-boxs{
margin-top: 0.61rem;
.btn{
width: 2.4rem;
height: 0.73rem;
line-height: 0.73rem;
display: block;
background: #1969F9;
border-radius: 2px;
text-align: center;
margin-left: 10px;
color:#fff;
cursor: pointer;
border:1px solid #1969F9;
&.btn-lk{
background: #fff;
color:#1969F9;
}
&.btn-default{
background: #fff;
border:1px solid #d2d2d2;
color:#333;
}
}
}
}
}
.again-box{
position: fixed;
top:0;
bottom:0;
left:0;
right:0;
z-index: 5;
.mask{
background: rgba(0,0,0,0.4);
position: fixed;
top:0;
bottom:0;
left:0;
right:0;
}
.type1{
width: 7.47rem;
padding-top:1.52rem;
box-sizing: border-box;
background: #FFFFFF;
border-radius: 0.11rem;
margin:0 auto;
position: relative;
top:50%;
margin-top:-3.33rem;
text-align: center;
i{font-size: 55px;color:#52c41a;display: block;margin-bottom: 0.64rem;}
p{font-size: 14px;color:#333;line-height: 30px;}
.foot-box{
border-top: 1px solid #e5e5e5;
padding:0.24rem 0;
margin-top: 0.4rem;
position: relative;
&::before{
content: "";
height:0.75rem;
width:1px;
background: #e5e5e5;
position: absolute;
text-align: center;
}
.btn{
height:0.75rem;line-height: 0.75rem;
color:#999;font-size: 16px;
width:50%;
}
.carlink{
color:#1969F9;
}
}
}
.type2{
top:4.5rem;
margin-top:0px;
padding-top: 0.73rem;
i{margin-bottom: 0.44rem;}
.t-hp{
font-size: 12px;
.f-red{color:#F44949;}
}
.t-list{
width: 6.88rem;
background: #F9F9F9;
border: 1px solid #E5E5E5;
border-bottom:0px;
margin:0 auto;
margin-top: 0.35rem;
a{
display: block;
color:#333;
padding: 0.18rem 0.39rem;
text-align: left;
border-bottom:1px solid #e5e5e5;
}
}
}
.type3{
i{color:#e14e4e;}
}
}
.van-empty__image{
width:244px;
height:184px;
}
}
\ No newline at end of file
.shiplist{padding-top:89px }.shiplist .o-header{height:40px;background:#8D9598;position:fixed;z-index:2;left:0px;top:0px;right:0px}.shiplist .o-header .order-back{margin-left:.36rem;margin-right:.25rem;color:#fff;font-size:20px;position:relative;top:.2rem;cursor:pointer}.shiplist .o-header .search-box{padding-top:.17rem;position:relative}.shiplist .o-header .search-box i{font-size:20px;position:absolute;top:.22rem;left:.24rem;color:#999999;cursor:pointer}.shiplist .o-header .search-box input{width:5.33rem;height:27px;border-radius:27px;padding-left:1rem;background:#FFFFFF}.shiplist .o-header .shift{color:#fff;font-size:15px;margin-left:.4rem;margin-top:.25rem;cursor:pointer}.shiplist .o-header .order-kf{color:#fff;font-size:20px;cursor:pointer;margin-top:.22rem;margin-right:.37rem}.shiplist .o-tabnav{height:49px;position:fixed;z-index:2;left:0px;top:40px;right:0px}.shiplist .o-tabnav .van-tabs__wrap{height:49px}.shiplist .o-tabnav .van-tab__text{color:#333;font-size:14px}.shiplist .o-tabnav .van-tab--active .van-tab__text{color:#1969F9}.shiplist .o-tabnav .van-tabs__line{background-color:#1969F9}.shiplist .o-tabnav .van-tabs__line{width:55px}.shiplist .o-list .van-hairline--surround::after,.shiplist .o-list .van-hairline--top::after{border:1px solid #e5e5e5}.shiplist .o-list .list-group{background:#fff;margin-top:.4rem;padding:.33rem}.shiplist .o-list .list-group .l-h{color:#6F6F6F;font-size:12px;height:17px;line-height:17px;margin-bottom:.44rem}.shiplist .o-list .list-group .l-h span{color:#333;display:inline-block;width:1.12rem;height:17px;background:#F9F9F9;border-radius:2px;border:1px solid #E5E5E5;text-align:center;cursor:pointer;margin-left:.22rem;margin-right:.22rem}@media screen and (max-width:320px){.shiplist .o-list .list-group .l-h span{margin-left:.1rem;margin-right:.1rem}.shiplist .o-list .list-group .l-h p{height:17px;width:67px;overflow:hidden}}.shiplist .o-list .list-group .l-h font{color:#333}.shiplist .o-list .list-group .l-h font.yellows{color:#F1730F}.shiplist .o-list .list-group .l-h font.reds{color:#E25555}.shiplist .o-list .list-group .l-h font.greens{color:#2CA521}.shiplist .o-list .list-group .l-c{background:#F9F9F9;margin-bottom:.33rem}.shiplist .o-list .list-group .l-c .goods-group{padding:.24rem .3rem;height:17px;line-height:17px}.shiplist .o-list .list-group .l-c .goods-group a{width:4.88rem;margin-right:.4rem;color:#333}@media screen and (max-width:320px){.shiplist .o-list .list-group .l-c .goods-group a{width:4rem;margin-right:.2rem}}.shiplist .o-list .list-group .l-b{font-size:12px;text-align:right}.shiplist .o-list .list-group .l-b span{color:#6F6F6F}.shiplist .o-list .list-group .l-b div{color:#FF693D;margin-left:.31rem}.shiplist .o-list .list-group .l-b p{color:#333;font-size:17px}.shiplist .o-list .list-group .l-b p b{color:#FF693D;font-weight:normal}.shiplist .o-list .list-group .l-b p i{display:block;color:#999;font-size:12px;margin-top:10px}.shiplist .o-list .list-group .l-b p i .mr10{margin-right:10px}.shiplist .o-list .list-group .l-b .van-count-down{font-size:12px;margin-left:0px;margin-top:-0.02rem}.shiplist .o-list .list-group .btn-boxs{margin-top:.61rem}.shiplist .o-list .list-group .btn-boxs .btn{width:2.4rem;height:.73rem;line-height:.73rem;display:block;background:#1969F9;border-radius:2px;text-align:center;margin-left:10px;color:#fff;cursor:pointer;border:1px solid #1969F9}.shiplist .o-list .list-group .btn-boxs .btn.btn-lk{background:#fff;color:#1969F9}.shiplist .o-list .list-group .btn-boxs .btn.btn-default{background:#fff;border:1px solid #d2d2d2;color:#333}.shiplist .again-box{position:fixed;top:0;bottom:0;left:0;right:0;z-index:5}.shiplist .again-box .mask{background:rgba(0,0,0,0.4);position:fixed;top:0;bottom:0;left:0;right:0}.shiplist .again-box .type1{width:7.47rem;padding-top:1.52rem;box-sizing:border-box;background:#FFFFFF;border-radius:.11rem;margin:0 auto;position:relative;top:50%;margin-top:-3.33rem;text-align:center}.shiplist .again-box .type1 i{font-size:55px;color:#52c41a;display:block;margin-bottom:.64rem}.shiplist .again-box .type1 p{font-size:14px;color:#333;line-height:30px}.shiplist .again-box .type1 .foot-box{border-top:1px solid #e5e5e5;padding:.24rem 0;margin-top:.4rem;position:relative}.shiplist .again-box .type1 .foot-box::before{content:"";height:.75rem;width:1px;background:#e5e5e5;position:absolute;text-align:center}.shiplist .again-box .type1 .foot-box .btn{height:.75rem;line-height:.75rem;color:#999;font-size:16px;width:50%}.shiplist .again-box .type1 .foot-box .carlink{color:#1969F9}.shiplist .again-box .type2{top:4.5rem;margin-top:0px;padding-top:.73rem}.shiplist .again-box .type2 i{margin-bottom:.44rem}.shiplist .again-box .type2 .t-hp{font-size:12px}.shiplist .again-box .type2 .t-hp .f-red{color:#F44949}.shiplist .again-box .type2 .t-list{width:6.88rem;background:#F9F9F9;border:1px solid #E5E5E5;border-bottom:0px;margin:0 auto;margin-top:.35rem}.shiplist .again-box .type2 .t-list a{display:block;color:#333;padding:.18rem .39rem;text-align:left;border-bottom:1px solid #e5e5e5}.shiplist .again-box .type3 i{color:#e14e4e}.shiplist .van-empty__image{width:244px;height:184px}
\ No newline at end of file
......@@ -45,6 +45,7 @@ const userAddress = resolve => require(['@/views/user/address'], resolve);
const userOrder = resolve => require(['@/views/user/order'], resolve);
const shipping = resolve => require(['@/views/user/shipping'], resolve);
const shiplist = resolve => require(['@/views/user/shiplist'], resolve);
......@@ -341,9 +342,17 @@ const routes = [{
}
},
{
path: '/Usershipping',
path: '/userShipping',
component: shipping,
meta: {
title: '物流跟踪',
back: true
}
},
{
path: '/shiplist',
component: shiplist,
meta: {
title: '物流查询',
back: true
}
......
......@@ -24,9 +24,8 @@ const actions = {
}
Services.shipping(qs.stringify(params)).then((res) => {
state.loading = false;
if (res.data.err_code == 0) {
console.log(res.data)
state.wlInfo=res.data.data[0]
}else{
Toast(res.data.err_msg)
}
......@@ -47,6 +46,7 @@ const actions = {
let data = res.data;
if (data.err_code == 0) {
state.userInfo=data.data;
}else {
Toast({
message: data.err_msg,
......
......@@ -64,7 +64,7 @@
</div>
</div>
<div class="empty" v-show="isEmpty">
<van-empty description="描述文字" />
<van-empty image="http://img.ichunt.com/images/ichunt/h5_public/icon_1.png" description="抱歉,您暂无相关订单!" />
</div>
<div class="shift-panel" v-show="shiftIsShow">
<div class="shift-box">
......@@ -221,9 +221,9 @@
}
},
watch: {
$route(to) {
this.tabUi();
this.getData()
$route(to,from) {
this.tabUi();
this.getData()
},
againBuy: {
handler(newVal, oldVal) {
......@@ -354,7 +354,7 @@
//查看物流
ship(order_id,order_sn) {
this.$router.push({
path: '/Usershipping',
path: '/userShipping',
query: {
order_id: order_id,
order_sn:order_sn
......@@ -396,6 +396,7 @@
},
getData() {
var datap = {
type: 'orderLists',
status: this.orderStatus,
......
......@@ -5,7 +5,7 @@
<div class="fl c-6">订单编号</div>
<div class="fl"><span @click="copy(order_sn)">复制</span>{{order_sn}}</div>
<div class="fl c-6">快递公司</div>
<div class="fl">顺丰快递</div>
<div class="fl">{{wlInfo.shipping_name}}</div>
</div>
<div class="ship-cp">
<div class="cp-t ">
......@@ -18,14 +18,13 @@
<p>{{userInfo.company_info.com_address}}</p>
</div>
</div>
<div class="wuliudanhao">快递单号:12345678974542121 <span @click="copy(666)">复制</span></div>
<div class="wuliudanhao">快递单号:{{wlInfo.shipping_no}} <span @click="copy(wlInfo.shipping_no)">复制</span></div>
</div>
<div class="ship-box">
<div class="wu-group act">
<div class="time-gh">10-27<span>10:10</span></div>
<div class="wu-group " :class="{'act':index==0}" v-for="(item,index) in wlInfo.info">
<div class="time-gh">{{item.AcceptTime.substring(5,10)}}<span>{{item.AcceptTime.substring(11,16)}}</span></div>
<div class="g-te">
<div class="title-tt">运输中</div>
您的包裹已出库,等待国内配送,配送公司:韵达快快递,运单号:4545454578
{{item.AcceptStation}}
</div>
</div>
......@@ -64,7 +63,8 @@
this.order_id=this.$route.query.order_id;
this.order_sn=this.$route.query.order_sn;
this.$store.dispatch({
type: "shipping"
type: "shipping",
order_id:this.order_id
})
this.$store.dispatch({
type: "getUserbase"
......
{"h":"4589798f15fe1fb2dd9e","c":{"40":true}}
\ No newline at end of file
{"h":"7785e2452cf63bb0015b","c":{"39":true}}
\ No newline at end of file
{"h":"76773d52ee9fd5fb25e7","c":{"0":true}}
\ No newline at end of file
{"h":"ee12a5f1c3a9b3b82d50","c":{"0":true}}
\ No newline at end of file
{"h":"9f522c5094cea0ac8b25","c":{"39":true}}
\ No newline at end of file
{"h":"8d0c0e4fb6b4d70f481a","c":{"40":true}}
\ No newline at end of file
{"h":"aabb04e7d88782bc05be","c":{"40":true}}
\ No newline at end of file
This diff could not be displayed because it is too large.
{"h":"017a815103d1dc4b4f07","c":{"40":true}}
\ No newline at end of file
{"h":"5b84249dcc5cfd009aad","c":{"0":true}}
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
{"h":"3db97e3781a79b101b54","c":{"40":true}}
\ No newline at end of file
{"h":"1ffcf52177a9c340f83a","c":{"40":true}}
\ No newline at end of file
{"h":"fcfc0f1339bf5ddc0905","c":{"40":true}}
\ No newline at end of file
{"h":"527ef9f6d88a4d017909","c":{}}
\ No newline at end of file
{"h":"3ec008b9105b1009b5e2","c":{"0":true}}
\ No newline at end of file
{"h":"85df066717d56741c967","c":{"0":true}}
\ No newline at end of file
{"h":"7ff824907a008c4c0e7e","c":{"app":true}}
\ No newline at end of file
{"h":"417803cef64faf3b2256","c":{"40":true}}
\ No newline at end of file
{"h":"65b62f1e3c41edacb79c","c":{"0":true}}
\ No newline at end of file
{"h":"8a15c35cabc68e861e29","c":{"0":true}}
\ No newline at end of file
{"h":"b9ce737ccb573c1ec6c5","c":{"0":true}}
\ No newline at end of file
{"h":"840774903416cb7c64cd","c":{"app":true}}
\ No newline at end of file
{"h":"ac01564e2e4855e49c4e","c":{"40":true}}
\ No newline at end of file
{"h":"d825b538e2ca7f69e123","c":{"0":true}}
\ No newline at end of file
{"h":"9d1bc6919d0366b6cb6c","c":{"39":true}}
\ No newline at end of file
{"h":"a06914c36499264d4bb0","c":{}}
\ No newline at end of file
{"h":"13e53b88bda73da903ac","c":{"39":true}}
\ No newline at end of file
{"h":"718c00792404fc781512","c":{"39":true}}
\ No newline at end of file
{"h":"494ff1bc319d76c3b61e","c":{"0":true}}
\ No newline at end of file
{"h":"88abd835eed311af3ee0","c":{"app":true}}
\ No newline at end of file
{"h":"05c63e6d0dc1e57f06b6","c":{"0":true}}
\ No newline at end of file
{"h":"0c3e1396b15aea04d50a","c":{"0":true}}
\ No newline at end of file
{"h":"764e0fad90c97330a01c","c":{"40":true}}
\ No newline at end of file
{"h":"f0f6d4e5bcced327e7c7","c":{"39":true}}
\ No newline at end of file
{"h":"c169f4a6bb6a508a8c2c","c":{"app":true}}
\ No newline at end of file
{"h":"6d2b39e5d42af0438942","c":{"app":true}}
\ No newline at end of file
{"h":"01a732d473dac798a99d","c":{"0":true}}
\ No newline at end of file
{"h":"d69f70cb85e1243e9b97","c":{}}
\ No newline at end of file
{"h":"45f2bd3995dd61659e33","c":{"40":true}}
\ No newline at end of file
{"h":"f308613c6e277ed5c09f","c":{"40":true}}
\ No newline at end of file
webpackHotUpdate("app",{
/***/ "./src/store/modules/user/shipping.js":
/*!********************************************!*\
!*** ./src/store/modules/user/shipping.js ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.11.2@vant/es/index.js\");\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.4@qs/lib/index.js\");\n\nvar state = {\n loading: false,\n wlInfo: \"\",\n userInfo: {\n user_info: {\n user_head: \"\"\n },\n company_info: {\n com_addres: \"\"\n }\n }\n};\nvar mutations = {};\nvar actions = {\n //获取物流信息\n shipping: function shipping(_ref, payload) {\n var commit = _ref.commit;\n state.loading = true;\n var params = {\n id: payload.order_id\n };\n _api_index__WEBPACK_IMPORTED_MODULE_0__[\"services\"].shipping(qs.stringify(params)).then(function (res) {\n state.loading = false;\n console.log(res.data);\n\n if (res.data.err_code == 0) {} else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])(res.data.err_msg);\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n getUserbase: function getUserbase(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n type: 2\n };\n _api_index__WEBPACK_IMPORTED_MODULE_0__[\"services\"].getUserType(qs.stringify(params)).then(function (res) {\n state.loading = false;\n var data = res.data;\n\n if (data.err_code == 0) {\n state.userInfo = data.data;\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n }\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3RvcmUvbW9kdWxlcy91c2VyL3NoaXBwaW5nLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL3N0b3JlL21vZHVsZXMvdXNlci9zaGlwcGluZy5qcz9jNjc2Il0sInNvdXJjZXNDb250ZW50IjpbIlxyXG5pbXBvcnQgeyBzZXJ2aWNlcyBhcyBTZXJ2aWNlcywgcHJvZHVjdGlvblVybEFwaSB9IGZyb20gJy4uLy4uLy4uL2FwaS9pbmRleCdcclxuaW1wb3J0IHsgVG9hc3QgfSBmcm9tICd2YW50J1xyXG52YXIgcXMgPSByZXF1aXJlKCdxcycpO1xyXG5cclxuXHJcbmNvbnN0IHN0YXRlID0ge1xyXG4gICAgbG9hZGluZzogZmFsc2UsXHJcbiAgICB3bEluZm86XCJcIixcclxuICAgIHVzZXJJbmZvOnt1c2VyX2luZm86e3VzZXJfaGVhZDpcIlwifSxjb21wYW55X2luZm86e2NvbV9hZGRyZXM6XCJcIn19LFxyXG4gICBcclxufVxyXG5cclxuY29uc3QgbXV0YXRpb25zID0ge1xyXG5cclxufVxyXG5jb25zdCBhY3Rpb25zID0ge1xyXG5cclxuICAgIC8v6I635Y+W54mp5rWB5L+h5oGvXHJcbiAgICBzaGlwcGluZyh7IGNvbW1pdCB9LCBwYXlsb2FkKSB7XHJcbiAgICAgICAgc3RhdGUubG9hZGluZyA9IHRydWU7XHJcbiAgICAgICAgdmFyIHBhcmFtcyA9IHtcclxuICAgICAgICAgICAgaWQ6IHBheWxvYWQub3JkZXJfaWRcclxuICAgICAgICB9XHJcbiAgICAgICAgU2VydmljZXMuc2hpcHBpbmcocXMuc3RyaW5naWZ5KHBhcmFtcykpLnRoZW4oKHJlcykgPT4ge1xyXG4gICAgICAgICAgICBzdGF0ZS5sb2FkaW5nID0gZmFsc2U7XHJcbiAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcy5kYXRhKVxyXG4gICAgICAgICAgICBpZiAocmVzLmRhdGEuZXJyX2NvZGUgPT0gMCkge1xyXG4gICAgICAgICAgICAgICAgXHJcbiAgICAgICAgICAgIH1lbHNle1xyXG4gICAgICAgICAgICAgICAgVG9hc3QocmVzLmRhdGEuZXJyX21zZylcclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICB9KS5jYXRjaChmdW5jdGlvbiAoZXJyKSB7XHJcbiAgICAgICAgICAgIHN0YXRlLmxvYWRpbmcgPSBmYWxzZTtcclxuICAgICAgICB9KTtcclxuXHJcblxyXG4gICAgfSxcclxuICAgIGdldFVzZXJiYXNlKHtjb21taXR9LCBwYXlsb2FkKSB7XHJcbiAgICAgICAgc3RhdGUubG9hZGluZz10cnVlO1xyXG4gICAgICAgIHZhciBwYXJhbXMgPSB7XHJcbiAgICAgICAgICAgIHR5cGU6MlxyXG4gICAgICAgIH1cclxuICAgICAgICBTZXJ2aWNlcy5nZXRVc2VyVHlwZShxcy5zdHJpbmdpZnkocGFyYW1zKSkudGhlbigocmVzKSA9PiB7XHJcbiAgICAgICAgICAgIHN0YXRlLmxvYWRpbmc9ZmFsc2U7XHJcbiAgICAgICAgICAgIGxldCBkYXRhID0gcmVzLmRhdGE7XHJcbiAgICAgICAgICAgIGlmIChkYXRhLmVycl9jb2RlID09IDApIHtcclxuICAgICAgICAgICAgICAgIHN0YXRlLnVzZXJJbmZvPWRhdGEuZGF0YTtcclxuICAgICAgICAgICAgICAgXHJcbiAgICAgICAgICAgIH1lbHNlIHtcclxuICAgICAgICAgICAgICAgIFRvYXN0KHtcclxuICAgICAgICAgICAgICAgICAgICBtZXNzYWdlOiBkYXRhLmVycl9tc2csXHJcbiAgICAgICAgICAgICAgICAgICAgZHVyYXRpb246IDMwMDBcclxuICAgICAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfSkuY2F0Y2goZnVuY3Rpb24gKGVycikge1xyXG4gICAgICAgICAgICBzdGF0ZS5sb2FkaW5nID0gZmFsc2U7XHJcbiAgICAgICAgfSk7XHJcbiAgICB9LFxyXG4gICBcclxuICAgXHJcblxyXG5cclxufVxyXG5cclxuY29uc3QgZ2V0dGVycyA9IHt9XHJcblxyXG5leHBvcnQgZGVmYXVsdCB7XHJcbiAgICBzdGF0ZSxcclxuICAgIG11dGF0aW9ucyxcclxuICAgIGFjdGlvbnMsXHJcbiAgICBnZXR0ZXJzXHJcbn1cclxuXHJcbiJdLCJtYXBwaW5ncyI6IkFBQ0E7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFIQTtBQU9BO0FBR0E7QUFFQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFEQTtBQUdBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFHQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBR0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBREE7QUFHQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUZBO0FBSUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQTNDQTtBQWtEQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFKQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/store/modules/user/shipping.js\n");
/***/ })
})
\ No newline at end of file
webpackHotUpdate("app",{
/***/ "./src/store/modules/user/shipping.js":
/*!********************************************!*\
!*** ./src/store/modules/user/shipping.js ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.11.2@vant/es/index.js\");\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.4@qs/lib/index.js\");\n\nvar state = {\n loading: false,\n wlInfo: \"\",\n userInfo: {\n user_info: {\n user_head: \"\"\n },\n company_info: {\n com_addres: \"\"\n }\n }\n};\nvar mutations = {};\nvar actions = {\n //获取物流信息\n shipping: function shipping(_ref, payload) {\n var commit = _ref.commit;\n state.loading = true;\n var params = {\n id: payload.order_id\n };\n _api_index__WEBPACK_IMPORTED_MODULE_0__[\"services\"].shipping(qs.stringify(params)).then(function (res) {\n state.loading = false;\n\n if (res.data.err_code == 0) {\n state.wlInfo = res.data.data[0];\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])(res.data.err_msg);\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n getUserbase: function getUserbase(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n type: 2\n };\n _api_index__WEBPACK_IMPORTED_MODULE_0__[\"services\"].getUserType(qs.stringify(params)).then(function (res) {\n state.loading = false;\n var data = res.data;\n\n if (data.err_code == 0) {\n state.userInfo = data.data;\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n }\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3RvcmUvbW9kdWxlcy91c2VyL3NoaXBwaW5nLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL3N0b3JlL21vZHVsZXMvdXNlci9zaGlwcGluZy5qcz9jNjc2Il0sInNvdXJjZXNDb250ZW50IjpbIlxyXG5pbXBvcnQgeyBzZXJ2aWNlcyBhcyBTZXJ2aWNlcywgcHJvZHVjdGlvblVybEFwaSB9IGZyb20gJy4uLy4uLy4uL2FwaS9pbmRleCdcclxuaW1wb3J0IHsgVG9hc3QgfSBmcm9tICd2YW50J1xyXG52YXIgcXMgPSByZXF1aXJlKCdxcycpO1xyXG5cclxuXHJcbmNvbnN0IHN0YXRlID0ge1xyXG4gICAgbG9hZGluZzogZmFsc2UsXHJcbiAgICB3bEluZm86XCJcIixcclxuICAgIHVzZXJJbmZvOnt1c2VyX2luZm86e3VzZXJfaGVhZDpcIlwifSxjb21wYW55X2luZm86e2NvbV9hZGRyZXM6XCJcIn19LFxyXG4gICBcclxufVxyXG5cclxuY29uc3QgbXV0YXRpb25zID0ge1xyXG5cclxufVxyXG5jb25zdCBhY3Rpb25zID0ge1xyXG5cclxuICAgIC8v6I635Y+W54mp5rWB5L+h5oGvXHJcbiAgICBzaGlwcGluZyh7IGNvbW1pdCB9LCBwYXlsb2FkKSB7XHJcbiAgICAgICAgc3RhdGUubG9hZGluZyA9IHRydWU7XHJcbiAgICAgICAgdmFyIHBhcmFtcyA9IHtcclxuICAgICAgICAgICAgaWQ6IHBheWxvYWQub3JkZXJfaWRcclxuICAgICAgICB9XHJcbiAgICAgICAgU2VydmljZXMuc2hpcHBpbmcocXMuc3RyaW5naWZ5KHBhcmFtcykpLnRoZW4oKHJlcykgPT4ge1xyXG4gICAgICAgICAgICBzdGF0ZS5sb2FkaW5nID0gZmFsc2U7XHJcbiAgICAgICAgICAgIGlmIChyZXMuZGF0YS5lcnJfY29kZSA9PSAwKSB7XHJcbiAgICAgICAgICAgICAgICBzdGF0ZS53bEluZm89cmVzLmRhdGEuZGF0YVswXVxyXG4gICAgICAgICAgICB9ZWxzZXtcclxuICAgICAgICAgICAgICAgIFRvYXN0KHJlcy5kYXRhLmVycl9tc2cpXHJcbiAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgfSkuY2F0Y2goZnVuY3Rpb24gKGVycikge1xyXG4gICAgICAgICAgICBzdGF0ZS5sb2FkaW5nID0gZmFsc2U7XHJcbiAgICAgICAgfSk7XHJcblxyXG5cclxuICAgIH0sXHJcbiAgICBnZXRVc2VyYmFzZSh7Y29tbWl0fSwgcGF5bG9hZCkge1xyXG4gICAgICAgIHN0YXRlLmxvYWRpbmc9dHJ1ZTtcclxuICAgICAgICB2YXIgcGFyYW1zID0ge1xyXG4gICAgICAgICAgICB0eXBlOjJcclxuICAgICAgICB9XHJcbiAgICAgICAgU2VydmljZXMuZ2V0VXNlclR5cGUocXMuc3RyaW5naWZ5KHBhcmFtcykpLnRoZW4oKHJlcykgPT4ge1xyXG4gICAgICAgICAgICBzdGF0ZS5sb2FkaW5nPWZhbHNlO1xyXG4gICAgICAgICAgICBsZXQgZGF0YSA9IHJlcy5kYXRhO1xyXG4gICAgICAgICAgICBpZiAoZGF0YS5lcnJfY29kZSA9PSAwKSB7XHJcbiAgICAgICAgICAgICAgICBzdGF0ZS51c2VySW5mbz1kYXRhLmRhdGE7XHJcbiAgICAgICAgICAgICAgIFxyXG4gICAgICAgICAgICB9ZWxzZSB7XHJcbiAgICAgICAgICAgICAgICBUb2FzdCh7XHJcbiAgICAgICAgICAgICAgICAgICAgbWVzc2FnZTogZGF0YS5lcnJfbXNnLFxyXG4gICAgICAgICAgICAgICAgICAgIGR1cmF0aW9uOiAzMDAwXHJcbiAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pLmNhdGNoKGZ1bmN0aW9uIChlcnIpIHtcclxuICAgICAgICAgICAgc3RhdGUubG9hZGluZyA9IGZhbHNlO1xyXG4gICAgICAgIH0pO1xyXG4gICAgfSxcclxuICAgXHJcbiAgIFxyXG5cclxuXHJcbn1cclxuXHJcbmNvbnN0IGdldHRlcnMgPSB7fVxyXG5cclxuZXhwb3J0IGRlZmF1bHQge1xyXG4gICAgc3RhdGUsXHJcbiAgICBtdXRhdGlvbnMsXHJcbiAgICBhY3Rpb25zLFxyXG4gICAgZ2V0dGVyc1xyXG59XHJcblxyXG4iXSwibWFwcGluZ3MiOiJBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBSEE7QUFPQTtBQUdBO0FBRUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBREE7QUFHQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBR0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBREE7QUFHQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUZBO0FBSUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQTFDQTtBQWlEQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFKQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/store/modules/user/shipping.js\n");
/***/ })
})
\ No newline at end of file
webpackHotUpdate("app",{
/***/ "./src/store/modules/user/shipping.js":
/*!********************************************!*\
!*** ./src/store/modules/user/shipping.js ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.11.2@vant/es/index.js\");\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.4@qs/lib/index.js\");\n\nvar state = {\n loading: false,\n wlInfo: \"\",\n userInfo: {\n user_info: {\n user_head: \"\"\n },\n company_info: {\n com_addres: \"\"\n }\n }\n};\nvar mutations = {};\nvar actions = {\n //获取物流信息\n shipping: function shipping(_ref, payload) {\n var commit = _ref.commit;\n state.loading = true;\n var params = {\n id: payload.order_id\n };\n _api_index__WEBPACK_IMPORTED_MODULE_0__[\"services\"].shipping(qs.stringify(params)).then(function (res) {\n state.loading = false;\n console.log(res.data);\n\n if (res.data.err_code == 0) {\n state.wlInfo = res.data.data[0];\n console.log(state.wlInfo);\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])(res.data.err_msg);\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n getUserbase: function getUserbase(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n type: 2\n };\n _api_index__WEBPACK_IMPORTED_MODULE_0__[\"services\"].getUserType(qs.stringify(params)).then(function (res) {\n state.loading = false;\n var data = res.data;\n\n if (data.err_code == 0) {\n state.userInfo = data.data;\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])({\n message: data.err_msg,\n duration: 3000\n });\n }\n }).catch(function (err) {\n state.loading = false;\n });\n }\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3RvcmUvbW9kdWxlcy91c2VyL3NoaXBwaW5nLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL3N0b3JlL21vZHVsZXMvdXNlci9zaGlwcGluZy5qcz9jNjc2Il0sInNvdXJjZXNDb250ZW50IjpbIlxyXG5pbXBvcnQgeyBzZXJ2aWNlcyBhcyBTZXJ2aWNlcywgcHJvZHVjdGlvblVybEFwaSB9IGZyb20gJy4uLy4uLy4uL2FwaS9pbmRleCdcclxuaW1wb3J0IHsgVG9hc3QgfSBmcm9tICd2YW50J1xyXG52YXIgcXMgPSByZXF1aXJlKCdxcycpO1xyXG5cclxuXHJcbmNvbnN0IHN0YXRlID0ge1xyXG4gICAgbG9hZGluZzogZmFsc2UsXHJcbiAgICB3bEluZm86XCJcIixcclxuICAgIHVzZXJJbmZvOnt1c2VyX2luZm86e3VzZXJfaGVhZDpcIlwifSxjb21wYW55X2luZm86e2NvbV9hZGRyZXM6XCJcIn19LFxyXG4gICBcclxufVxyXG5cclxuY29uc3QgbXV0YXRpb25zID0ge1xyXG5cclxufVxyXG5jb25zdCBhY3Rpb25zID0ge1xyXG5cclxuICAgIC8v6I635Y+W54mp5rWB5L+h5oGvXHJcbiAgICBzaGlwcGluZyh7IGNvbW1pdCB9LCBwYXlsb2FkKSB7XHJcbiAgICAgICAgc3RhdGUubG9hZGluZyA9IHRydWU7XHJcbiAgICAgICAgdmFyIHBhcmFtcyA9IHtcclxuICAgICAgICAgICAgaWQ6IHBheWxvYWQub3JkZXJfaWRcclxuICAgICAgICB9XHJcbiAgICAgICAgU2VydmljZXMuc2hpcHBpbmcocXMuc3RyaW5naWZ5KHBhcmFtcykpLnRoZW4oKHJlcykgPT4ge1xyXG4gICAgICAgICAgICBzdGF0ZS5sb2FkaW5nID0gZmFsc2U7XHJcbiAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcy5kYXRhKVxyXG4gICAgICAgICAgICBpZiAocmVzLmRhdGEuZXJyX2NvZGUgPT0gMCkge1xyXG4gICAgICAgICAgICAgICAgc3RhdGUud2xJbmZvPXJlcy5kYXRhLmRhdGFbMF1cclxuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHN0YXRlLndsSW5mbylcclxuICAgICAgICAgICAgfWVsc2V7XHJcbiAgICAgICAgICAgICAgICBUb2FzdChyZXMuZGF0YS5lcnJfbXNnKVxyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgIH0pLmNhdGNoKGZ1bmN0aW9uIChlcnIpIHtcclxuICAgICAgICAgICAgc3RhdGUubG9hZGluZyA9IGZhbHNlO1xyXG4gICAgICAgIH0pO1xyXG5cclxuXHJcbiAgICB9LFxyXG4gICAgZ2V0VXNlcmJhc2Uoe2NvbW1pdH0sIHBheWxvYWQpIHtcclxuICAgICAgICBzdGF0ZS5sb2FkaW5nPXRydWU7XHJcbiAgICAgICAgdmFyIHBhcmFtcyA9IHtcclxuICAgICAgICAgICAgdHlwZToyXHJcbiAgICAgICAgfVxyXG4gICAgICAgIFNlcnZpY2VzLmdldFVzZXJUeXBlKHFzLnN0cmluZ2lmeShwYXJhbXMpKS50aGVuKChyZXMpID0+IHtcclxuICAgICAgICAgICAgc3RhdGUubG9hZGluZz1mYWxzZTtcclxuICAgICAgICAgICAgbGV0IGRhdGEgPSByZXMuZGF0YTtcclxuICAgICAgICAgICAgaWYgKGRhdGEuZXJyX2NvZGUgPT0gMCkge1xyXG4gICAgICAgICAgICAgICAgc3RhdGUudXNlckluZm89ZGF0YS5kYXRhO1xyXG4gICAgICAgICAgICAgICBcclxuICAgICAgICAgICAgfWVsc2Uge1xyXG4gICAgICAgICAgICAgICAgVG9hc3Qoe1xyXG4gICAgICAgICAgICAgICAgICAgIG1lc3NhZ2U6IGRhdGEuZXJyX21zZyxcclxuICAgICAgICAgICAgICAgICAgICBkdXJhdGlvbjogMzAwMFxyXG4gICAgICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9KS5jYXRjaChmdW5jdGlvbiAoZXJyKSB7XHJcbiAgICAgICAgICAgIHN0YXRlLmxvYWRpbmcgPSBmYWxzZTtcclxuICAgICAgICB9KTtcclxuICAgIH0sXHJcbiAgIFxyXG4gICBcclxuXHJcblxyXG59XHJcblxyXG5jb25zdCBnZXR0ZXJzID0ge31cclxuXHJcbmV4cG9ydCBkZWZhdWx0IHtcclxuICAgIHN0YXRlLFxyXG4gICAgbXV0YXRpb25zLFxyXG4gICAgYWN0aW9ucyxcclxuICAgIGdldHRlcnNcclxufVxyXG5cclxuIl0sIm1hcHBpbmdzIjoiQUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUhBO0FBT0E7QUFHQTtBQUVBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQURBO0FBR0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFHQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFEQTtBQUdBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBRkE7QUFJQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBNUNBO0FBbURBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUpBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/store/modules/user/shipping.js\n");
/***/ })
})
\ No newline at end of file
This diff could not be displayed because it is too large.
{"h":"8846441e2a181b021167","c":{}}
\ No newline at end of file
{"h":"2e08a69a5552961bebef","c":{"app":true}}
\ No newline at end of file
{"h":"5b52d94532502400175d","c":{"40":true}}
\ No newline at end of file
{"h":"84f031486bc15b6038cc","c":{"39":true}}
\ No newline at end of file
{"h":"ac2470e7081f33c8f3a7","c":{}}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment