添加判断iso和安卓
This commit is contained in:
parent
f28d2b8a3d
commit
f016c3094d
8
App.vue
8
App.vue
|
|
@ -2,6 +2,14 @@
|
|||
export default {
|
||||
onLaunch: function () {
|
||||
console.log('App Launch')
|
||||
const systemInfo = uni.getSystemInfoSync();
|
||||
const isA = systemInfo.platform === 'android'
|
||||
if (isA) {
|
||||
uni.setStorageSync('isAI', true)
|
||||
} else {
|
||||
uni.setStorageSync('isAI', false)
|
||||
}
|
||||
|
||||
},
|
||||
onShow: function () {
|
||||
console.log('App Show')
|
||||
|
|
|
|||
|
|
@ -4,16 +4,7 @@
|
|||
</template>
|
||||
|
||||
<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>
|
||||
|
||||
<style>
|
||||
|
|
|
|||
|
|
@ -4,12 +4,12 @@
|
|||
</template>
|
||||
|
||||
<script setup>
|
||||
import http from '@/http/http.js'
|
||||
http.request({
|
||||
url:'app/common/getAppUseKv'
|
||||
}).then(res=>{
|
||||
console.log(res);
|
||||
})
|
||||
// import http from '@/http/http.js'
|
||||
// http.request({
|
||||
// url:'app/common/getAppUseKv'
|
||||
// }).then(res=>{
|
||||
// console.log(res);
|
||||
// })
|
||||
// 搜索跳转
|
||||
// uni.navigateTo({
|
||||
// url: '/pages/index/search/index'
|
||||
|
|
|
|||
|
|
@ -4,16 +4,7 @@
|
|||
</template>
|
||||
|
||||
<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>
|
||||
|
||||
<style>
|
||||
|
|
|
|||
|
|
@ -4,16 +4,7 @@
|
|||
</template>
|
||||
|
||||
<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>
|
||||
|
||||
<style>
|
||||
|
|
|
|||
|
|
@ -4,16 +4,7 @@
|
|||
</template>
|
||||
|
||||
<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>
|
||||
|
||||
<style>
|
||||
|
|
|
|||
Loading…
Reference in New Issue