chenkun 5 months ago
parent
commit
132eef66cd
2 changed files with 114 additions and 0 deletions
  1. +12
    -0
      api/api.js
  2. +102
    -0
      pages_order/components/order/orderTypeBtn.vue

+ 12
- 0
api/api.js View File

@ -253,6 +253,18 @@ const config = {
limit: 500,
auth: true,
},
// 根据商品id获取规格
goodsSku: {
url: '/goods/sku',
method: 'GET',
auth: true,
},
// 购物车修改多规格
editSku: {
url: '/goods/shopping/cart/edit/sku',
method: 'POST',
auth: true,
},
}


+ 102
- 0
pages_order/components/order/orderTypeBtn.vue View File

@ -0,0 +1,102 @@
<template>
<view class="orderTypeBtn">
<!-- 租赁 -->
<view class="btns" v-if="type==0">
<view class="btn1" @click="confirmReceiveGoods">
确认
</view>
<view class="btn2">
查看物流
</view>
</view>
<!-- 水洗 -->
<view class="btns" v-if="type==1">
<!--
水洗订单3待支付 4水洗店接单 5水洗店检查 6开始清洗
-->
<view class="btn1" @click="confirmReceiveGoods">
{{status==3}}
开始清洗
</view>
<!-- <view class="btn2">
线下配送
</view> -->
</view>
<!-- 破损(换货) -->
<view class="btns" v-if="type==2">
<view class="btn1" @click="confirmReceiveGoods">
<!-- 快递寄回 -->
确认收货
</view>
<view class="btn2">
线下配送
</view>
</view>
<!-- 退货 -->
<view class="btns" v-if="type==3">
<view class="btn1" @click="confirmReceiveGoods">
<!-- 快递寄回 -->
确认收货
</view>
<view class="btn2">
线下配送
</view>
</view>
</view>
</template>
<script>
export default {
props: {
type: null,
status: null,
},
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
.orderTypeBtn {
.btns {
margin-top: 50rpx;
display: flex;
view {
margin: 0 20rpx;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
background-color: $uni-color;
padding: 15rpx 40rpx;
border-radius: 40rpx;
}
.btn1 {
// background-color: #FFFFFF;
// border: 1px solid #A7A7A7;
// color: #A7A7A7;
}
.btn2 {
background-color: #FFFFFF;
border: 1px solid #A7A7A7;
color: #A7A7A7;
}
}
}
</style>

Loading…
Cancel
Save