Commit 1ca8c795 by 张立顺

bug修复

1 parent 8bd9f7b6
......@@ -86,7 +86,8 @@ Component({
let { dataAttrName } = this.data
let thisPage = wx.$router.getPageInstance()
thisPage.setData({
[dataAttrName + '.' + attr]: value
[dataAttrName + '.' + attr]: value.trim()
// [dataAttrName + '.' + attr]: value
})
},
handlePickerChange(e) {
......
......@@ -247,6 +247,7 @@ Component({
wx.$util.showToast('没有合同')
return
}
console.log('handleDownload');
wx.downloadFile({
// 示例 url,并非真实存在
url: url,
......@@ -258,16 +259,19 @@ Component({
tempFilePath: res.tempFilePath,
filePath: wx.env.USER_DATA_PATH + "/" + fileName,
success: function(res) {
console.log('保存成功');
wx.openDocument({
filePath: wx.env.USER_DATA_PATH + "/" + fileName,
fileType: 'pdf',
showMenu: true,
success: function (res) {
console.log('打开文档成功')
}
})
}
})
wx.openDocument({
filePath: wx.env.USER_DATA_PATH + "/" + fileName,
fileType: 'pdf',
showMenu: true,
success: function (res) {
console.log('打开文档成功')
}
})
// console.log(wx.env.USER_DATA_PATH + "/" + fileName,'wx.env.USER_DATA_PATH + "/" + fileName');
}
})
},
......
......@@ -25,7 +25,9 @@
<image src="/images/search.png" class="search-icon" />
<input type="text" placeholder="请输入客户名字搜索" class="input" confirm-type="search" value="{{customerName}}" placeholder-class="input-placeholder" bindinput="input" bindconfirm="search" />
<block wx:if="{{customerName}}">
<view bindtap="handleReset" class="clearBtn" >
<image src="/images/clear.png" class="search-clear" bindtap="handleReset" />
</view>
</block>
</view>
</view>
......
......@@ -131,11 +131,20 @@
height: 28rpx;
margin: 0 10rpx 0 26rpx;
}
.search-box .search-input .clearBtn{
width: 100rpx;
height: 100rpx;
position: relative;
}
.search-box .search-input .search-clear {
/* width: 36rpx;
height: 36rpx;
margin: 0 26rpx 0 10rpx; */
position: absolute;
left: 40rpx;
top: 33rpx;
width: 36rpx;
height: 36rpx;
margin: 0 26rpx 0 10rpx;
}
.search-box .search-input .input {
......
......@@ -175,7 +175,7 @@ Page({
let { orderId, orderCode, orderDetail, id } = this.data
updateOrderStatus({ id, orderStatus: 3 })
.then(result => {
wx.$router.reLaunch('CarQuotationDetail', { orderId, orderCode, orderDetail, id })
wx.$router.redirectTo('CarQuotationDetail', { orderId, orderCode, orderDetail, id })
})
.catch(err => {})
},
......
......@@ -227,7 +227,7 @@ Page({
quotationUpgrade(para).then(res => {
wx.$util.hideLoading()
let { code, data } = res
code == 0 && wx.$router.redirectTo('CarQuotationPay', { data, id })
code == 0 && wx.$router.redirectTo('CarQuotationPay', { orderId:data.orderId, id })
})
}
})
......@@ -39,7 +39,6 @@
<view bindtap="handleReset" class="clearBtn" >
<image src="/images/clear.png" class="search-clear" />
</view>
</block>
</view>
</view>
......
......@@ -239,7 +239,7 @@ Page({
wx.$util.hideLoading()
console.log(res, 'res')
let { code, data } = res
code == 0 && wx.$router.redirectTo('CarQuotationPay', { data, id })
code == 0 && wx.$router.redirectTo('CarQuotationPay', { orderId:data.orderId, id })
})
}
})
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!