fix(依赖升级,bug 修复):
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-09-13 16:26:39 +08:00
parent f567cf7c94
commit 8b55419643
23 changed files with 343 additions and 284 deletions

View File

@@ -16,6 +16,7 @@
import { ref } from 'vue';
import Taro from '@tarojs/taro';
import { getPersonalInfo } from '@/api/user';
import { getGameList } from '@/api/game';
const list = ref<any[]>([]);
@@ -55,14 +56,8 @@ const getUserInfo = async () => {
const getList = async () => {
// console.log(process.env.TARO_APP_HALL_API)
Taro.request({
url: `${process.env.TARO_APP_HOME}`,
method: 'POST',
success: ({ data: res }) => {
list.value =
res.data.data.sort((a: any, b: any) => b.sort - a.sort) || [];
},
});
const res = await getGameList();
list.value = res.data.data.sort((a: any, b: any) => b.sort - a.sort) || [];
};
const toPage = item => {

View File

@@ -1,14 +1,14 @@
<template>
<view class="appUser">
<view
:style="{ width: isLogin ? '100%' : '70%' }"
class="user-center-card__header__transparent"
v-if="isLogin"
:style="{ width: isLogin ? '100%' : '70%' }">
v-if="isLogin">
<view
class="user-center-card__header__avatar"
@click="toPage('/pages/users/user_setting/index')">
<nut-avatar size="large">
<img :src="userInfo.data?.avatarUrl" />
<img :src="userInfo.data?.avatarUrl" alt="" />
</nut-avatar>
</view>
<view
@@ -34,7 +34,8 @@
<view class="user-center-card__header__avatar">
<nut-avatar size="large">
<img
src="https://img12.360buyimg.com/imagetools/jfs/t1/196430/38/8105/14329/60c806a4Ed506298a/e6de9fb7b8490f38.png" />
src="https://img12.360buyimg.com/imagetools/jfs/t1/196430/38/8105/14329/60c806a4Ed506298a/e6de9fb7b8490f38.png"
alt="" />
</nut-avatar>
</view>
<view class="user-center-card__header__info">
@@ -186,7 +187,11 @@ import { ref } from 'vue';
import { ArrowRight, IconFont } from '@nutui/icons-vue-taro';
import Taro from '@tarojs/taro';
import Auth from '@/components/Auth.vue';
import { getPersonalInfo, getPhone, bindParent } from '@/api/user';
import {
getPersonalInfo,
getPhone,
// bindParent
} from '@/api/user';
import { maskString } from '@/utils';
const isShowLogin = ref(false);
@@ -231,15 +236,15 @@ const init_data = () => {
}
};
const test = () => {
console.log(process.env.TARO_APP_ID);
Taro.openCustomerServiceChat({
corpId: 'wwb5dd953ca36043ef',
extInfo: {
url: 'https://work.weixin.qq.com/kfid/kfcb2b0420e94102346',
},
});
};
// const test = () => {
// console.log(process.env.TARO_APP_ID);
// Taro.openCustomerServiceChat({
// corpId: 'wwb5dd953ca36043ef',
// extInfo: {
// url: 'https://work.weixin.qq.com/kfid/kfcb2b0420e94102346',
// },
// });
// };
const cancelLogin = () => {
isShowLogin.value = false;
@@ -327,28 +332,28 @@ const toPage = (url: string) => {
});
};
const scanCode = () => {
Taro.scanCode({
onlyFromCamera: true,
scanType: ['qrCode'],
success: async data => {
try {
await bindParent({
uid: data.result,
});
Taro.showToast({
title: '绑定成功',
icon: 'none',
});
} catch (error) {
Taro.showToast({
title: error.msg,
icon: 'none',
});
}
},
});
};
// const scanCode = () => {
// Taro.scanCode({
// onlyFromCamera: true,
// scanType: ['qrCode'],
// success: async data => {
// try {
// await bindParent({
// uid: data.result,
// });
// Taro.showToast({
// title: '绑定成功',
// icon: 'none',
// });
// } catch (error) {
// Taro.showToast({
// title: error.msg,
// icon: 'none',
// });
// }
// },
// });
// };
</script>
<style lang="scss">