完善订单
This commit is contained in:
@ -43,7 +43,7 @@
|
||||
:order_type="orderDetail.order_type" :mode="orderDetail.order_status == 0 ? 'pay' : 'order_detail'"></order-goods>
|
||||
</view>
|
||||
|
||||
<view class="row-end">
|
||||
<view class="row-end" v-if="orderDetail.order_status > 0">
|
||||
<u-button class="u-m-r-24" @click="mobileLogin" hover-class="none" :customStyle="{height: '46rpx', color: '#454545', border: '1px solid #454545', borderRadius: '8rpx', padding: '0 8rpx', fontSize: '24rpx'}" :plain="true" :hair-line="false">再来一单</u-button>
|
||||
<u-button @click="mobileLogin" hover-class="none" :customStyle="{height: '46rpx', color: '#454545', border: '1px solid #454545', borderRadius: '8rpx', padding: '0 8rpx', fontSize: '24rpx'}" :plain="true" :hair-line="false">申请售后</u-button>
|
||||
</view>
|
||||
@ -64,7 +64,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="bg-white u-p-32 u-m-t-40 br8" v-if="orderDetail.order_status == 0" >
|
||||
<view class="bg-white u-p-32 u-m-t-40 br8" v-if="orderDetail.order_status == 0">
|
||||
<view class="bold-600 u-font-28">订单信息</view>
|
||||
<view class="text-attr u-m-t-16">
|
||||
<view class="u-m-t-8 text-999">
|
||||
@ -81,7 +81,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="bg-white u-p-32 u-m-t-32">
|
||||
<view class="bg-white u-p-32 u-m-t-32" v-if="orderDetail.order_status > 0">
|
||||
<view class="row-between">
|
||||
<view class="nr">商品总价</view>
|
||||
<view>
|
||||
@ -121,7 +121,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="bg-white u-p-32 u-m-t-40 br8">
|
||||
<view class="bg-white u-p-32 u-m-t-40 br8" v-if="orderDetail.order_status > 0">
|
||||
<view class="bold-600 u-font-28">订单信息</view>
|
||||
<view class="text-attr u-m-t-16">
|
||||
<view class="u-m-t-8 row-between">
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view class="px32">
|
||||
<view class="px32" style="padding-bottom: 200rpx;">
|
||||
<!-- 收货方式 -->
|
||||
<view class="bg-white br16 row u-m-t-32">
|
||||
<!-- <u-tabs
|
||||
@ -72,9 +72,9 @@
|
||||
<u-icon name="arrow-right" />
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="bg-white br16 row u-m-t-32">
|
||||
<view class="bg-white br16 row u-m-t-32 u-p-20">
|
||||
<order-goods :team="{ need: orderInfo.team_need }" :list="goodsLists" :delivery="delivery"
|
||||
:order_type="orderInfo.order_type" :imageWidth="260" :imageHeight="172" mode="confirm"></order-goods>
|
||||
:order_type="orderInfo.order_type" :imageWidth="186" :imageHeight="186" mode="confirm"></order-goods>
|
||||
</view>
|
||||
|
||||
<view class="item row-between bg-white br16 row u-m-t-32 p24" @tap="showCoupon = true">
|
||||
@ -218,6 +218,7 @@ export default {
|
||||
unusableCoupon: [], // 优惠券--不可用
|
||||
showCoupon: false, // 显示优惠券Popup
|
||||
userRemark: '', // 用户留言
|
||||
type: '', // 订单类型
|
||||
}
|
||||
},
|
||||
|
||||
@ -225,6 +226,7 @@ export default {
|
||||
const data = JSON.parse(decodeURIComponent(options.data))
|
||||
console.log("data>>>", data);
|
||||
this.goods = data.goods
|
||||
this.type = data.type
|
||||
|
||||
//#ifdef MP-WEIXIN
|
||||
this.pay.weixin = 1
|
||||
@ -411,6 +413,7 @@ export default {
|
||||
this.showLoading = true
|
||||
|
||||
from.remark = this.userRemark
|
||||
from.type = this.type
|
||||
|
||||
try {
|
||||
const { code, data, msg } = await orderBuy(from)
|
||||
|
||||
@ -215,20 +215,20 @@
|
||||
});
|
||||
}
|
||||
});
|
||||
console.log("this.cartList>>>", goods);
|
||||
console.log("this.cartList1>>>", goods);
|
||||
|
||||
if (goods.length == 0) return this.$toast({
|
||||
title: "您还没有选择商品哦",
|
||||
});
|
||||
// uni.navigateTo({
|
||||
// url: "/pages/confirm_order/confirm_order?data=" +
|
||||
// encodeURIComponent(
|
||||
// JSON.stringify({
|
||||
// goods,
|
||||
// type: "cart",
|
||||
// })
|
||||
// ),
|
||||
// });
|
||||
uni.navigateTo({
|
||||
url: "/pages/order_now/order_now?data=" +
|
||||
encodeURIComponent(
|
||||
JSON.stringify({
|
||||
goods,
|
||||
type: "cart",
|
||||
})
|
||||
),
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user