Revert "刷新视频数据"

This reverts commit d201e82abea147a9c155eb225caa9c7f43c41754.
This commit is contained in:
陈浩 2025-05-14 15:19:53 +08:00
parent d201e82abe
commit 87db769e7d
8 changed files with 284 additions and 301 deletions

View File

@ -1042,7 +1042,6 @@ export default {
this.page = 1; this.page = 1;
this.dataList = []; this.dataList = [];
this.k = 0; this.k = 0;
this.userId = '';
}, },
async get() { async get() {
// 这个方法主要就是用来第一次进入视频播放时用来处理的 // 这个方法主要就是用来第一次进入视频播放时用来处理的

View File

@ -1048,7 +1048,6 @@ export default {
this.page = 1; this.page = 1;
this.dataList = []; this.dataList = [];
this.k = 0; this.k = 0;
this.userId = '';
}, },
async get() { async get() {
// 这个方法主要就是用来第一次进入视频播放时用来处理的 // 这个方法主要就是用来第一次进入视频播放时用来处理的

View File

@ -1049,7 +1049,6 @@ export default {
this.page = 1; this.page = 1;
this.dataList = []; this.dataList = [];
this.k = 0; this.k = 0;
this.userId = '';
}, },
async get() { async get() {
// 这个方法主要就是用来第一次进入视频播放时用来处理的 // 这个方法主要就是用来第一次进入视频播放时用来处理的

View File

@ -1,51 +1,50 @@
{ {
"name" : "无终街", "name": "无终街",
"appid" : "__UNI__6DB512D", "appid": "__UNI__6DB512D",
"description" : "admin", "description": "admin",
"versionName" : "4.0.0", "versionName": "4.0.0",
"versionCode" : 404, "versionCode": 403,
"transformPx" : false, "transformPx": false,
"sassImplementationName" : "node-sass", "app-plus": {
"app-plus" : { "android": {
"android" : { "versionCode": 4000049, // Android
"versionCode" : 4000049, // Android "versionName": "4.0.0" //
"versionName" : "4.0.0" //
}, },
"compatible" : { "compatible": {
"ignoreVersion" : true //trueHBuilderX1.9.0 "ignoreVersion": true //trueHBuilderX1.9.0
}, },
"nvueStyleCompiler" : "uni-app", "nvueStyleCompiler": "uni-app",
"compilerVersion" : 3, "compilerVersion": 3,
/* 5+App */ /* 5+App */
"usingComponents" : true, "usingComponents": true,
"splashscreen" : { "splashscreen": {
"alwaysShowBeforeRender" : true, "alwaysShowBeforeRender": true,
"waiting" : true, "waiting": true,
"autoclose" : true, "autoclose": true,
"delay" : 0 "delay": 0
}, },
"screenOrientation" : [ "portrait-primary" ], "screenOrientation": ["portrait-primary"],
"modules" : { "modules": {
"Payment" : {}, "Payment": {},
"Share" : {}, "Share": {},
"Geolocation" : {}, "Geolocation": {},
"Maps" : {}, "Maps": {},
"Camera" : {}, "Camera": {},
"Barcode" : {}, "Barcode": {},
"VideoPlayer" : {}, "VideoPlayer": {},
"Push" : {}, "Push": {},
"OAuth" : {} "OAuth": {}
}, },
"error" : { "error": {
/* 404*/ /* 404*/
"url" : "hybrid/html/error.html" "url": "hybrid/html/error.html"
}, },
/* */ /* */
"distribute" : { "distribute": {
/* */ /* */
"android" : { "android": {
/* android */ /* android */
"permissions" : [ "permissions": [
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
@ -72,174 +71,173 @@
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>", "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
], ],
"abiFilters" : [ "arm64-v8a" ], "abiFilters": ["arm64-v8a"],
"schemes" : "wuzhongjie", "schemes": "wuzhongjie",
"minSdkVersion" : 30, "minSdkVersion": 30,
"targetSdkVersion" : 34 "targetSdkVersion": 34
}, },
"ios" : { "ios": {
"idfa" : false, "idfa": false,
"privacyDescription" : { "privacyDescription": {
"NSPhotoLibraryUsageDescription" : "需要用与评论上传,头像上传功能", "NSPhotoLibraryUsageDescription": "需要用与评论上传,头像上传功能",
"NSPhotoLibraryAddUsageDescription" : "保存商品图片到本地", "NSPhotoLibraryAddUsageDescription": "保存商品图片到本地",
"NSCameraUsageDescription" : "需要用与扫描二维码和商品评论图片拍摄", "NSCameraUsageDescription": "需要用与扫描二维码和商品评论图片拍摄",
"NSLocationAlwaysAndWhenInUseUsageDescription" : "可根据位置向您介绍附近的视频信息提升浏览体验或帮助你在发布的信息中展示位置不授权不影响app正常使用", "NSLocationAlwaysAndWhenInUseUsageDescription": "可根据位置向您介绍附近的视频信息提升浏览体验或帮助你在发布的信息中展示位置不授权不影响app正常使用",
"NSMicrophoneUsageDescription" : "用户上传视频时需使用音频信息" "NSMicrophoneUsageDescription": "用户上传视频时需使用音频信息"
}, },
"capabilities" : { "capabilities": {
"entitlements" : { "entitlements": {
"com.apple.developer.associated-domains" : [ "applinks:wuzhongjie.com.cn" ] "com.apple.developer.associated-domains": ["applinks:wuzhongjie.com.cn"]
} }
}, },
"urltypes" : "wuzhongjie", "urltypes": "wuzhongjie",
"dSYMs" : false "dSYMs": false
}, },
/* ios */ /* ios */
"sdkConfigs" : { "sdkConfigs": {
"payment" : { "payment": {
"weixin" : { "weixin": {
"__platform__" : [ "ios", "android" ], "__platform__": ["ios", "android"],
"appid" : "wxebcdaea31881caab", "appid": "wxebcdaea31881caab",
"UniversalLinks" : "https://wuzhongjie.com.cn/ulink/" "UniversalLinks": "https://wuzhongjie.com.cn/ulink/"
}, },
"alipay" : { "alipay": {
"__platform__" : [ "ios", "android" ] "__platform__": ["ios", "android"]
} }
}, },
"ad" : {}, "ad": {},
"share" : { "share": {
"weixin" : { "weixin": {
"appid" : "wxebcdaea31881caab", "appid": "wxebcdaea31881caab",
"UniversalLinks" : "https://wuzhongjie.com.cn/ulink/" "UniversalLinks": "https://wuzhongjie.com.cn/ulink/"
} }
}, },
"oauth" : { "oauth": {
"weixin" : { "weixin": {
"appid" : "wxebcdaea31881caab", "appid": "wxebcdaea31881caab",
"UniversalLinks" : "https://wuzhongjie.com.cn/ulink/" "UniversalLinks": "https://wuzhongjie.com.cn/ulink/"
},
"apple" : {}
},
"geolocation" : {
"amap" : {
"__platform__" : [ "ios", "android" ],
"appkey_ios" : "f463d3350efe63f8be5d9a62f24d0aab",
"appkey_android" : "fb3f1ccb34616c70f068aa950f3e27df"
},
"system" : {
"__platform__" : [ "ios", "android" ]
} }
}, },
"maps" : { "geolocation": {
"amap" : { "amap": {
"appkey_ios" : "f463d3350efe63f8be5d9a62f24d0aab", "__platform__": ["ios", "android"],
"appkey_android" : "fb3f1ccb34616c70f068aa950f3e27df" "appkey_ios": "f463d3350efe63f8be5d9a62f24d0aab",
"appkey_android": "fb3f1ccb34616c70f068aa950f3e27df"
},
"system": {
"__platform__": ["ios", "android"]
} }
}, },
"push" : {} "maps": {
"amap": {
"appkey_ios": "f463d3350efe63f8be5d9a62f24d0aab",
"appkey_android": "fb3f1ccb34616c70f068aa950f3e27df"
}
}, },
"icons" : { "push": {}
"android" : {
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
}, },
"ios" : { "icons": {
"appstore" : "unpackage/res/icons/1024x1024.png", "android": {
"ipad" : { "hdpi": "unpackage/res/icons/72x72.png",
"app" : "unpackage/res/icons/76x76.png", "xhdpi": "unpackage/res/icons/96x96.png",
"app@2x" : "unpackage/res/icons/152x152.png", "xxhdpi": "unpackage/res/icons/144x144.png",
"notification" : "unpackage/res/icons/20x20.png", "xxxhdpi": "unpackage/res/icons/192x192.png"
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
}, },
"iphone" : { "ios": {
"app@2x" : "unpackage/res/icons/120x120.png", "appstore": "unpackage/res/icons/1024x1024.png",
"app@3x" : "unpackage/res/icons/180x180.png", "ipad": {
"notification@2x" : "unpackage/res/icons/40x40.png", "app": "unpackage/res/icons/76x76.png",
"notification@3x" : "unpackage/res/icons/60x60.png", "app@2x": "unpackage/res/icons/152x152.png",
"settings@2x" : "unpackage/res/icons/58x58.png", "notification": "unpackage/res/icons/20x20.png",
"settings@3x" : "unpackage/res/icons/87x87.png", "notification@2x": "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png", "proapp@2x": "unpackage/res/icons/167x167.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png" "settings": "unpackage/res/icons/29x29.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"spotlight": "unpackage/res/icons/40x40.png",
"spotlight@2x": "unpackage/res/icons/80x80.png"
},
"iphone": {
"app@2x": "unpackage/res/icons/120x120.png",
"app@3x": "unpackage/res/icons/180x180.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"notification@3x": "unpackage/res/icons/60x60.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"settings@3x": "unpackage/res/icons/87x87.png",
"spotlight@2x": "unpackage/res/icons/80x80.png",
"spotlight@3x": "unpackage/res/icons/120x120.png"
} }
} }
}, },
"splashscreen" : { "splashscreen": {
"iosStyle" : "common", "iosStyle": "common",
"ios" : { "ios": {
"storyboard" : "CustomStoryboard.zip" "storyboard": "CustomStoryboard.zip"
}, },
"androidStyle" : "default", "androidStyle": "default",
"android" : { "android": {
"hdpi" : "CustomStartPage/start-page.9.png", "hdpi": "CustomStartPage/start-page.9.png",
"xhdpi" : "CustomStartPage/start-page.9.png", "xhdpi": "CustomStartPage/start-page.9.png",
"xxhdpi" : "CustomStartPage/start-page.9.png" "xxhdpi": "CustomStartPage/start-page.9.png"
}, },
"useOriginalMsgbox" : true "useOriginalMsgbox": true
} }
}, },
"nativePlugins" : {} "nativePlugins": {}
}, },
"permission" : { "permission": {
"scope.userLocation" : { "scope.userLocation": {
"desc" : "你的位置信息将用于高德地图的效果展示" "desc": "你的位置信息将用于高德地图的效果展示"
} }
}, },
/* SDK */ /* SDK */
"quickapp" : {}, "quickapp": {},
/* */ /* */
"mp-weixin" : { "mp-weixin": {
/* */ /* */
"usingComponents" : true, "usingComponents": true,
"appid" : "wx6f10f29075dc1b0b", "appid": "wx6f10f29075dc1b0b",
"optimization" : { "optimization": {
"subPackages" : true "subPackages": true
}, },
"setting" : { "setting": {
"urlCheck" : false, "urlCheck": false,
"minified" : true, "minified": true,
"postcss" : false, "postcss": false,
"es6" : true "es6": true
}, },
"permission" : { "permission": {
"scope.userLocation" : { "scope.userLocation": {
"desc" : "位置信息将用于高德地图的效果展示" "desc": "位置信息将用于高德地图的效果展示"
} }
}, },
"plugins" : { "plugins": {
"myPlugin" : { "myPlugin": {
"version" : "1.1.0", "version": "1.1.0",
"provider" : "wx738958e0f4c894f9" "provider": "wx738958e0f4c894f9"
}, },
"live-player-plugin" : { "live-player-plugin": {
"version" : "1.3.0", "version": "1.3.0",
"provider" : "wx2b03c6e691cd7370" "provider": "wx2b03c6e691cd7370"
} }
} }
}, },
"h5" : { "h5": {
"devServer" : { "devServer": {
"disableHostCheck" : true "disableHostCheck": true
}, },
"router" : { "router": {
"mode" : "history", "mode": "history",
"base" : "" "base": ""
}, },
"sdkConfigs" : { "sdkConfigs": {
"maps" : {} "maps": {}
}, },
"optimization" : { "optimization": {
"treeShaking" : { "treeShaking": {
"enable" : true "enable": true
} }
}, },
"title" : "lilishop", "title": "lilishop",
"template" : "" "template": ""
} }
} }

View File

@ -1046,7 +1046,6 @@ export default {
this.page = 1; this.page = 1;
this.dataList = []; this.dataList = [];
this.k = 0; this.k = 0;
this.userId = '';
}, },
async get() { async get() {
// 这个方法主要就是用来第一次进入视频播放时用来处理的 // 这个方法主要就是用来第一次进入视频播放时用来处理的

View File

@ -201,17 +201,9 @@ export default {
code: 'APPLE' code: 'APPLE'
} }
], ],
initurl: false, initurl: false
channelComment: null
}; };
}, },
destroyed() {
console.log('登录面销毁');
// BroadcastChannel
if (this.channelComment) {
this.channelComment.close();
}
},
onShow() { onShow() {
//#ifdef H5 //#ifdef H5
@ -350,7 +342,6 @@ export default {
} }
}, },
onLoad(options) { onLoad(options) {
this.channelComment = new BroadcastChannel('comment-counts');
if (options.init == 'index') { if (options.init == 'index') {
this.initurl = true; this.initurl = true;
} }
@ -573,11 +564,7 @@ export default {
storage.setVlogToken(vlogInfo.userToken); storage.setVlogToken(vlogInfo.userToken);
storage.setVlogUserInfo(vlogInfo); storage.setVlogUserInfo(vlogInfo);
storage.setRefreshVlogIndex('1'); storage.setRefreshVlogIndex('1');
// videoList
this.channelComment.postMessage({
type: 'comment-counts',
data: { lahei: true }
});
/** /**
* 登录成功后获取个人信息 * 登录成功后获取个人信息
*/ */
@ -587,7 +574,6 @@ export default {
/** /**
* 个人信息存储到缓存userInfo中 * 个人信息存储到缓存userInfo中
*/ */
storage.setUserInfo(user.data.result); storage.setUserInfo(user.data.result);
storage.setHasLogin(true); storage.setHasLogin(true);
// loginIm // loginIm

View File

@ -215,14 +215,17 @@ export default {
// this.$refs[prop].showVd(); // this.$refs[prop].showVd();
console.log('是否刷新:' + storage.getRefreshVlogIndex()); console.log('是否刷新:' + storage.getRefreshVlogIndex());
if (storage.getRefreshVlogIndex() === '1') { if (storage.getRefreshVlogIndex() === '1') {
try {
storage.setRefreshVlogIndex('0'); //初始完数据修改状态不需要刷新
console.log('是否刷新:' + storage.getRefreshVlogIndex());
// 登录后需要刷新数据 // 登录后需要刷新数据
for (var i = 0; i < this.pageList.length; i++) { for (var i = 0; i < this.pageList.length; i++) {
if (this.$refs[i]) {
this.$refs[i].dataList = []; //所有数据清空 this.$refs[i].dataList = []; //所有数据清空
} }
}
this.$refs[prop].get(); //只初始化当前所在位置的数据 this.$refs[prop].get(); //只初始化当前所在位置的数据
storage.setRefreshVlogIndex('0'); //初始完数据修改状态不需要刷新 } catch (err) {
console.log(err + '255');
}
} else { } else {
try { try {
this.$refs[prop].showVd(); this.$refs[prop].showVd();
@ -238,10 +241,8 @@ export default {
if (storage.getRefreshVlogIndex() == '1') { if (storage.getRefreshVlogIndex() == '1') {
// 登录后需要刷新数据 // 登录后需要刷新数据
for (var i = 0; i < this.pageList.length; i++) { for (var i = 0; i < this.pageList.length; i++) {
if (this.$refs[i]) {
this.$refs[i].dataList = []; //所有数据清空 this.$refs[i].dataList = []; //所有数据清空
} }
}
this.$refs[prop].get(); //只初始化当前所在位置的数据 this.$refs[prop].get(); //只初始化当前所在位置的数据
storage.setRefreshVlogIndex('0'); //初始完数据修改状态不需要刷新 storage.setRefreshVlogIndex('0'); //初始完数据修改状态不需要刷新
} else { } else {

View File

@ -11,7 +11,9 @@
"com.tencent.timpush:xiaomi:8.5.6864", "com.tencent.timpush:xiaomi:8.5.6864",
"com.tencent.timpush:oppo:8.5.6864", "com.tencent.timpush:oppo:8.5.6864",
"com.tencent.timpush:meizu:8.5.6864", "com.tencent.timpush:meizu:8.5.6864",
"com.tencent.timpush:fcm:8.5.6864" "com.tencent.timpush:fcm:8.5.6864",
"com.tencent.timpush:honor:8.5.6864",
"com.tencent.timpush:vivo:8.5.6864"
], ],
"project": { "project": {
"plugins": [ "plugins": [