|
@@ -0,0 +1,162 @@
|
|
|
+<template>
|
|
|
+ <el-drawer
|
|
|
+ title="订单发货(共3单)"
|
|
|
+ :visible.sync="drawer"
|
|
|
+ :direction="direction"
|
|
|
+ size="40%">
|
|
|
+ <div class="content">
|
|
|
+ <div class="order-cont">
|
|
|
+ <div class="cont-left">
|
|
|
+ <div class="order-code">订单编号:02233221000</div>
|
|
|
+ <div class="order-other">
|
|
|
+ <div class="receive-name">姓名:王小二</div>
|
|
|
+ <div class="address">目的地:<span>上海</span></div>
|
|
|
+ <div class="time">预计送达:8月6日 12:00前</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <i class="el-icon-arrow-right"></i>
|
|
|
+ </div>
|
|
|
+ <div class="order-cont onAct">
|
|
|
+ <div class="cont-left">
|
|
|
+ <div class="order-code">订单编号:02233221000</div>
|
|
|
+ <div class="order-other">
|
|
|
+ <div class="receive-name">姓名:王小二</div>
|
|
|
+ <div class="address">目的地:<span>上海</span></div>
|
|
|
+ <div class="time">预计送达:8月6日 12:00前</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <i class="el-icon-arrow-down"></i>
|
|
|
+ </div>
|
|
|
+ <deliveryGoodsInfo />
|
|
|
+ <deliveryPrice />
|
|
|
+ </div>
|
|
|
+ <div class="space"></div>
|
|
|
+ <div class="deli-footer">
|
|
|
+ <div class="d-left">
|
|
|
+ <div class="estimate-total">
|
|
|
+ 预计总价<span class="total">¥16.00</span> <span class="detail">明细></span>
|
|
|
+ </div>
|
|
|
+ <div class="agreement">
|
|
|
+ <el-checkbox v-model="checked">已读并同意《XXX电子运单协议》</el-checkbox>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="send-btn" @click="btn">确认发货</div>
|
|
|
+ </div>
|
|
|
+ </el-drawer>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script lang="ts">
|
|
|
+import { Component, Prop, Vue, Watch } from "vue-property-decorator";
|
|
|
+import DeliveryGoodsInfo from "./deliveryGoodsInfo.vue";
|
|
|
+import DeliveryPrice from "./deliveryPrice.vue";
|
|
|
+@Component({components:{DeliveryGoodsInfo,DeliveryPrice}})
|
|
|
+export default class DeliveryModal extends Vue {
|
|
|
+ drawer=false;
|
|
|
+ direction='rtl'
|
|
|
+ checked=false;
|
|
|
+ onAct='1'
|
|
|
+ setShow(v:boolean){
|
|
|
+ this.drawer=v;
|
|
|
+ }
|
|
|
+ btn(){
|
|
|
+
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.content{
|
|
|
+ width: 100%;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 0 16px;
|
|
|
+ background-color: #FFF;
|
|
|
+ .order-cont{
|
|
|
+ height: 60px;
|
|
|
+ width: 100%;
|
|
|
+ box-sizing: border-box;
|
|
|
+ border:solid 1px #BBB;
|
|
|
+ border-radius: 5px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ padding: 0 16px;
|
|
|
+ margin-bottom: 16px;
|
|
|
+ cursor: pointer;
|
|
|
+ .cont-left{
|
|
|
+ width: calc(100% - 40px);
|
|
|
+ .order-code{
|
|
|
+ width: 100%;
|
|
|
+ font-size: 14px;
|
|
|
+ padding: 6px 0 4px;
|
|
|
+ }
|
|
|
+ .order-other{
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ font-size: 14px;
|
|
|
+ .receive-name{
|
|
|
+ width: 120px;
|
|
|
+ }
|
|
|
+ .address{
|
|
|
+ width: 150px;
|
|
|
+ span{
|
|
|
+ color: #F00;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .time{
|
|
|
+ width: calc(100% - 120px - 150px);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .order-cont:hover,.onAct{
|
|
|
+ background-color: rgba(160,205,255,0.22);
|
|
|
+ }
|
|
|
+}
|
|
|
+.deli-footer{
|
|
|
+ height: 60px;
|
|
|
+ width: 100%;
|
|
|
+ padding: 0 16px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ position: absolute;
|
|
|
+ background-color: #FFF;
|
|
|
+ left: 0;
|
|
|
+ bottom: 0;
|
|
|
+ z-index: 10;
|
|
|
+ .d-left{
|
|
|
+ width: 70%;
|
|
|
+ .estimate-total{
|
|
|
+ font-size: 14px;
|
|
|
+ padding-bottom: 4px;
|
|
|
+ .total{
|
|
|
+ font-size: 16px;
|
|
|
+ color: #F00;
|
|
|
+ }
|
|
|
+ .detail{
|
|
|
+ color: #1684FC;
|
|
|
+ padding-left: 16px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .send-btn{
|
|
|
+ width: 120px;
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ border-radius: 8px;
|
|
|
+ background: linear-gradient(129.2deg, rgba(22,132,252,1) 9.81%,rgba(93,167,249,1) 97.4%);
|
|
|
+ color: rgba(255, 255, 255, 100);
|
|
|
+ font-size: 14px;
|
|
|
+ text-align: center;
|
|
|
+ box-shadow: 0px 2px 6px 0px rgba(93, 167, 249, 100);
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+}
|
|
|
+.space{
|
|
|
+ height: 60px;
|
|
|
+ width: 100%;
|
|
|
+ margin-top: 16px;
|
|
|
+}
|
|
|
+</style>
|