ソースを参照

车辆信息管理样式调整

yxb
zengyuehua 2年前
コミット
3b075ef976
4個のファイルの変更642行の追加19行の削除
  1. 610
    3
      after-sale/arrears/arrears.vue
  2. 1
    1
      manifest.json
  3. 26
    15
      personal-center/setting/car-information/car-manage.vue
  4. 5
    0
      utils/network/api.js

+ 610
- 3
after-sale/arrears/arrears.vue ファイルの表示

@@ -1,8 +1,615 @@
<template>
<view class="content-box" style="margin-top: 30rpx;">
<view class="list">
<view class="item">
<view class="head">
<view class="name">
<image :src="`${$imgUrl}user/icon-ETC.png`" class="icon"></image>
<text class="title m-10">20230010330</text>
<text class="tag-green">待支付</text>
</view>
<view class="status text-black">贵A123456</view>
</view>
<view class="detail">
<view class="orders">
<view class="order-text">
<text class="type">补缴单号:</text>
<text class="value">01872753475754</text>
</view>
<view class="order-text odd">
<text class="type">补缴单生成时间:</text>
<text class="value">2023-01-12 15:09:18</text>
</view>
</view>
</view>
<view class="bottom">
<view class="bottom-left"><text class="tit">欠费金额:¥</text><text class="amount">1200.00</text>
</view>
<view class="btns-box">
<view class="btn btn-primary" @click="$util.navTo(`/pages/order/refund-confirm`)">支付</view>
</view>
</view>
</view>
<view class="item finished">
<view class="head">
<view class="name">
<image :src="`${$imgUrl}user/icon-ETC.png`" class="icon"></image>
<text class="title m-10">20230010330</text>
<text class="tag-grey">已支付</text>
</view>
<view class="status text-black">贵A123456</view>
</view>
<view class="detail">
<view class="orders">
<view class="order-text">
<text class="type">补缴单号:</text>
<text class="value">01872753475754</text>
</view>
<view class="order-text odd">
<text class="type">补缴单生成时间:</text>
<text class="value">2023-01-12 15:09:18</text>
</view>
</view>
</view>
<view class="bottom">
<view class="bottom-left"><text class="tit">欠费金额:¥</text><text class="amount">1200.00</text>
</view>
<view class="btns-box">
<view class="btn btn-disable">已支付</view>
</view>

</view>
</view>
</view>
<view class="footer">
</view>
</view>
</template>

<script>
<script lang="ts" setup>
import {
pathToBase64
} from "@/utils/util/imageTool.js";
import {
getItem
} from "@/utils/storage.ts"
import {
CardBill
} from "@/utils/network/api.js";
import {
request
} from "@/utils/network/request.js";

import {
stringToJson
} from "@/utils/network/encryption";
import {
onLoad,
onShow
} from "@dcloudio/uni-app";
</script>

<style>
</style>
<style lang="scss">
page {
background: #eef7f7;
}

.content-box {
padding-bottom: 30rpx;
}

.search-btn {
color: white;
background-color: #00B38B;
width: 140rpx;
height: 75rpx;
line-height: 75rpx;
font-size: 32rpx;
border-radius: 40rpx;
text-align: center;
margin-right: 30rpx;
margin-top: 10rpx;
}

.search-box {
margin: 30rpx 30rpx 20rpx 30rpx;
height: 72rpx;
height: 81rpx;
background: #FFFFFF;
border: 1px solid #DCDCDC;
border-radius: 40rpx;
display: flex;
justify-content: center;
align-items: center;
box-sizing: border-box;
flex: 1;
}

.search-box .icon {
width: 48rpx;
height: 48rpx;
margin: 0 20rpx;
}

.search-box .search {
flex: 1;
margin-right: 20rpx;
height: 100%;
padding: 0 10rpx;
font-size: 28rpx;
color: #00b38b;

}

.scroll-view {
white-space: nowrap;
position: sticky;
top: 0;
background: #ffffff;
box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
}

.top-menu {
display: flex;
}

.top-menu .tab {
font-size: 26rpx;
padding: 38rpx 30rpx;
color: #333;
position: relative;
}

.top-menu .active .border {
position: absolute;
width: 70%;
height: 16rpx;
background: #00b38b;
opacity: 0.3;
bottom: 40rpx;
z-index: -99;
left: 15%;
border-radius: 6rpx;
}

.top-menu .active {
font-weight: bold;
font-size: 28rpx;
}

.top-menu .active::before {
width: 100%;
height: 16rpx;
background: #00b38b;
opacity: 0.3;
}

.search-time {
display: flex;
margin: 20rpx 30rpx 48rpx 30rpx;
justify-content: space-between;

.time-btn {
width: 130rpx;
height: 80rpx;
background: #00B38B;
border-radius: 40rpx;
color: #FFFFFF;
font-size: 32rpx;
line-height: 80rpx;
text-align: center;
}

.show-info {
width: 260rpx;
height: 80rpx;
padding: 0 31rpx;
background: #FFFFFF;
border: 1px solid #DCDCDC;
border-radius: 40rpx;
display: flex;
justify-content: space-between;
align-items: center;

.show-text {
display: flex;
align-items: center;
}

.date-text {
color: #999999;
font-size: 28rpx;
}

.text-val {
color: #333
}

.line {
width: 25rpx;
height: 1rpx;
background: #999999;
margin: 0 24rpx;
}
}

.show-info2 {
width: 541rpx;
height: 80rpx;
padding: 0 31rpx;
background: #FFFFFF;
border: 1px solid #DCDCDC;
border-radius: 40rpx;
display: flex;
justify-content: space-between;
align-items: center;

.show-text {
display: flex;
align-items: center;
flex: 1;
justify-content: space-evenly;
}

.date-text {
color: #999999;
font-size: 28rpx;
}

.text-val {
color: #333
}

.line {
width: 25rpx;
height: 1rpx;
background: #999999;
margin: 0 24rpx;
}
}
}

.count {
margin: 0 30rpx 25rpx 30rpx;
font-size: 28rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #999999;
line-height: 36rpx;
}

.search-payment-box {
width: 260rpx;
height: 80rpx;
padding: 0 31rpx;
background: #FFFFFF;
border: 1px solid #DCDCDC;
border-radius: 40rpx;
display: flex;
justify-content: space-between;
align-items: center;
color: #999999;
}

.list {
padding: 0 30rpx;
display: flex;
flex-direction: column;
}

.bg-white {
background: #FFFFFF;
border-radius: 30rpx 30rpx 0 0;
}

.bg-white .sub-tabs {
display: flex;
justify-content: space-evenly;
align-items: center;
}

.bg-white .sub-item {
padding: 10rpx 0;
margin: 20rpx 0 30rpx;
border-bottom: 6rpx solid #fff;
font-size: 26rpx;
}

.bg-white .active {
border-bottom: 6rpx solid #00B38B;
color: #00B38B;
font-size: 30rpx;
font-weight: bold;
}

.bg-none {
background: none;
border-radius: 30rpx 30rpx 0 0;
}

.list .item {
background: #ffffff;
box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
border-radius: 20rpx;
box-sizing: border-box;
display: flex;
flex-direction: column;
margin-bottom: 30rpx;
}

.list.bg-white .item {
box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
}

.list .item .head {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20rpx 28rpx;
border-bottom: 1px solid #dcdcdc;
}

.list .item .head {
.head-row {
display: flex;
width: 100%;
justify-content: space-between;
align-items: center;
}

.name {}

.name>text {
font-size: 26rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #999999;
line-height: 36rpx;
}
}

.list .item .head .icon {
width: 48rpx;
height: 48rpx;
}

.list .item .head .name {
display: flex;
align-items: center;
}

.list .text-green {
font-size: 26rpx;
color: #00b38b;
}

.list .text-orange {
font-size: 26rpx;
color: #ff8000;
}

.list .text-black {
font-size: 28rpx;
color: #333;
font-weight: 500;
}

.list .title {
font-size: 30rpx;
color: #333;
}

.list .tag-green {
font-size: 22rpx;
height: 40rpx;
line-height: 40rpx;
padding: 0 12rpx;
border-radius: 6rpx;
background: #d9f4ee;
color: #00b38b;
}

.list .tag-grey {
font-size: 22rpx;
height: 40rpx;
line-height: 40rpx;
padding: 0 12rpx;
border-radius: 6rpx;
background: #e8e8e8;
color: #666;
}

.list .detail {
display: flex;
justify-content: space-between;
align-items: center;
padding: 30rpx 32rpx;
}

.list .detail .type {
font-size: 26rpx;
color: #999;
}

.list .detail .value {
font-size: 26rpx;
color: #333;
}

.list .finished .detail .value {
color: #999;
}

.list .detail .odd {
margin: 20rpx 0;
}

.list .cny {
font-size: 26rpx;
color: #333;
}

.list .finished .cny {
color: #999;
}

.list .amount {
font-size: 40rpx;
font-weight: bold;
}

.list .bottom .amount {
color: #ff8000;
}

.list .finished .amount {
color: #999;
}

.list .btns {
position: relative;
display: flex;
align-items: center;
justify-content: flex-end;
border-top: 1px solid #dcdcdc;
margin: 0 30rpx;
padding: 20rpx 0;
}

.list .bottom {
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1px solid #dcdcdc;
margin: 0 30rpx;
padding: 20rpx 0;
}

.list .btn {
height: 60rpx;
line-height: 58rpx;
border-radius: 30rpx;
padding: 0 24rpx;
font-size: 26rpx;
box-sizing: border-box;
margin-right: 20rpx;
}



.list .btns .btn:last-child {
margin: 0;
}

.list .btns .state {
position: absolute;
left: 0;
font-size: 26rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #999999;
line-height: 58rpx;

text {
font-size: 26rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #00B38B;
line-height: 58rpx;
}
}

.list .btn-primary {
border: 1px solid #00b38b;
color: #00b38b;
}

.list .btn-disable {
border: 1px solid #999;
color: #999;

}

.list .btn-normal {
border: 1px solid #dcdcdc;
color: #333;
}

.m-10 {
margin: 0 10rpx;
}

//
.detail2 {
display: flex;
justify-content: space-between;
align-items: center;
padding: 30rpx 32rpx;
position: relative;

view {
text-align: center;

text {
display: block;
margin: 20rpx 0;
}

view {
font-size: 24rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #999999;
line-height: 36rpx;

text {
margin: 0;

}
}
}

.indicator {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;

text {
margin: 0;
font-size: 26rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #666666;
line-height: 36rpx;
}

image {
width: 186rpx;
height: 12rpx;
}
}

.state {
position: absolute;
left: 0;
font-size: 26rpx;
font-family: Noto Sans S Chinese;
font-weight: 400;
color: #999999;
line-height: 58rpx;
}
}

.emptyView {
margin-top: 120rpx;
}
</style>

+ 1
- 1
manifest.json ファイルの表示

@@ -52,7 +52,7 @@
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "wx008c60533388527a",
"appid" : "wx214b4f8de36a0181",
"setting" : {
"urlCheck" : false,
"checkSiteMap" : false,

+ 26
- 15
personal-center/setting/car-information/car-manage.vue ファイルの表示

@@ -9,11 +9,11 @@
<view class="listbox">
<view class="item-row" v-for="(item,i) in state.listArr" :key="i">
<view class="item-left">
<view class="title">车牌号</view>
<view class="desc">{{item.vehiclePlate}}</view>
<!-- <view class="title">OBU序列号</view>
<view class="desc">520111111111111111</view> -->
<!-- <view class="flag"><text>拍摄示例</text> </view> -->
<image :src="`${$imgUrl}/che.png`" mode=""></image>
<view class="content">
<view class="title">车牌号</view>
<view class="desc">{{item.vehiclePlate}}</view>
</view>
</view>
<view class="item-right">
<view class="flag"><text>{{item.status}}</text> </view>
@@ -262,21 +262,30 @@

.item-left {
display: flex;
flex-direction: column;
// flex-direction: column;
justify-content: center;

.title {
font-size: 34rpx;
color: #333;
font-weight: bold;
image{
width: 190rpx;
height: 110rpx;
}
.content {
display: flex;
flex-direction: column;
margin-left: 30rpx;
.title {
font-size: 34rpx;
color: #333;
font-weight: bold;
}

.desc {
font-size: 24rpx;
color: #999;
margin: 10rpx 0;
.desc {
font-size: 24rpx;
color: #999;
margin: 10rpx 0;
}
}


.flag {
width: 110rpx;
height: 45rpx;
@@ -361,6 +370,7 @@
border: 1rpx solid #0A8F8A;
border-radius: 30rpx;
font-size: 30rpx;
color: #0A8F8A;
}

.del {
@@ -368,6 +378,7 @@
border: 1rpx solid red;
border-radius: 30rpx;
font-size: 30rpx;
color: red;
}
}
}

+ 5
- 0
utils/network/api.js ファイルの表示

@@ -106,6 +106,11 @@ export const CardlossStatus = '82' //卡签挂失/解挂
export const confirmSignCancellation = '897' //卡确认注销接口
export const relieveCarId= '932' //车辆释放信息增加接口(解除车牌占用)
// 资金服务
export const CardBill= '922' //8.229.BDS-储值卡卡账查询接口
//圈层
export const quanCheck = "69"; //圈层检测
export const quanApply = "70"; //圈层申请

読み込み中…
キャンセル
保存