feat:替换各个列表接口参数;登录注册合并;发布动态添加视频;分段控件修改

This commit is contained in:
ctw committed 2025-11-27 18:45:59 +08:00
1 parent 298bc6babe
commit 7267cf93c9
22 files changed
+288 -187

No files matched your search

+10 -13
View File
@@ -328,7 +328,7 @@
const groupId = msg.groupId;
uni.navigateTo({
url: `/pages/chat/chat-group-video?groupId=${groupId}&isHost=false
&inviterId=${inviterId}&userInfos=${userInfos}`,
&inviterId=${inviterId}&userInfos=${userInfos}`,
});
delayTime = 500;
}
@@ -388,7 +388,7 @@
return group;
},
exit() {
console.log('exit');
console.log('1exit');
this.isExit = true;
wsApi.close(3099);
uni.removeStorageSync('loginInfo');
@@ -494,28 +494,25 @@
ShoproInit();
// app启动时更新用户位置
uni.getLocation({
geocode: true,
success: (res) => {
const params = {
issueLat: String(res.latitude),
issueLong: String(res.longitude),
lat: String(res.latitude),
lon: String(res.longitude),
province: res.address?.province ?? '',
city: res.address?.city ?? '',
district: res.address?.district ?? '',
address: res.address?.street ?? '',
};
RecentApi.updateUserLocation(params);
},
fail: (err) => {
uni.showToast({ title: '位置信息获取失败', icon: 'none' });
uni.showToast({ title: '位置信息获取失败,请打开系统定位', icon: 'none' });
},
});
this.$mountStore();
this.closeSplashscreen(1000); // 延迟1s,避免用户看到页面跳转
uni.setStorageSync('loginInfo', {
accessToken:
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIyIiwiZXhwIjoxNzY0MTQ1MDQyLCJpbmZvIjoie1wibmlja05hbWVcIjpcInd3d1wiLFwidGVybWluYWxcIjoxLFwidXNlcklkXCI6MixcInVzZXJOYW1lXCI6XCJ3d3dcIn0ifQ.yO8o-DM4mied_C5PFzqentfiETV38jmVjFzLVljouz4',
accessTokenExpiresIn: 1800,
refreshToken:
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIyIiwiZXhwIjoxNzY0NzQ4MDQyLCJpbmZvIjoie1wibmlja05hbWVcIjpcInd3d1wiLFwidGVybWluYWxcIjoxLFwidXNlcklkXCI6MixcInVzZXJOYW1lXCI6XCJ3d3dcIn0ifQ.O2Ge2P-n3JSjEqr7P5sH5jaSWZosopHycsuS-vk-WEU',
refreshTokenExpiresIn: 604800,
});
// 登录状态校验
let loginInfo = uni.getStorageSync('loginInfo');
this.refreshToken(loginInfo)