Commit 127ec6d3 authored by 刘文虎's avatar 刘文虎
parents 08f1612c e1083a0b
Pipeline #3293 canceled with stages
...@@ -73,6 +73,7 @@ export default { ...@@ -73,6 +73,7 @@ export default {
// 自定义返回逻辑 // 自定义返回逻辑
customBack: { customBack: {
type: Function, type: Function,
// #ifdef APP-PLUS
default: () => { default: () => {
if (getCurrentPages().length == 1) { if (getCurrentPages().length == 1) {
uni.switchTab({ uni.switchTab({
...@@ -81,7 +82,21 @@ export default { ...@@ -81,7 +82,21 @@ export default {
} else { } else {
uni.navigateBack(); uni.navigateBack();
} }
} }
// #endif
// #ifdef MP
default() {
return () => {
if (getCurrentPages().length == 1) {
uni.switchTab({
url: '/pages/index/index'
});
} else {
uni.navigateBack();
}
}
}
// #endif
}, },
right: { right: {
type: Array, type: Array,
......
...@@ -165,6 +165,7 @@ export default { ...@@ -165,6 +165,7 @@ export default {
// 自定义返回逻辑 // 自定义返回逻辑
customBack: { customBack: {
type: Function, type: Function,
// #ifdef APP-PLUS
default: () => { default: () => {
if (getCurrentPages().length == 1) { if (getCurrentPages().length == 1) {
uni.switchTab({ uni.switchTab({
...@@ -174,6 +175,20 @@ export default { ...@@ -174,6 +175,20 @@ export default {
uni.navigateBack(); uni.navigateBack();
} }
} }
// #endif
// #ifdef MP
default() {
return () => {
if (getCurrentPages().length == 1) {
uni.switchTab({
url: '/pages/index/index'
});
} else {
uni.navigateBack();
}
}
}
// #endif
} }
}, },
data() { data() {
......
...@@ -83,6 +83,7 @@ export default { ...@@ -83,6 +83,7 @@ export default {
// 自定义返回逻辑 // 自定义返回逻辑
customBack: { customBack: {
type: Function, type: Function,
// #ifdef APP-PLUS
default: () => { default: () => {
if (getCurrentPages().length == 1) { if (getCurrentPages().length == 1) {
uni.switchTab({ uni.switchTab({
...@@ -92,7 +93,21 @@ export default { ...@@ -92,7 +93,21 @@ export default {
uni.navigateBack(); uni.navigateBack();
} }
} }
// #endif
// #ifdef MP
default() {
return () => {
if (getCurrentPages().length == 1) {
uni.switchTab({
url: '/pages/index/index'
});
} else {
uni.navigateBack();
}
}
}
// #endif
}, },
}, },
data() { data() {
...@@ -137,7 +152,13 @@ export default { ...@@ -137,7 +152,13 @@ export default {
background-color: #ffffff; background-color: #ffffff;
color: #333333; color: #333333;
font-size: 24rpx; font-size: 24rpx;
// #ifdef APP-PLUS
margin-right: 24rpx;
// #endif
// #ifdef MP
margin-right: 8rpx; margin-right: 8rpx;
// #endif
.image-view { .image-view {
width: 20rpx; width: 20rpx;
height: 24rpx; height: 24rpx;
......
...@@ -52,13 +52,21 @@ export default { ...@@ -52,13 +52,21 @@ export default {
}, },
methods:{ methods:{
toBill(){ toBill(){
this.$Router.push({ this.$u.route({
path:"/pages/maintain-bill/index", url: '/pages/maintain-bill/index',
query:{ type: 'navigateTo',
params: {
customerId:this.detail.customerId, customerId:this.detail.customerId,
onlyDebt:1, onlyDebt:1,
} }
}) });
// this.$Router.push({
// path:"/pages/maintain-bill/index",
// query:{
// customerId:this.detail.customerId,
// onlyDebt:1,
// }
// })
} }
} }
}; };
......
...@@ -198,8 +198,9 @@ export default { ...@@ -198,8 +198,9 @@ export default {
return { return {
billId: '', billId: '',
info: { info: {
sendStatus: {}, sendStatus: {code: 'WAIT'},
settleState: {}, settleState: {code: 'NO'},
customer: {}
}, },
visible: false, visible: false,
current: 0, current: 0,
......
...@@ -135,9 +135,8 @@ export default { ...@@ -135,9 +135,8 @@ export default {
return this.daterange.length > 0 && this.daterange[1] ? this.daterange[1] + ' 23:59:59' : ''; return this.daterange.length > 0 && this.daterange[1] ? this.daterange[1] + ' 23:59:59' : '';
} }
}, },
onLoad() { onLoad(query) {
// 查欠账的传参 // 查欠账的传参
let query = this.$Route.query;
let { customerId, onlyDebt } = query; let { customerId, onlyDebt } = query;
if (customerId) { if (customerId) {
this.customerId = customerId; this.customerId = customerId;
...@@ -158,7 +157,7 @@ export default { ...@@ -158,7 +157,7 @@ export default {
methods: { methods: {
toDetail(item) { toDetail(item) {
this.$u.route({ this.$u.route({
url: 'pages/maintain-bill/detail', url: '/pages/maintain-bill/detail',
type: 'navigateTo', type: 'navigateTo',
params: { params: {
billId: item.id billId: item.id
......
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