|
@@ -121,20 +121,39 @@
|
|
|
}
|
|
|
if(this.videoType == 1){
|
|
|
var that=this;
|
|
|
- wx.getSetting({
|
|
|
- success(res) {
|
|
|
- if (!res.authSetting['scope.camera']){
|
|
|
- that.show_qx=false;
|
|
|
- }else if (!res.authSetting['scope.record']){
|
|
|
- that.show_qx=false;
|
|
|
- }else{
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pagesGood/' + (that.videoType == 1 ? ('liveDetail?liveId=' + item.liveId + '&roomId=' + item.roomId) :
|
|
|
- ('videoDetail?videoId=' + item.videoId))
|
|
|
- });
|
|
|
+ /*uni.setStorage({
|
|
|
+ key: 'firstTimeLive',
|
|
|
+ data: {
|
|
|
+ headImage: JSON.parse(this.wxLoginData.rawData).avatarUrl,
|
|
|
+ userName: res.data.name,
|
|
|
+ userId: res.data.userId,
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
+ })*/
|
|
|
+ if(uni.getStorageSync("firstTimeLive")==""){
|
|
|
+ uni.setStorage({
|
|
|
+ key: 'firstTimeLive',
|
|
|
+ data: 1
|
|
|
+ })
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pagesGood/' + (that.videoType == 1 ? ('liveDetail?liveId=' + item.liveId + '&roomId=' + item.roomId) :
|
|
|
+ ('videoDetail?videoId=' + item.videoId))
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ wx.getSetting({
|
|
|
+ success(res) {
|
|
|
+ if (!res.authSetting['scope.camera']){
|
|
|
+ that.show_qx=false;
|
|
|
+ }else if (!res.authSetting['scope.record']){
|
|
|
+ that.show_qx=false;
|
|
|
+ }else{
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pagesGood/' + (that.videoType == 1 ? ('liveDetail?liveId=' + item.liveId + '&roomId=' + item.roomId) :
|
|
|
+ ('videoDetail?videoId=' + item.videoId))
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}else{
|
|
|
uni.navigateTo({
|
|
|
url: '/pagesGood/' + (this.videoType == 1 ? ('liveDetail?liveId=' + item.liveId + '&roomId=' + item.roomId) :
|