Przeglądaj źródła

1.修改ios问题

apple 3 lat temu
rodzic
commit
6874931ec9

+ 1 - 1
components/modal/action-jump/action-jump.vue

@@ -63,7 +63,7 @@
 			<canvas class="position-absolute-center" canvas-id="effectCanvas"
 				:style="{ width: canvasW + 'px', height: '164px' }"></canvas>
 		</view>
-		<view class="flex align-center justify-center" style="font-size: 14px;">
+		<view class="flex align-center justify-center" style="font-size: 14px; width:750rpx;">
 			<view style="position: relative;">
 				<image style="width: 135px;height: 75px;" src="../../../static/modal/action-jump/Fill.png"></image>
 				<view class="mid-absolute flex flex-direction align-center justify-center text-white">

+ 38 - 5
manifest.json

@@ -2,8 +2,8 @@
     "name" : "哔蹦",
     "appid" : "__UNI__2635DF5",
     "description" : "",
-    "versionName" : "2.5.19",
-    "versionCode" : 21121602,
+    "versionName" : "2.5.24",
+    "versionCode" : 21122801,
     "transformPx" : false,
     /* 5+App特有相关 */
     "app-plus" : {
@@ -16,6 +16,11 @@
             "autoclose" : true,
             "delay" : 0
         },
+        "safearea" : {
+            "bottom" : {
+                "offset" : "none"
+            }
+        },
         /* 模块配置 */
         "modules" : {
             "OAuth" : {},
@@ -59,7 +64,8 @@
                     "NSPhotoLibraryUsageDescription" : "用户修改头像时,从相册中选择图片作为用户的头像",
                     "NSBluetoothAlwaysUsageDescription" : "连接app外设产品时,需要开启蓝牙交互数据",
                     "NSCameraUsageDescription" : "扫描二维码时,开启摄像头扫描二维码图片"
-                }
+                },
+                "idfa" : false
             },
             /* SDK配置 */
             "sdkConfigs" : {
@@ -77,12 +83,39 @@
                 "androidStyle" : "default",
                 "android" : {
                     "xxhdpi" : "",
-                    "xhdpi" : "D:/BaiduYunDownload/uniapp资源/splash.png"
+                    "xhdpi" : "/Users/apple/Desktop/splash.png"
                 }
             },
             "icons" : {
                 "android" : {
-                    "xhdpi" : "D:/BaiduYunDownload/uniapp资源/icon.png"
+                    "xhdpi" : "unpackage/res/icons/96x96.png",
+                    "hdpi" : "unpackage/res/icons/72x72.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"
+                    }
                 }
             }
         },

+ 4 - 1
pages.json

@@ -30,7 +30,10 @@
 		{
 			"path": "pages/login-page/login/login",
 			"style": {
-				"navigationBarTitleText": "登录"
+				"navigationBarTitleText": "登录",
+				"app-plus": {
+					"softinputNavBar":"none"
+				}
 			}
 		},
 		{

+ 77 - 54
platform/app-plus/subNVue/guide.nvue

@@ -1,13 +1,13 @@
 <template>
 	<view class="guide-wrapper">
 		<view v-if="currentType == 'level-button-tip'" class="guide-container position-relative"
-		@click="buttonMessage('confirm',$event)">
+		style="width: 750rpx;flex: 1;" @click="buttonMessage('confirm',$event)">
 			<!-- top: 55px; 相当于 上间隔 -->
-			<view class="mask-bg-07" :style="{height:guideHeight+'px'}"></view>
+			<view class="mask-bg-07"style="background-color: rgba(0, 0, 0, 0.7);" :style="{height:guideHeight+'px'}"></view>
 			<!-- 中心位置 225 -->
-			<view style="width: 750rpx;height: 231px;">
-				<view style="height: 200px;" class="mask-bg-07">
-					<view class="position-absolute-center" style="top: 0;left:100rpx;">
+			<view style="width: 750rpx;height: 231px; overflow:hidden">
+				<view style="height: 200px; background-color: rgba(0, 0, 0, 0.7);" class="mask-bg-07">
+					<view class="position-absolute-center" style="top: 0;left:100rpx;right: 0;">
 						<image style="width: 488rpx;height: 366rpx;"
 							src="../../../static/modal/level-tip/level-tip-box@2x.png">
 						</image>
@@ -37,7 +37,7 @@
 					<view class="flex-sub mask-bg-07"></view>
 				</view> -->
 				<view style="width: 750rpx;height: 82rpx;" class="flex flex-direction-row">
-					<view class="flex-sub mask-bg-07"></view>
+					<view class="flex-sub mask-bg-07" style="flex: 1;background-color: rgba(0, 0, 0, 0.7);"></view>
 					<view class="position-relative align-center"
 						style="width: 248rpx;height: 104rpx; background-color: rgba(0,0,0,0.7);">
 						<image class="position-absolute-center" style="width: 248rpx;height: 104rpx; top: 18rpx;"
@@ -46,15 +46,14 @@
 							style="margin-top: 38rpx; width: 72rpx; height: 12rpx; background-color: #FFFFFF; border-radius: 18px;">
 						</view>
 					</view>
-					<view class="flex-sub mask-bg-07"></view>
+					<view class="flex-sub mask-bg-07"style="flex: 1;background-color: rgba(0, 0, 0, 0.7);"></view>
 				</view>
 			</view>
 			<!-- 计算剩余空白 -->
-			<view class="mask-bg-07 flex-sub"></view>
+			<view class="mask-bg-07 flex-sub" style="flex: 1;background-color: rgba(0, 0, 0, 0.7);"></view>
 		</view>
-		<view v-if="currentType == 'device-tip'"
-			class="guide-container justify-center align-center position-relative mask-bg-07"
-			@click="buttonMessage('confirm',$event)">
+		<view v-if="currentType == 'device-tip'"class="guide-container justify-center align-center position-relative mask-bg-07"
+		style="width: 750rpx;flex: 1;" @click="buttonMessage('confirm',$event)">
 			<view class="mid">
 				<image class="bind-tip-image" src="../../../static/modal/tip/bind-tip-bg.png"></image>
 				<text class="text-16px text-center text-white"
@@ -69,40 +68,45 @@
 				</view>
 			</view>
 		</view>
-		<view v-if="currentType == 'plan'" class="guide-container position-relative" @click="buttonMessage('confirm',$event)">
+		<view v-if="currentType == 'plan'" class="guide-container position-relative"
+		style="width: 750rpx;flex: 1;" @click="buttonMessage('confirm',$event)">
 
 			<!-- top: 55px; 相当于 上间隔 -->
-			<view class="mask-bg-07" :style="{height:guideHeight+'px'}"></view>
+			<view class="mask-bg-07" style="background-color: rgba(0, 0, 0, 0.7);" :style="{height:guideHeight+'px'}"></view>
 			<!-- 中心位置 225 -->
-			<view style="width: 750rpx;height: 284px;">
-				<view style="height: 220px;" class="mask-bg-07">
-					<view class="position-absolute-center-bottom">
-						<image style="width: 488rpx;height: 366rpx;"
-							src="../../../static/common/subNVue/guide/guide-plan@3x.png">
+			<view style="width: 750rpx;height: 284px;overflow:hidden">
+				<view style="height: 220px;width: 750rpx;background-color: rgba(0, 0, 0, 0.7);" class="mask-bg-07 position-relative">
+					<view class="position-absolute-center-bottom " style="left: 0;right: 0;">
+						<image style="width: 488rpx;height: 366rpx;" src="../../../static/common/subNVue/guide/guide-plan@3x.png">
 						</image>
 					</view>
 					<view class="position-absolute-center">
 						<!-- left:40rpx; -->
 						<text class="text-white text-14px text-lines2"
-							style="top: 20rpx; left:40rpx;  width: 300rpx;">请先定制属于您的专属计划</text>
+							style="left:40rpx;  width: 300rpx;" :style="{top:planTextTop+'px'}">请先定制属于您的专属计划</text>
 					</view>
 				</view>
-				<view style="width: 750rpx;height: 100px;" class="flex flex-direction-row">
+				<view style="width: 750rpx;height: 100px;" class="flex flex-direction-row position-relative">
 					<!-- 32+ 60/2  原本长度62px,去除游戏和视频长度 + 72 左右,设置 134 px-->
-					
-					<view :style="{width: guideRectLeft+'px'}" class="mask-bg-07"></view>
-					<image style="width: 90px;height: 100px; opacity: 0.7;"
-						src="../../../static/common/subNVue/guide/guide-rect-mask.png"></image>
-					<view class="mask-bg-07 flex-sub"></view>
+					<view :style="{width: guideRectLeft+'px'}" class="mask-bg-07" style="background-color: rgba(0, 0, 0, 0.7);"></view>
+					<image style="width: 90px;height: 100px; opacity: 0.7;" src="../../../static/common/subNVue/guide/guide-rect-mask.png"></image>
+					<view  style="flex: 1;background-color: rgba(0, 0, 0, 0.7);"></view>
+					<!-- 用于获取节点适配left -->
+					<view class="position-absolute-center-around flex flex-direction-row" style="width: 750rpx;" >
+						<block  v-for="(item,index) in tabbarList" :key="index">
+							<view :ref="'tabbar'+index" 
+							style="width: 90px;height: 100px; opacity: 0.1;">{{index}}</view>
+						</block>
+					</view>
 				</view>
 			</view>
 			<!-- 计算剩余空白 -->
-			<view class="mask-bg-07 flex-sub"></view>
+			<view class="mask-bg-07 flex-sub" style="flex: 1;background-color: rgba(0, 0, 0, 0.7);"></view>
 
 		</view>
 
 		<view v-if="currentType == 'actionJumpPlay'" class="guide-container position-relative"
-			@click="buttonMessage('confirm',$event)">
+		style="width: 750rpx;flex: 1;" @click="buttonMessage('confirm',$event)">
 			<!-- top: 55px; 相当于 上间隔 -->
 			<view class="mask-bg-07" :style="{height:guideHeight+'px'}"></view>
 			<!-- 中心位置 275 -->
@@ -128,13 +132,13 @@
 			<view class="mask-bg-07 flex-sub"></view>
 		</view>
 		<view v-if="currentType == 'bluetoothConnect'" class="guide-container position-relative"
-			@click="buttonMessage('confirm',$event)">
+		style="width: 750rpx;flex: 1;" @click="buttonMessage('confirm',$event)">
 			<!-- top: 55px; 相当于 上间隔 -->
-			<view class="mask-bg-07" :style="{height:guideHeight+'px'}"></view>
-			<!-- 中心位置 225 -->
-			<view style="width: 750rpx;height: 764rpx;">
-				<view style="height: 596rpx;" class="mask-bg-07">
-					<view class="position-absolute-center-bottom" style="left:31rpx;">
+			<view class="mask-bg-07" style="background-color: rgba(0, 0, 0, 0.7);" :style="{height:guideHeight+'px'}"></view>
+			<!-- 中心位置 225 :class="true?'border-1rpx-bottom-black':''"-->
+			<view style="width: 750rpx;height: 382px;">
+				<view style="height: 298px;background-color: rgba(0, 0, 0, 0.7);" class="mask-bg-07">
+					<view class="position-absolute-center-bottom" style="left:31rpx;right: 0;">
 						<image style="width: 442rpx;height: 372rpx;"
 							src="../../../static/common/subNVue/guide/guide-bluetooth@3x.png">
 						</image>
@@ -150,21 +154,20 @@
 					 -->
 					</view>
 				</view>
-				<view style="width: 750rpx;height: 168rpx;" class="flex flex-direction-row">
+				<view style="width: 750rpx;height: 336px;" class="flex flex-direction-row">
 					<!-- 这里width 当做 left -->
-					<view class="mask-bg-07" :style="{width:guideLeft+'px'}"></view>
+					<view class="mask-bg-07" style="background-color: rgba(0, 0, 0, 0.7);":style="{width:guideLeft+'px'}"></view>
 					<image style="width: 100px;height: 100px; opacity: 0.7;top: -12px;"
 						src="../../../static/common/subNVue/guide/guide-circle-mask.png"></image>
-					<view class="mask-bg-07 flex-sub"></view>
+					<view class="mask-bg-07 flex-sub" style="flex: 1;background-color: rgba(0, 0, 0, 0.7);"></view>
 				</view>
 			</view>
 			<!-- 计算剩余空白 -->
-			<view class="mask-bg-07 flex-sub"></view>
+			<view class="mask-bg-07 flex-sub" style="flex: 1;background-color: rgba(0, 0, 0, 0.7);"></view>
 		</view>
 
-		<view v-if="currentType == 'level-game-tip'"
-			class="guide-container justify-center align-center position-relative mask-bg-07"
-			@click="buttonMessage('confirm',$event)">
+		<view v-if="currentType == 'level-game-tip'"class="guide-container justify-center align-center position-relative mask-bg-07"
+		style="width: 750rpx;flex: 1;"	@click="buttonMessage('confirm',$event)">
 			<view class="game-mid">
 				<view style="height: 278rpx;width: 750rpx;" class="position-relative">
 					<view class="position-absolute-center" style="top: 0;left:0rpx;">
@@ -208,6 +211,10 @@
 </template>
 
 <script>
+	// 注意平台差异
+	// #ifdef APP-NVUE
+	const dom = weex.requireModule('dom')
+	// #endif
 	import {
 		mapState,
 		mapMutations
@@ -292,11 +299,12 @@
 					secondHidden: false
 				},
 				
-				guideRectLeft:62
+				guideRectLeft:62,
+				tabbarList:3,
+				planTextTop:10
 			}
 		},
 		created() {
-			console.error('*********一个guide created')
 			const vm = this;
 			uni.$on('guide-popup', (data) => {
 				vm.bShowComplete = true;
@@ -310,14 +318,6 @@
 				vm.currentType = data.type || 'none';
 				vm.operationItem = data.operationItem;
 				let _viewData = data.item;
-				if(vm.versionCodeState.showGame&&vm.versionCodeState.showVideo){
-					vm.guideRectLeft = 62;
-				}else if(vm.versionCodeState.showGame||vm.versionCodeState.showVideo){
-					vm.guideRectLeft = 89;
-				}else {
-					vm.guideRectLeft = 134;
-				}
-				
 				//获取类型
 				vm.hiddenType = (_viewData && _viewData.hiddenType) || 'none';
 				console.log("初始化时候hidden类型:", vm.hiddenType);
@@ -326,15 +326,38 @@
 					vm.guideHeight = _viewData.top + _viewData.height - _viewData.height / 4 - vm.systemInfo
 						.statusBarHeight - 275;
 				} else if (vm.currentType == "bluetoothConnect") {
-					//+ _viewData.height - _viewData.height / 4 - vm.systemInfo.statusBarHeight
-					vm.guideHeight = _viewData.top - 298;
+					//+ _viewData.height - _viewData.height / 4
+					vm.guideHeight =  _viewData.top - 382 + 55 + 15;//- 298
 					vm.guideLeft = _viewData.left - _viewData.width / 2 + 5;
 				} else if (vm.currentType == "plan") {
-					vm.guideHeight = vm.systemInfo.screenHeight - 284 - 32;
+					vm.guideHeight = vm.systemInfo.safeArea.bottom - 284 - 32;
 					// vm.guideLeft = 55;
+					if(vm.versionCodeState.showGame&&vm.versionCodeState.showVideo){
+						//显示5个栏目 
+						vm.tabbarList = 5;
+					}else if(vm.versionCodeState.showGame||vm.versionCodeState.showVideo){
+						//显示4个栏目 
+						vm.tabbarList = 4;
+					}else {
+						//默认3个
+						vm.tabbarList = 3;	
+					}
+					setTimeout(()=>{
+						dom.getComponentRect(vm.$refs[`tabbar${1}`][0], option => {
+						    console.log('getComponentRect:', option)
+							vm.guideRectLeft= option.size.left;
+							if(vm.tabbarList == 5)
+							{
+								vm.guideRectLeft -= 7;
+							}
+						})
+					},200)
+					
+					vm.planTextTop = vm.systemInfo.platform.indexOf("ios") != -1?0:10;
 				} else if (vm.currentType == "level-button-tip") {
 					//首页提示选择关卡
-					vm.guideHeight = vm.systemInfo.screenHeight - 284 - 32 + 3 + 6;
+					let _iosHeight = vm.systemInfo.platform.indexOf("ios") != -1?1:0;
+					vm.guideHeight = vm.systemInfo.safeArea.bottom - 284 - 32 + 3 + 6 ;
 					const value = uni.getStorageSync('levelButtonPrompt');
 					if (value) {
 						vm.isSelected = value.isSelected;

+ 1 - 1
platform/app-plus/subNVue/reward-popup.nvue

@@ -43,7 +43,7 @@
 				<block v-for="(item, index) in lists" :key="index">
 					<view class="justify-center align-center" style="height: 230rpx; width: 160rpx; margin:5rpx;">
 						<view class="prompt-cell-bg"></view>
-						<image class="position-absolute-center-top" style="height:200rpx;"
+						<image class="position-absolute-center-top" style="height:200rpx;width: 160rpx;"
 							src="../../../static/common/subNVue/prompt-bg@2x.png"></image>
 						<view class="position-absolute-center-top" style="height:140rpx;top: 40rpx;">
 							<image :style="{width:item.width+'px',height:item.height+'px'}" mode="aspectFit"

+ 15 - 1
util/util-css/main-nvue.css

@@ -105,7 +105,11 @@
 	border-style: solid;
 	border-color: #000000;
 }
-
+.border-1rpx-bottom-black {
+	border-width: 1rpx;
+	border-style: solid;
+	border-color: rgba(0,0,0,0.7);
+}
 .border-1rpx-red {
 	border-width: 1rpx;
 	border-style: solid;
@@ -418,6 +422,16 @@
 	align-items: center;
 }
 
+.position-absolute-center-around {
+	position: absolute;
+	top: 0;
+	bottom: 0;
+	left: 0;
+	right: 0;
+	justify-content: space-around;
+	align-items: center;
+}
+
 .position-absolute-right-top {
 	position: absolute;
 	right: 0;