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