Commit d93f1972 authored by 罗超's avatar 罗超

修改详情

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