You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

250 lines
5.5 KiB
Vue

1 month ago
<template>
<view class="order-search">
<u-navbar title="订单查询" height="108rpx" placeholder='true'></u-navbar>
<view class="search-box">
1 month ago
<input class="search-input" placeholder="请输入快递单号" v-model="scanCode"></input>
1 month ago
<image src="../../static/img/search.png" class="search-img search"></image>
1 month ago
<image src="../../static/img/scan.png" class="search-img scan" @click="handleScan"></image>
1 month ago
</view>
<!-- 正在查询的订单 -->
<view class="order-item">
<view class="order-num-box">
<image src="../../static/img/order-company.png"></image>
<text class="order-company">顺丰速运SF3124710053030</text>
</view>
<view class="order-state">
<image src="../../static/img/order-state.png"></image>
已签收<text> 06-01 15:12</text>
</view>
<view class="tips">
签收时间在48小时内满足申请理赔时间要求
</view>
</view>
<!-- 申请查询订单 -->
<view class="order-apply">
<view class="title">订单截图</view>
<view class="tips">请上传您的第三方平台如淘宝京东购买订单截图</view>
<view class="image-box">
<view class="image-item">
<image src="https://wx2.sinaimg.cn/large/0073ozWdly1hsb27cnhsxj30u00u0441.jpg"></image>
</view>
<view class="image-item">
<image src="https://wx2.sinaimg.cn/large/0073ozWdly1hsb27cnhsxj30u00u0441.jpg"></image>
</view>
<view class="image-item">
<image src="https://wx2.sinaimg.cn/large/0073ozWdly1hsb27cnhsxj30u00u0441.jpg"></image>
</view>
<view class="image-item">
<image class="image-add" src="../../static/img/image-add.png"></image>
</view>
</view>
</view>
<!-- 下一步按钮 -->
<view class="next-btn">
<button>下一步</button>
</view>
</view>
</template>
<script>
1 month ago
export default {
data(){
return{
scanCode:''
}
},
methods:{
handleScan(){
// 允许从相机和相册扫码
// uni.scanCode({
// success: function (res) {
// console.log('条码类型:' + res.scanType);
// console.log('条码内容:' + res.result);
// }
// });
// 调起条码扫描
uni.scanCode({
scanType: ['barCode'],
success: function (res) {
console.log('条码类型:' + res.scanType);
console.log('条码内容:' + res.result);
}
});
}
}
}
1 month ago
</script>
<style lang="scss">
1 month ago
view,
text,
input,
label,
span {
box-sizing: border-box;
padding: 0;
margin: 0;
font-family: Microsoft YaHei;
}
1 month ago
.order-search{
width: 750rpx;
min-height: 100vh;
background: #F5F5F5;
padding: 36rpx;
1 month ago
1 month ago
.search-box{
width: 678rpx;
height: 120rpx;
background: #FFFFFF;
border-radius: 16rpx;
display: flex;
justify-content: center;
padding: 22rpx 24rpx 22rpx 24rpx;
box-sizing: border-box;
position: relative;
.search-input{
width: 628rpx;
height: 76rpx;
background: #FFFFFF;
border-radius: 200rpx;
border: 2rpx solid #000000;
font-weight: 400;
font-size: 28rpx;
color: rgba(0,0,0,0.3);
line-height: 39rpx;
padding-left: 88rpx;
1 month ago
z-index: 5;
1 month ago
}
.search-img{
width: 48rpx;
height: 48rpx;
position: absolute;
&.search{
left: 48rpx;
top: 36rpx;
1 month ago
z-index: 10;
1 month ago
}
&.scan{
right: 50rpx;
top: 36rpx;
1 month ago
z-index: 10;
1 month ago
}
}
}
.order-item{
width: 678rpx;
height: 210rpx;
background: #FFFFFF;
border-radius: 16rpx;
margin-top: 24rpx;
padding: 24rpx;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: space-around;
.order-num-box{
height: 48rpx;
text-align: center;
display: flex;
>image{
width: 48rpx;
height: 48rpx;
}
.order-company{
font-weight: 500;
font-size: 28rpx;
margin-left: 12rpx;
line-height: 39rpx;
text-align: center;
}
}
.order-state{
display: flex;
font-weight: 500;
font-size: 32rpx;
color: #2388FF;
line-height: 45rpx;
>image{
width: 48rpx;
height: 48rpx;
margin-right: 12rpx;
}
>text{
margin-left: 12rpx;
}
}
.tips{
font-weight: 400;
font-size: 24rpx;
color: rgba(34,34,34,0.6);
line-height: 34rpx;
margin-left: 60rpx;
}
}
.order-apply{
width: 678rpx;
//height: 376rpx;
background: #FFFFFF;
border-radius: 16rpx;
margin-top: 24rpx;
padding: 24rpx;
box-sizing: border-box;
.title{
font-weight: 500;
font-size: 32rpx;
color: #000000;
line-height: 45rpx;
}
.tips{
font-weight: 400;
font-size: 24rpx;
color: #999999;
line-height: 34rpx;
margin-top: 12rpx;
}
.image-box{
display: flex;
flex-wrap: wrap;
justify-content: left;
.image-item{
width: 226rpx;
height: 226rpx;
background: #F3F4F5;
border-radius: 10rpx 10rpx 10rpx 10rpx;
margin-right: 10rpx;
text-align: center;
overflow: hidden;
margin-top: 12rpx;
>image{
width: 100%;
height: 100%;
}
.image-add{
margin-top: 90rpx;
width: 48rpx;
height: 48rpx;
}
}
}
}
.next-btn{
position: fixed;
bottom: 68rpx;
box-sizing: border-box;
>button{
width: 678rpx;
height: 92rpx;
background: linear-gradient( 91deg, #43A1FF 0%, #2F80F9 100%), #FFFFFF;
border-radius: 24rpx;
font-weight: 500;
font-size: 28rpx;
color: #FFFFFF;
line-height: 39rpx;
text-align: center;
padding-top: 24rpx;
box-sizing: border-box;
}
}
}
</style>