|
|
@ -6,9 +6,7 @@ |
|
|
|
@leftClick="$utils.navigateBack" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 水洗店 --> |
|
|
|
<view class="" |
|
|
|
v-if="userShop"> |
|
|
|
<!-- <view class=""> |
|
|
|
<view class="controls"> |
|
|
|
<view class="title"> |
|
|
|
<image src="../static/order/icon.png" mode=""></image> |
|
|
@ -35,44 +33,47 @@ |
|
|
|
v-for="(item, index) in steps"></uv-steps-item> |
|
|
|
</uv-steps> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
|
|
|
|
<!-- 酒店和水洗店 --> |
|
|
|
<view class="info"> |
|
|
|
<view class="flex" |
|
|
|
style="display: flex;"> |
|
|
|
<view style="width: 8rpx;height: 30rpx; |
|
|
|
background: #FD5100;border-radius: 6rpx;" /> |
|
|
|
<view class="head-title">服务项目</view> |
|
|
|
background: #A3D250;border-radius: 6rpx;" |
|
|
|
/> |
|
|
|
<view class="head-title">产品</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="flex"> |
|
|
|
<view class="server-item"> |
|
|
|
<view class="server-item" |
|
|
|
:key="index" |
|
|
|
v-for="(good, index) in order.commonOrderSkuList" |
|
|
|
> |
|
|
|
|
|
|
|
<view class="img-box"> |
|
|
|
<image :src="msgShop.image" mode="aspectFill"></image> |
|
|
|
<image :src="good.image" mode="aspectFill"></image> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="server-info"> |
|
|
|
|
|
|
|
<view class="server-title"> |
|
|
|
{{msgOrder.projectName}} |
|
|
|
{{good.title}} |
|
|
|
<!-- <view class="coupon">领券立减</view> --> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="current-price"> |
|
|
|
<text class="unit">¥</text>{{msgOrder.money}} |
|
|
|
<text class="unit">¥</text>{{good.price}} |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="sales-volume" style="margin-top: 5px;"> |
|
|
|
<view class="desc">规格:{{msgOrder.unit}}</view> |
|
|
|
<view class="desc">规格:{{good.sku}}</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="time-coupon"> |
|
|
|
|
|
|
|
<!-- <view class="flex"> |
|
|
|
<image src="@/static/home/time-icon.png"></image> |
|
|
|
<view class="time">{{msgOrder.useTime}}分钟</view> |
|
|
|
<view class="time">{{order.useTime}}分钟</view> |
|
|
|
</view> --> |
|
|
|
|
|
|
|
<!-- <view class="sales-volume"> |
|
|
@ -116,16 +117,16 @@ |
|
|
|
|
|
|
|
<view class="line address"> |
|
|
|
<view class="address-top"> |
|
|
|
<!-- <view class=""> |
|
|
|
服务地址 |
|
|
|
</view> --> |
|
|
|
<view class=""> |
|
|
|
收货地址 |
|
|
|
</view> |
|
|
|
<view class="copy"> |
|
|
|
<image @click="copy(msgOrder.name + ' ' + msgOrder.phone + ' ' + msgOrder.address)" src="/static/order/copy.png"></image> |
|
|
|
<image @click="copy(order.name + ' ' + order.phone + ' ' + order.address + order.addressDetails)" src="/static/order/copy.png"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="addressDetail"> |
|
|
|
<view class="">{{msgOrder.name}} {{msgOrder.phone}}</view> |
|
|
|
<view class="">{{msgOrder.address}}</view> |
|
|
|
<view class="">{{order.name}} {{order.phone}}</view> |
|
|
|
<view class="">{{order.address}} {{order.addressDetails}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
@ -136,31 +137,7 @@ |
|
|
|
实付款 |
|
|
|
</view> |
|
|
|
<view class="current-price"> |
|
|
|
¥{{ msgOrder.money }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="min_tips"> |
|
|
|
<view class=""> |
|
|
|
租赁费用 |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
¥{{ msgOrder.price }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="min_tips"> |
|
|
|
<view class=""> |
|
|
|
水洗费用 |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
¥{{ msgOrder.price}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="min_tips"> |
|
|
|
<view class=""> |
|
|
|
押金 |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
¥{{ msgOrder.price }} |
|
|
|
¥{{ order.price }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -177,7 +154,7 @@ |
|
|
|
订单编号 |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
{{msgOrder.id}} |
|
|
|
{{order.id}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="min_tips"> |
|
|
@ -185,7 +162,7 @@ |
|
|
|
下单时间 |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
{{msgOrder.createTime}} |
|
|
|
{{order.createTime}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -193,14 +170,14 @@ |
|
|
|
|
|
|
|
<!-- 下单须知 --> |
|
|
|
<view class="line"> |
|
|
|
<view class="t min_tips"> |
|
|
|
<!-- <view class="t min_tips"> |
|
|
|
<view class=""> |
|
|
|
下单须知 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="min_tips" style="line-height: 40rpx;"> |
|
|
|
{{msgShop.projectExplain}} |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<view class="btns"> |
|
|
|
<view @click="clickService" class="btn"> |
|
|
|
联系客服 |
|
|
@ -213,10 +190,9 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
import { mapState } from 'vuex' |
|
|
|
export default { |
|
|
|
computed : { |
|
|
|
...mapGetters(['userShop']), |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
@ -227,27 +203,30 @@ |
|
|
|
'开始清洗', |
|
|
|
'服务完成', |
|
|
|
], |
|
|
|
msgShop : { |
|
|
|
money : 99.99, |
|
|
|
image : 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg', |
|
|
|
projectExplain : '1.xxxxxxxxxx xxxxxxxxxx。2.xxxxxx xxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxx xxxxxxxxxxxxxxxx。3.。', |
|
|
|
}, |
|
|
|
msgOrder : { |
|
|
|
money : 99.99, |
|
|
|
address : '广东省广州市越秀区城南故事C3栋2802', |
|
|
|
name : '李**', |
|
|
|
phone : '150*****091', |
|
|
|
unit : '120*40*75【桌子尺寸】', |
|
|
|
state_dictText : '已完成', |
|
|
|
price : 199.99, |
|
|
|
id : '020644568964457', |
|
|
|
createTime : '2024-01-18 15:39', |
|
|
|
projectName : '桌布租赁' |
|
|
|
}, |
|
|
|
order : {}, |
|
|
|
id : 0, |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(args) { |
|
|
|
this.id = args.id |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.getOrderDetail() |
|
|
|
}, |
|
|
|
onPullDownRefresh() { |
|
|
|
this.getOrderDetail() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
getOrderDetail(){ |
|
|
|
this.$api('getOrderDetail', { |
|
|
|
id : this.id |
|
|
|
}, res => { |
|
|
|
uni.stopPullDownRefresh() |
|
|
|
if(res.code == 200){ |
|
|
|
this.order = res.result |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|