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

View File

@ -1,9 +1,14 @@
<script setup> <script setup>
import { reactive, ref, onMounted, computed } from 'vue'; import {
reactive,
ref,
onMounted,
computed
} from 'vue';
const CACHE_KEY = 'score_chongqing_info'; const CACHE_KEY = 'score_chongqing_info';
const data = reactive({ const data = reactive({
form: { form: {
avatar: '', avatar: '',
name: '肖战', name: '肖战',
@ -15,55 +20,64 @@ const data = reactive({
chemistry: '85', chemistry: '85',
biology: '79' biology: '79'
} }
}); });
const total = computed(() => { 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 || ''; return sum || '';
}); });
const editDialog = reactive({ const editDialog = reactive({
show: false, show: false,
data: {} data: {}
}); });
onMounted(() => { onMounted(() => {
loadCache(); loadCache();
}); });
function loadCache() { function loadCache() {
const cache = uni.getStorageSync(CACHE_KEY); const cache = uni.getStorageSync(CACHE_KEY);
if (cache) { if (cache) {
data.form = { ...data.form, ...cache }; data.form = {
...data.form,
...cache
};
}
} }
}
function saveCache() { function saveCache() {
uni.setStorageSync(CACHE_KEY, data.form); uni.setStorageSync(CACHE_KEY, data.form);
} }
function openEditDialog() { function openEditDialog() {
editDialog.data = JSON.parse(JSON.stringify(data.form)); editDialog.data = JSON.parse(JSON.stringify(data.form));
editDialog.show = true; editDialog.show = true;
} }
function saveEdit() { function saveEdit() {
data.form = { ...data.form, ...editDialog.data }; data.form = {
...data.form,
...editDialog.data
};
saveCache(); saveCache();
editDialog.show = false; editDialog.show = false;
uni.showToast({ uni.showToast({
title: '保存成功', title: '保存成功',
icon: 'success' icon: 'success'
}); });
} }
const editTotal = computed(() => { 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 || ''; return sum || '';
}); });
// //
const choose = () => { const choose = () => {
uni.chooseImage({ uni.chooseImage({
count: 1, count: 1,
sizeType: ['compressed'], sizeType: ['compressed'],
@ -81,21 +95,21 @@ const choose = () => {
}); });
} }
}); });
}; };
// //
const clearAvatar = () => { const clearAvatar = () => {
editDialog.data.avatar = ''; editDialog.data.avatar = '';
}; };
function back(){ function back() {
uni.navigateBack() uni.navigateBack()
} }
</script> </script>
<template> <template>
<view class="div"> <view class="div">
<view v-if="$isVip()" > <view v-if="$isVip()">
<watermark dark="light" source="uni_alipay_other_score" /> <watermark dark="light" source="uni_alipay_other_score" />
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark', 'uni_alipay_other_score')"> <liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark', 'uni_alipay_other_score')">
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie> <c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
@ -105,7 +119,8 @@ function back(){
<view class="group_1" :style="{'padding-top':$systemInfo.statusBarHeight+'px'}"> <view class="group_1" :style="{'padding-top':$systemInfo.statusBarHeight+'px'}">
<view class="rectangle_273"> <view class="rectangle_273">
<image @click="back()" class="group_14010" src="/static/image/other/score/chongqing/close.png" /> <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" /> <image class="group_14011" src="/static/image/other/score/chongqing/more.png" />
</view> </view>
</view> </view>
@ -126,49 +141,48 @@ function back(){
<view class="rectangle_23388"> <view class="rectangle_23388">
<view class="rectangle_23390"> <view class="rectangle_23390">
<view class="rectangle_23389"> <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 class="group_48330"> <view class="table">
<view class="group_48330 ">
<view class="rectangle_23393"><text class="text_6"> 科目 </text><text class="text_7"> 成绩 </text></view> <view class="rectangle_23393"><text class="text_6"> 科目 </text><text class="text_7"> 成绩 </text></view>
</view> </view>
<view class="group_48329"><text class="text_8"> 语文 </text><text class="text_9"> {{data.form.chinese}} </text></view> <view class="group_48329 tableItem"><text class="text_8"> 语文 </text><text class="text_9"> {{data.form.chinese}}
<view class="group_48331"><text class="text_10"> 数学 </text><text class="text_11"> {{data.form.math}} </text></view> </text></view>
<view class="group_48332"><text class="text_12"> 外语 </text><text class="text_13"> {{data.form.english}} </text></view> <view class="group_48331 "><text class="text_10"> 数学 </text><text class="text_11"> {{data.form.math}} </text>
<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> </view>
<view class="group_48335"><text class="text_18"> 生物学 </text><text class="text_19"> {{data.form.biology}} </text></view> <view class="group_48332 tableItem"><text class="text_12"> 外语 </text><text class="text_13"> {{data.form.english}}
<view class="group_48336"> </text></view>
<view class="div_435"></view> <view class="group_48333 "><text class="text_14"> 物理 </text><text class="text_15"> {{data.form.physics}}
<view class="flexcontainer_4"><text class="text_20"> 总分 </text><text class="text_21"> {{total}} </text></view> </text></view>
<view class="div_438"></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> </view>
<text class="div_1"> <text class="text_22"> 更多信息请关注 </text><text class="text_23"> 重庆市教育考试院官方网站 重庆招考信息网 </text> </text>
<view class="group_48338"> <view class="group_48338">
<view class="group_48337"> <view class="group_48337">
<view class="rectangle_23395"> <view class="rectangle_23395">
<!-- <image class="image" src="/image.png" /> --> <image class="image" src="/static/image/other/score/chongqing/wxcode.jpg " />
</view> </view>
</view> </view>
</view> </view>
<text class="text_24"> 重庆招考微信公众号 </text> <text class="text_24"> 重庆招考微信公众号 </text>
</view> </view>
<view class="home"> <!-- <view class="home">
<view class="home_indicator"></view> <view class="home_indicator"></view>
</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> </view>
<!-- 编辑弹窗 --> <!-- 编辑弹窗 -->
@ -179,7 +193,7 @@ function back(){
</view> </view>
<view class="editDialog_body"> <view class="editDialog_body">
<view class="formItem avatar-item"> <view class="formItem avatar-item">
<text>头像</text> <text>二维码</text>
<view class="avatar-wrap"> <view class="avatar-wrap">
<image v-if="editDialog.data.avatar" :src="editDialog.data.avatar" class="avatar-img" @click="choose" /> <image v-if="editDialog.data.avatar" :src="editDialog.data.avatar" class="avatar-img" @click="choose" />
<view v-else class="avatar-placeholder" @click="choose"> <view v-else class="avatar-placeholder" @click="choose">
@ -235,51 +249,61 @@ function back(){
</template> </template>
<style lang="scss"> <style lang="scss">
* { * {
box-sizing: border-box; box-sizing: border-box;
} }
.flex-row {
.flex-row {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
} }
.flex-col {
.flex-col {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.justify-start {
.justify-start {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
} }
.justify-center {
.justify-center {
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.justify-end {
.justify-end {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
} }
.justify-between {
.justify-between {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.items-start {
.items-start {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
} }
.items-end {
.items-end {
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;
} }
.items-center {
.items-center {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.no-shrink {
flex-shrink: 0;
}
/* 编辑弹窗样式 */ .no-shrink {
.editDialog { flex-shrink: 0;
}
/* 编辑弹窗样式 */
.editDialog {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
@ -290,9 +314,9 @@ function back(){
justify-content: center; justify-content: center;
align-items: center; align-items: center;
z-index: 9999; z-index: 9999;
} }
.editDialog_bg { .editDialog_bg {
width: 680rpx; width: 680rpx;
max-height: 80vh; max-height: 80vh;
background-color: #ffffff; background-color: #ffffff;
@ -300,9 +324,9 @@ function back(){
overflow: hidden; overflow: hidden;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.editDialog_header { .editDialog_header {
padding: 30rpx; padding: 30rpx;
border-bottom: 1rpx solid #eee; border-bottom: 1rpx solid #eee;
text-align: center; text-align: center;
@ -312,15 +336,15 @@ function back(){
font-weight: bold; font-weight: bold;
color: #333; color: #333;
} }
} }
.editDialog_body { .editDialog_body {
padding: 20rpx 30rpx; padding: 20rpx 30rpx;
overflow-y: auto; overflow-y: auto;
max-height: 60vh; max-height: 60vh;
} }
.formItem { .formItem {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 20rpx 0; padding: 20rpx 0;
@ -339,9 +363,9 @@ function back(){
color: #333; color: #333;
text-align: right; text-align: right;
} }
} }
.popup-footer { .popup-footer {
display: flex; display: flex;
padding: 20rpx 30rpx; padding: 20rpx 30rpx;
border-top: 1rpx solid #eee; border-top: 1rpx solid #eee;
@ -366,9 +390,9 @@ function back(){
background-color: #187AFF; background-color: #187AFF;
color: #fff; color: #fff;
} }
} }
.avatar-item { .avatar-item {
.avatar-wrap { .avatar-wrap {
flex: 1; flex: 1;
display: flex; display: flex;
@ -401,14 +425,14 @@ function back(){
font-size: 24rpx; font-size: 24rpx;
color: #ff4d4f; color: #ff4d4f;
} }
} }
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
/* 高考成绩-重庆 */ /* 高考成绩-重庆 */
.div { .div {
position: relative; position: relative;
width: 750rpx; width: 750rpx;
height: 1764rpx; // height: 1764rpx;
overflow: hidden; overflow: hidden;
background-color: #efefef; background-color: #efefef;
display: flex; display: flex;
@ -446,6 +470,7 @@ function back(){
top: 0; top: 0;
z-index: 999 !important; z-index: 999 !important;
background-color: #EFEFEF; background-color: #EFEFEF;
/* Rectangle 273 */ /* Rectangle 273 */
.rectangle_273 { .rectangle_273 {
position: relative; position: relative;
@ -503,12 +528,9 @@ function back(){
font-size: 22rpx; font-size: 22rpx;
font-family: 'PingFang SC'; font-family: 'PingFang SC';
font-weight: 400; font-weight: 400;
line-height: 30rpx;
color: #767676; color: #767676;
white-space: pre; white-space: pre;
height: 30rpx; height: 30rpx;
margin-top: 12rpx;
margin-bottom: -5rpx;
width: max-content; width: max-content;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@ -567,10 +589,12 @@ function back(){
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
image{
image {
width: 42rpx; width: 42rpx;
height: 24rpx; height: 24rpx;
margin-left: 12rpx; margin-left: 12rpx;
margin-top: 4rpx;
} }
} }
@ -615,17 +639,15 @@ function back(){
white-space: pre; white-space: pre;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: center;
justify-content: center;
margin-top: 0; margin-top: 0;
margin-left: 0; margin-left: 0;
background-color: #1c97f4; background-color: #1c97f4;
.text_5 { .text_5 {
height: 34rpx; height: 34rpx;
margin-top: 18rpx;
margin-bottom: -5rpx;
position: relative; position: relative;
margin-left: 130rpx;
} }
} }
@ -696,7 +718,6 @@ function back(){
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
z-index: 1; z-index: 1;
margin-top: 50rpx;
margin-left: 0; margin-left: 0;
/* 矩形 23393 */ /* 矩形 23393 */
@ -1129,22 +1150,24 @@ function back(){
} }
.div_1 { .div_1 {
display: flex;
margin-top: 22rpx;
.text_22 { .text_22 {
font-size: 24rpx; font-size: 28rpx;
font-family: 'PingFang SC'; font-family: 'PingFang SC';
font-weight: 400; font-weight: 400;
line-height: 34rpx; line-height: 34rpx;
color: #999999; color: #1A1A1A;
white-space: pre; white-space: pre;
} }
.text_23 { .text_23 {
font-size: 24rpx; font-size: 28rpx;
font-family: 'PingFang SC'; font-family: 'PingFang SC';
font-weight: 400; font-weight: 400;
line-height: 34rpx; line-height: 34rpx;
color: #2082c6; color: #CF2722;
white-space: pre;
} }
} }
@ -1152,27 +1175,27 @@ function back(){
.group_48338 { .group_48338 {
.group_48337 { .group_48337 {
.rectangle_23395 { .rectangle_23395 {
padding-left: 52rpx;
.image { .image {
width: 200rpx; width: 244rpx;
height: 200rpx; height: 244rpx;
} }
} }
} }
} }
.text_24 { .text_24 {
font-size: 24rpx; font-size: 28rpx;
font-family: 'PingFang SC'; font-family: 'PingFang SC';
font-weight: 400; font-weight: 400;
line-height: 34rpx; line-height: 34rpx;
color: #999999; color: #1A1A1A;
white-space: pre; white-space: pre;
height: 34rpx; height: 34rpx;
margin-top: 14rpx; margin-top: 14rpx;
margin-bottom: -5rpx; margin-bottom: -5rpx;
width: max-content; width: max-content;
margin-left: auto; margin-left: 46rpx;
margin-right: auto;
} }
} }
@ -1278,5 +1301,17 @@ 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> </style>

View File

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

View File

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

View File

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