订单完成
This commit is contained in:
parent
ce92a35e28
commit
cdd5c3e8e5
@ -21,9 +21,8 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
toDetailsPage() {
|
||||
console.log(1)
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/details'
|
||||
url: '/pages/index/details?current=' + this.cur
|
||||
});
|
||||
},
|
||||
},
|
||||
|
@ -10,7 +10,21 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="user-info">
|
||||
<view class="refunds-user" v-if="status==4 || status==5">
|
||||
<view>
|
||||
<image src="/static/image/home/2.png"></image>
|
||||
<view>李先生</view>
|
||||
</view>
|
||||
<view>
|
||||
<image src="/static/image/home/3.png"></image>
|
||||
<view>123456789</view>
|
||||
</view>
|
||||
<view>
|
||||
<image src="/static/image/home/4.png"></image>
|
||||
<view class="address u-line-1">山东省临沂市兰山区XX路XX小区XX楼xx单元</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="user-info" v-if="status == 1 || status == 2">
|
||||
<view class="info-title">收件人信息</view>
|
||||
<view class="info-container">
|
||||
<view>
|
||||
@ -27,19 +41,23 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="delivery">
|
||||
<view class="delivery" v-if="status == 1 || status == 2">
|
||||
<view class="title">派送方式</view>
|
||||
<view class="methods">
|
||||
<view class="methods" v-if="status == 1">
|
||||
<view :class="{active: cur==0}" @click="cur=0">人工送达</view>
|
||||
<view :class="{active: cur==1}" @click="cur=1">指派外部骑手</view>
|
||||
<view :class="{active: cur==1}" @click="cur=1;showDelivery=true">指派外部骑手</view>
|
||||
</view>
|
||||
<view class="methods">
|
||||
<view :class="{active: cur==0}" @click="cur=0">快递</view>
|
||||
<view :class="{active: cur==1}" @click="cur=1">骑手</view>
|
||||
<view class="methods" v-if="status == 2">
|
||||
<view :class="{active: cur==0}" @click="cur=0;showExpress=true">快递</view>
|
||||
<view :class="{active: cur==1}" @click="cur=1;showDelivery=true">骑手</view>
|
||||
</view>
|
||||
<view class="btn">确认</view>
|
||||
</view>
|
||||
<u-popup v-model="show" mode="center" border-radius="10" class="delivery-popup">
|
||||
<view class="refunds-option" v-if="status==5">
|
||||
<view :class="{active: cur==0}" @click="cur=0;showRefunds=true">不处理</view>
|
||||
<view :class="{active: cur==1}" @click="cur=1;showRefunds=true">确定处理</view>
|
||||
</view>
|
||||
<u-popup v-model="showDelivery" mode="center" border-radius="10" class="delivery-popup">
|
||||
<view class="title">骑手信息</view>
|
||||
<view class="input-info">
|
||||
<input type="text" placeholder="请输入您的姓名" v-model="name" />
|
||||
@ -48,39 +66,42 @@
|
||||
</view>
|
||||
<view class="btn">确认</view>
|
||||
</u-popup>
|
||||
<u-popup v-model="show" mode="center" border-radius="10" class="delivery-popup">
|
||||
<u-popup v-model="showExpress" 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>
|
||||
<u-popup v-model="showRefunds" mode="center" border-radius="10" class="refunds-popup">
|
||||
<view v-if="cur==1" class="popup-tips">确定处理<br />平台将进行退款</view>
|
||||
<view v-if="cur==0" class="popup-tips">确定不处理<br />平台将进行联系</view>
|
||||
<view class="popup-btn">
|
||||
<view class="cancel" @click="showRefunds=false">取消</view>
|
||||
<view class="determine">确定</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
status: Number, // 订单状态
|
||||
cur: Number,
|
||||
show: false,
|
||||
showDelivery: false, // 填写骑手信息
|
||||
showExpress: false, // 填写快递单号
|
||||
showRefunds: false, // 平台退货处理
|
||||
name: '',
|
||||
phone: '',
|
||||
company: ''
|
||||
company: '',
|
||||
express: ''
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
cur(value) {
|
||||
if(value == 1) {
|
||||
this.show = true;
|
||||
}
|
||||
}
|
||||
onLoad(option) {
|
||||
this.status = option.current;
|
||||
},
|
||||
methods: {
|
||||
showPopup() {
|
||||
console.log(this.show);
|
||||
|
||||
this.show = true;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@ -126,6 +147,39 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
.refunds-user {
|
||||
padding: 25rpx 30rpx;
|
||||
background-color: #FFFFFF;
|
||||
margin-bottom: 20rpx;
|
||||
> view {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 30rpx;
|
||||
@mixin image-class($width, $right) {
|
||||
> image {
|
||||
flex-shrink: 0;
|
||||
width: $width;
|
||||
height: 40rpx;
|
||||
margin-right: $right;
|
||||
}
|
||||
}
|
||||
&:first-child {
|
||||
@include image-class($width: 40rpx, $right: 20rpx);
|
||||
}
|
||||
&:nth-child(2) {
|
||||
margin-left: 4rpx;
|
||||
@include image-class($width: 32rpx, $right: 24rpx);
|
||||
}
|
||||
&:last-child {
|
||||
margin-left: 2rpx;
|
||||
@include image-class($width: 36rpx, $right: 22rpx);
|
||||
}
|
||||
> view {
|
||||
font-size: 26rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
}
|
||||
}
|
||||
}
|
||||
.user-info {
|
||||
.info-title {
|
||||
font-size: 30rpx;
|
||||
@ -209,6 +263,29 @@ export default {
|
||||
line-height: 98rpx;
|
||||
}
|
||||
}
|
||||
.refunds-option {
|
||||
flex: 1;
|
||||
padding: 88rpx 30rpx;
|
||||
background-color: #FFFFFF;
|
||||
display: flex;
|
||||
> view {
|
||||
width: 335rpx;
|
||||
height: 80rpx;
|
||||
border: 1rpx solid rgba(236,236,236,1);
|
||||
background: rgba(236,236,236,1);
|
||||
border-radius: 6rpx;
|
||||
font-size: 30rpx;
|
||||
color: rgba(0,0,51,1);
|
||||
line-height: 80rpx;
|
||||
text-align: center;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.active {
|
||||
border: 1rpx solid #FF780F;
|
||||
color: #FF780F;
|
||||
background: #FFF1E6;
|
||||
}
|
||||
}
|
||||
.delivery-popup {
|
||||
.title {
|
||||
width: 420rpx;
|
||||
@ -239,5 +316,32 @@ export default {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
.refunds-popup {
|
||||
.popup-tips {
|
||||
width: 420rpx;
|
||||
text-align: center;
|
||||
font-size: 28rpx;
|
||||
color: rgba(102,102,102,1);
|
||||
line-height: 42rpx;
|
||||
padding: 30rpx 0;
|
||||
}
|
||||
.popup-btn {
|
||||
width: 420rpx;
|
||||
display: flex;
|
||||
border-top: 2rpx solid #ECECEC;
|
||||
> view {
|
||||
flex: 1;
|
||||
height: 98rpx;
|
||||
text-align: center;
|
||||
line-height: 98rpx;
|
||||
&:first-child {
|
||||
border-right: 2rpx solid #ECECEC;
|
||||
}
|
||||
}
|
||||
.determine {
|
||||
color: #FF780F;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
@ -30,7 +30,24 @@
|
||||
</swiper-item>
|
||||
<swiper-item class="swiper-item">
|
||||
<scroll-view scroll-y style="height: 100%;width: 100%;">
|
||||
{{ current }}
|
||||
<view class="complaint">
|
||||
<view class="select-container">
|
||||
<view class="title">选择骑手</view>
|
||||
<view class="worker" v-if="JSON.stringify(worker) != '{}'">
|
||||
<view>{{ worker.company + " " + worker.name }}</view>
|
||||
<u-icon name="edit-pen" @click="worker={}"></u-icon>
|
||||
</view>
|
||||
<view v-else class="select" @click="showSelect=true">
|
||||
<view>请选择</view>
|
||||
<image src="/static/image/home/5.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="textarea">
|
||||
<view class="title">投诉简介</view>
|
||||
<textarea placeholder-style="color:#999999" placeholder="请输入内容" />
|
||||
</view>
|
||||
<view class="btn" @click="showComplaint=true">确定</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</swiper-item>
|
||||
<swiper-item class="swiper-item">
|
||||
@ -52,6 +69,16 @@
|
||||
<image src="/static/home/1.png"></image>
|
||||
<view class="text">发布</view>
|
||||
</view>
|
||||
<u-select v-model="showSelect" mode="mutil-column-auto" :list="workerList" @confirm="setWorker"></u-select>
|
||||
<u-popup v-model="showComplaint" mode="center" border-radius="10">
|
||||
<view class="confirm-complaint">
|
||||
<view class="text">
|
||||
<view>投诉成功</view>
|
||||
<view>请等待审核结果</view>
|
||||
</view>
|
||||
<view class="btn">确认</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -76,8 +103,40 @@ export default {
|
||||
imageList: [
|
||||
{}, {}, {}
|
||||
],
|
||||
showSelect: false,
|
||||
current: 0,
|
||||
swiperCurrent: 0,
|
||||
showComplaint: false,
|
||||
worker: {},
|
||||
workerList: [
|
||||
{
|
||||
label: '百世快递公司',
|
||||
children: [
|
||||
{
|
||||
label: '小米'
|
||||
},
|
||||
{
|
||||
label: '小亮'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: '中通快递公司',
|
||||
children: [
|
||||
{
|
||||
label: '小红'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: '申通快递公司',
|
||||
children: [
|
||||
{
|
||||
label: '小蓝'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@ -87,6 +146,13 @@ export default {
|
||||
|
||||
},
|
||||
methods: {
|
||||
setWorker(e) {
|
||||
// console.log(e);
|
||||
this.worker = {
|
||||
company: e[0].label,
|
||||
name: e[1].label
|
||||
}
|
||||
},
|
||||
tabsChange(index) {
|
||||
this.swiperCurrent = index;
|
||||
},
|
||||
@ -105,6 +171,7 @@ export default {
|
||||
background-color: #ECECEC;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
// padding-bottom: 100rpx;
|
||||
> uni-swiper {
|
||||
flex: 1;
|
||||
}
|
||||
@ -115,6 +182,77 @@ export default {
|
||||
.tab-swiper {
|
||||
margin: 2rpx 0 20rpx 0;
|
||||
}
|
||||
.swiper-item {
|
||||
.complaint {
|
||||
margin: 0 30rpx;
|
||||
padding: 75rpx 30rpx;
|
||||
background-color: #ffffff;
|
||||
.select-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 60rpx;
|
||||
.title {
|
||||
font-size: 30rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.select {
|
||||
padding: 18rpx 20rpx;
|
||||
width: 490rpx;
|
||||
height: 60rpx;
|
||||
background: rgba(236,236,236,1);
|
||||
border-radius: 6rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
> view {
|
||||
font-size: 26rpx;
|
||||
color: #999999;
|
||||
}
|
||||
> image {
|
||||
width: 24rpx;
|
||||
height: 13rpx;
|
||||
}
|
||||
}
|
||||
.worker {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
> view {
|
||||
font-size: 30rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
.textarea {
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
.title {
|
||||
font-size: 30rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
> textarea {
|
||||
padding: 20rpx;
|
||||
width: 430rpx;
|
||||
height: 220rpx;
|
||||
border: 1rpx solid #999999;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
}
|
||||
.btn {
|
||||
margin: 90rpx auto 0;
|
||||
width: 630rpx;
|
||||
height: 88rpx;
|
||||
background: rgba(255,120,15,1);
|
||||
border-radius: 44rpx;
|
||||
font-size: 36rpx;
|
||||
color: rgba(255,255,255,1);
|
||||
line-height: 88rpx;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
.release-btn {
|
||||
position: fixed;
|
||||
bottom: 475rpx;
|
||||
@ -140,5 +278,31 @@ export default {
|
||||
color: rgba(255,255,255,1);
|
||||
}
|
||||
}
|
||||
.confirm-complaint {
|
||||
text-align: center;
|
||||
padding-bottom: 20rpx;
|
||||
.text {
|
||||
text-align: center;
|
||||
width: 420rpx;
|
||||
padding: 55rpx 112rpx;
|
||||
font-size: 28rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
line-height: 4r2px;
|
||||
> view:first-child {
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
}
|
||||
.btn {
|
||||
width: 200rpx;
|
||||
height: 60rpx;
|
||||
background: rgba(255,120,15,1);
|
||||
border-radius: 30rpx;
|
||||
text-align: center;
|
||||
line-height: 60rpx;
|
||||
font-size: 28rpx;
|
||||
color: rgba(255,255,255,1);
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
BIN
static/image/home/2.png
Normal file
BIN
static/image/home/2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
BIN
static/image/home/3.png
Normal file
BIN
static/image/home/3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
BIN
static/image/home/4.png
Normal file
BIN
static/image/home/4.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
BIN
static/image/home/5.png
Normal file
BIN
static/image/home/5.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
Loading…
Reference in New Issue
Block a user