2024-05-10 22:23:49 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="page">
|
2024-05-13 18:03:20 +08:00
|
|
|
|
<u-navbar title="用户详情" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
2024-06-07 18:08:55 +08:00
|
|
|
|
height='45'></u-navbar>
|
2024-05-10 22:23:49 +08:00
|
|
|
|
<view class="userinfo" style="background: #FFFFFF;width: 750rpx;padding-bottom: 36rpx;">
|
|
|
|
|
|
|
|
|
|
<view class="userinfo_li">
|
|
|
|
|
|
2024-05-14 22:11:06 +08:00
|
|
|
|
<span>{{info.phonenumber}}</span>
|
|
|
|
|
<view class="stause" v-if="info.status==0">
|
2024-05-10 22:23:49 +08:00
|
|
|
|
正常
|
|
|
|
|
</view>
|
2024-05-14 22:11:06 +08:00
|
|
|
|
<view class="stause" v-if="info.status==1" style="background: rgba(247,109,109,0.502);border: 2rpx solid #FF4444;color: #FF4444;">
|
|
|
|
|
停用
|
|
|
|
|
</view>
|
2024-05-10 22:23:49 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="userinfo_li">
|
|
|
|
|
注册日期:
|
2024-05-14 22:11:06 +08:00
|
|
|
|
<span>{{info.createTime}}</span>
|
2024-05-10 22:23:49 +08:00
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
<view class="userinfo_li">
|
2024-05-14 22:11:06 +08:00
|
|
|
|
<view class="txt">最近一笔订单:{{info.latestOrder.orderNo}}</view>
|
|
|
|
|
<span style="color:green;" v-if="info.latestOrder.status==0||info.latestOrder.status==2">(进行中)</span>
|
|
|
|
|
<span style="color:#ccc ;" v-if="info.latestOrder.status==1||info.latestOrder.status==3">(待支付)</span>
|
|
|
|
|
<span style="color:#4C97E7 ;" v-if="info.latestOrder.status==4">(已完成)</span>
|
2024-05-10 22:23:49 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="yj_info">
|
|
|
|
|
<view class="yjleft">
|
2024-12-12 18:02:37 +08:00
|
|
|
|
<image src="https://lxnapi.ccttiot.com/bike/img/static/ursesIB2IWmud9SPHEXU" mode="aspectFit"></image>
|
2024-05-10 22:23:49 +08:00
|
|
|
|
押金
|
|
|
|
|
</view>
|
|
|
|
|
<view class="yjright">
|
2024-05-14 22:11:06 +08:00
|
|
|
|
<view class="stause" v-if="info.balance==0">
|
2024-05-10 22:23:49 +08:00
|
|
|
|
未充值
|
|
|
|
|
</view>
|
2024-05-14 22:11:06 +08:00
|
|
|
|
<view class="stause" v-if="info.balance!=0" style="border: 2rpx solid #12D2AC;background: #E9F6F3;color: #12D2AC;">
|
|
|
|
|
已充值
|
|
|
|
|
</view>
|
|
|
|
|
¥{{info.balance}}
|
2024-05-10 22:23:49 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="tit">
|
|
|
|
|
押金明细
|
|
|
|
|
</view>
|
|
|
|
|
|
2024-05-14 22:11:06 +08:00
|
|
|
|
<view class="info_card" style="margin-top: 20rpx;" v-for="(item,index) in orderList" :key="index">
|
2024-05-10 22:23:49 +08:00
|
|
|
|
<view class="info_tit">
|
2024-05-14 22:11:06 +08:00
|
|
|
|
|
2024-05-10 22:23:49 +08:00
|
|
|
|
<view class="tit_right">
|
|
|
|
|
<!-- <view class="yuan"></view> -->
|
2024-07-16 18:02:32 +08:00
|
|
|
|
¥{{item.payFee}}
|
2024-05-10 22:23:49 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="lines"></view>
|
|
|
|
|
<view class="cont">
|
|
|
|
|
<view class="info_li">
|
2024-05-15 18:02:17 +08:00
|
|
|
|
支付时间:<span >{{item.createTime}}</span>
|
2024-05-10 22:23:49 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="info_li">
|
2024-05-14 22:11:06 +08:00
|
|
|
|
订单编号:<span>{{item.orderNo}}</span>
|
2024-05-10 22:23:49 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
bgc: {
|
|
|
|
|
backgroundColor: "#fff",
|
|
|
|
|
},
|
2024-05-14 22:11:06 +08:00
|
|
|
|
id:'',
|
|
|
|
|
info:{},
|
|
|
|
|
orderList:[]
|
2024-05-10 22:23:49 +08:00
|
|
|
|
}
|
2024-05-14 18:04:34 +08:00
|
|
|
|
},
|
|
|
|
|
onLoad(e) {
|
2024-05-14 22:11:06 +08:00
|
|
|
|
this.id=e.id
|
|
|
|
|
this.getSearch()
|
|
|
|
|
this.getlist()
|
2024-05-10 22:23:49 +08:00
|
|
|
|
},
|
|
|
|
|
methods: {
|
2024-05-14 22:11:06 +08:00
|
|
|
|
getlist() {
|
|
|
|
|
this.$u.get("/appVerify/order/list?type=2&userId="+this.id).then((res) => {
|
|
|
|
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.orderList=res.rows
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getSearch(){
|
|
|
|
|
let data={
|
|
|
|
|
userId:this.id,
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
this.$u.get(`/getAppInfo?`, data).then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.info=res.user
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
// 处理接口返回错误的情况
|
|
|
|
|
}
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
// 处理接口请求失败的情况
|
|
|
|
|
});
|
|
|
|
|
},
|
2024-05-10 22:23:49 +08:00
|
|
|
|
confirm1(e) {
|
|
|
|
|
console.log(e, 'eeeeeeee');
|
|
|
|
|
this.firsTime = e.year + '-' + e.month + '-' + e.day
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
confirm2(e) {
|
|
|
|
|
this.lasTime = e.year + '-' + e.month + '-' + e.day
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
changeType(num){
|
|
|
|
|
this.typeindex=num
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
page {
|
|
|
|
|
background-color: #F6F6F6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.page {
|
|
|
|
|
width: 750rpx;
|
|
|
|
|
.tit{
|
|
|
|
|
padding: 30rpx 32rpx;
|
|
|
|
|
padding-bottom: 12rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #3D3D3D
|
|
|
|
|
}
|
|
|
|
|
.yj_info{
|
|
|
|
|
padding: 32rpx 30rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
margin-top: 22rpx;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
.yjleft{
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
align-items: center;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
image{
|
|
|
|
|
margin-right: 20rpx;
|
|
|
|
|
width: 40rpx;
|
|
|
|
|
height: 40rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.yjright{
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
.stause{
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 114rpx;
|
|
|
|
|
height: 38rpx;
|
|
|
|
|
background: rgba(247,109,109,0.502);
|
|
|
|
|
border-radius: 10rpx 10rpx 10rpx 10rpx;
|
|
|
|
|
border: 2rpx solid #FF4444;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #FF4444;
|
|
|
|
|
margin-right: 16rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.userinfo{
|
|
|
|
|
padding: 32rpx 52rpx;
|
|
|
|
|
.userinfo_li{
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
align-items: center;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #808080;
|
|
|
|
|
line-height: 48rpx;
|
|
|
|
|
span{
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
}
|
2024-05-14 22:11:06 +08:00
|
|
|
|
.txt{
|
|
|
|
|
width: 70%;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
/* 禁止换行 */
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
/* 超出部分隐藏 */
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
2024-05-10 22:23:49 +08:00
|
|
|
|
.stause{
|
|
|
|
|
margin-left: 18rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 96rpx;
|
|
|
|
|
height: 42rpx;
|
|
|
|
|
background: #E9F6F3;
|
|
|
|
|
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
|
|
|
|
border: 2rpx solid #12D2AC;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #12D2AC;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.lines{
|
|
|
|
|
width: 748rpx;
|
|
|
|
|
height: 22rpx;
|
|
|
|
|
background: #F6F6F6;
|
|
|
|
|
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
|
|
|
|
}
|
|
|
|
|
.info_card {
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
|
|
|
|
|
.info_tit {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
padding: 22rpx 28rpx;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
|
|
|
|
|
.money {
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #4C97E7;
|
|
|
|
|
}
|
|
|
|
|
.tit_right{
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #4C97E7;
|
|
|
|
|
.yuan{
|
|
|
|
|
margin-right: 12rpx;
|
|
|
|
|
margin-top: 6rpx;
|
|
|
|
|
width: 15rpx;
|
|
|
|
|
height: 15rpx;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background: #4C97E7;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.lines {
|
|
|
|
|
width: 750rpx;
|
|
|
|
|
height: 2rpx;
|
|
|
|
|
border: 2rpx solid #ccc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.cont {
|
|
|
|
|
padding: 26rpx 28rpx;
|
|
|
|
|
|
|
|
|
|
.info_li {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #808080;
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
line-height: 48rpx;
|
|
|
|
|
|
|
|
|
|
.half_infoli {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
width: 50%;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #808080;
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
}
|
|
|
|
|
.input{
|
|
|
|
|
width: 30%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.cont_box {
|
|
|
|
|
padding: 14rpx 30rpx;
|
|
|
|
|
width: 750rpx;
|
|
|
|
|
background: #E2F2FF;
|
|
|
|
|
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
|
|
|
|
|
|
|
|
|
.cont_info {
|
|
|
|
|
margin-top: 8rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
|
|
|
|
|
.info_li {
|
|
|
|
|
width: 50%;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.data_box {
|
|
|
|
|
width: 672rpx;
|
|
|
|
|
margin: 36rpx auto;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
align-items: center;
|
|
|
|
|
// justify-content: space-between;
|
|
|
|
|
|
|
|
|
|
.data_cont {
|
|
|
|
|
margin-right: 40rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 150rpx;
|
|
|
|
|
height: 60rpx;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
box-shadow: 0rpx 4rpx 22rpx 0rpx rgba(0, 0, 0, 0.07);
|
|
|
|
|
border-radius: 10rpx 10rpx 10rpx 10rpx;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
border: 2rpx solid #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.act1 {
|
|
|
|
|
background: #E2F2FF;
|
|
|
|
|
box-shadow: 0rpx 4rpx 22rpx 0rpx rgba(0, 0, 0, 0.07);
|
|
|
|
|
color: #4C97E7;
|
|
|
|
|
border: 2rpx solid #4C97E7;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</style>
|