Commit 64eee306 by 张立顺

bug修复

1 parent ef97d19e
......@@ -10,7 +10,7 @@
* 2测试
* 3生产环境
*/
let index = 1
let index = 2
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
......
......@@ -29,8 +29,8 @@ Page({
},
// 页面存放表单对象的对象名
dataAttrName: 'serviceInfo',
step: 'first',
// step: 'second',
// step: 'first',
step: 'second',
routeInfo: {},
contractNo: '',
url: '',
......
......@@ -182,7 +182,7 @@ if (!orderInfo.goodsId) return wx.$util.showToast('请选择增值车损险')
this.setData({
confirmStatus: true
})
let result = await this.handleSecondConfirmCheck()
let result = await this.handleSecondConfirmCheck(true)
let {
code,
data: id,
......@@ -199,7 +199,7 @@ if (!orderInfo.goodsId) return wx.$util.showToast('请选择增值车损险')
})
console.log('id', id)
// { orderId:data.orderId, id }
return
// return
status.code == 0 ? this.navigatorNext({
id,
orderId: status.data.orderId
......@@ -261,11 +261,12 @@ if (!orderInfo.goodsId) return wx.$util.showToast('请选择增值车损险')
}
return owner
},
handleSecondConfirmCheck() {
handleSecondConfirmCheck(check) {
// 获取保险信息
let orderInfo = this.getInsurance()
let owner = this.getOwnerInfo()
orderInfo.owner = owner
orderInfo.check = check
console.log('orderInfo', orderInfo)
// debugger
......@@ -423,14 +424,20 @@ if (!orderInfo.goodsId) return wx.$util.showToast('请选择增值车损险')
this.setData({
orderInfo
})
let id = await this.handleSecondConfirmCheck()
let res = await this.handleSecondConfirmCheck(false)
this.setData({
saveStatus: false
})
console.log('id', id)
console.log('id', res)
let {code ,data,message} = res
if (code == 1) {
wx.$router.redirectTo('packageEquity.equityPage')
}else{
return wx.$util.showToast(res.message||'保存错误')
}
// this.navigatorNext()
// wx.$router.go('packageEquity.index')
wx.$router.redirectTo('packageEquity.equityPage')
},
getQuotationInfo() {
let {
......
......@@ -207,7 +207,10 @@ Component({
} = res.data
let tempList = isReset ? this.dealListData(list || []) || [] : this.data.list.concat(this.dealListData(list || []) || [])
tempList = tempList.map((item) => {
item.createdTime = wx.$util.tsFormatTime(item.createdTime, 'Y.M.D h:m:s')
item.createdTime = wx.$util.tsFormatTime(item.createdTime, 'Y/M/D h:m:s')
if (item.payTime) {
item.payTime = wx.$util.tsFormatTime(item.payTime, 'Y/M/D h:m:s')
}
return item
})
this.setData({
......
......@@ -71,7 +71,7 @@ Component({
let { code, data } = result
if (code == '0') {
let staffList = data.map(item => {
item.createdTime = wx.$util.tsFormatTime(item.createdTime, 'Y-M-D')
item.createdTime = wx.$util.tsFormatTime(item.createdTime, 'Y/M/D')
return item
})
this.setData({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!