|
|
|
@ -18,67 +18,44 @@
|
|
|
|
|
<view :class="{ on: status.type === 4 }">已完成</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="progress acea-row row-between-wrapper"> |
|
|
|
|
<view |
|
|
|
|
class="iconfont" |
|
|
|
|
:class="[ |
|
|
|
|
<view class="iconfont" :class="[ |
|
|
|
|
status.type === 0 || status.type === 9 |
|
|
|
|
? 'icon-webicon318' |
|
|
|
|
: 'icon-yuandianxiao', |
|
|
|
|
status.type >= 0 ? 'font-color-red' : '' |
|
|
|
|
]" |
|
|
|
|
></view> |
|
|
|
|
]"></view> |
|
|
|
|
<view class="line" :class="{ 'bg-color-red': status.type > 0 && status.type != 9 }"></view> |
|
|
|
|
<view |
|
|
|
|
class="iconfont" |
|
|
|
|
:class="[ |
|
|
|
|
<view class="iconfont" :class="[ |
|
|
|
|
status.type === 1 ? 'icon-webicon318' : 'icon-yuandianxiao', |
|
|
|
|
status.type >= 1 && status.type != 6 && status.type != 9 |
|
|
|
|
? 'font-color-red' |
|
|
|
|
: '' |
|
|
|
|
]" |
|
|
|
|
></view> |
|
|
|
|
<view |
|
|
|
|
class="line" |
|
|
|
|
:class="{'bg-color-red':status.type > 1 && status.type != 6 && status.type != 9}" |
|
|
|
|
v-if="orderInfo.shippingType === 1" |
|
|
|
|
></view> |
|
|
|
|
<view |
|
|
|
|
class="iconfont" |
|
|
|
|
]"></view> |
|
|
|
|
<view class="line" :class="{'bg-color-red':status.type > 1 && status.type != 6 && status.type != 9}" |
|
|
|
|
v-if="orderInfo.shippingType === 1"></view> |
|
|
|
|
<view class="iconfont" |
|
|
|
|
:class="[status.type === 2 ? 'icon-webicon318' : 'icon-yuandianxiao',status.type >= 2 && status.type != 6 && status.type != 9? 'font-color-red': '']" |
|
|
|
|
v-if="orderInfo.shippingType === 1" |
|
|
|
|
></view> |
|
|
|
|
<view |
|
|
|
|
class="line" |
|
|
|
|
:class="{ |
|
|
|
|
v-if="orderInfo.shippingType === 1"></view> |
|
|
|
|
<view class="line" :class="{ |
|
|
|
|
'bg-color-red': |
|
|
|
|
status.type > 2 && status.type != 6 && status.type != 9 |
|
|
|
|
}" |
|
|
|
|
></view> |
|
|
|
|
<view |
|
|
|
|
class="iconfont" |
|
|
|
|
:class="[ |
|
|
|
|
}"></view> |
|
|
|
|
<view class="iconfont" :class="[ |
|
|
|
|
status.type === 3 ? 'icon-webicon318' : 'icon-yuandianxiao', |
|
|
|
|
status.type >= 3 && status.type != 6 && status.type != 9 |
|
|
|
|
? 'font-color-red' |
|
|
|
|
: '' |
|
|
|
|
]" |
|
|
|
|
></view> |
|
|
|
|
<view |
|
|
|
|
class="line" |
|
|
|
|
:class="{ |
|
|
|
|
]"></view> |
|
|
|
|
<view class="line" :class="{ |
|
|
|
|
'bg-color-red': |
|
|
|
|
status.type > 3 && status.type != 6 && status.type != 9 |
|
|
|
|
}" |
|
|
|
|
></view> |
|
|
|
|
<view |
|
|
|
|
class="iconfont" |
|
|
|
|
:class="[ |
|
|
|
|
}"></view> |
|
|
|
|
<view class="iconfont" :class="[ |
|
|
|
|
status.type == 4 ? 'icon-webicon318' : 'icon-yuandianxiao', |
|
|
|
|
status.type >= 4 && status.type != 6 && status.type != 9 |
|
|
|
|
? 'font-color-red' |
|
|
|
|
: '' |
|
|
|
|
]" |
|
|
|
|
></view> |
|
|
|
|
]"></view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<div class="writeOff" v-if="orderInfo.shippingType === 2 && orderInfo.paid === 1"> |
|
|
|
@ -110,15 +87,9 @@
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div |
|
|
|
|
class="map acea-row row-between-wrapper" |
|
|
|
|
v-if="orderInfo.shippingType === 2 && orderInfo.paid === 1" |
|
|
|
|
> |
|
|
|
|
<div class="map acea-row row-between-wrapper" v-if="orderInfo.shippingType === 2 && orderInfo.paid === 1"> |
|
|
|
|
<div>自提地址信息</div> |
|
|
|
|
<div |
|
|
|
|
class="place cart-color acea-row row-center-wrapper" |
|
|
|
|
@click="showChang(orderInfo.systemStore)" |
|
|
|
|
> |
|
|
|
|
<div class="place cart-color acea-row row-center-wrapper" @click="showChang(orderInfo.systemStore)"> |
|
|
|
|
<span class="iconfont icon-weizhi"></span>查看位置 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -134,7 +105,8 @@
|
|
|
|
|
<div class="name"> |
|
|
|
|
{{ system_store.name}} |
|
|
|
|
<span class="phone">{{ system_store.phone }}</span> |
|
|
|
|
<span @click="telPhone(system_store.phone)" class="iconfont icon-tonghua font-color-red" :href="'tel:' + system_store.phone"></span> |
|
|
|
|
<span @click="telPhone(system_store.phone)" class="iconfont icon-tonghua font-color-red" |
|
|
|
|
:href="'tel:' + system_store.phone"></span> |
|
|
|
|
</div> |
|
|
|
|
<div>{{ system_store.address }}</div> |
|
|
|
|
</div> |
|
|
|
@ -142,7 +114,7 @@
|
|
|
|
|
<image src="@/static/images/line.jpg" /> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
<OrderGoods :evaluate="status.type || 0" :cartInfo="orderInfo.cartInfo || []"></OrderGoods> |
|
|
|
|
<OrderGoods :evaluate="status.type || 0" isIntegral :cartInfo="orderInfo.cartInfo || []"></OrderGoods> |
|
|
|
|
<view class="wrapper"> |
|
|
|
|
<view class="item acea-row row-between"> |
|
|
|
|
<view>订单编号:</view> |
|
|
|
@ -223,10 +195,14 @@
|
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="wrapper"> |
|
|
|
|
<view class="item acea-row row-between"> |
|
|
|
|
<view class="item acea-row row-between" v-if="!isIntegral"> |
|
|
|
|
<view>支付金额:</view> |
|
|
|
|
<view class="conter">¥{{ orderInfo.totalPrice }}</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="item acea-row row-between" v-if="isIntegral"> |
|
|
|
|
<view>支付积分:</view> |
|
|
|
|
<view class="conter">{{ orderInfo.payIntegral }}积分</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="item acea-row row-between" v-if="orderInfo.couponPrice > 0"> |
|
|
|
|
<view>优惠券抵扣:</view> |
|
|
|
|
<view class="conter">-¥{{ orderInfo.couponPrice }}</view> |
|
|
|
@ -241,7 +217,8 @@
|
|
|
|
|
</view> |
|
|
|
|
<view class="actualPay acea-row row-right"> |
|
|
|
|
实付款: |
|
|
|
|
<text class="money font-color-red">¥{{ orderInfo.payPrice }}</text> |
|
|
|
|
<text class="money font-color-red" v-if="!isIntegral">¥{{ orderInfo.payPrice }}</text> |
|
|
|
|
<text class="money font-color-red" v-if="isIntegral">{{ orderInfo.payIntegral }}积分</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view style="height:100rpx;" v-if="!refundOrder && offlineStatus"></view> |
|
|
|
@ -255,26 +232,19 @@
|
|
|
|
|
</template> |
|
|
|
|
<!-- --> |
|
|
|
|
<template v-if="orderInfo.shippingType == 1 && status.type == 2"> |
|
|
|
|
<view |
|
|
|
|
class="bnt default" |
|
|
|
|
@click="$yrouter.push({ path: '/pages/order/Logistics/index' ,query:{id:orderInfo.orderId }})" |
|
|
|
|
>查看物流</view> |
|
|
|
|
<view class="bnt default" |
|
|
|
|
@click="$yrouter.push({ path: '/pages/order/Logistics/index' ,query:{id:orderInfo.orderId }})">查看物流</view> |
|
|
|
|
<view class="bnt bg-color-red" @click="takeOrder">确认收货</view> |
|
|
|
|
</template> |
|
|
|
|
<template v-if="orderInfo.shippingType == 1 && status.type == 3 && orderInfo.deliveryType == 'express'"> |
|
|
|
|
<view |
|
|
|
|
class="bnt default" |
|
|
|
|
@click="$yrouter.push({ path: '/pages/order/Logistics/index' ,query:{id:orderInfo.orderId }})" |
|
|
|
|
>查看物流</view> |
|
|
|
|
<view class="bnt default" |
|
|
|
|
@click="$yrouter.push({ path: '/pages/order/Logistics/index' ,query:{id:orderInfo.orderId }})">查看物流</view> |
|
|
|
|
</template> |
|
|
|
|
<template v-if="orderInfo.shippingType == 1 && status.type == 4"> |
|
|
|
|
<view class="bnt cancel" @click="delOrder">删除订单</view> |
|
|
|
|
<view |
|
|
|
|
class="bnt default" |
|
|
|
|
@click=" |
|
|
|
|
<view class="bnt default" @click=" |
|
|
|
|
$yrouter.push({ path: '/pages/order/Logistics/index' ,query:{id:orderInfo.orderId }}) |
|
|
|
|
" |
|
|
|
|
>查看物流</view> |
|
|
|
|
">查看物流</view> |
|
|
|
|
</template> |
|
|
|
|
<template v-if="status.type == 6"> |
|
|
|
|
<view class="bnt bg-color-red" @click="goGroupRule(orderInfo)">查看拼团</view> |
|
|
|
@ -282,23 +252,25 @@
|
|
|
|
|
</view> |
|
|
|
|
<Payment v-model="pay" :types="payType" @checked="toPay" :balance="userInfo.nowMoney"></Payment> |
|
|
|
|
<view class="geoPage" v-if="mapShow"> |
|
|
|
|
<iframe |
|
|
|
|
width="100%" |
|
|
|
|
height="100%" |
|
|
|
|
frameborder="0" |
|
|
|
|
scrolling="no" |
|
|
|
|
:src="'https://apis.map.qq.com/uri/v1/geocoder?coord=' + system_store.latitude + ',' +system_store.longitude +'&referer=' +mapKey" |
|
|
|
|
></iframe> |
|
|
|
|
<iframe width="100%" height="100%" frameborder="0" scrolling="no" |
|
|
|
|
:src="'https://apis.map.qq.com/uri/v1/geocoder?coord=' + system_store.latitude + ',' +system_store.longitude +'&referer=' +mapKey"></iframe> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import OrderGoods from "@/components/OrderGoods"; |
|
|
|
|
import { orderDetail } from "@/api/order"; |
|
|
|
|
import { |
|
|
|
|
orderDetail |
|
|
|
|
} from "@/api/order"; |
|
|
|
|
import Payment from "@/components/Payment"; |
|
|
|
|
import { isWeixin, copyClipboard } from "@/utils"; |
|
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
|
import { |
|
|
|
|
isWeixin, |
|
|
|
|
copyClipboard |
|
|
|
|
} from "@/utils"; |
|
|
|
|
import { |
|
|
|
|
mapGetters |
|
|
|
|
} from "vuex"; |
|
|
|
|
import { |
|
|
|
|
cancelOrderHandle, |
|
|
|
|
takeOrderHandle, |
|
|
|
@ -332,6 +304,7 @@ export default {
|
|
|
|
|
system_store: {}, |
|
|
|
|
mapKay: "", |
|
|
|
|
mapShow: false, |
|
|
|
|
isIntegral: false |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
@ -439,15 +412,17 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
getOrderStatus: function () { |
|
|
|
|
let orderInfo = this.orderInfo || {}, |
|
|
|
|
_status = orderInfo._status || { _type: 0 }, |
|
|
|
|
_status = orderInfo._status || { |
|
|
|
|
_type: 0 |
|
|
|
|
}, |
|
|
|
|
status = {}; |
|
|
|
|
let type = parseInt(_status._type), |
|
|
|
|
delivery_type = orderInfo.deliveryType, |
|
|
|
|
seckill_id = orderInfo.seckillId ? parseInt(orderInfo.seckillId) : 0, |
|
|
|
|
bargain_id = orderInfo.bargainId ? parseInt(orderInfo.bargainId) : 0, |
|
|
|
|
combination_id = orderInfo.combinationId |
|
|
|
|
? parseInt(orderInfo.combinationId) |
|
|
|
|
: 0; |
|
|
|
|
combination_id = orderInfo.combinationId ? |
|
|
|
|
parseInt(orderInfo.combinationId) : |
|
|
|
|
0; |
|
|
|
|
status = { |
|
|
|
|
type: type, |
|
|
|
|
class_status: 0, |
|
|
|
@ -497,6 +472,12 @@ export default {
|
|
|
|
|
this.orderTypeName = "秒杀订单"; |
|
|
|
|
this.orderTypeNameStatus = false; |
|
|
|
|
} |
|
|
|
|
this.isIntegral = res.data.payType == 'integral' |
|
|
|
|
if (this.isIntegral) { |
|
|
|
|
this.orderTypeName = "积分兑换订单"; |
|
|
|
|
this.orderTypeNameStatus = false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.system_store = res.data.systemStore || {}; |
|
|
|
|
this.mapKey = res.data.mapKay; |
|
|
|
|
this.setOfflinePayStatus(this.orderInfo.offlinePayStatus); |
|
|
|
@ -527,11 +508,13 @@ export default {
|
|
|
|
|
top: 0; |
|
|
|
|
z-index: 10000; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-details .writeOff { |
|
|
|
|
background-color: #fff; |
|
|
|
|
margin-top: 0.13 * 100rpx; |
|
|
|
|
padding-bottom: 0.3 * 100rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-details .writeOff .title { |
|
|
|
|
font-size: 0.3 * 100rpx; |
|
|
|
|
color: #282828; |
|
|
|
@ -540,6 +523,7 @@ export default {
|
|
|
|
|
padding: 0 0.3 * 100rpx; |
|
|
|
|
line-height: 0.87 * 100rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-details .writeOff .grayBg { |
|
|
|
|
background-color: #f2f5f7; |
|
|
|
|
width: 5.9 * 100rpx; |
|
|
|
@ -548,26 +532,31 @@ export default {
|
|
|
|
|
margin: 0.5 * 100rpx auto 0 auto; |
|
|
|
|
padding-top: 0.55 * 100rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-details .writeOff .grayBg .pictrue { |
|
|
|
|
width: 2.9 * 100rpx; |
|
|
|
|
height: 2.9 * 100rpx; |
|
|
|
|
margin: 0 auto; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-details .writeOff .grayBg .pictrue img { |
|
|
|
|
width: 100%; |
|
|
|
|
height: 100%; |
|
|
|
|
display: block; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-details .writeOff .gear { |
|
|
|
|
width: 5.9 * 100rpx; |
|
|
|
|
height: 0.3 * 100rpx; |
|
|
|
|
margin: 0 auto; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-details .writeOff .gear img { |
|
|
|
|
width: 100%; |
|
|
|
|
height: 100%; |
|
|
|
|
display: block; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-details .writeOff .num { |
|
|
|
|
background-color: #f0c34c; |
|
|
|
|
width: 5.9 * 100rpx; |
|
|
|
@ -579,32 +568,39 @@ export default {
|
|
|
|
|
text-align: center; |
|
|
|
|
padding-top: 0.04 * 100rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-details .writeOff .rules { |
|
|
|
|
margin: 0.46 * 100rpx 0.3 * 100rpx 0 0.3 * 100rpx; |
|
|
|
|
border-top: 0.01 * 100rpx solid #f0f0f0; |
|
|
|
|
padding-top: 0.1 * 100rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-details .writeOff .rules .item { |
|
|
|
|
margin-top: 0.15 * 100rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-details .writeOff .rules .item .rulesTitle { |
|
|
|
|
font-size: 0.28 * 100rpx; |
|
|
|
|
color: #282828; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-details .writeOff .rules .item .rulesTitle .iconfont { |
|
|
|
|
font-size: 0.3 * 100rpx; |
|
|
|
|
color: #333; |
|
|
|
|
margin-right: 0.08 * 100rpx; |
|
|
|
|
margin-top: 0.05 * 100rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-details .writeOff .rules .item .info { |
|
|
|
|
font-size: 0.28 * 100rpx; |
|
|
|
|
color: #999; |
|
|
|
|
margin-top: 0.05 * 100rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-details .writeOff .rules .item .info .time { |
|
|
|
|
margin-left: 0.2 * 100rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-details .map { |
|
|
|
|
height: 0.86 * 100rpx; |
|
|
|
|
font-size: 0.3 * 100rpx; |
|
|
|
@ -615,6 +611,7 @@ export default {
|
|
|
|
|
background-color: #fff; |
|
|
|
|
padding: 0 0.3 * 100rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-details .map .place { |
|
|
|
|
font-size: 0.26 * 100rpx; |
|
|
|
|
width: 1.76 * 100rpx; |
|
|
|
@ -623,12 +620,14 @@ export default {
|
|
|
|
|
line-height: 0.5 * 100rpx; |
|
|
|
|
text-align: center; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-details .map .place .iconfont { |
|
|
|
|
font-size: 0.27 * 100rpx; |
|
|
|
|
height: 0.27 * 100rpx; |
|
|
|
|
line-height: 0.27 * 100rpx; |
|
|
|
|
margin: 0.02 * 100rpx 0.03 * 100rpx 0 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.order-details .address .name .iconfont { |
|
|
|
|
font-size: 0.34 * 100rpx; |
|
|
|
|
margin-left: 0.1 * 100rpx; |
|
|
|
|