物流+下单+地址修改

This commit is contained in:
@fawn-nine
2023-10-18 17:03:48 +08:00
parent bd998074a3
commit 39ec8fdb34
14 changed files with 142 additions and 76 deletions

View File

@@ -500,7 +500,7 @@
if (res.confirm) {
uni.showLoading()
$http.request({
url: "book/buyorder/update",
url: "book/buyOrder/update",
method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
data,
header: { //默认 无 说明:请求头
@@ -529,16 +529,16 @@
getOrderList() {
console.log('this.orderType',this.orderType)
this.$http
.post(`book/buyorder/appGetOrderInfo/${this.orderType}?orderId=${this.orderID}`)
.get(`book/buyOrder/getOrderInfo?orderId=${this.orderID}`)
.then(res => {
console.log('res+++',res)
var seconds = res.buyOrder.timestamp + 30 * 60 + 2 // 过期时间
console.log('订单详情',res)
var seconds = res.result.timestamp + 30 * 60 + 2 // 过期时间
var nowSeconds = Math.floor(new Date().getTime() / 1000);
res.buyOrder.overTime = seconds - nowSeconds
res.result.overTime = seconds - nowSeconds
this.orderContet = res.buyOrder
this.orderContet = res.result
this.userRecordid = res.userRecordid
this.productIDs = res.buyOrder.products.map(item => {
this.productIDs = res.result.products.map(item => {
return item.productId
})
// console.log(this.orderContet,'this.orderContet')
@@ -558,7 +558,7 @@
// 获取物流
getdeliverDetails() {
this.$http
.post(`/book/buyorder/queryFMS?orderId=${this.orderID}`)
.post(`/book/buyOrder/queryFMS?orderId=${this.orderID}`)
.then(res => {
if (res && res.code === 0) {
console.log(res, '物流信息')
@@ -587,7 +587,7 @@
success: res => {
if (res.confirm) {
this.$http
.post('book/buyorder/appDelete?orderId=' + this.orderContet.orderId)
.post('book/buyOrder/appDelete?orderId=' + this.orderContet.orderId)
.then(res => {
uni.showToast({
icon: 'none',