Merge branch 'test' of e.coding.net:g-cphe0354/duanju/new_app into gyq
This commit is contained in:
24
App.vue
24
App.vue
@@ -1,8 +1,9 @@
|
||||
<script>
|
||||
import http from '@/http/http.js';
|
||||
import { init } from '@/api/init.js'
|
||||
import http from '@/http/http.js'
|
||||
export default {
|
||||
onLaunch: function () {
|
||||
console.log('App Launch');
|
||||
console.log('App Launch')
|
||||
// const systemInfo = uni.getSystemInfoSync();
|
||||
// const isA = systemInfo.platform === 'android'
|
||||
// if (isA) {
|
||||
@@ -10,26 +11,28 @@ export default {
|
||||
// } else {
|
||||
// uni.setStorageSync('isAI', false)
|
||||
// }
|
||||
|
||||
},
|
||||
onShow: function () {
|
||||
init()
|
||||
// ios是否在审核
|
||||
http.request({
|
||||
url: 'app/common/type/919'
|
||||
}).then((res) => {
|
||||
url: '/common/type/919',
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
uni.setStorageSync('isExamine', res.data.value);
|
||||
uni.setStorageSync('isExamine', res.data.value)
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
onHide: function () {
|
||||
console.log('App Hide');
|
||||
console.log('App Hide')
|
||||
}
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
/*每个页面公共css */
|
||||
@import 'uview-plus/index.scss';
|
||||
@import "uview-plus/index.scss";
|
||||
|
||||
ul,
|
||||
li {
|
||||
@@ -86,9 +89,6 @@ web-view {
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
}
|
||||
image {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.initStyle {
|
||||
padding: 20rpx;
|
||||
|
||||
Reference in New Issue
Block a user