添加判断iso和安卓

This commit is contained in:
duan 2025-01-06 14:28:52 +08:00
parent f28d2b8a3d
commit f016c3094d
6 changed files with 29 additions and 57 deletions

View File

@ -2,6 +2,14 @@
export default { export default {
onLaunch: function () { onLaunch: function () {
console.log('App Launch') 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 () { onShow: function () {
console.log('App Show') console.log('App Show')

View File

@ -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>

View File

@ -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'

View File

@ -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>

View File

@ -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>

View File

@ -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>