Commit d93f1972 authored by 罗超's avatar 罗超

修改详情

parent 8dfaf3d6
......@@ -1317,18 +1317,6 @@
},
onLoad(option) {
this.mc = this.$uiConfig.mainColor;
// if(!uni.getStorageSync("b2b_user")){
// uni.redirectTo({
// url:'/pages/index/index'
// })
// }
// #ifdef MP-DI
this.delMsg.directCustomerId = this.customer.customerId
// #endif
// #ifdef MP-AG
this.delMsg.customerId = this.customer.customerId
// #endif
if (!option.scene) {
if (option.lineId) {
this.delMsg.lineId = option.lineId;
......@@ -1366,10 +1354,11 @@
})
}
this.getDetails();
this.U = uni.getStorageSync("mall_UserInfo");
this.b2bUser = uni.getStorageSync("b2b_user");
this.customer = this.b2bUser
this.getDetails();
let basedata = uni.getStorageSync("basedata");
//判断后台是否开启自动授权
if (basedata && basedata.mall && basedata.mall.setting && basedata.mall.setting && basedata.mall.setting.is_show_auth ==
......@@ -1651,6 +1640,14 @@
//获取详情
getDetails() {
uni.showLoading()
if(this.customer){
// #ifdef MP-DI
this.delMsg.directCustomerId = this.customer.customerId
// #endif
// #ifdef MP-AG
this.delMsg.customerId = this.customer.customerId
// #endif
}
this.apipost(
"b2b_get_GetB2BTravelInfoNoDesV1",
this.delMsg,
......
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 to comment