安卓应用市场提交失败 uni-app
安卓应用市场提交失败 uni-app
开发环境 | 版本号 | 项目创建方式 |
---|---|---|
Windows | win11 | HBuilderX |
产品分类:uniapp/App
PC开发环境操作系统:Windows
手机系统:Android
手机系统版本号:Android 15
手机厂商:华为
手机机型:magic6
页面类型:vue
vue版本:vue3
打包方式:云端
示例代码:
onLaunch: function () {
console.log('App Launch')
var firstOpen = uni.getStorageSync('firstOpen');
// var firstOpen = 0;
if (firstOpen != null && firstOpen == 1) {
uni.switchTab({
url: '/pages/home/home'
});
} else {
uni.reLaunch({
url: '/pages/guidePage/guidePage'
})
}
// uni.reLaunch({
// url: '/pages/guidePage/guidePage'
// })
},
<template>
<!-- #ifdef APP -->
<scroll-view style="flex:1">
<!-- #endif -->
<swiper class="swiper" :indicator-dots="false" :style="{'height':windowHeight}"
@animationfinish="animationfinish">
<swiper-item>
<view class="swiper-item" :style="{'height':windowHeight}">
<image src="../../static/image/home1.jpg" :style="{'height':windowHeight}" class="filtrate_img_1">
</image>
</view>
</swiper-item>
<swiper-item>
<view class="swiper-item" :style="{'height':windowHeight}">
<image src="../../static/image/home2.jpg" :style="{'height':windowHeight}" class="filtrate_img_1">
</image>
</view>
</swiper-item>
<swiper-item>
<view class="swiper-item" :style="{'height':windowHeight}">
<image src="../../static/image/home3.jpg" :style="{'height':windowHeight}" class="filtrate_img_1">
</image>
</view>
</swiper-item>
<swiper-item>
<view class="swiper-item" :style="{'height':windowHeight}" @tap="goHome()">
<image src="../../static/image/home4.jpg" :style="{'height':windowHeight}" class="filtrate_img_1">
<!-- <text class="swiper-text">进入首页</text> -->
</view>
</swiper-item>
</swiper>
<!-- #ifdef APP -->
</scroll-view>
<view v-if="show4" class="dialog-container">
<view class="dialog-content" :style="{'top':dialogTop}">
<text style="text-align: center;padding-top: 20px;font-size: 20px;color: black;background-color: #fff;">
{{title}}</text>
<scroll-view
style="flex: 1;align-content: center;padding-top: 10px;padding-left: 25px;padding-right: 25px;background-color: #fff;"
show-scrollbar="false">
<rich-text style="font-size: 10px;color: red;" :nodes="htmlString" @itemclick="itemClick"></rich-text>
</scroll-view>
<button class="button" style="background-color: #fff;" @click="reject"
hover-class="button-hover1">{{rejectTxt}}</button>
<button class="button" style="background-color: royalblue;" hover-class="button-hover2"
open-type="agreePrivacyAuthorization" @click="agree">{{agreeTxt}}</button>
</view>
</view>
<!-- #endif -->
</template>
更多关于安卓应用市场提交失败 uni-app的实战教程也可以访问 https://www.itying.com/category-93-b0.html
1 回复