diff --git a/.env.development b/.env.development
index 70a0c5e5..076c341c 100644
--- a/.env.development
+++ b/.env.development
@@ -4,7 +4,9 @@ ENV = 'development'
# VITE_APP_BASE_API_Url = 'https://aits.jlbank.com.cn:7001'
+
VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
+
# VITE_APP_BASE_API_Url = 'http://192.168.247.200'
# VITE_APP_BASE_API_Url = 'http://aitscdn.jlbank.com.cn:7001'
# VITE_APP_BASE_API_Url = 'http://192.168.108.129'
@@ -26,7 +28,7 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
# h5专用地址x2
# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001'
-VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786'
+#VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786'
# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786'
# VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://192.168.247.200'
# VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.32.154:9602'
diff --git a/src/components/points-and-badge/badge.vue b/src/components/points-and-badge/badge.vue
index 3263cdd5..4f12ec4c 100644
--- a/src/components/points-and-badge/badge.vue
+++ b/src/components/points-and-badge/badge.vue
@@ -1,82 +1,104 @@
-
-
-
diff --git a/src/components/points-and-badge/points.vue b/src/components/points-and-badge/points.vue
index a3e5ec65..c333c690 100644
--- a/src/components/points-and-badge/points.vue
+++ b/src/components/points-and-badge/points.vue
@@ -18,7 +18,7 @@
+{{showData.num}}
- {{showData.tip}}
+ {{showData.message}}
{
+
+ }
);
};
defineExpose({ open, close });
diff --git a/src/components/selection-institutions/index.vue b/src/components/selection-institutions/index.vue
index fb0ba731..77a1c5dd 100644
--- a/src/components/selection-institutions/index.vue
+++ b/src/components/selection-institutions/index.vue
@@ -81,7 +81,7 @@
const orgTree = ref(orgTreeInit);
// 把全行信息插入
- const selectedPaths = ref([initSelect]);
+ const selectedPaths = ref([]);
const updateSelectedPaths = (node, level) => {
console.log('node', node);
@@ -101,7 +101,7 @@
};
const click_button = (type) => {
if (type === 'reset') {
- updateSelectedPaths(initSelect, 0);
+ updateSelectedPaths({ orgName: '全部', orgId: 'A', parentId: '' }, 0);
} else if (type === 'confirm') {
emit('submit', JSON.parse(JSON.stringify(selectedPaths.value)));
} else if (type === 'all') {
diff --git a/src/manifest.json b/src/manifest.json
index 3013d5af..5bb0c580 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -1,89 +1,101 @@
{
- "name" : "tra-app",
- "appid" : "__UNI__EDE0E52",
- "description" : "",
- "versionName" : "0.0.3",
- "versionCode" : 3,
- "transformPx" : false,
- /* 5+App特有相关 */
- "app-plus" : {
- "usingComponents" : true,
- "nvueStyleCompiler" : "uni-app",
- "compilerVersion" : 3,
- "renderer" : "auto",
- "orientation" : [ "portrait-primary" ],
- "splashscreen" : {
- "alwaysShowBeforeRender" : true,
- "waiting" : false,
- "autoclose" : true,
- "delay" : 0
- },
- /* 模块配置 */
- "modules" : {
- "Camera" : {},
- "Barcode" : {},
- "Record" : {},
- "VideoPlayer" : {}
- },
- /* 应用发布信息 */
- "distribute" : {
- /* android打包配置 */
- "android" : {
- "permissions" : [
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- ]
- },
- /* ios打包配置 */
- "ios" : {
- "dSYMs" : false
- },
- /* SDK配置 */
- "sdkConfigs" : {},
- "splashscreen" : {
- "androidStyle" : "common",
- "android" : {
- "hdpi" : "src/static/images/login/open.9.png",
- "xhdpi" : "src/static/images/login/open.9.png",
- "xxhdpi" : "src/static/images/login/open.9.png"
- }
- }
- }
- },
- /* 快应用特有相关 */
- "quickapp" : {},
- /* 小程序特有相关 */
- "mp-weixin" : {
- "appid" : "",
- "setting" : {
- "urlCheck" : false
- },
- "usingComponents" : true
- },
- "mp-alipay" : {
- "usingComponents" : true
- },
- "mp-baidu" : {
- "usingComponents" : true
- },
- "mp-toutiao" : {
- "usingComponents" : true
- },
- "uniStatistics" : {
- "enable" : false
- },
- "vueVersion" : "3"
-}
+ "name": "tra-app",
+ "appid": "__UNI__EDE0E52",
+ "description": "",
+ "versionName": "0.0.3",
+ "versionCode": 3,
+ "transformPx": false,
+ /* 5+App特有相关 */
+ "app-plus": {
+ "usingComponents": true,
+ "nvueStyleCompiler": "uni-app",
+ "compilerVersion": 3,
+ "renderer": "auto",
+ "orientation": ["portrait-primary"],
+ "splashscreen": {
+ "alwaysShowBeforeRender": true,
+ "waiting": false,
+ "autoclose": true,
+ "delay": 0
+ },
+ "safearea": {
+ "background": "#CCCCCC",
+ "bottom": {
+ "offset": "none|auto"
+ },
+ "left": {
+ "offset": "none|auto"
+ },
+ "right": {
+ "offset": "none|auto"
+ }
+ },
+ /* 模块配置 */
+ "modules": {
+ "Camera": {},
+ "Barcode": {},
+ "Record": {},
+ "VideoPlayer": {}
+ },
+ /* 应用发布信息 */
+ "distribute": {
+ /* android打包配置 */
+ "android": {
+ "permissions": [
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ ]
+ },
+ /* ios打包配置 */
+ "ios": {
+ "dSYMs": false
+ },
+ /* SDK配置 */
+ "sdkConfigs": {},
+ "splashscreen": {
+ "androidStyle": "common",
+ "android": {
+ "hdpi": "src/static/images/login/open.9.png",
+ "xhdpi": "src/static/images/login/open.9.png",
+ "xxhdpi": "src/static/images/login/open.9.png"
+ }
+ }
+ }
+ },
+ /* 快应用特有相关 */
+ "quickapp": {},
+ /* 小程序特有相关 */
+ "mp-weixin": {
+ "appid": "",
+ "setting": {
+ "urlCheck": false
+ },
+ "usingComponents": true
+ },
+ "mp-alipay": {
+ "usingComponents": true
+ },
+ "mp-baidu": {
+ "usingComponents": true
+ },
+ "mp-toutiao": {
+ "usingComponents": true
+ },
+ "uniStatistics": {
+ "enable": false
+ },
+ "vueVersion": "3"
+}
\ No newline at end of file
diff --git a/src/pages/competition/pk.vue b/src/pages/competition/pk.vue
index 873596c1..f0503891 100644
--- a/src/pages/competition/pk.vue
+++ b/src/pages/competition/pk.vue
@@ -134,7 +134,7 @@
let practiceStartTime = 0; // Pk开始时间
let practiceTimeTimer = null; // Pk计时器
let leaveStartTime = 0; // 离开开始时间
- const mode = ref('pk_in'); // PK中 pk_in
+ const mode = 'pk_in'; // PK中 pk_in
// 计算对方分数
const opponentScore = computed(() => {
@@ -262,7 +262,7 @@
common.setPageCache('competition_pk_to_resulf', pkData);
nextTick(() => {
common.redirectTo(
- `/pages/competition/result?&execId=${pkData.execId}&orgId=${pkData.orgId}&papersId=${pkData.papersId}`
+ `/pages/competition/result?mode=${mode}&execId=${pkData.execId}&orgId=${pkData.orgId}&papersId=${pkData.papersId}`
);
});
} else {
diff --git a/src/pages/competition/result.vue b/src/pages/competition/result.vue
index b289c1e6..9d8e2fa5 100644
--- a/src/pages/competition/result.vue
+++ b/src/pages/competition/result.vue
@@ -60,7 +60,7 @@
- {{ pkData.userNamePk }}
+ {{ pkData.pkIsAnony === 'N' ? pkData.userNamePk : '匿名' }}
正确/总题数
{{ pkData.correctNubPk }}
@@ -83,10 +83,13 @@
查看排行榜
-
+
+
+
+
@@ -103,6 +106,7 @@
import { formatSecondsToMS } from './js/tool';
const action = ref('');
+ const mode = ref(''); // 模式 PK中 pk_in, Pk列表查询 pk_result
const pkData = reactive({
// 公共的
execId: '',
@@ -113,7 +117,7 @@
// 自己的
userName: '',
- isAnony: 'Y', // 匿名 String
+ isAnony: '', // 匿名 String
correctNub: 0, // 正确数 int
qnsNub: 0, // 总数 int
timeTaken: 0, // 用时 int
@@ -123,7 +127,7 @@
userIdPk: '', // 用户Id String
userNamePk: '', // 用户姓名 String
imgPk: '', // 对方头像 String
- pkIsAnony: 'Y', // 匿名 String
+ pkIsAnony: '', // 匿名 String
correctNubPk: 0, // 正确数 int
qnsNubPk: 0, // 总数 int
timeTakenPk: 0, // 用时 int
@@ -137,18 +141,23 @@
common.navigateBack();
} else if (type === 'toRanking') {
common.navigateTo(`/pages/competition/ranking?papersId=${pkData.papersId}&orgId=${pkData.orgId}`);
- }
+ }
+
+
};
onLoad((e) => {
pkData.execId = e.execId || '';
pkData.papersId = e.papersId || '';
pkData.orgId = e.orgId || '';
+ mode.value = e.mode || 'pk_result';
const pkDataInit = common.getPageCache('competition_pk_to_resulf');
+ const userInfo = getUserInfo();
+ console.log('userInfo', userInfo);
Object.assign(pkData, {
- userName: pkDataInit.userName,
- isAnony: pkDataInit.isAnony,
- pkIsAnony: pkDataInit.pkIsAnony,
+ userName: userInfo.userName,
+ isAnony: pkDataInit.isAnony ?? '',
+ pkIsAnony: pkDataInit.pkIsAnony ?? '',
});
});
onMounted(() => {
@@ -196,10 +205,12 @@
justify-content: space-around;
font-size: 26rpx;
.pk-msg-left-div > .avatar-div {
- border: 3rpx solid #2b7af1;
+ // border: 3rpx solid #2b7af1;
+ border: 3rpx solid #fafafa;
}
.pk-msg-right-div > .avatar-div {
- border: 3rpx solid #f63c13;
+ // border: 3rpx solid #f63c13;
+ border: 3rpx solid #fafafa;
}
.avatar-div {
width: 78rpx;
@@ -480,10 +491,14 @@
display: flex;
margin-top: 50rpx;
margin-bottom: 60rpx;
+ width: 550rpx;
+ justify-content: space-between;
+ .button-3{
+ flex: 1;
+ }
:deep(.uv-button) {
/* 以下是所有 .uv-button 共用的公共样式 */
- margin: 16rpx;
- width: 246rpx;
+ min-width: 246rpx;
height: 92rpx;
border-radius: 58px;
font-weight: 500;
diff --git a/src/pages/competitionRecord/components/competitionRecordItem.vue b/src/pages/competitionRecord/components/competitionRecordItem.vue
index ba781610..a7d61f11 100644
--- a/src/pages/competitionRecord/components/competitionRecordItem.vue
+++ b/src/pages/competitionRecord/components/competitionRecordItem.vue
@@ -76,12 +76,11 @@
const click_list_item = (list_item) => {
const pkData = {
- userName: 'x',
- isAnony: list_item.isAnony
+ isAnony: list_item.isAnony,
}
common.setPageCache('competition_pk_to_resulf', pkData);
common.navigateTo(
- `/pages/competition/result?&execId=${list_item.execId}&orgId=${list_item.orgId}&papersId=${list_item.papersId}`
+ `/pages/competition/result?mode=pk_result&execId=${list_item.execId}&orgId=${list_item.orgId}&papersId=${list_item.papersId}`
);
diff --git a/src/pages/me/index.vue b/src/pages/me/index.vue
index 9bc2598e..b09b748d 100644
--- a/src/pages/me/index.vue
+++ b/src/pages/me/index.vue
@@ -48,7 +48,8 @@
工号:{{ user_info.loginName }}
- 签到
+
+ 签到
已签
@@ -159,7 +160,7 @@
@confirm="avatarOnConfirm"
>
-
+
@@ -183,7 +184,7 @@
import checkIn from '@/components/points-and-badge/check-in';
import badge from '@/components/points-and-badge/badge';
import points from '@/components/points-and-badge/points';
- import {pop_up_time} from '@/enum';
+ import { pop_up_time } from '@/enum';
const { avatarCropperUrl, click_update_avatar, avatarCropperStatus, avatarOnCancel, avatarOnConfirm } = useUpdateAvatar({
success: (userData) => {
user_info.imageAddr = userData.imageAddr;
@@ -246,6 +247,20 @@
// 签到打开
const checkInClick = () => {
checkInRef.value.open(user_info.checkInToday, user_info.checkInDays);
+
+ // badgeRef.value.open(
+ // [],
+ // [
+ // {
+ // pointsBadgeImg: '/traoss/tras3/show/S3F0250181220722025110713501700000661177',
+ // pointsBadgeName: '黄金徽章'
+ // },
+ // {
+ // pointsBadgeImg: '/traoss/tras3/show/S3F0250181220722025110713501700000661177',
+ // pointsBadgeName: '黄金徽章2'
+ // }
+ // ]
+ // );
};
// 签到成功回调
const checkInFun = (status, pointsList = [], badgesList = []) => {
@@ -254,7 +269,13 @@
}
pointsRef.value.open(pointsList, badgesList);
};
-
+ const badgeConfirm = (status, pointsList = [], badgesList = []) => {
+ // nextTick(() => {
+ // badgeRef.value.close();
+ // })
+
+ badgeRef.value.close();
+ };
// 积分确认
const pointsConfirm = (status, pointsList = [], badgesList = []) => {
console.log('xxx', status, pointsList, badgesList);
diff --git a/src/pages/pointsAndRank/rank.vue b/src/pages/pointsAndRank/rank.vue
index 4289dc86..7fad4a3d 100644
--- a/src/pages/pointsAndRank/rank.vue
+++ b/src/pages/pointsAndRank/rank.vue
@@ -24,7 +24,7 @@
当前段位:{{dataInfo.currentRankName}}
我的累计积分:
- {{dataInfo.currentPoints}}/{{dataInfo.countPoints}}
+ {{dataInfo.countPoints}}
diff --git a/src/static/images/test/xz.png b/src/static/images/test/xz.png
index f5081577..13cfd3c6 100644
Binary files a/src/static/images/test/xz.png and b/src/static/images/test/xz.png differ
diff --git a/src/static/images/test/xz1.png b/src/static/images/test/xz1.png
new file mode 100644
index 00000000..a77a124a
Binary files /dev/null and b/src/static/images/test/xz1.png differ
diff --git a/src/static/images/test/xz2.png b/src/static/images/test/xz2.png
new file mode 100644
index 00000000..82ed1ae9
Binary files /dev/null and b/src/static/images/test/xz2.png differ
diff --git a/src/static/images/test/xz3.png b/src/static/images/test/xz3.png
new file mode 100644
index 00000000..7bf9600f
Binary files /dev/null and b/src/static/images/test/xz3.png differ
diff --git a/src/static/images/test/xz4.png b/src/static/images/test/xz4.png
new file mode 100644
index 00000000..0012f157
Binary files /dev/null and b/src/static/images/test/xz4.png differ
diff --git a/src/static/images/test/xz5.png b/src/static/images/test/xz5.png
new file mode 100644
index 00000000..b86ad563
Binary files /dev/null and b/src/static/images/test/xz5.png differ