|
|
|
<template>
|
|
|
|
<view class="updatePrice">
|
|
|
|
|
|
|
|
<view class="dispatchContent">
|
|
|
|
<view class="orderNum">
|
|
|
|
订单号:{{orderInfo.order_no}}
|
|
|
|
</view>
|
|
|
|
<view class="dispatchItem" v-for="item in orderInfo.goods">
|
|
|
|
<image :src="item.goods_image" mode="aspectFill"></image>
|
|
|
|
<view class="right">
|
|
|
|
<view class="title">
|
|
|
|
{{item.goods_name}}
|
|
|
|
</view>
|
|
|
|
<view class="subTitle" v-for="p in item.goods_props" :key="p.group">
|
|
|
|
{{p.group.name}}:{{p.value.name}}
|
|
|
|
|
|
|
|
</view>
|
|
|
|
<view class="num">
|
|
|
|
x{{item.total_num}}
|
|
|
|
</view>
|
|
|
|
<view class="price">
|
|
|
|
<text style="font-size: 26upx;">¥</text>
|
|
|
|
<text>{{item.total_price}}</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
<view class="selectContent" style="border:none;background-color: #fff;">
|
|
|
|
<!-- <view class="left">
|
|
|
|
物流费用
|
|
|
|
</view>
|
|
|
|
<view class="right">
|
|
|
|
<view class="price">
|
|
|
|
<text style="font-size: 26upx;">¥</text>
|
|
|
|
<text>288</text>
|
|
|
|
</view>
|
|
|
|
<u-icon name="arrow-right" color="#C3C3C3" size="28"></u-icon>
|
|
|
|
</view> -->
|
|
|
|
<u-field @click="wuliuShow=true" v-model="wuliu"
|
|
|
|
:disabled="true" label="物流公司" placeholder="请选择物流公司"
|
|
|
|
right-icon="arrow-down-fill"
|
|
|
|
>
|
|
|
|
</u-field>
|
|
|
|
<u-action-sheet :list="wlList" v-model="wuliuShow"></u-action-sheet>
|
|
|
|
<view class="scan">
|
|
|
|
<u-field
|
|
|
|
style="flex: 1;padding:30upx 0 30upx 30upx"
|
|
|
|
v-model="codeNum"
|
|
|
|
label="物流单号"
|
|
|
|
placeholder="请填写物流单号"
|
|
|
|
>
|
|
|
|
</u-field>
|
|
|
|
<image src="/static/news3/scan.png" mode=""></image>
|
|
|
|
</view>
|
|
|
|
<view class="footerBtn">
|
|
|
|
<view class="wuliuBtn">
|
|
|
|
物流链接
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="btn">
|
|
|
|
确认发货
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default{
|
|
|
|
data(){
|
|
|
|
return{
|
|
|
|
modifyInfo:false,
|
|
|
|
newPrice:null,
|
|
|
|
wuliuShow:false,
|
|
|
|
wlList:[
|
|
|
|
{
|
|
|
|
text: '物流',
|
|
|
|
}
|
|
|
|
],
|
|
|
|
wuliu:'',
|
|
|
|
codeNum:'',
|
|
|
|
orderInfo:{},
|
|
|
|
expressList:[],
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods:{
|
|
|
|
showAction(){
|
|
|
|
this.wuliuShow = true;
|
|
|
|
},
|
|
|
|
async getWuliuList(){
|
|
|
|
let {status, message, data} = await newFunApi.wuliuList();
|
|
|
|
if(status == 200){
|
|
|
|
uni.hideLoading();
|
|
|
|
this.expressList = data.list
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onLoad(option){
|
|
|
|
console.log(option)
|
|
|
|
this.orderInfo = JSON.parse(option.item)
|
|
|
|
console.log(this.orderInfo)
|
|
|
|
this.getWuliuList()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
page{
|
|
|
|
min-height: 100%;
|
|
|
|
background-color: #F7F8FA;
|
|
|
|
}
|
|
|
|
.orderNum{
|
|
|
|
|
|
|
|
font-size: 28upx;
|
|
|
|
font-family: PingFang SC, PingFang SC;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #707070;
|
|
|
|
margin:10upx 30upx;
|
|
|
|
|
|
|
|
}
|
|
|
|
.dispatchContent{
|
|
|
|
margin:20upx 0;
|
|
|
|
background: #FFFFFF;
|
|
|
|
// border-radius: 6px 6px 6px 6px;
|
|
|
|
opacity: 1;
|
|
|
|
padding:20upx 10upx;
|
|
|
|
}
|
|
|
|
.dispatchItem{
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
image{
|
|
|
|
width: 194upx;
|
|
|
|
height:194upx;
|
|
|
|
}
|
|
|
|
.right{
|
|
|
|
flex:1;
|
|
|
|
margin-left:40upx;
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: space-around;
|
|
|
|
.title{
|
|
|
|
|
|
|
|
font-size: 28upx;
|
|
|
|
font-family: PingFang SC, PingFang SC;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #3B3B3B;
|
|
|
|
|
|
|
|
}
|
|
|
|
.subTitle{
|
|
|
|
|
|
|
|
font-size: 28upx;
|
|
|
|
font-family: PingFang SC, PingFang SC;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #7C7C7C;
|
|
|
|
margin:14upx 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
.num{
|
|
|
|
|
|
|
|
font-size: 28upx;
|
|
|
|
font-family: PingFang SC, PingFang SC;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #1E1E1E;
|
|
|
|
}
|
|
|
|
.price{
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-end;
|
|
|
|
font-size: 32upx;
|
|
|
|
font-family: PingFang SC, PingFang SC;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #F21A1C;
|
|
|
|
position: absolute;
|
|
|
|
right:20upx;
|
|
|
|
bottom:0upx;
|
|
|
|
z-index:9;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.scan{
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
image{
|
|
|
|
width:40upx;
|
|
|
|
height:40upx;
|
|
|
|
margin-right:32upx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
::v-deep .u-field{
|
|
|
|
padding:30upx;
|
|
|
|
}
|
|
|
|
::v-deep .uni-input-wrapper{
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
.footerBtn{
|
|
|
|
padding:30upx;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
|
|
|
.wuliuBtn{
|
|
|
|
// padding:8upx 46upx;
|
|
|
|
text-align: center;
|
|
|
|
height:60upx;
|
|
|
|
line-height: 60upx;
|
|
|
|
border:1px solid #F63116;
|
|
|
|
font-size: 28upx;
|
|
|
|
font-family: PingFang SC, PingFang SC;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #F83F11;
|
|
|
|
border-radius:20px;
|
|
|
|
width:200upx;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn{
|
|
|
|
width: 80%;
|
|
|
|
height: 100upx;
|
|
|
|
background: #FFAAA4;
|
|
|
|
border-radius: 6px 6px 6px 6px;
|
|
|
|
opacity: 1;
|
|
|
|
line-height: 100upx;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 28upx;
|
|
|
|
font-family: PingFang SC, PingFang SC;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #FFFFFF;
|
|
|
|
margin:140upx auto;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|