pull/12/head
xiaozhiyong 1 year ago
parent 5408b75b83
commit d0953d12ff
  1. 1069
      BagStation/pages/components/price-select-tab.vue
  2. 24
      BagStation/pages/components/price-tab.vue

File diff suppressed because it is too large Load Diff

@ -73,7 +73,7 @@
};
},
computed: {
activeChannelCode() {
if (this.channelList.length && this.channelList[this.TabCur]) {
let channelCode = this.channelList[this.TabCur].channelCode
@ -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'
@ -149,7 +151,7 @@
// return String(value).split('.')[1]&&String(value).split('.')[1].length>2? Number(`${String(value).split('.')[0]}.${String(value).split('.')[1].substring(0,2)}`)+0.01 :Number(value).toFixed(2);
return String(value).split('.')[1] && String(value).split('.')[1].length > 2 ? Number(
`${String(value).split('.')[0]}.${String(value).split('.')[1].substring(0,2)}${Number(String(value).split('.')[1].substr(2))==0?'':9}`
).toFixed(2) : Number(value).toFixed(2);
).toFixed(2) : Number(value).toFixed(2);
} else {
return Number(value).toFixed(2)
}
@ -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 '一点加油(壳牌)'
}
}
}

Loading…
Cancel
Save