一些优化
This commit is contained in:
@@ -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'
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user