更新
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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 '一点加油(壳牌)'
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user