|
@@ -22,7 +22,6 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(option){
|
|
onLoad(option){
|
|
- console.log(option)
|
|
|
|
this.selectID = option.selectID
|
|
this.selectID = option.selectID
|
|
this.initGetLogisticsCompany();
|
|
this.initGetLogisticsCompany();
|
|
},
|
|
},
|
|
@@ -30,18 +29,15 @@
|
|
...mapState(['hasLogin','userInfo'])
|
|
...mapState(['hasLogin','userInfo'])
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
- initGetLogisticsCompany(){//初始化购物车 index:1
|
|
|
|
|
|
+ initGetLogisticsCompany(){//查询物流公司列表
|
|
let params = {userID:this.userID}
|
|
let params = {userID:this.userID}
|
|
this.ShopService.GetLogisticsCompany({}).then(response =>{
|
|
this.ShopService.GetLogisticsCompany({}).then(response =>{
|
|
- console.log(response)
|
|
|
|
this.companyList = response.data
|
|
this.companyList = response.data
|
|
}).catch(error =>{
|
|
}).catch(error =>{
|
|
this.$util.msg(error.msg,2000);
|
|
this.$util.msg(error.msg,2000);
|
|
})
|
|
})
|
|
},
|
|
},
|
|
checkLogics(item){//选择物流
|
|
checkLogics(item){//选择物流
|
|
- //是否需要返回地址(从订单确认页跳过来选收货地址)
|
|
|
|
- console.log(item)
|
|
|
|
uni.setStorageSync('selectLogics',item)
|
|
uni.setStorageSync('selectLogics',item)
|
|
var pages = getCurrentPages();
|
|
var pages = getCurrentPages();
|
|
var prevPage = pages[pages.length - 2]; //上一个页面
|
|
var prevPage = pages[pages.length - 2]; //上一个页面
|