查看物流完善

This commit is contained in:
姚亚男
2021-10-21 09:20:31 +08:00
parent 12ddce1122
commit 1993bfecf2
5 changed files with 12 additions and 61 deletions
+6 -52
View File
@@ -8,15 +8,18 @@ Page({
form: {}
},
// 查看物流
track(){
track(e){
// 查看物流
let num = this.data.form.payMailContract.postNo
wx.navigateTo({
url: `plugin://kdPlugin/index?num=${num}&appName=来款测试demo`,
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log(options)
let id = options.id // 合同id
UserApi.contractDetail({id}).then(res=>{
console.log(res)
@@ -26,54 +29,5 @@ Page({
})
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
+1 -4
View File
@@ -43,10 +43,7 @@ Page({
})
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
onLoad: function () {
this.data.pageNo = 1
this.loadData()
},
+3
View File
@@ -8,9 +8,12 @@ page{
.list-item{
display: flex;
padding: 15px;
height: 40px;
justify-content: space-between;
flex-direction: column;
background-color: #fff;
border-radius: 10px;
color: #333;
}
.list-item:not(:first-child){
margin-top: 10px;
+2 -4
View File
@@ -65,10 +65,8 @@ Page({
previewFile(fileObj.fileId, fileObj.fileName)
}
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
onLoad: function () {
const that = this
that.loadData()
wx.getStorage({
-1
View File
@@ -38,7 +38,6 @@ Page({
},
// 查看物流
lookProgress(e){
console.log(e)
let num = e.currentTarget.dataset.progress.postNo
wx.navigateTo({
url: `plugin://kdPlugin/index?num=${num}&appName=来款测试demo`,