Commit 2fb5f94a authored by 潘永坪's avatar 潘永坪

订单详情开发

parent 33b5b1f2
......@@ -142,8 +142,13 @@ export default {
data() {
return {
showPop:false,//弹窗显示隐藏
orderId:'',//订单编号
}
},
onLoad(option) {
this.orderId=option.orderId||''
this.getDetail()
},
methods: {
//---复制内容
copyText(value){
......@@ -156,7 +161,24 @@ export default {
})
}
})
},
},
//---获取订单详情
getDetail(){
let data = {
orderId:this.orderId,//订单ID
userId:uni.getStorageSync('openid')||'',//用户Id
}
this.$request('order/userOrder/findOrderDetail', data).then(res => {
if (res.code == '00') {
console.log(res)
} else {
uni.showToast({
title: res.message,
icon: 'none'
})
}
})
}
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment