优化禁用弹窗
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//打包时修改env的值即可
|
//打包时修改env的值即可
|
||||||
const env = 'test' //test,production,local
|
const env = 'production' //test,production,local
|
||||||
|
|
||||||
export const encryptKey = '1234567890123456' // http数据加解密的key
|
export const encryptKey = '1234567890123456' // http数据加解密的key
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -83,6 +83,13 @@ function commonsProcess(showLoading, httpReqCallback, isreturm) {
|
|||||||
isShowErrorToast = true;
|
isShowErrorToast = true;
|
||||||
return Promise.reject(bodyData); // 跳转到catch函数
|
return Promise.reject(bodyData); // 跳转到catch函数
|
||||||
}
|
}
|
||||||
|
if (bodyData.code == 701) {
|
||||||
|
uni.clearStorageSync()
|
||||||
|
uni.reLaunch({
|
||||||
|
url: '/pages/login/login'
|
||||||
|
})
|
||||||
|
return Promise.reject(bodyData); // 跳转到catch函数
|
||||||
|
}
|
||||||
if (bodyData.code == 702) {
|
if (bodyData.code == 702) {
|
||||||
return Promise.reject(bodyData); // 跳转到catch函数
|
return Promise.reject(bodyData); // 跳转到catch函数
|
||||||
}
|
}
|
||||||
|
|||||||
310
manifest.json
310
manifest.json
@@ -1,156 +1,156 @@
|
|||||||
{
|
{
|
||||||
"name": "斯耀短剧",
|
"name" : "斯耀短剧",
|
||||||
"appid": "__UNI__E0B05B1",
|
"appid" : "__UNI__E0B05B1",
|
||||||
"description": "",
|
"description" : "",
|
||||||
"versionName": "1.3.0",
|
"versionName" : "1.3.0",
|
||||||
"versionCode": 130,
|
"versionCode" : 130,
|
||||||
"transformPx": false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus": {
|
"app-plus" : {
|
||||||
"app": {
|
"app" : {
|
||||||
"name": "斯耀短剧1",
|
"name" : "斯耀短剧1",
|
||||||
"pkgName": "com.hnsiyao.duanju" // 安卓包名
|
"pkgName" : "com.hnsiyao.duanju" // 安卓包名
|
||||||
},
|
},
|
||||||
"ios": {
|
"ios" : {
|
||||||
"name": "顺享短剧2",
|
"name" : "顺享短剧2",
|
||||||
"app-category": "public.app-category.utilities",
|
"app-category" : "public.app-category.utilities",
|
||||||
"bundleID": "com.hnsiyao.duanju" // iOS bundle ID
|
"bundleID" : "com.hnsiyao.duanju" // iOS bundle ID
|
||||||
},
|
},
|
||||||
"usingComponents": true,
|
"usingComponents" : true,
|
||||||
"nvueStyleCompiler": "uni-app",
|
"nvueStyleCompiler" : "uni-app",
|
||||||
"compilerVersion": 3,
|
"compilerVersion" : 3,
|
||||||
"splashscreen": {
|
"splashscreen" : {
|
||||||
"alwaysShowBeforeRender": true,
|
"alwaysShowBeforeRender" : true,
|
||||||
"waiting": true,
|
"waiting" : true,
|
||||||
"autoclose": true,
|
"autoclose" : true,
|
||||||
"delay": 0
|
"delay" : 0
|
||||||
},
|
},
|
||||||
/* 模块配置 */
|
/* 模块配置 */
|
||||||
"modules": {
|
"modules" : {
|
||||||
"Camera": {},
|
"Camera" : {},
|
||||||
"Push": {},
|
"Push" : {},
|
||||||
"VideoPlayer": {},
|
"VideoPlayer" : {},
|
||||||
"Canvas": "nvue canvas", //使用Canvas模块
|
"Canvas" : "nvue canvas", //使用Canvas模块
|
||||||
"OAuth": {}
|
"OAuth" : {}
|
||||||
},
|
},
|
||||||
/* 应用发布信息 */
|
/* 应用发布信息 */
|
||||||
"distribute": {
|
"distribute" : {
|
||||||
/* android打包配置 */
|
/* android打包配置 */
|
||||||
"android": {
|
"android" : {
|
||||||
"permissions": [
|
"permissions" : [
|
||||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||||
],
|
],
|
||||||
"abiFilters": ["armeabi-v7a", "arm64-v8a", "x86"],
|
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
|
||||||
"schemes": "com.hnsiyao.duanju",
|
"schemes" : "com.hnsiyao.duanju",
|
||||||
"minSdkVersion": 28,
|
"minSdkVersion" : 28,
|
||||||
"targetSdkVersion": 33
|
"targetSdkVersion" : 33
|
||||||
},
|
},
|
||||||
/* ios打包配置 */
|
/* ios打包配置 */
|
||||||
"ios": {
|
"ios" : {
|
||||||
"privacyDescription": {
|
"privacyDescription" : {
|
||||||
"NSPhotoLibraryUsageDescription": "获取您的相册读取权限,目的是为了在我的资料页面使用相册读取功能,修改上传头像",
|
"NSPhotoLibraryUsageDescription" : "获取您的相册读取权限,目的是为了在我的资料页面使用相册读取功能,修改上传头像",
|
||||||
"NSCameraUsageDescription": "获取您的摄像头权限,目的是为了在我的资料页面使用摄像头功能,修改上传头像"
|
"NSCameraUsageDescription" : "获取您的摄像头权限,目的是为了在我的资料页面使用摄像头功能,修改上传头像"
|
||||||
},
|
},
|
||||||
"urltypes": "com.hnsiyao.duanju",
|
"urltypes" : "com.hnsiyao.duanju",
|
||||||
"dSYMs": false
|
"dSYMs" : false
|
||||||
},
|
},
|
||||||
/* SDK配置 */
|
/* SDK配置 */
|
||||||
"sdkConfigs": {
|
"sdkConfigs" : {
|
||||||
"push": {
|
"push" : {
|
||||||
"unipush": {}
|
"unipush" : {}
|
||||||
},
|
},
|
||||||
"ad": {
|
"ad" : {
|
||||||
"ks": {}
|
"ks" : {}
|
||||||
},
|
},
|
||||||
"oauth": {
|
"oauth" : {
|
||||||
"weixin": {
|
"weixin" : {
|
||||||
"appid": "wx5001ff1af6c4781f",
|
"appid" : "wx5001ff1af6c4781f",
|
||||||
"UniversalLinks": ""
|
"UniversalLinks" : ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"abiFilters": ["armeabi-v7a", "arm64-v8a", "x86"],
|
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
|
||||||
"minSdkVersion": 28,
|
"minSdkVersion" : 28,
|
||||||
"targetSdkVersion": 33,
|
"targetSdkVersion" : 33,
|
||||||
"schemes": "com.hnsiyao.duanju",
|
"schemes" : "com.hnsiyao.duanju",
|
||||||
"icons": {
|
"icons" : {
|
||||||
"android": {
|
"android" : {
|
||||||
"hdpi": "unpackage/res/icons/72x72.png",
|
"hdpi" : "unpackage/res/icons/72x72.png",
|
||||||
"xhdpi": "unpackage/res/icons/96x96.png",
|
"xhdpi" : "unpackage/res/icons/96x96.png",
|
||||||
"xxhdpi": "unpackage/res/icons/144x144.png",
|
"xxhdpi" : "unpackage/res/icons/144x144.png",
|
||||||
"xxxhdpi": "unpackage/res/icons/192x192.png"
|
"xxxhdpi" : "unpackage/res/icons/192x192.png"
|
||||||
},
|
},
|
||||||
"ios": {
|
"ios" : {
|
||||||
"appstore": "unpackage/res/icons/1024x1024.png",
|
"appstore" : "unpackage/res/icons/1024x1024.png",
|
||||||
"ipad": {
|
"ipad" : {
|
||||||
"app": "unpackage/res/icons/76x76.png",
|
"app" : "unpackage/res/icons/76x76.png",
|
||||||
"app@2x": "unpackage/res/icons/152x152.png",
|
"app@2x" : "unpackage/res/icons/152x152.png",
|
||||||
"notification": "unpackage/res/icons/20x20.png",
|
"notification" : "unpackage/res/icons/20x20.png",
|
||||||
"notification@2x": "unpackage/res/icons/40x40.png",
|
"notification@2x" : "unpackage/res/icons/40x40.png",
|
||||||
"proapp@2x": "unpackage/res/icons/167x167.png",
|
"proapp@2x" : "unpackage/res/icons/167x167.png",
|
||||||
"settings": "unpackage/res/icons/29x29.png",
|
"settings" : "unpackage/res/icons/29x29.png",
|
||||||
"settings@2x": "unpackage/res/icons/58x58.png",
|
"settings@2x" : "unpackage/res/icons/58x58.png",
|
||||||
"spotlight": "unpackage/res/icons/40x40.png",
|
"spotlight" : "unpackage/res/icons/40x40.png",
|
||||||
"spotlight@2x": "unpackage/res/icons/80x80.png"
|
"spotlight@2x" : "unpackage/res/icons/80x80.png"
|
||||||
},
|
},
|
||||||
"iphone": {
|
"iphone" : {
|
||||||
"app@2x": "unpackage/res/icons/120x120.png",
|
"app@2x" : "unpackage/res/icons/120x120.png",
|
||||||
"app@3x": "unpackage/res/icons/180x180.png",
|
"app@3x" : "unpackage/res/icons/180x180.png",
|
||||||
"notification@2x": "unpackage/res/icons/40x40.png",
|
"notification@2x" : "unpackage/res/icons/40x40.png",
|
||||||
"notification@3x": "unpackage/res/icons/60x60.png",
|
"notification@3x" : "unpackage/res/icons/60x60.png",
|
||||||
"settings@2x": "unpackage/res/icons/58x58.png",
|
"settings@2x" : "unpackage/res/icons/58x58.png",
|
||||||
"settings@3x": "unpackage/res/icons/87x87.png",
|
"settings@3x" : "unpackage/res/icons/87x87.png",
|
||||||
"spotlight@2x": "unpackage/res/icons/80x80.png",
|
"spotlight@2x" : "unpackage/res/icons/80x80.png",
|
||||||
"spotlight@3x": "unpackage/res/icons/120x120.png"
|
"spotlight@3x" : "unpackage/res/icons/120x120.png"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/* 快应用特有相关 */
|
/* 快应用特有相关 */
|
||||||
"quickapp": {},
|
"quickapp" : {},
|
||||||
/* 小程序特有相关 */
|
/* 小程序特有相关 */
|
||||||
"mp-weixin": {
|
"mp-weixin" : {
|
||||||
"appid": "",
|
"appid" : "",
|
||||||
"setting": {
|
"setting" : {
|
||||||
"urlCheck": false
|
"urlCheck" : false
|
||||||
},
|
},
|
||||||
"usingComponents": true,
|
"usingComponents" : true,
|
||||||
"mergeVirtualHostAttributes": true
|
"mergeVirtualHostAttributes" : true
|
||||||
},
|
},
|
||||||
"mp-alipay": {
|
"mp-alipay" : {
|
||||||
"usingComponents": true
|
"usingComponents" : true
|
||||||
},
|
},
|
||||||
"mp-baidu": {
|
"mp-baidu" : {
|
||||||
"usingComponents": true
|
"usingComponents" : true
|
||||||
},
|
},
|
||||||
"mp-toutiao": {
|
"mp-toutiao" : {
|
||||||
"usingComponents": true,
|
"usingComponents" : true,
|
||||||
"mergeVirtualHostAttributes": true
|
"mergeVirtualHostAttributes" : true
|
||||||
},
|
},
|
||||||
"uniStatistics": {
|
"uniStatistics" : {
|
||||||
"enable": false
|
"enable" : false
|
||||||
},
|
},
|
||||||
"vueVersion": "3",
|
"vueVersion" : "3",
|
||||||
"h5": {
|
"h5" : {
|
||||||
"title": "斯耀短剧",
|
"title" : "斯耀短剧",
|
||||||
"template": "template.html",
|
"template" : "template.html",
|
||||||
"router": {
|
"router" : {
|
||||||
"mode": "history"
|
"mode" : "history"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ onShow(() => {
|
|||||||
// datas.setindexdata = $common.setversion
|
// datas.setindexdata = $common.setversion
|
||||||
// console.log(datas.setindexdata,'seaeasdas')
|
// console.log(datas.setindexdata,'seaeasdas')
|
||||||
// }
|
// }
|
||||||
|
getrecomVideo();
|
||||||
});
|
});
|
||||||
|
|
||||||
const disableMaskVisable = ref(false);
|
const disableMaskVisable = ref(false);
|
||||||
@@ -139,7 +140,6 @@ let datas = reactive({
|
|||||||
onLoad(() => {
|
onLoad(() => {
|
||||||
versionUpdate();
|
versionUpdate();
|
||||||
getMsg();
|
getMsg();
|
||||||
getrecomVideo();
|
|
||||||
});
|
});
|
||||||
onReady(() => {
|
onReady(() => {
|
||||||
if (!uni.getStorageSync('ruleShow')) {
|
if (!uni.getStorageSync('ruleShow')) {
|
||||||
|
|||||||
@@ -1,7 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="min-page">
|
<view class="min-page">
|
||||||
<!-- <up-button @click="toDetail">toDetail</up-button> -->
|
<!-- <up-button @click="toDetail">toDetail</up-button> -->
|
||||||
<my-video-list isCommand isTabbar v-if="state.list.length" @swiperChange="swiperChange" :list="state.list" @update="update" :info="state"></my-video-list>
|
<my-video-list
|
||||||
|
isCommand
|
||||||
|
isTabbar
|
||||||
|
v-if="state.list.length"
|
||||||
|
@swiperChange="swiperChange"
|
||||||
|
:list="state.list"
|
||||||
|
@update="update"
|
||||||
|
:info="state"
|
||||||
|
@errorHandle="errorHandle"
|
||||||
|
></my-video-list>
|
||||||
</view>
|
</view>
|
||||||
<view class="mask" v-if="maskShow">
|
<view class="mask" v-if="maskShow">
|
||||||
<view class="content">
|
<view class="content">
|
||||||
@@ -45,6 +54,17 @@ const state = reactive({
|
|||||||
price: 0,
|
price: 0,
|
||||||
title: ''
|
title: ''
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 接收错误信息
|
||||||
|
const errorHandle = (error) => {
|
||||||
|
console.log('errorHandle.60===', error);
|
||||||
|
if (error.code == 702) {
|
||||||
|
maskShow.value = true;
|
||||||
|
} else {
|
||||||
|
maskShow.value = false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
async function init() {
|
async function init() {
|
||||||
try {
|
try {
|
||||||
const res = await Api.tuijianVideo(options);
|
const res = await Api.tuijianVideo(options);
|
||||||
|
|||||||
Reference in New Issue
Block a user