2019-12-23 10:04:09 +08:00
|
|
|
// pages/undetermined/undetermined.js
|
2019-12-24 14:08:26 +08:00
|
|
|
import bin from "../../utils/bin"
|
2019-12-23 10:04:09 +08:00
|
|
|
Page({
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 页面的初始数据
|
|
|
|
*/
|
|
|
|
data: {
|
2019-12-24 14:08:26 +08:00
|
|
|
list:{}
|
2019-12-23 10:04:09 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面加载
|
|
|
|
*/
|
|
|
|
onLoad: function(options) {
|
2019-12-24 14:08:26 +08:00
|
|
|
|
|
|
|
bin.getuserid().then((id)=>{
|
|
|
|
bin.request({
|
|
|
|
url:"User/getOrderDetail",
|
|
|
|
data:{
|
|
|
|
user_id:id,
|
|
|
|
id:options.id
|
|
|
|
}
|
|
|
|
}).then((res)=>{
|
|
|
|
console.log(res)
|
|
|
|
this.setData({
|
|
|
|
list:res.data.result
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
2019-12-23 10:04:09 +08:00
|
|
|
},
|
|
|
|
chooseaddr() {
|
|
|
|
wx.navigateTo({
|
|
|
|
url: "/pages/chooseaddr/chooseaddr"
|
|
|
|
})
|
|
|
|
},
|
|
|
|
todetail() {
|
|
|
|
wx.navigateTo({
|
|
|
|
url: "/pages/product/product"
|
|
|
|
})
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
|
|
*/
|
|
|
|
onReady: function() {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面显示
|
|
|
|
*/
|
|
|
|
onShow: function() {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面隐藏
|
|
|
|
*/
|
|
|
|
onHide: function() {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面卸载
|
|
|
|
*/
|
|
|
|
onUnload: function() {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 页面相关事件处理函数--监听用户下拉动作
|
|
|
|
*/
|
|
|
|
onPullDownRefresh: function() {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 页面上拉触底事件的处理函数
|
|
|
|
*/
|
|
|
|
onReachBottom: function() {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 用户点击右上角分享
|
|
|
|
*/
|
|
|
|
onShareAppMessage: function() {
|
|
|
|
|
|
|
|
}
|
2019-12-14 15:16:40 +08:00
|
|
|
})
|