代码上传
This commit is contained in:
parent
1a3bc7527e
commit
6bc462483b
|
@ -41,16 +41,13 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="driving-print">
|
<view class="driving-print">
|
||||||
<image :src="imageShow()" style="width: 400rpx; height: 48%;"></image>
|
<image :src="imageShow()" style="width: 400rpx; height: 48%"></image>
|
||||||
<view class="text">
|
<view class="text"> 累计积分 </view>
|
||||||
累计积分
|
|
||||||
</view>
|
|
||||||
<view class="grade">
|
<view class="grade">
|
||||||
<text style="color: #84b520; font-size: 100rpx;">{{grade}}</text>分
|
<text style="color: #84b520; font-size: 100rpx">{{ grade }}</text
|
||||||
</view>
|
>分
|
||||||
<view class="describe">
|
|
||||||
正常
|
|
||||||
</view>
|
</view>
|
||||||
|
<view class="describe"> 正常 </view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="drivingList">
|
<view class="drivingList">
|
||||||
|
@ -89,18 +86,16 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import {
|
import { ref, onMounted } from "vue";
|
||||||
ref,
|
|
||||||
onMounted
|
|
||||||
} from "vue";
|
|
||||||
import * as echarts from "echarts";
|
import * as echarts from "echarts";
|
||||||
const gotoBack = () => {
|
const gotoBack = () => {
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1,
|
delta: 1,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const grade = ref(1)
|
const grade = ref(1);
|
||||||
const drivingData = [{
|
const drivingData = [
|
||||||
|
{
|
||||||
title: "驾驶证号",
|
title: "驾驶证号",
|
||||||
content: "2302**********1229",
|
content: "2302**********1229",
|
||||||
},
|
},
|
||||||
|
@ -131,22 +126,22 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
const imageMap = {
|
const imageMap = {
|
||||||
0: '../../../static/xp.png',
|
0: "../../../static/xp.png",
|
||||||
1: '../../../static/xl.png',
|
1: "../../../static/xl.png",
|
||||||
2: '../../../static/x5.png',
|
2: "../../../static/x5.png",
|
||||||
3: '../../../static/Rl.png',
|
3: "../../../static/Rl.png",
|
||||||
4: '../../../static/Rh1.png',
|
4: "../../../static/Rh1.png",
|
||||||
5: '../../../static/Rh.png',
|
5: "../../../static/Rh.png",
|
||||||
6: '../../../static/Rh.png',
|
6: "../../../static/Rh.png",
|
||||||
7: '../../../static/wN.png',
|
7: "../../../static/wN.png",
|
||||||
8: '../../../static/wj1.png',
|
8: "../../../static/wj1.png",
|
||||||
9: '../../../static/wF.png',
|
9: "../../../static/wF.png",
|
||||||
10: '../../../static/F-1.png',
|
10: "../../../static/F-1.png",
|
||||||
11: '../../../static/1e.png',
|
11: "../../../static/1e.png",
|
||||||
12 : '../../../static/l-1.png',
|
12: "../../../static/l-1.png",
|
||||||
};
|
};
|
||||||
const imageShow = () => {
|
const imageShow = () => {
|
||||||
const url = imageMap[grade.value] || ''; // 使用 || 运算符提供默认值
|
const url = imageMap[grade.value] || ""; // 使用 || 运算符提供默认值
|
||||||
return url;
|
return url;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user