This commit is contained in:
小李 2026-06-12 17:06:40 +08:00
parent e7705b1162
commit 86281a76b6
4 changed files with 50 additions and 10 deletions

View File

@ -29,7 +29,7 @@ export function createApp() {
app.config.globalProperties.$system = plus.os.name; app.config.globalProperties.$system = plus.os.name;
// #endif // #endif
app.config.globalProperties.$systemInfo = systemInfo app.config.globalProperties.$systemInfo = systemInfo
uni.setStorageSync('version', '1.0.6.sp11') uni.setStorageSync('version', '1.0.6.sp12')
app.config.globalProperties.$version = uni.getStorageSync('version') app.config.globalProperties.$version = uni.getStorageSync('version')
app.use(globalMethods); app.use(globalMethods);
return { return {

View File

@ -1,4 +1,5 @@
<script setup> <script setup>
import DateTimePicker from '@/components/dengrq-datetime-picker/dateTimePicker/index.vue';
import { import {
reactive, reactive,
ref, ref,
@ -18,7 +19,8 @@
english: '140', english: '140',
physics: '75', physics: '75',
chemistry: '85', chemistry: '85',
biology: '79' biology: '79',
time:'2025-6-25'
} }
}); });
@ -105,6 +107,18 @@
function back() { function back() {
uni.navigateBack() uni.navigateBack()
} }
function onChangeStartDate(e){
editDialog.data.time=e
console.log(e)
}
function getTime(times,status){
let list=times.split('-')
if(status){
return list[0]+'年'
}else{
return list[0]+'年'+list[1]+'月'
}
}
</script> </script>
<template> <template>
@ -132,7 +146,7 @@
<view class="flexcontainer_1"><text class="text_3"> 菜单 </text> <view class="flexcontainer_1"><text class="text_3"> 菜单 </text>
<image src="/static/image/other/score/chongqing/tab.png" /> <image src="/static/image/other/score/chongqing/tab.png" />
</view> </view>
<text class="text_4"> 2026普通高考综合查询 </text> <text class="text_4"> {{ getTime(data.form.time,1) }}普通高考综合查询 </text>
</view> </view>
<view class="group_48328"> <view class="group_48328">
<text class="text_5"> 欢迎您{{data.form.name}}({{data.form.idNumber}}) </text> <text class="text_5"> 欢迎您{{data.form.name}}({{data.form.idNumber}}) </text>
@ -238,6 +252,12 @@
<text>总分</text> <text>总分</text>
<text style="flex:1;text-align:right;font-size:28rpx;color:#333;">{{editTotal}}</text> <text style="flex:1;text-align:right;font-size:28rpx;color:#333;">{{editTotal}}</text>
</view> </view>
<view class="formItem">
<text>时间</text>
<view style="width:100%;">
<DateTimePicker :defaultDate="editDialog.data.time" :mode="1" @onChange="onChangeStartDate" />
</view>
</view>
</view> </view>
<view class="popup-footer"> <view class="popup-footer">
<view class="btn-cancel" @click="editDialog.show=false">取消</view> <view class="btn-cancel" @click="editDialog.show=false">取消</view>

View File

@ -132,7 +132,7 @@
{{ getTime(data.form.time,0) }} {{ getTime(data.form.time,0) }}
</view> </view>
<view class="dec"> <view class="dec">
{{ getTime(data.form.time,1) }}广东省普通高等学校招生全国统一考试 {{ getTime(data.form.time,1) }}广东省普通高等学校招生全国统一考试
</view> </view>
</view> </view>
<image class="bgimg" src="/static/image/other/score/guandong/guandongbg.png" mode="widthFix"></image> <image class="bgimg" src="/static/image/other/score/guandong/guandongbg.png" mode="widthFix"></image>
@ -310,9 +310,9 @@
</view> </view>
<view class="formItem"> <view class="formItem">
<text>时间</text> <text>时间</text>
<view style="width:100%;"> <view style="width:100%;">
<DateTimePicker :defaultDate="editDialog.data.time" :mode="1" @onChange="onChangeStartDate" /> <DateTimePicker :defaultDate="editDialog.data.time" :mode="1" @onChange="onChangeStartDate" />
</view> </view>
</view> </view>
</view> </view>
<view class="popup-footer"> <view class="popup-footer">

View File

@ -1,4 +1,5 @@
<script setup> <script setup>
import DateTimePicker from '@/components/dengrq-datetime-picker/dateTimePicker/index.vue';
import { import {
reactive, reactive,
ref, ref,
@ -19,7 +20,8 @@
english: '95', english: '95',
physics: '66', physics: '66',
chemistry: '85', chemistry: '85',
geography: '86' geography: '86',
time:'2025-6-25'
} }
}); });
const total = computed(() => { const total = computed(() => {
@ -104,6 +106,18 @@
function back(){ function back(){
uni.navigateBack() uni.navigateBack()
} }
function onChangeStartDate(e){
editDialog.data.time=e
console.log(e)
}
function getTime(times,status){
let list=times.split('-')
if(status){
return list[0]+'年'
}else{
return list[0]+'年'+list[1]+'月'
}
}
</script> </script>
<template> <template>
@ -129,14 +143,14 @@
<image src="/static/image/other/score/hebei/heibeiheaderBg.png" mode="widthFix" style="width: 100%;"></image> <image src="/static/image/other/score/hebei/heibeiheaderBg.png" mode="widthFix" style="width: 100%;"></image>
<view class="group_48368"> <view class="group_48368">
<view class="rectangle_23396"> <view class="rectangle_23396">
<view class="flexcontainer"><text class="text_1"> 2025河北省普通高校招生考试<br>成绩查询 </text></view> <view class="flexcontainer"><text class="text_1"> {{ getTime(data.form.time,1) }}河北省普通高校招生考试<br>成绩查询 </text></view>
</view> </view>
<image src="/static/image/other/score/hebei/Watermark.png" mode="widthFix" class="watermark"></image> <image src="/static/image/other/score/hebei/Watermark.png" mode="widthFix" class="watermark"></image>
<view class="rectangle_23397" @click="openEditDialog"> <view class="rectangle_23397" @click="openEditDialog">
<view class="table2"> <view class="table2">
<view class="flexcontainer_1"> <view class="flexcontainer_1">
<view class="group_48370"> <view class="group_48370">
<text class="text_2"> {{data.form.name}} </text> <view class="text_2"> <text style="margin-right: 20rpx;margin-left:10rpx;"> </text>{{data.form.name}} </view>
<text class="text_3"> 考生号{{data.form.examNumber}} </text> <text class="text_3"> 考生号{{data.form.examNumber}} </text>
<text class="text_4"> 证件号{{data.form.idNumber}} </text> <text class="text_4"> 证件号{{data.form.idNumber}} </text>
</view> </view>
@ -259,6 +273,12 @@
<text>总分</text> <text>总分</text>
<text style="flex:1;text-align:right;font-size:28rpx;color:#333;">{{editTotal}}</text> <text style="flex:1;text-align:right;font-size:28rpx;color:#333;">{{editTotal}}</text>
</view> </view>
<view class="formItem">
<text>时间</text>
<view style="width:100%;">
<DateTimePicker :defaultDate="editDialog.data.time" :mode="1" @onChange="onChangeStartDate" />
</view>
</view>
</view> </view>
<view class="popup-footer"> <view class="popup-footer">
<view class="btn-cancel" @click="editDialog.show=false">取消</view> <view class="btn-cancel" @click="editDialog.show=false">取消</view>