非正式
This commit is contained in:
parent
d35aa5f450
commit
6e2f78c7e3
2
App.vue
2
App.vue
@ -390,4 +390,4 @@ body {
|
||||
// height: 100% ;
|
||||
// overflow: hidden;
|
||||
// }
|
||||
</style>
|
||||
</style>
|
||||
|
490
manifest.json
490
manifest.json
@ -1,245 +1,245 @@
|
||||
{
|
||||
"name": "无终街",
|
||||
"appid": "__UNI__6DB512D",
|
||||
"description": "admin",
|
||||
"versionName": "4.0.1",
|
||||
"versionCode": 406,
|
||||
"transformPx": false,
|
||||
"sassImplementationName": "node-sass",
|
||||
"app-plus": {
|
||||
"android": {
|
||||
"versionCode": 406, // Android 版本号
|
||||
"versionName": "4.0.1" // 用户看到的版本号
|
||||
},
|
||||
"compatible": {
|
||||
"ignoreVersion": true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
|
||||
},
|
||||
"nvueStyleCompiler": "uni-app",
|
||||
"compilerVersion": 3,
|
||||
/* 5+App特有相关 */
|
||||
"usingComponents": true,
|
||||
"splashscreen": {
|
||||
"alwaysShowBeforeRender": true,
|
||||
"waiting": true,
|
||||
"autoclose": true,
|
||||
"delay": 0
|
||||
},
|
||||
"screenOrientation": ["portrait-primary"],
|
||||
"modules": {
|
||||
"Payment": {},
|
||||
"Share": {},
|
||||
"Geolocation": {},
|
||||
"Maps": {},
|
||||
"Camera": {},
|
||||
"Barcode": {},
|
||||
"VideoPlayer": {},
|
||||
"Push": {},
|
||||
"OAuth": {}
|
||||
},
|
||||
"error": {
|
||||
/* 404错误页面*/
|
||||
"url": "hybrid/html/error.html"
|
||||
},
|
||||
/* 模块配置 */
|
||||
"distribute": {
|
||||
/* 应用发布信息 */
|
||||
"android": {
|
||||
/* android打包配置 */
|
||||
"permissions": [
|
||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.INSTALL_PACKAGES\"/>",
|
||||
"<uses-permission android:name=\"android.permission.INTERNET\"/>",
|
||||
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
|
||||
"<uses-permission android:name=\"android.permission.USE_FINGERPRINT\"/>",
|
||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||
],
|
||||
"abiFilters": ["armeabi-v7a", "arm64-v8a", "x86"],
|
||||
"schemes": "wuzhongjie",
|
||||
"minSdkVersion": 21,
|
||||
"targetSdkVersion": 34
|
||||
},
|
||||
"ios": {
|
||||
"idfa": false,
|
||||
"privacyDescription": {
|
||||
"NSPhotoLibraryUsageDescription": "需要用与评论上传,头像上传功能",
|
||||
"NSPhotoLibraryAddUsageDescription": "保存商品图片到本地",
|
||||
"NSCameraUsageDescription": "需要用与扫描二维码和商品评论图片拍摄",
|
||||
"NSLocationAlwaysAndWhenInUseUsageDescription": "可根据位置向您介绍附近的视频信息,提升浏览体验,或帮助你在发布的信息中展示位置,不授权不影响app正常使用",
|
||||
"NSMicrophoneUsageDescription": "用户上传视频时需使用音频信息"
|
||||
},
|
||||
"capabilities": {
|
||||
"entitlements": {
|
||||
"com.apple.developer.associated-domains": ["applinks:wuzhongjie.com.cn"]
|
||||
}
|
||||
},
|
||||
"urltypes": "wuzhongjie",
|
||||
"dSYMs": false
|
||||
},
|
||||
/* ios打包配置 */
|
||||
"sdkConfigs": {
|
||||
"payment": {
|
||||
"weixin": {
|
||||
"__platform__": ["ios", "android"],
|
||||
"appid": "wxebcdaea31881caab",
|
||||
"UniversalLinks": "https://wuzhongjie.com.cn/"
|
||||
},
|
||||
"alipay": {
|
||||
"__platform__": ["ios", "android"]
|
||||
}
|
||||
},
|
||||
"ad": {},
|
||||
"share": {
|
||||
"weixin": {
|
||||
"appid": "wxebcdaea31881caab",
|
||||
"UniversalLinks": "https://wuzhongjie.com.cn/"
|
||||
}
|
||||
},
|
||||
"oauth": {
|
||||
"weixin": {
|
||||
"appid": "wxebcdaea31881caab",
|
||||
"UniversalLinks": "https://wuzhongjie.com.cn/"
|
||||
},
|
||||
"apple": {}
|
||||
},
|
||||
"geolocation": {
|
||||
"amap": {
|
||||
"__platform__": ["ios", "android"],
|
||||
"appkey_ios": "f463d3350efe63f8be5d9a62f24d0aab",
|
||||
"appkey_android": "fb3f1ccb34616c70f068aa950f3e27df"
|
||||
},
|
||||
"system": {
|
||||
"__platform__": ["ios", "android"]
|
||||
}
|
||||
},
|
||||
"maps": {
|
||||
"amap": {
|
||||
"appkey_ios": "f463d3350efe63f8be5d9a62f24d0aab",
|
||||
"appkey_android": "fb3f1ccb34616c70f068aa950f3e27df"
|
||||
}
|
||||
},
|
||||
"push": {}
|
||||
},
|
||||
"icons": {
|
||||
"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": {
|
||||
"appstore": "unpackage/res/icons/1024x1024.png",
|
||||
"ipad": {
|
||||
"app": "unpackage/res/icons/76x76.png",
|
||||
"app@2x": "unpackage/res/icons/152x152.png",
|
||||
"notification": "unpackage/res/icons/20x20.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": {
|
||||
"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": {
|
||||
"iosStyle": "common",
|
||||
"ios": {
|
||||
"storyboard": "CustomStoryboard.zip"
|
||||
},
|
||||
"androidStyle": "default",
|
||||
"android": {
|
||||
"hdpi": "CustomStartPage/start-page.9.png",
|
||||
"xhdpi": "CustomStartPage/start-page.9.png",
|
||||
"xxhdpi": "CustomStartPage/start-page.9.png"
|
||||
},
|
||||
"useOriginalMsgbox": true
|
||||
}
|
||||
},
|
||||
"nativePlugins": {}
|
||||
},
|
||||
"permission": {
|
||||
"scope.userLocation": {
|
||||
"desc": "你的位置信息将用于高德地图的效果展示"
|
||||
}
|
||||
},
|
||||
/* SDK配置 */
|
||||
"quickapp": {},
|
||||
/* 快应用特有相关 */
|
||||
"mp-weixin": {
|
||||
/* 小程序特有相关 */
|
||||
"usingComponents": true,
|
||||
"appid": "wx6f10f29075dc1b0b",
|
||||
"optimization": {
|
||||
"subPackages": true
|
||||
},
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
"minified": true,
|
||||
"postcss": false,
|
||||
"es6": true
|
||||
},
|
||||
"permission": {
|
||||
"scope.userLocation": {
|
||||
"desc": "位置信息将用于高德地图的效果展示"
|
||||
}
|
||||
},
|
||||
"plugins": {
|
||||
"myPlugin": {
|
||||
"version": "1.1.0",
|
||||
"provider": "wx738958e0f4c894f9"
|
||||
},
|
||||
"live-player-plugin": {
|
||||
"version": "1.3.0",
|
||||
"provider": "wx2b03c6e691cd7370"
|
||||
}
|
||||
}
|
||||
},
|
||||
"h5": {
|
||||
"devServer": {
|
||||
"disableHostCheck": true
|
||||
},
|
||||
"router": {
|
||||
"mode": "history",
|
||||
"base": ""
|
||||
},
|
||||
"sdkConfigs": {
|
||||
"maps": {}
|
||||
},
|
||||
"optimization": {
|
||||
"treeShaking": {
|
||||
"enable": true
|
||||
}
|
||||
},
|
||||
"title": "lilishop",
|
||||
"template": ""
|
||||
}
|
||||
}
|
||||
{
|
||||
"name" : "无终街",
|
||||
"appid" : "__UNI__6DB512D",
|
||||
"description" : "admin",
|
||||
"versionName" : "4.0.2",
|
||||
"versionCode" : 406,
|
||||
"transformPx" : false,
|
||||
"sassImplementationName" : "node-sass",
|
||||
"app-plus" : {
|
||||
"android" : {
|
||||
"versionCode" : 406, // Android 版本号
|
||||
"versionName" : "4.0.2" // 用户看到的版本号
|
||||
},
|
||||
"compatible" : {
|
||||
"ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
|
||||
},
|
||||
"nvueStyleCompiler" : "uni-app",
|
||||
"compilerVersion" : 3,
|
||||
/* 5+App特有相关 */
|
||||
"usingComponents" : true,
|
||||
"splashscreen" : {
|
||||
"alwaysShowBeforeRender" : true,
|
||||
"waiting" : true,
|
||||
"autoclose" : true,
|
||||
"delay" : 0
|
||||
},
|
||||
"screenOrientation" : [ "portrait-primary" ],
|
||||
"modules" : {
|
||||
"Payment" : {},
|
||||
"Share" : {},
|
||||
"Geolocation" : {},
|
||||
"Maps" : {},
|
||||
"Camera" : {},
|
||||
"Barcode" : {},
|
||||
"VideoPlayer" : {},
|
||||
"Push" : {},
|
||||
"OAuth" : {}
|
||||
},
|
||||
"error" : {
|
||||
/* 404错误页面*/
|
||||
"url" : "hybrid/html/error.html"
|
||||
},
|
||||
/* 模块配置 */
|
||||
"distribute" : {
|
||||
/* 应用发布信息 */
|
||||
"android" : {
|
||||
/* android打包配置 */
|
||||
"permissions" : [
|
||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.INSTALL_PACKAGES\"/>",
|
||||
"<uses-permission android:name=\"android.permission.INTERNET\"/>",
|
||||
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
|
||||
"<uses-permission android:name=\"android.permission.USE_FINGERPRINT\"/>",
|
||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||
],
|
||||
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
|
||||
"schemes" : "wuzhongjie",
|
||||
"minSdkVersion" : 21,
|
||||
"targetSdkVersion" : 34
|
||||
},
|
||||
"ios" : {
|
||||
"idfa" : false,
|
||||
"privacyDescription" : {
|
||||
"NSPhotoLibraryUsageDescription" : "需要用与评论上传,头像上传功能",
|
||||
"NSPhotoLibraryAddUsageDescription" : "保存商品图片到本地",
|
||||
"NSCameraUsageDescription" : "需要用与扫描二维码和商品评论图片拍摄",
|
||||
"NSLocationAlwaysAndWhenInUseUsageDescription" : "可根据位置向您介绍附近的视频信息,提升浏览体验,或帮助你在发布的信息中展示位置,不授权不影响app正常使用",
|
||||
"NSMicrophoneUsageDescription" : "用户上传视频时需使用音频信息"
|
||||
},
|
||||
"capabilities" : {
|
||||
"entitlements" : {
|
||||
"com.apple.developer.associated-domains" : [ "applinks:wuzhongjie.com.cn" ]
|
||||
}
|
||||
},
|
||||
"urltypes" : "wuzhongjie",
|
||||
"dSYMs" : false
|
||||
},
|
||||
/* ios打包配置 */
|
||||
"sdkConfigs" : {
|
||||
"payment" : {
|
||||
"weixin" : {
|
||||
"__platform__" : [ "ios", "android" ],
|
||||
"appid" : "wxebcdaea31881caab",
|
||||
"UniversalLinks" : "https://wuzhongjie.com.cn/"
|
||||
},
|
||||
"alipay" : {
|
||||
"__platform__" : [ "ios", "android" ]
|
||||
}
|
||||
},
|
||||
"ad" : {},
|
||||
"share" : {
|
||||
"weixin" : {
|
||||
"appid" : "wxebcdaea31881caab",
|
||||
"UniversalLinks" : "https://wuzhongjie.com.cn/"
|
||||
}
|
||||
},
|
||||
"oauth" : {
|
||||
"weixin" : {
|
||||
"appid" : "wxebcdaea31881caab",
|
||||
"UniversalLinks" : "https://wuzhongjie.com.cn/"
|
||||
},
|
||||
"apple" : {}
|
||||
},
|
||||
"geolocation" : {
|
||||
"amap" : {
|
||||
"__platform__" : [ "ios", "android" ],
|
||||
"appkey_ios" : "f463d3350efe63f8be5d9a62f24d0aab",
|
||||
"appkey_android" : "fb3f1ccb34616c70f068aa950f3e27df"
|
||||
},
|
||||
"system" : {
|
||||
"__platform__" : [ "ios", "android" ]
|
||||
}
|
||||
},
|
||||
"maps" : {
|
||||
"amap" : {
|
||||
"appkey_ios" : "f463d3350efe63f8be5d9a62f24d0aab",
|
||||
"appkey_android" : "fb3f1ccb34616c70f068aa950f3e27df"
|
||||
}
|
||||
},
|
||||
"push" : {}
|
||||
},
|
||||
"icons" : {
|
||||
"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" : {
|
||||
"appstore" : "unpackage/res/icons/1024x1024.png",
|
||||
"ipad" : {
|
||||
"app" : "unpackage/res/icons/76x76.png",
|
||||
"app@2x" : "unpackage/res/icons/152x152.png",
|
||||
"notification" : "unpackage/res/icons/20x20.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" : {
|
||||
"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" : {
|
||||
"iosStyle" : "common",
|
||||
"ios" : {
|
||||
"storyboard" : "CustomStoryboard.zip"
|
||||
},
|
||||
"androidStyle" : "default",
|
||||
"android" : {
|
||||
"hdpi" : "CustomStartPage/start-page.9.png",
|
||||
"xhdpi" : "CustomStartPage/start-page.9.png",
|
||||
"xxhdpi" : "CustomStartPage/start-page.9.png"
|
||||
},
|
||||
"useOriginalMsgbox" : true
|
||||
}
|
||||
},
|
||||
"nativePlugins" : {}
|
||||
},
|
||||
"permission" : {
|
||||
"scope.userLocation" : {
|
||||
"desc" : "你的位置信息将用于高德地图的效果展示"
|
||||
}
|
||||
},
|
||||
/* SDK配置 */
|
||||
"quickapp" : {},
|
||||
/* 快应用特有相关 */
|
||||
"mp-weixin" : {
|
||||
/* 小程序特有相关 */
|
||||
"usingComponents" : true,
|
||||
"appid" : "wx6f10f29075dc1b0b",
|
||||
"optimization" : {
|
||||
"subPackages" : true
|
||||
},
|
||||
"setting" : {
|
||||
"urlCheck" : false,
|
||||
"minified" : true,
|
||||
"postcss" : false,
|
||||
"es6" : true
|
||||
},
|
||||
"permission" : {
|
||||
"scope.userLocation" : {
|
||||
"desc" : "位置信息将用于高德地图的效果展示"
|
||||
}
|
||||
},
|
||||
"plugins" : {
|
||||
"myPlugin" : {
|
||||
"version" : "1.1.0",
|
||||
"provider" : "wx738958e0f4c894f9"
|
||||
},
|
||||
"live-player-plugin" : {
|
||||
"version" : "1.3.0",
|
||||
"provider" : "wx2b03c6e691cd7370"
|
||||
}
|
||||
}
|
||||
},
|
||||
"h5" : {
|
||||
"devServer" : {
|
||||
"disableHostCheck" : true
|
||||
},
|
||||
"router" : {
|
||||
"mode" : "history",
|
||||
"base" : ""
|
||||
},
|
||||
"sdkConfigs" : {
|
||||
"maps" : {}
|
||||
},
|
||||
"optimization" : {
|
||||
"treeShaking" : {
|
||||
"enable" : true
|
||||
}
|
||||
},
|
||||
"title" : "lilishop",
|
||||
"template" : ""
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,10 @@
|
||||
@onAnimationEnd="animationfinish"
|
||||
>
|
||||
<swiper-item>
|
||||
<video-local ref="videoLocal" @isno="isno"></video-local>
|
||||
<video-local
|
||||
ref="videoLocal"
|
||||
@isno="isno"
|
||||
></video-local>
|
||||
</swiper-item>
|
||||
<swiper-item>
|
||||
<!-- <view
|
||||
@ -69,28 +72,27 @@
|
||||
>
|
||||
{{ tab.name }}
|
||||
</text>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<!-- 二级 tab -->
|
||||
<view v-if="handleIsnoEvent && tabList[tabIndex] && tabList[tabIndex].child" style="flex-direction: row; flex: 1; justify-content: space-around">
|
||||
<view
|
||||
class="uni-tab-item"
|
||||
v-for="(childTab, childIndex) in tabList[tabIndex].child"
|
||||
:key="childTab.id"
|
||||
:id="childTab.id"
|
||||
:data-parent-index="tabIndex"
|
||||
:data-child-index="childIndex"
|
||||
@click="onChildTabTap(tabIndex, childIndex,childTab)"
|
||||
v-if="handleIsnoEvent && tabList[tabIndex] && tabList[tabIndex].child"
|
||||
style="flex-direction: row; flex: 1; justify-content: space-around"
|
||||
>
|
||||
<text
|
||||
class="uni-tab-item-title scroll-view-animation"
|
||||
<view
|
||||
class="uni-tab-item"
|
||||
v-for="(childTab, childIndex) in tabList[tabIndex].child"
|
||||
:key="childTab.id"
|
||||
:id="childTab.id"
|
||||
:data-parent-index="tabIndex"
|
||||
:data-child-index="childIndex"
|
||||
@click="onChildTabTap(tabIndex, childIndex, childTab)"
|
||||
>
|
||||
{{ childTab.name }}
|
||||
</text>
|
||||
<text class="uni-tab-item-title scroll-view-animation">
|
||||
{{ childTab.name }}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="scroll-view-indicator">
|
||||
<view
|
||||
ref="underline"
|
||||
@ -155,8 +157,8 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
handleIsnoEvent:1,
|
||||
childTabIndex:0,
|
||||
handleIsnoEvent: 1,
|
||||
childTabIndex: 0,
|
||||
channel: null,
|
||||
canSwipe: true,
|
||||
isTap: false,
|
||||
@ -172,21 +174,20 @@ export default {
|
||||
refreshList: [], // 下拉刷新后获得的新的列表
|
||||
pagingList: [], // 分页list
|
||||
refresh: 0, // 从me页面传来的refresh,用于退出登录后重新刷新当前页的视频
|
||||
|
||||
|
||||
pageList: ['videoLocal', 'videoFollowComp', 'videoComp'],
|
||||
tabList: [
|
||||
{
|
||||
id: 'tab' + 0,
|
||||
name: '同城',
|
||||
pageid: 1,
|
||||
child:[
|
||||
{id: 'tabs' + 1,name: '房地产',pageid: 9},
|
||||
{id: 'tabs' + 2,name: '医疗',pageid: 10},
|
||||
{id: 'tabs' + 3,name: '教育',pageid: 11},
|
||||
{id: 'tabs' + 4,name: '商贸',pageid: 12},
|
||||
{id: 'tabs' +5,name: '商超',pageid: 13},
|
||||
{id: 'tabs' + 6,name: '特色',pageid: 14},
|
||||
|
||||
child: [
|
||||
{ id: 'tabs' + 1, name: '房地产', pageid: 9 },
|
||||
{ id: 'tabs' + 2, name: '医疗', pageid: 10 },
|
||||
{ id: 'tabs' + 3, name: '教育', pageid: 11 },
|
||||
{ id: 'tabs' + 4, name: '商贸', pageid: 12 },
|
||||
{ id: 'tabs' + 5, name: '商超', pageid: 13 },
|
||||
{ id: 'tabs' + 6, name: '特色', pageid: 14 }
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -308,13 +309,13 @@ export default {
|
||||
|
||||
// },
|
||||
methods: {
|
||||
isno(e){
|
||||
console.log(e,'---')
|
||||
this.handleIsnoEvent=e
|
||||
isno(e) {
|
||||
console.log(e, '---');
|
||||
this.handleIsnoEvent = e;
|
||||
},
|
||||
onChildTabTap(i,o,item){
|
||||
this.childTabIndex=o
|
||||
uni.navigateTo({url:`/pages/tabbar/vlog/vlindex?name=${item.name}`});
|
||||
onChildTabTap(i, o, item) {
|
||||
this.childTabIndex = o;
|
||||
uni.navigateTo({ url: `/pages/tabbar/vlog/vlindex?name=${item.name}` });
|
||||
},
|
||||
handleHuaWei() {
|
||||
// 处理华为机型问题
|
||||
@ -464,7 +465,9 @@ export default {
|
||||
},
|
||||
animationfinish(e) {
|
||||
let index = e.detail.current;
|
||||
if (index != this._lastTabIndex) {
|
||||
console.log('当前索引' + index);
|
||||
console.log('之前的索引' + this._lastTabIndex);
|
||||
if (index != this._lastTabIndex && index <= 2) {
|
||||
// 成功切换
|
||||
var beforeProp = this.pageList[this._lastTabIndex];
|
||||
var indexProp = this.pageList[index];
|
||||
@ -696,12 +699,12 @@ export default {
|
||||
.uni-tab-item-title-active {
|
||||
color: #ffffff;
|
||||
}
|
||||
.uni-tab-item-title-active-two{
|
||||
.uni-tab-item-title-active-two {
|
||||
color: #ffffff;
|
||||
background:red;
|
||||
width:100rpx;
|
||||
background: red;
|
||||
width: 100rpx;
|
||||
text-align: center;
|
||||
border-radius:50%
|
||||
border-radius: 50%;
|
||||
}
|
||||
.scroll-view-indicator {
|
||||
position: relative;
|
||||
|
Loading…
x
Reference in New Issue
Block a user