版本更新增加

This commit is contained in:
GaoHao
2025-01-13 10:59:11 +08:00
parent 6e6299c341
commit 0dd632eaff
4 changed files with 120 additions and 12 deletions

23
App.vue
View File

@@ -1,6 +1,6 @@
<script>
import { init } from '@/api/init.js';
import http from '@/http/http.js';
import { ref } from 'vue';
import { init,commonType } from '@/api/init.js';
export default {
onLaunch: function () {
console.log('App Launch');
@@ -11,17 +11,20 @@ export default {
// } else {
// uni.setStorageSync('isAI', false)
// }
},
onShow: function () {
init();
// ios是否在审核
http.request({
url: '/common/type/919'
}).then((res) => {
if (res.code == 0) {
uni.setStorageSync('isExamine', res.data.value);
}
});
commonType(919).then(res=>{
uni.setStorageSync('isExamine', res.value);
})
// 热搜词
commonType(249).then(res=>{
uni.setStorageSync('moreSearch', res.value)
})
},
onHide: function () {
console.log('App Hide');