添加判断iso和安卓
This commit is contained in:
parent
f28d2b8a3d
commit
f016c3094d
30
App.vue
30
App.vue
|
|
@ -1,18 +1,26 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function() {
|
onLaunch: function () {
|
||||||
console.log('App Launch')
|
console.log('App Launch')
|
||||||
},
|
const systemInfo = uni.getSystemInfoSync();
|
||||||
onShow: function() {
|
const isA = systemInfo.platform === 'android'
|
||||||
console.log('App Show')
|
if (isA) {
|
||||||
},
|
uni.setStorageSync('isAI', true)
|
||||||
onHide: function() {
|
} else {
|
||||||
console.log('App Hide')
|
uni.setStorageSync('isAI', false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
onShow: function () {
|
||||||
|
console.log('App Show')
|
||||||
|
},
|
||||||
|
onHide: function () {
|
||||||
|
console.log('App Hide')
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
/*每个页面公共css */
|
/*每个页面公共css */
|
||||||
@import "uview-plus/index.scss";
|
@import "uview-plus/index.scss";
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -4,16 +4,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import http from '@/http/http.js'
|
|
||||||
http.request({
|
|
||||||
url:'app/common/getAppUseKv'
|
|
||||||
}).then(res=>{
|
|
||||||
console.log(res);
|
|
||||||
})
|
|
||||||
// 搜索跳转
|
|
||||||
// uni.navigateTo({
|
|
||||||
// url: '/pages/index/search/index'
|
|
||||||
// });
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,12 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import http from '@/http/http.js'
|
// import http from '@/http/http.js'
|
||||||
http.request({
|
// http.request({
|
||||||
url:'app/common/getAppUseKv'
|
// url:'app/common/getAppUseKv'
|
||||||
}).then(res=>{
|
// }).then(res=>{
|
||||||
console.log(res);
|
// console.log(res);
|
||||||
})
|
// })
|
||||||
// 搜索跳转
|
// 搜索跳转
|
||||||
// uni.navigateTo({
|
// uni.navigateTo({
|
||||||
// url: '/pages/index/search/index'
|
// url: '/pages/index/search/index'
|
||||||
|
|
|
||||||
|
|
@ -4,16 +4,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import http from '@/http/http.js'
|
|
||||||
http.request({
|
|
||||||
url:'app/common/getAppUseKv'
|
|
||||||
}).then(res=>{
|
|
||||||
console.log(res);
|
|
||||||
})
|
|
||||||
// 搜索跳转
|
|
||||||
// uni.navigateTo({
|
|
||||||
// url: '/pages/index/search/index'
|
|
||||||
// });
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
||||||
|
|
@ -4,16 +4,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import http from '@/http/http.js'
|
|
||||||
http.request({
|
|
||||||
url:'app/common/getAppUseKv'
|
|
||||||
}).then(res=>{
|
|
||||||
console.log(res);
|
|
||||||
})
|
|
||||||
// 搜索跳转
|
|
||||||
// uni.navigateTo({
|
|
||||||
// url: '/pages/index/search/index'
|
|
||||||
// });
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
||||||
|
|
@ -4,16 +4,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import http from '@/http/http.js'
|
|
||||||
http.request({
|
|
||||||
url:'app/common/getAppUseKv'
|
|
||||||
}).then(res=>{
|
|
||||||
console.log(res);
|
|
||||||
})
|
|
||||||
// 搜索跳转
|
|
||||||
// uni.navigateTo({
|
|
||||||
// url: '/pages/index/search/index'
|
|
||||||
// });
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue