Commit 1ca8c795 by 张立顺

bug修复

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