Merge branch 'Branch_1' of https://git.u8t.cn/tangxinyue/alipay-emulator into Branch_1

This commit is contained in:
tangxinyue 2026-06-12 16:32:59 +08:00
commit 4d15da3c52
7 changed files with 1317 additions and 1266 deletions

View File

@ -98,7 +98,7 @@ function back(){
<view class="div_424"></view>
<view class="flexcontainer_2"><text class="text_5"> 身份证号: </text><text class="text_6"> {{data.form.idNumber}} </text></view>
<view class="div_425"></view>
<view class="flexcontainer_3"><text class="text_7"> : </text><text class="text_8"> {{data.form.name}} </text></view>
<view class="flexcontainer_3"><view class="text_7"> <text>:</text> </view><text class="text_8"> {{data.form.name}} </text></view>
<view class="div_426"></view>
<text class="text_9"> 科目成绩: </text>
<view class="group_48319">
@ -548,7 +548,7 @@ function back(){
.flexcontainer_3 {
position: relative;
display: flex;
width: 288rpx;
// width: 288rpx;
height: 32rpx;
flex-direction: row;
align-items: flex-start;
@ -558,6 +558,7 @@ function back(){
/* 姓 名: */
.text_7 {
width: 210rpx;
font-size: 32rpx;
font-family: 'PingFang SC';
font-weight: 400;
@ -570,6 +571,8 @@ function back(){
margin-bottom: -6rpx;
position: relative;
margin-left: 0;
display: flex;
justify-content: space-between;
}
/* 肖战 */

View File

@ -1,5 +1,10 @@
<script setup>
import { reactive, ref, onMounted, computed } from 'vue';
import {
reactive,
ref,
onMounted,
computed
} from 'vue';
const CACHE_KEY = 'score_chongqing_info';
@ -18,7 +23,8 @@ const data = reactive({
});
const total = computed(() => {
const sum = Number(data.form.chinese || 0) + Number(data.form.math || 0) + Number(data.form.english || 0) + Number(data.form.physics || 0) + Number(data.form.chemistry || 0) + Number(data.form.biology || 0);
const sum = Number(data.form.chinese || 0) + Number(data.form.math || 0) + Number(data.form.english || 0) +
Number(data.form.physics || 0) + Number(data.form.chemistry || 0) + Number(data.form.biology || 0);
return sum || '';
});
@ -34,7 +40,10 @@ onMounted(() => {
function loadCache() {
const cache = uni.getStorageSync(CACHE_KEY);
if (cache) {
data.form = { ...data.form, ...cache };
data.form = {
...data.form,
...cache
};
}
}
@ -48,7 +57,10 @@ function openEditDialog() {
}
function saveEdit() {
data.form = { ...data.form, ...editDialog.data };
data.form = {
...data.form,
...editDialog.data
};
saveCache();
editDialog.show = false;
uni.showToast({
@ -58,11 +70,13 @@ function saveEdit() {
}
const editTotal = computed(() => {
const sum = Number(editDialog.data.chinese || 0) + Number(editDialog.data.math || 0) + Number(editDialog.data.english || 0) + Number(editDialog.data.physics || 0) + Number(editDialog.data.chemistry || 0) + Number(editDialog.data.biology || 0);
const sum = Number(editDialog.data.chinese || 0) + Number(editDialog.data.math || 0) + Number(editDialog.data
.english || 0) + Number(editDialog.data.physics || 0) + Number(editDialog.data.chemistry || 0) + Number(
editDialog.data.biology || 0);
return sum || '';
});
//
//
const choose = () => {
uni.chooseImage({
count: 1,
@ -83,7 +97,7 @@ const choose = () => {
});
};
//
//
const clearAvatar = () => {
editDialog.data.avatar = '';
};
@ -105,7 +119,8 @@ function back(){
<view class="group_1" :style="{'padding-top':$systemInfo.statusBarHeight+'px'}">
<view class="rectangle_273">
<image @click="back()" class="group_14010" src="/static/image/other/score/chongqing/close.png" />
<view class="flexcontainer"><text class="text_1"> 重庆市教育考试招生查询系统 </text><text class="text_2"> gkcj.cqksy.cn </text></view>
<view class="flexcontainer"><text class="text_1"> 重庆市教育考试招生查询系统 </text><text class="text_2"> gkcj.cqksy.cn
</text></view>
<image class="group_14011" src="/static/image/other/score/chongqing/more.png" />
</view>
</view>
@ -126,49 +141,48 @@ function back(){
<view class="rectangle_23388">
<view class="rectangle_23390">
<view class="rectangle_23389">
<image v-if="data.form.avatar" :src="data.form.avatar" mode="aspectFill" />
<image :src="data.form.avatar||'/static/image/other/score/qrcode.png'" mode="aspectFill" />
</view>
<view class="table">
<view class="group_48330 ">
<view class="rectangle_23393"><text class="text_6"> 科目 </text><text class="text_7"> 成绩 </text></view>
</view>
<view class="group_48329"><text class="text_8"> 语文 </text><text class="text_9"> {{data.form.chinese}} </text></view>
<view class="group_48331"><text class="text_10"> 数学 </text><text class="text_11"> {{data.form.math}} </text></view>
<view class="group_48332"><text class="text_12"> 外语 </text><text class="text_13"> {{data.form.english}} </text></view>
<view class="group_48333"><text class="text_14"> 物理 </text><text class="text_15"> {{data.form.physics}} </text></view>
<view class="group_48334">
<view class="div_433"></view>
<view class="flexcontainer_3"><text class="text_16"> 化学 </text><text class="text_17"> {{data.form.chemistry}} </text></view>
<view class="div_434"></view>
<view class="group_48329 tableItem"><text class="text_8"> 语文 </text><text class="text_9"> {{data.form.chinese}}
</text></view>
<view class="group_48331 "><text class="text_10"> 数学 </text><text class="text_11"> {{data.form.math}} </text>
</view>
<view class="group_48335"><text class="text_18"> 生物学 </text><text class="text_19"> {{data.form.biology}} </text></view>
<view class="group_48336">
<view class="div_435"></view>
<view class="flexcontainer_4"><text class="text_20"> 总分 </text><text class="text_21"> {{total}} </text></view>
<view class="div_438"></view>
<view class="group_48332 tableItem"><text class="text_12"> 外语 </text><text class="text_13"> {{data.form.english}}
</text></view>
<view class="group_48333 "><text class="text_14"> 物理 </text><text class="text_15"> {{data.form.physics}}
</text></view>
<view class="group_48334 tableItem">
<view class="flexcontainer_3"><text class="text_16"> 化学 </text><text class="text_17">
{{data.form.chemistry}} </text></view>
</view>
<view class="group_48335 "><text class="text_18"> 生物学 </text><text class="text_19"> {{data.form.biology}}
</text></view>
<view class="group_48336 tableItem tableItems">
<view class="flexcontainer_4"><text class="text_20"> 总分 </text><text class="text_21"> {{total}} </text>
</view>
</view>
</view>
<view class="div_1">
<text class="text_22"> 更多信息请关注 </text><view class="text_23"> 重庆市教育考试院官方网站 重庆招 <text style="margin-left: 20px;">考信息网</text> </view>
</view>
<text class="div_1"> <text class="text_22"> 更多信息请关注 </text><text class="text_23"> 重庆市教育考试院官方网站 重庆招考信息网 </text> </text>
<view class="group_48338">
<view class="group_48337">
<view class="rectangle_23395">
<!-- <image class="image" src="/image.png" /> -->
<image class="image" src="/static/image/other/score/chongqing/wxcode.jpg " />
</view>
</view>
</view>
<text class="text_24"> 重庆招考微信公众号 </text>
</view>
<view class="home">
<!-- <view class="home">
<view class="home_indicator"></view>
</view> -->
</view>
</view>
<view class="div_428"></view>
<view class="div_429"></view>
<view class="div_430"></view>
<view class="div_431"></view>
<view class="flexcontainer_5">
<view class="div_436"></view>
<view class="div_437"></view>
<view class="div_432"></view>
</view>
</view>
<!-- 编辑弹窗 -->
@ -179,7 +193,7 @@ function back(){
</view>
<view class="editDialog_body">
<view class="formItem avatar-item">
<text>头像</text>
<text>二维码</text>
<view class="avatar-wrap">
<image v-if="editDialog.data.avatar" :src="editDialog.data.avatar" class="avatar-img" @click="choose" />
<view v-else class="avatar-placeholder" @click="choose">
@ -238,42 +252,52 @@ function back(){
* {
box-sizing: border-box;
}
.flex-row {
display: flex;
flex-direction: row;
}
.flex-col {
display: flex;
flex-direction: column;
}
.justify-start {
display: flex;
justify-content: flex-start;
}
.justify-center {
display: flex;
justify-content: center;
}
.justify-end {
display: flex;
justify-content: flex-end;
}
.justify-between {
display: flex;
justify-content: space-between;
}
.items-start {
display: flex;
align-items: flex-start;
}
.items-end {
display: flex;
align-items: flex-end;
}
.items-center {
display: flex;
align-items: center;
}
.no-shrink {
flex-shrink: 0;
}
@ -408,7 +432,7 @@ function back(){
.div {
position: relative;
width: 750rpx;
height: 1764rpx;
// height: 1764rpx;
overflow: hidden;
background-color: #efefef;
display: flex;
@ -446,6 +470,7 @@ function back(){
top: 0;
z-index: 999 !important;
background-color: #EFEFEF;
/* Rectangle 273 */
.rectangle_273 {
position: relative;
@ -503,12 +528,9 @@ function back(){
font-size: 22rpx;
font-family: 'PingFang SC';
font-weight: 400;
line-height: 30rpx;
color: #767676;
white-space: pre;
height: 30rpx;
margin-top: 12rpx;
margin-bottom: -5rpx;
width: max-content;
margin-left: auto;
margin-right: auto;
@ -567,10 +589,12 @@ function back(){
margin-left: auto;
margin-right: auto;
}
image {
width: 42rpx;
height: 24rpx;
margin-left: 12rpx;
margin-top: 4rpx;
}
}
@ -615,17 +639,15 @@ function back(){
white-space: pre;
display: flex;
flex-direction: column;
align-items: flex-start;
align-items: center;
justify-content: center;
margin-top: 0;
margin-left: 0;
background-color: #1c97f4;
.text_5 {
height: 34rpx;
margin-top: 18rpx;
margin-bottom: -5rpx;
position: relative;
margin-left: 130rpx;
}
}
@ -696,7 +718,6 @@ function back(){
flex-direction: column;
align-items: flex-start;
z-index: 1;
margin-top: 50rpx;
margin-left: 0;
/* 矩形 23393 */
@ -1129,22 +1150,24 @@ function back(){
}
.div_1 {
display: flex;
margin-top: 22rpx;
.text_22 {
font-size: 24rpx;
font-size: 28rpx;
font-family: 'PingFang SC';
font-weight: 400;
line-height: 34rpx;
color: #999999;
color: #1A1A1A;
white-space: pre;
}
.text_23 {
font-size: 24rpx;
font-size: 28rpx;
font-family: 'PingFang SC';
font-weight: 400;
line-height: 34rpx;
color: #2082c6;
white-space: pre;
color: #CF2722;
}
}
@ -1152,27 +1175,27 @@ function back(){
.group_48338 {
.group_48337 {
.rectangle_23395 {
padding-left: 52rpx;
.image {
width: 200rpx;
height: 200rpx;
width: 244rpx;
height: 244rpx;
}
}
}
}
.text_24 {
font-size: 24rpx;
font-size: 28rpx;
font-family: 'PingFang SC';
font-weight: 400;
line-height: 34rpx;
color: #999999;
color: #1A1A1A;
white-space: pre;
height: 34rpx;
margin-top: 14rpx;
margin-bottom: -5rpx;
width: max-content;
margin-left: auto;
margin-right: auto;
margin-left: 46rpx;
}
}
@ -1279,4 +1302,16 @@ function back(){
}
}
}
.table {
margin-top: 50rpx;
border: 1px solid #E7E7E7;
.tableItem{
border-bottom: 1px solid #E7E7E7;
border-top: 1px solid #E7E7E7;
}
.tableItems{
border-bottom: none !important;
}
}
</style>

View File

@ -92,10 +92,11 @@
console.log(e)
}
function getTime(times,status){
let list=times.split('-')
if(status){
return times.substring(0,4)+'年'
return list[0]+'年'
}else{
return times.substring(0,7).replace('-','年')+'月'
return list[0]+'年'+list[1]+'月'
}
}
</script>
@ -109,7 +110,8 @@
</liu-drag-button>
</view>
<view class="container">
<view class="header" :style="{'padding-top':$systemInfo.statusBarHeight+'px'}">
<view class="headerBox" :style="{'padding-top':$systemInfo.statusBarHeight+'px'}">
<view class="header" >
<view class="left" @click="back()">
<image src="/static/image/other/score/guandong/leftIcon.png" mode=""></image>
</view>
@ -121,6 +123,7 @@
</view>
</view>
</view>
<view class="" :style="{height:$systemInfo.statusBarHeight*2+88+'rpx'}">
</view>
@ -468,13 +471,17 @@
}
</style>
<style lang="scss" scoped>
.header{
.headerBox{
z-index: 999;
position: fixed;
left: 0;
top: 0;
height: 88rpx;
width: 100%;
}
.header{
width: 100%;
height: 88rpx;
display: flex;
justify-content: space-between;
align-items: center;

View File

@ -76,7 +76,7 @@
return sum || '';
});
//
//
const choose = () => {
uni.chooseImage({
count: 1,
@ -97,7 +97,7 @@
});
};
//
//
const clearAvatar = () => {
editDialog.data.avatar = '';
};
@ -142,7 +142,7 @@
</view>
<view class="group_48369">
<view class="rectangle_23389">
<image v-if="data.form.avatar" :src="data.form.avatar" mode="aspectFill" />
<image :src="data.form.avatar||'/static/image/other/score/qrcode.png'" mode="aspectFill" />
</view>
</view>
</view>
@ -210,7 +210,7 @@
</view>
<view class="editDialog_body">
<view class="formItem avatar-item">
<text>头像</text>
<text>二维码</text>
<view class="avatar-wrap">
<image v-if="editDialog.data.avatar" :src="editDialog.data.avatar" class="avatar-img" @click="choose" />
<view v-else class="avatar-placeholder" @click="choose">
@ -546,11 +546,9 @@
font-size: 22rpx;
font-family: 'PingFang SC';
font-weight: 400;
line-height: 30rpx;
color: #767676;
white-space: pre;
height: 30rpx;
margin-top: 6rpx;
width: max-content;
margin-left: auto;
margin-right: auto;
@ -1280,7 +1278,6 @@
.group_48383 {
position: relative;
width: 100%;
height: 64rpx;
display: flex;
flex-direction: column;
align-items: center;
@ -1362,6 +1359,8 @@
margin-top: 40rpx;
border: 1px solid #DBDBDB;
padding-bottom: 1px;
}
.table2 {

View File

@ -96,6 +96,13 @@
prefix: '.uni.other.',
value:'高考查询'
})
// #ifdef APP-PLUS
util.setAndroidSystemBarColor('#ffffff')
// 便
setTimeout(() => {
plus.navigator.setStatusBarStyle("dark");
}, 500)
// #endif
})
function goPage(url,name) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB