一些优化

This commit is contained in:
haomingming
2025-09-04 17:34:47 +08:00
parent b068fb00cc
commit 4659f30400
18 changed files with 508 additions and 87 deletions
+9 -6
View File
@@ -124,7 +124,7 @@
</view>
<!-- 浮动签到按钮 -->
<view class="floating-checkin" @click="performCheckin" :class="{ loading: loading }">
<!-- <view class="floating-checkin" @click="performCheckin" :class="{ loading: loading }">
<view class="checkin-icon">
<text class="calendar-icon">📅</text>
<text class="checkmark">✓</text>
@@ -133,7 +133,7 @@
<text class="checkin-label">{{ loading ? '签到中...' : '点击签到' }}</text>
<text class="checkin-reward">+2</text>
</view>
</view>
</view> -->
<!-- 底部导航 -->
<view class="bottom-nav">
@@ -249,10 +249,13 @@
// 底部导航方法
const goToPointsCoupon = () => {
uni.showToast({
title: '积分券功能开发中',
icon: 'none'
uni.navigateTo({
url: '/pages_goods/coupon/coupon'
});
// uni.showToast({
// title: '积分券功能开发中',
// icon: 'none'
// });
};
const goToBuyPoints = () => {
@@ -263,7 +266,7 @@
const goToPointsMall = () => {
uni.navigateTo({
url: '/pages_app/pointMall/pointMall'
url: '/pages_goods/pointMall/pointMall'
});
};
+23 -3
View File
@@ -102,7 +102,8 @@
import eyeOpenImg from "@/static/eye_open.png"
import eyeCloseImg from "@/static/eye_close.png"
import api from "@/api/api.js"
import BASE_URL from "@/utils/config.js";
const customStyle = reactive({
height: "100rpx",
fontSize: "36rpx",
@@ -226,16 +227,35 @@
uni.setStorageSync('DEV_AUTH_YX_TOKEN_App', result.YX_token);
uni.setStorageSync('userInfo', result.data);
}
}else{
if (BASE_URL.indexOf('dev') == -1) {
uni.setStorageSync('AUTH_TOKEN_App',result.access_token);
uni.setStorageSync('AUTH_YX_ACCID_App', result.YX_accid);
uni.setStorageSync('AUTH_YX_TOKEN_App', result.YX_token);
uni.setStorageSync('userInfo', result.data);
} else {
uni.setStorageSync('DEV_AUTH_TOKEN_App', result.access_token);
uni.setStorageSync('DEV_AUTH_YX_ACCID_App', result.YX_accid);
uni.setStorageSync('DEV_AUTH_YX_TOKEN_App', result.YX_token);
uni.setStorageSync('userInfo', result.data);
}
}
console.log(uni.getStorageSync('userInfo'))
console.log(1)
uni.hideLoading();
console.log(2)
uni.showToast({
title: '登录成功',
icon: 'success'
});
console.log(3)
uni.redirectTo({
url:'/pages_course/course/course'
url:'/pages/index/index'
})
console.log(4)
})
// 模拟登录过程
// setTimeout(() => {