This commit is contained in:
xiaozhiyong
2023-07-20 17:01:43 +08:00
parent 5408b75b83
commit d0953d12ff
2 changed files with 590 additions and 503 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -111,21 +111,23 @@
}
},
methods: {
goFinancial(){
goFinancial() {
const user = uni.getStorageSync('user');
if(user){
Financial.findHomePageReport({customerId:user.id}).then(res=>{
if(res.data){
if (user) {
Financial.findHomePageReport({
customerId: user.id
}).then(res => {
if (res.data) {
uni.navigateTo({
url:`../../../Financial/pages/estimate/index?data=${encodeURIComponent(JSON.stringify(res.data))}`
url: `../../../Financial/pages/estimate/index?data=${encodeURIComponent(JSON.stringify(res.data))}`
})
}else{
} else {
uni.navigateTo({
url:'../../../Financial/pages/index?guide=1'
url: '../../../Financial/pages/index?guide=1'
})
}
});
}else{
} else {
uni.showToast({
title: '请先登录!',
icon: 'none'
@@ -179,6 +181,7 @@
// 渠道编码 ( XOIL星油 WJY万金油 LV老吕找油网 TY团油 YDJY一点加油壳牌)
switch (value) {
case 'XOIL':
case 'ZDC':
return '星油'
case 'WJY':
return '万金油'
@@ -188,6 +191,7 @@
return '团油'
case 'YDJY':
return '一点加油(壳牌)'
}
}
}