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