|
@@ -1,95 +1,156 @@
|
|
|
<template>
|
|
|
- <el-dialog width="700px" :show-close="false" destroy-on-close :visible.sync="dialogTableVisible">
|
|
|
- <div class="send-content">
|
|
|
- <div class="top-juhe active">
|
|
|
- <div class="left-content">
|
|
|
- <div class="juhe-icon">
|
|
|
- <img src="../../../static/image/juhe-icon.png" />
|
|
|
+ <div>
|
|
|
+ <el-dialog width="700px" :show-close="false" destroy-on-close :visible.sync="dialogTableVisible">
|
|
|
+ <div class="send-content">
|
|
|
+ <div class="top-juhe active">
|
|
|
+ <div class="left-content">
|
|
|
+ <div class="juhe-icon">
|
|
|
+ <img src="../../../static/image/juhe-icon.png" />
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <div class="juhe-title">聚合配送</div>
|
|
|
+ <div class="quan-wang">
|
|
|
+ <span>全网运力推单</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div>
|
|
|
- <div class="juhe-title">聚合配送</div>
|
|
|
- <div class="quan-wang">
|
|
|
- <span>全网运力推单</span>
|
|
|
+ <div class="right-content">
|
|
|
+ <div class="right-title">
|
|
|
+ 预估 <span>7.8~10.8</span> 元
|
|
|
</div>
|
|
|
+ <div class="youhui">优惠合计2元</div>
|
|
|
</div>
|
|
|
+ <img src="../../../static/image/choose-icon.png" class="choose-icon" />
|
|
|
</div>
|
|
|
- <div class="right-content">
|
|
|
- <div class="right-title">
|
|
|
- 预估 <span>7.8~10.8</span> 元
|
|
|
+ <!-- 自选运力 -->
|
|
|
+ <div class="choose-self">
|
|
|
+ <div class="self-top">
|
|
|
+ <img src="../../../static/image/choose-self-icon.png" class="choose-self-icon" />
|
|
|
+ <span>自选运力</span>
|
|
|
</div>
|
|
|
- <div class="youhui">优惠合计2元</div>
|
|
|
- </div>
|
|
|
- <img src="../../../static/image/choose-icon.png" class="choose-icon" />
|
|
|
- </div>
|
|
|
- <!-- 自选运力 -->
|
|
|
- <div class="choose-self">
|
|
|
- <div class="self-top">
|
|
|
- <img src="../../../static/image/choose-self-icon.png" class="choose-self-icon" />
|
|
|
- <span>自选运力</span>
|
|
|
- </div>
|
|
|
- <div class="delivery-list">
|
|
|
- <div class="delivery-list-item">
|
|
|
- <div class="item-left">
|
|
|
- <div class="item-logo">
|
|
|
- <img src="../../../static/image/juhe-icon.png" />
|
|
|
+ <div class="delivery-list">
|
|
|
+ <div class="delivery-list-item">
|
|
|
+ <div class="item-left">
|
|
|
+ <div class="item-logo">
|
|
|
+ <img src="../../../static/image/juhe-icon.png" />
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <div class="item-title">闪送</div>
|
|
|
+ <div class="item-miters">预估3.5km</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div>
|
|
|
- <div class="item-title">闪送</div>
|
|
|
- <div class="item-miters">预估3.5km</div>
|
|
|
+ <div class="item-right">
|
|
|
+ <div>
|
|
|
+ <div class="item-price">预估 <span>8.8</span> 元</div>
|
|
|
+ <div class="item-coupon">优惠合计2元</div>
|
|
|
+ </div>
|
|
|
+ <div class="item-choose">
|
|
|
+ <!-- <img src="../../../static/image/item-choose-icon.png" /> -->
|
|
|
+ <img src="../../../static/image/select_yes@2x.png" />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="item-right">
|
|
|
- <div>
|
|
|
- <div class="item-price">预估 <span>8.8</span> 元</div>
|
|
|
- <div class="item-coupon">优惠合计2元</div>
|
|
|
- </div>
|
|
|
- <div class="item-choose">
|
|
|
- <!-- <img src="../../../static/image/item-choose-icon.png" /> -->
|
|
|
- <img src="../../../static/image/select_yes@2x.png" />
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 选择优惠券 -->
|
|
|
+ <div>
|
|
|
+ <div class="choose-coupon">
|
|
|
+ <div></div>
|
|
|
+ <div class="coupon-box">
|
|
|
+ <!-- <img src="../../../static/image/coupon-icon.png" class="coupon-icon" /> -->
|
|
|
+ <el-select v-model="coupon" placeholder="请选择使用优惠券">
|
|
|
+ <el-option v-for="item in couponList" :key="item.id" :label="item.label" :value="item.id">
|
|
|
+ <span style="float: left">{{ item.label }}</span>
|
|
|
+ <span style="float: right; color: #8492a6; font-size: 13px" v-if="item.value">x{{ item.value }}</span>
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <!-- <span>选择优惠券</span>
|
|
|
+ <img src="../../../static/image/arrow-down.png" class="arrow-down" /> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!-- 预留优惠券列表 -->
|
|
|
+ <div class="coupon-list"></div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <!-- 选择优惠券 -->
|
|
|
- <div>
|
|
|
- <div class="choose-coupon">
|
|
|
- <div></div>
|
|
|
- <div class="coupon-box">
|
|
|
- <img src="../../../static/image/coupon-icon.png" class="coupon-icon" />
|
|
|
- <span>选择优惠券</span>
|
|
|
- <img src="../../../static/image/arrow-down.png" class="arrow-down" />
|
|
|
+ <!-- 支付方式 -->
|
|
|
+ <div class="choose-self" style="border: none;">
|
|
|
+ <div class="self-top">
|
|
|
+ <img src="../../../static/image/choose-self-icon.png" class="choose-self-icon" />
|
|
|
+ <span>支付方式</span>
|
|
|
+ </div>
|
|
|
+ <div class="pay-list">
|
|
|
+ <div class="pay-item" :class=" index ===0 ? 'pay-active' : '' " v-for="(item, index) in payList"
|
|
|
+ :key="index">
|
|
|
+ <img :src="item.icon" class="pay-icon" />
|
|
|
+ <span>{{ item.name }}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- 预留优惠券列表 -->
|
|
|
- <div class="coupon-list"></div>
|
|
|
</div>
|
|
|
- <!-- 支付方式 -->
|
|
|
- <div class="choose-self" style="border: none;">
|
|
|
- <div class="self-top">
|
|
|
- <img src="../../../static/image/choose-self-icon.png" class="choose-self-icon" />
|
|
|
- <span>支付方式</span>
|
|
|
+ </el-dialog>
|
|
|
+ <!-- 支付二维码弹出层 -->
|
|
|
+ <el-dialog width="1000px" :show-close="false" destroy-on-close :visible.sync="payModal">
|
|
|
+ <div class="pay-modal">
|
|
|
+ <div class="pay-top">微信支付</div>
|
|
|
+ </div>
|
|
|
+ <div class="code-content">
|
|
|
+ <div class="code-top">
|
|
|
+ <div class="code-left">
|
|
|
+ <div class="l-title">支付金额</div>
|
|
|
+ <div class="l-price">预估¥8.80,优惠券抵扣¥2.00</div>
|
|
|
+ </div>
|
|
|
+ <div class="code-right">¥6.80</div>
|
|
|
</div>
|
|
|
- <div class="pay-list">
|
|
|
- <div class="pay-item" :class=" index ===0 ? 'pay-active' : '' " v-for="(item, index) in payList" :key="index">
|
|
|
- <img :src="item.icon" class="pay-icon" />
|
|
|
- <span>{{ item.name }}</span>
|
|
|
+ <div class="code-bottom">
|
|
|
+ <img src="../../../static/image/alipay.png" class="code-img" />
|
|
|
+ <div class="des">请使用手机打开微信扫描二维码完成支付</div>
|
|
|
+ <div class="guo-qi">
|
|
|
+ <span>点击刷新</span>
|
|
|
+ 重新获取二维码
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- dialogTableVisible: false,
|
|
|
- payList: [
|
|
|
- { id: 1, name: '支付宝支付', icon: '../../../static/image/alipay.png' },
|
|
|
- { id: 2, name: '微信支付', icon: '../../../static/image/we-chat.png' },
|
|
|
- { id: 3, name: '余额支付', icon: '../../../static/image/yu-e.png' },
|
|
|
+ payModal: false, // 支付二维码弹出层
|
|
|
+ coupon: '',
|
|
|
+ couponList: [{
|
|
|
+ id: -1,
|
|
|
+ label: '不使用优惠券'
|
|
|
+ }, {
|
|
|
+ id: 1,
|
|
|
+ value: 1,
|
|
|
+ label: '满减券'
|
|
|
+ }, {
|
|
|
+ id: 2,
|
|
|
+ value: 10,
|
|
|
+ label: '立减券'
|
|
|
+ }, {
|
|
|
+ id: 3,
|
|
|
+ value: 15,
|
|
|
+ label: '折扣券'
|
|
|
+ }],
|
|
|
+ dialogTableVisible: false, // 发起配送弹出层
|
|
|
+ payList: [{
|
|
|
+ id: 1,
|
|
|
+ name: '支付宝支付',
|
|
|
+ icon: '../../../static/image/alipay.png'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 2,
|
|
|
+ name: '微信支付',
|
|
|
+ icon: '../../../static/image/we-chat.png'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 3,
|
|
|
+ name: '余额支付',
|
|
|
+ icon: '../../../static/image/yu-e.png'
|
|
|
+ },
|
|
|
]
|
|
|
}
|
|
|
},
|
|
@@ -105,12 +166,87 @@
|
|
|
/deep/ .el-dialog__header {
|
|
|
padding: 0;
|
|
|
}
|
|
|
+
|
|
|
/deep/ .el-dialog__body {
|
|
|
- padding: 22px !important;
|
|
|
+ padding: 0px !important;
|
|
|
+ }
|
|
|
+ .pay-modal {
|
|
|
+ // border-radius: 16px;
|
|
|
+ overflow: hidden;
|
|
|
+ .pay-top {
|
|
|
+ height: 80px;
|
|
|
+ line-height: 80px;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 22px;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #FFFFFF;
|
|
|
+ background: url(../../../static/image/pay-bg.png) no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .code-content {
|
|
|
+ width: 640px;
|
|
|
+ margin: 40px auto 0;
|
|
|
+ padding-bottom: 100px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ .code-top {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ padding: 14px 20px;
|
|
|
+ .code-left {
|
|
|
+ .l-title {
|
|
|
+ font-size: 14px;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #0D1E40;
|
|
|
+ }
|
|
|
+ .l-price {
|
|
|
+ font-size: 14px;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #9EA7B7;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .code-right {
|
|
|
+ font-size: 24px;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #F74141;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .code-bottom {
|
|
|
+ text-align: center;
|
|
|
+ padding-top: 30px;
|
|
|
+ .code-img {
|
|
|
+ width: 260px;
|
|
|
+ height: 260px;
|
|
|
+ }
|
|
|
+ .des {
|
|
|
+ font-size: 14px;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #0D1E40;
|
|
|
+ margin: 10px 0 20px 0;
|
|
|
+ }
|
|
|
+ .guo-qi {
|
|
|
+ font-size: 14px;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #9EA7B7;
|
|
|
+ span {
|
|
|
+ color: #175199;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.send-content {
|
|
|
border-radius: 10px;
|
|
|
+ padding: 22px;
|
|
|
}
|
|
|
+
|
|
|
.top-juhe {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
@@ -119,30 +255,37 @@
|
|
|
border: 1px solid #999;
|
|
|
border-radius: 8px;
|
|
|
overflow: hidden;
|
|
|
+
|
|
|
&.active {
|
|
|
border-color: #FC7200;
|
|
|
}
|
|
|
+
|
|
|
.left-content {
|
|
|
display: flex;
|
|
|
+
|
|
|
.juhe-icon {
|
|
|
align-self: center;
|
|
|
font-size: 0;
|
|
|
width: 41px;
|
|
|
height: 40px;
|
|
|
margin-right: 12px;
|
|
|
+
|
|
|
img {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.juhe-title {
|
|
|
font-size: 16px;
|
|
|
font-family: PingFang SC;
|
|
|
font-weight: bold;
|
|
|
color: #0D1E40;
|
|
|
}
|
|
|
+
|
|
|
.quan-wang {
|
|
|
margin-top: 8px;
|
|
|
+
|
|
|
span {
|
|
|
display: inline-block;
|
|
|
padding: 0px 4px;
|
|
@@ -153,17 +296,20 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.right-content {
|
|
|
.right-title {
|
|
|
font-size: 14px;
|
|
|
font-family: PingFang SC;
|
|
|
font-weight: bold;
|
|
|
color: #0D1E40;
|
|
|
+
|
|
|
span {
|
|
|
font-size: 22px;
|
|
|
color: #FC7200;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.youhui {
|
|
|
text-align: right;
|
|
|
font-size: 12px;
|
|
@@ -172,6 +318,7 @@
|
|
|
color: #FC7200;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.choose-icon {
|
|
|
width: 32px;
|
|
|
height: 32px;
|
|
@@ -180,18 +327,22 @@
|
|
|
bottom: 0;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.choose-self {
|
|
|
padding-top: 25px;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
+
|
|
|
.self-top {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
margin-bottom: 11px;
|
|
|
+
|
|
|
.choose-self-icon {
|
|
|
width: 4px;
|
|
|
height: 15px;
|
|
|
margin-right: 10px;
|
|
|
}
|
|
|
+
|
|
|
span {
|
|
|
font-size: 14px;
|
|
|
font-family: PingFang SC;
|
|
@@ -199,6 +350,7 @@
|
|
|
color: #92959B;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.delivery-list {
|
|
|
&-item {
|
|
|
/*height: 76px;*/
|
|
@@ -207,24 +359,29 @@
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
+
|
|
|
.item-left {
|
|
|
display: flex;
|
|
|
+
|
|
|
.item-logo {
|
|
|
font-size: 0;
|
|
|
width: 40px;
|
|
|
height: 40px;
|
|
|
margin-right: 15px;
|
|
|
+
|
|
|
img {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.item-title {
|
|
|
font-size: 16px;
|
|
|
font-family: PingFang SC;
|
|
|
font-weight: bold;
|
|
|
color: #0D1E40;
|
|
|
}
|
|
|
+
|
|
|
.item-miters {
|
|
|
margin-top: 4px;
|
|
|
font-size: 12px;
|
|
@@ -233,18 +390,22 @@
|
|
|
color: #9EA7B7;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.item-right {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
+
|
|
|
.item-price {
|
|
|
font-size: 14px;
|
|
|
font-family: PingFang SC;
|
|
|
font-weight: bold;
|
|
|
color: #0D1E40;
|
|
|
+
|
|
|
span {
|
|
|
font-size: 22px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.item-coupon {
|
|
|
text-align: right;
|
|
|
font-size: 12px;
|
|
@@ -252,11 +413,13 @@
|
|
|
font-weight: 400;
|
|
|
color: #9EA7B7;
|
|
|
}
|
|
|
+
|
|
|
.item-choose {
|
|
|
margin-left: 26px;
|
|
|
font-size: 0;
|
|
|
width: 26px;
|
|
|
height: 26px;
|
|
|
+
|
|
|
img {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
@@ -265,10 +428,12 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.pay-list {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
padding-top: 10px;
|
|
|
+
|
|
|
.pay-item {
|
|
|
flex: 1;
|
|
|
display: flex;
|
|
@@ -279,21 +444,26 @@
|
|
|
border: 1px solid #eee;
|
|
|
border-radius: 8px;
|
|
|
cursor: pointer;
|
|
|
+
|
|
|
&.pay-active {
|
|
|
border-color: #FC7200;
|
|
|
}
|
|
|
+
|
|
|
&:nth-child(2) {
|
|
|
margin: 0 13px;
|
|
|
}
|
|
|
+
|
|
|
span {
|
|
|
font-size: 14px;
|
|
|
font-family: PingFang SC;
|
|
|
font-weight: bold;
|
|
|
color: #222222;
|
|
|
}
|
|
|
+
|
|
|
.pay-icon {
|
|
|
margin-right: 6px;
|
|
|
}
|
|
|
+
|
|
|
.pay-icon:nth-child(1) {
|
|
|
width: 25px;
|
|
|
height: 24px;
|
|
@@ -301,18 +471,22 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.choose-coupon {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
margin-top: 16px;
|
|
|
+
|
|
|
.coupon-box {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
+
|
|
|
.coupon-icon {
|
|
|
width: 14px;
|
|
|
height: 14px;
|
|
|
}
|
|
|
+
|
|
|
span {
|
|
|
font-size: 14px;
|
|
|
font-family: PingFang SC;
|
|
@@ -322,6 +496,7 @@
|
|
|
margin-right: 6px;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
+
|
|
|
.arrow-down {
|
|
|
width: 10px;
|
|
|
height: 6px;
|