Commit a7e5b0b0 by 张立顺

fix bu'g

1 parent 61d6b29d
...@@ -44,7 +44,7 @@ Component({ ...@@ -44,7 +44,7 @@ Component({
{ {
labelName: '实际支付', labelName: '实际支付',
orderType: 'success', orderType: 'success',
key: 'totalPrice' key: 'finalPrice'
}, },
{ {
labelName: '订单状态', labelName: '订单状态',
......
...@@ -294,7 +294,7 @@ Page({ ...@@ -294,7 +294,7 @@ Page({
'确定', '确定',
false, false,
1, 1,
() => { } () => {}
) )
} }
resolve() resolve()
...@@ -641,6 +641,7 @@ Page({ ...@@ -641,6 +641,7 @@ Page({
// const today = dayjs().day() // const today = dayjs().day()
// console.log(today, 'today') // console.log(today, 'today')
if (this.data.tabIndex == 0) { if (this.data.tabIndex == 0) {
console.log('checkAbnormalOrderLocal', '检查是否有异常订单锁单')
eventRequest.push(this.checkAbnormalOrderLocal()) eventRequest.push(this.checkAbnormalOrderLocal())
} }
Promise.all(eventRequest).then(() => { Promise.all(eventRequest).then(() => {
...@@ -697,7 +698,7 @@ Page({ ...@@ -697,7 +698,7 @@ Page({
}) })
} }
}) })
.catch(err => { }) .catch(err => {})
} }
}, },
...@@ -705,7 +706,7 @@ Page({ ...@@ -705,7 +706,7 @@ Page({
wx.__HAS_SHOW_MODAL = false wx.__HAS_SHOW_MODAL = false
if (options && options.tabIndex) { if (options && options.tabIndex) {
this.changeTabBar({ this.changeTabBar({
detail: options.tabIndex detail: Number(options.tabIndex)
}) })
//判断是否是从超管话术质检带过来的参数 //判断是否是从超管话术质检带过来的参数
if (options.staffUuid && options.tabIndex == 1) if (options.staffUuid && options.tabIndex == 1)
...@@ -724,7 +725,7 @@ Page({ ...@@ -724,7 +725,7 @@ Page({
onLoad(options) { onLoad(options) {
if (options && options.tabIndex) { if (options && options.tabIndex) {
this.changeTabBar({ this.changeTabBar({
detail: options.tabIndex detail: Number(options.tabIndex)
}) })
} }
wx.$eventbus.on('switch_tab', () => { wx.$eventbus.on('switch_tab', () => {
...@@ -740,7 +741,7 @@ Page({ ...@@ -740,7 +741,7 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady() { }, onReady() {},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -781,17 +782,17 @@ Page({ ...@@ -781,17 +782,17 @@ Page({
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() { }, onPullDownRefresh() {},
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() { }, onReachBottom() {},
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() { }, onShareAppMessage() {},
// closeScreen() { // closeScreen() {
// this.selectComponent("#page-1").back(); // this.selectComponent("#page-1").back();
// }, // },
......
...@@ -708,7 +708,7 @@ ...@@ -708,7 +708,7 @@
} }
.item-disabled { .item-disabled {
opacity: .4 !important; opacity: .4;
} }
.payType-box .item { .payType-box .item {
......
...@@ -328,9 +328,7 @@ Page({ ...@@ -328,9 +328,7 @@ Page({
icon: 'success' icon: 'success'
}) })
setTimeout(() => { setTimeout(() => {
wx.$router.reLaunch('packageEquity.equityPage', { wx.$router.reLaunch('packageEquity.equityPage?tabIndex=1')
tabIndex: 1
})
}, 1000) }, 1000)
} else { } else {
this.setData({ this.setData({
...@@ -392,9 +390,7 @@ Page({ ...@@ -392,9 +390,7 @@ Page({
icon: 'success' icon: 'success'
}) })
setTimeout(() => { setTimeout(() => {
wx.$router.reLaunch('packageEquity.equityPage', { wx.$router.reLaunch('packageEquity.equityPage?tabIndex=1')
tabIndex: 1
})
}, 1000) }, 1000)
setTimeout(() => { setTimeout(() => {
this.setData({ this.setData({
...@@ -650,9 +646,7 @@ Page({ ...@@ -650,9 +646,7 @@ Page({
if (orderInfo.resetOrder && orderInfo.id) { if (orderInfo.resetOrder && orderInfo.id) {
wx.hideLoading() wx.hideLoading()
if (result.code == 0) { if (result.code == 0) {
return wx.$router.reLaunch('packageEquity.equityPage', { return wx.$router.reLaunch('packageEquity.equityPage?tabIndex=1')
tabIndex: 1
})
} else { } else {
this.setData({ this.setData({
confirmStatus: false confirmStatus: false
...@@ -667,9 +661,7 @@ Page({ ...@@ -667,9 +661,7 @@ Page({
if (id) { if (id) {
// 2:门店收款 5:嘀加收款 6:对公转账 7:其它收款 就直接返回列表 // 2:门店收款 5:嘀加收款 6:对公转账 7:其它收款 就直接返回列表
if ([2, 5, 6, 7].includes(Number(orderInfo.payType))) if ([2, 5, 6, 7].includes(Number(orderInfo.payType)))
return wx.$router.reLaunch('packageEquity.equityPage', { return wx.$router.reLaunch('packageEquity.equityPage?tabIndex=1')
tabIndex: 1
})
let status = await this.createWithPay(id) let status = await this.createWithPay(id)
wx.hideLoading() wx.hideLoading()
let that = this let that = this
...@@ -1227,9 +1219,10 @@ Page({ ...@@ -1227,9 +1219,10 @@ Page({
let { owner, orderInfo, saveStatus } = this.data let { owner, orderInfo, saveStatus } = this.data
// 补单点放弃 // 补单点放弃
if (orderInfo.outTradeNo || orderInfo.resetOrder) { if (orderInfo.outTradeNo || orderInfo.resetOrder) {
return wx.$router.reLaunch('packageEquity.equityPage', { // return wx.$router.reLaunch('packageEquity.equityPage', {
tabIndex: 1 // tabIndex: 1
}) // })
return wx.$router.reLaunch('packageEquity.equityPage?tabIndex=1')
} }
if (saveStatus) return false if (saveStatus) return false
wx.showLoading('保存中...') wx.showLoading('保存中...')
...@@ -1253,9 +1246,10 @@ Page({ ...@@ -1253,9 +1246,10 @@ Page({
console.log('id', res) console.log('id', res)
let { code, data, message } = res let { code, data, message } = res
if (code == 0) { if (code == 0) {
wx.$router.reLaunch('packageEquity.equityPage', { // wx.$router.reLaunch('packageEquity.equityPage', {
tabIndex: 1 // tabIndex: 1
}) // })
return wx.$router.reLaunch('packageEquity.equityPage?tabIndex=1')
} else { } else {
return wx.$util.showToast(res.message || '保存错误') return wx.$util.showToast(res.message || '保存错误')
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!