243 lines
5.3 KiB
Vue
243 lines
5.3 KiB
Vue
<template>
|
|
<view class="details">
|
|
<view class="goods-info">
|
|
<image></image>
|
|
<view class="info-right">
|
|
<view class="name u-line-1">心机小黑裙连衣裙赫本风夏季爆款...</view>
|
|
<view class="info">
|
|
<view class="num">共一件商品</view>
|
|
<view class="price">实付<span>¥199.9</span></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="user-info">
|
|
<view class="info-title">收件人信息</view>
|
|
<view class="info-container">
|
|
<view>
|
|
<view class="title">姓名</view>
|
|
<view class="value">李先生</view>
|
|
</view>
|
|
<view>
|
|
<view class="title">手机号</view>
|
|
<view class="value">123456789</view>
|
|
</view>
|
|
<view>
|
|
<view class="title">收货地址</view>
|
|
<view class="value u-line-1">山东省临沂市兰山区XX路XX小区XX楼xx单元</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="delivery">
|
|
<view class="title">派送方式</view>
|
|
<view class="methods">
|
|
<view :class="{active: cur==0}" @click="cur=0">人工送达</view>
|
|
<view :class="{active: cur==1}" @click="cur=1">指派外部骑手</view>
|
|
</view>
|
|
<view class="methods">
|
|
<view :class="{active: cur==0}" @click="cur=0">快递</view>
|
|
<view :class="{active: cur==1}" @click="cur=1">骑手</view>
|
|
</view>
|
|
<view class="btn">确认</view>
|
|
</view>
|
|
<u-popup v-model="show" mode="center" border-radius="10" class="delivery-popup">
|
|
<view class="title">骑手信息</view>
|
|
<view class="input-info">
|
|
<input type="text" placeholder="请输入您的姓名" v-model="name" />
|
|
<input type="text" placeholder="请输入您的手机号" v-model="phone" />
|
|
<input type="text" placeholder="请输入您的公司名称" v-model="company" />
|
|
</view>
|
|
<view class="btn">确认</view>
|
|
</u-popup>
|
|
<u-popup v-model="show" mode="center" border-radius="10" class="delivery-popup">
|
|
<view class="title">填写快递单号</view>
|
|
<view class="input-info">
|
|
<input type="text" placeholder="请输入快递单号" v-model="express" />
|
|
</view>
|
|
<view class="btn">确认</view>
|
|
</u-popup>
|
|
</view>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
cur: Number,
|
|
show: false,
|
|
name: '',
|
|
phone: '',
|
|
company: ''
|
|
}
|
|
},
|
|
watch: {
|
|
cur(value) {
|
|
if(value == 1) {
|
|
this.show = true;
|
|
}
|
|
}
|
|
},
|
|
methods: {
|
|
showPopup() {
|
|
console.log(this.show);
|
|
|
|
this.show = true;
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
.details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: calc(100vh - var(--window-top));
|
|
background-color: #ECECEC;
|
|
.goods-info {
|
|
background-color: #FFFFFF;
|
|
padding: 30rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 2rpx 0 20rpx;
|
|
> image {
|
|
width: 160rpx;
|
|
height: 160rpx;
|
|
border-radius: 10rpx;
|
|
flex-shrink: 0;
|
|
margin-right: 26rpx;
|
|
background-color: aqua;
|
|
}
|
|
.info-right {
|
|
.name {
|
|
width: 439rpx;
|
|
font-size: 28rpx;
|
|
color: rgba(51,51,51,1);
|
|
margin-bottom: 30rpx;
|
|
}
|
|
.info {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 26rpx;
|
|
color: rgba(102,102,102,1);
|
|
.price {
|
|
margin-left: 10rpx;
|
|
> span {
|
|
color: #FF780F;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.user-info {
|
|
.info-title {
|
|
font-size: 30rpx;
|
|
font-weight: 500;
|
|
color: rgba(51,51,51,1);
|
|
height: 88rpx;
|
|
background-color: #FFFFFF;
|
|
margin-bottom: 2rpx;
|
|
padding: 30rpx;
|
|
}
|
|
.info-container {
|
|
padding: 0 30rpx;
|
|
background-color: #FFFFFF;
|
|
margin-bottom: 20rpx;
|
|
> view {
|
|
height: 88rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
color: rgba(51,51,51,1);
|
|
&:not(:last-child) {
|
|
border-bottom: 2rpx solid #ECECEC;
|
|
}
|
|
.title {
|
|
width: 150rpx;
|
|
font-size: 30rpx;
|
|
margin-right: 10rpx;
|
|
}
|
|
.value {
|
|
font-size: 26rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.delivery {
|
|
flex: 1;
|
|
background-color: #FFFFFF;
|
|
padding: 30rpx;
|
|
position: relative;
|
|
.title {
|
|
font-size: 30rpx;
|
|
font-weight: 500;
|
|
color: rgba(51,51,51,1);
|
|
margin-bottom: 30rpx;
|
|
}
|
|
.methods {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
> view {
|
|
font-size: 30rpx;
|
|
color: rgba(0,0,51,1);
|
|
width: 335rpx;
|
|
height: 80rpx;
|
|
border: 1rpx solid rgba(236,236,236,1);
|
|
background: rgba(236,236,236,1);
|
|
border-radius: 6rpx;
|
|
text-align: center;
|
|
line-height: 80rpx;
|
|
margin-bottom: 20rpx;
|
|
&:nth-child(2n-1) {
|
|
margin-right: 20rpx;
|
|
}
|
|
}
|
|
.active {
|
|
border: 1rpx solid #FF780F;
|
|
color: #FF780F;
|
|
background: #FFF1E6;
|
|
}
|
|
}
|
|
.btn {
|
|
position: absolute;
|
|
bottom: 40rpx;
|
|
left: 50%;
|
|
transform: translate(-50%, 0);
|
|
width: 690rpx;
|
|
height: 98rpx;
|
|
background: rgba(255,120,15,1);
|
|
border-radius: 49rpx;
|
|
font-size: 36rpx;
|
|
color: rgba(255,255,255,1);
|
|
text-align: center;
|
|
line-height: 98rpx;
|
|
}
|
|
}
|
|
.delivery-popup {
|
|
.title {
|
|
width: 420rpx;
|
|
font-size: 30rpx;
|
|
font-weight: 500;
|
|
color: rgba(51,51,51,1);
|
|
text-align: center;
|
|
line-height: 88rpx;
|
|
border-bottom: 2rpx solid #ECECEC;
|
|
}
|
|
.input-info {
|
|
> input {
|
|
font-size: 26rpx;
|
|
line-height: 88rpx;
|
|
padding: 30rpx;
|
|
border-bottom: 2rpx solid #ECECEC;
|
|
}
|
|
}
|
|
.btn {
|
|
margin: 20rpx auto;
|
|
width: 200rpx;
|
|
height: 60rpx;
|
|
background: rgba(255,120,15,1);
|
|
border-radius: 30rpx;
|
|
font-size: 28rpx;
|
|
color: rgba(255,255,255,1);
|
|
line-height: 60rpx;
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
</style> |