Commit e34088bb by 张立顺

bug修复

1 parent 7f5845fd
...@@ -200,7 +200,6 @@ Page({ ...@@ -200,7 +200,6 @@ Page({
[`pageShow[${tabIndex}]`]: true, [`pageShow[${tabIndex}]`]: true,
tabIndex tabIndex
}) })
// this.onShow()
this.initList() this.initList()
}, },
...@@ -268,6 +267,12 @@ Page({ ...@@ -268,6 +267,12 @@ Page({
} }
}, },
onRoute(options) {
// console.log(options,'options');
if (options&&options.tabIndex) {
this.changeTabBar({detail:options.tabIndex})
}
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
......
...@@ -288,7 +288,8 @@ Page({ ...@@ -288,7 +288,8 @@ Page({
contractNoList: res.data contractNoList: res.data
}) })
} else { } else {
wx.$router.reLaunch('packageEquity.equityPage') // wx.$router.reLaunch('packageEquity.equityPage')
wx.$router.reLaunch('packageEquity.equityPage',{tabIndex:1})
} }
} else { } else {
wx.$util.showToast(res.message || '接口异常') wx.$util.showToast(res.message || '接口异常')
...@@ -303,7 +304,6 @@ Page({ ...@@ -303,7 +304,6 @@ Page({
scrollTop: height // 滚动到的位置(距离顶部 px) scrollTop: height // 滚动到的位置(距离顶部 px)
}) })
}, },
handleSecondConfirm(e) { handleSecondConfirm(e) {
let { serviceInfo, conSecondObj } = this.data let { serviceInfo, conSecondObj } = this.data
if (e.detail?.type == 'confirm') { if (e.detail?.type == 'confirm') {
...@@ -367,6 +367,7 @@ Page({ ...@@ -367,6 +367,7 @@ Page({
this.setData({ this.setData({
isDialogShow: false isDialogShow: false
}) })
wx.$router.reLaunch('packageEquity.equityPage',{tabIndex:1})
}, },
// 合同地址 // 合同地址
...@@ -465,7 +466,7 @@ Page({ ...@@ -465,7 +466,7 @@ Page({
onShow() { onShow() {
let { isBack } = this.data let { isBack } = this.data
if (isBack) { if (isBack) {
wx.$router.reLaunch('packageEquity.equityPage') wx.$router.reLaunch('packageEquity.equityPage',{tabIndex:1})
} }
}, },
......
...@@ -119,7 +119,7 @@ Component({ ...@@ -119,7 +119,7 @@ Component({
} }
console.log(item.shopMinPrice||0,'item?.shopMinPrice||0'); console.log(item.shopMinPrice||0,'item?.shopMinPrice||0');
if ((item.shopMinPrice||0) > value) { if ((item.shopMinPrice||0) > value) {
return wx.$util.showToast('单价不可低于商品最低价') wx.$util.showToast('单价不可低于商品最低价')
} }
thisPage.setData({ thisPage.setData({
......
<!-- packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml --> <!-- packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml -->
<view class="testFormCon"> <view class="testFormCon">
<van-collapse value="{{ activeNames }}"> <van-collapse value="{{ activeNames }}">
<view class="collapse"> <!-- <view class="collapse">
<van-collapse-item name="1" is-link="{{ false }}"> <van-collapse-item name="1" is-link="{{ false }}">
<view slot="title"> <view slot="title">
<view class="collapseBoxTitle"> <view class="collapseBoxTitle">
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
<view class="label">商业险信息</view> <view class="label">商业险信息</view>
</view> </view>
</view> </view>
<!-- <text class='required'>*</text> -->
<view class="box"> <view class="box">
<view class="title">商业险总价</view> <view class="title">商业险总价</view>
<van-field <van-field
...@@ -31,7 +30,7 @@ ...@@ -31,7 +30,7 @@
</van-field> </van-field>
</view> </view>
</van-collapse-item> </van-collapse-item>
</view> </view> -->
<view class="collapse"> <view class="collapse">
<van-collapse-item name="3" is-link="{{ false }}"> <van-collapse-item name="3" is-link="{{ false }}">
<view slot="title"> <view slot="title">
......
...@@ -67,8 +67,8 @@ Page({ ...@@ -67,8 +67,8 @@ Page({
}, },
// 页面存放表单对象的对象名 // 页面存放表单对象的对象名
dataAttrName: 'owner', dataAttrName: 'owner',
step: 'first', // step: 'first',
// step: 'second', step: 'second',// 非融合不要第一步
needChangeList: ['price', 'base', 'threePremium', 'carInsidePremium', 'passengerPremium', 'payPrice', , 'insurancePrice', 'quotedPriceUpdate', 'minEquityPrice'] needChangeList: ['price', 'base', 'threePremium', 'carInsidePremium', 'passengerPremium', 'payPrice', , 'insurancePrice', 'quotedPriceUpdate', 'minEquityPrice']
}, },
closeTips() { closeTips() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!