126 lines
1.7 KiB
Vue
126 lines
1.7 KiB
Vue
<script>
|
|
import { init } from '@/api/init.js'
|
|
import http from '@/http/http.js'
|
|
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 () {
|
|
init()
|
|
// ios是否在审核
|
|
http.request({
|
|
url: '/common/type/919',
|
|
}).then(res => {
|
|
if (res.code == 0) {
|
|
uni.setStorageSync('isExamine', res.data.value)
|
|
}
|
|
})
|
|
},
|
|
onHide: function () {
|
|
console.log('App Hide')
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
/*每个页面公共css */
|
|
@import "uview-plus/index.scss";
|
|
|
|
ul,
|
|
li {
|
|
list-style: none;
|
|
}
|
|
|
|
.show {
|
|
display: none !important;
|
|
}
|
|
|
|
.hidden {
|
|
display: block !important;
|
|
}
|
|
|
|
page,
|
|
view,
|
|
scroll-view,
|
|
swiper,
|
|
swiper-item,
|
|
match-media,
|
|
movable-area,
|
|
movable-view,
|
|
cover-view,
|
|
cover-image,
|
|
icon,
|
|
text,
|
|
rich-text,
|
|
progress,
|
|
button,
|
|
checkbox-group,
|
|
editor,
|
|
form,
|
|
input,
|
|
label,
|
|
picker,
|
|
picker-view,
|
|
radio-group,
|
|
slider,
|
|
switch,
|
|
textarea,
|
|
navigator,
|
|
audio,
|
|
camera,
|
|
image,
|
|
video,
|
|
live-player,
|
|
live-pusher,
|
|
map,
|
|
canvas,
|
|
web-view {
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
margin: 0;
|
|
text-decoration: none;
|
|
outline: none;
|
|
}
|
|
|
|
.initStyle {
|
|
padding: 20rpx;
|
|
background-color: #2a2a2a;
|
|
height: 100vh;
|
|
color: #fff;
|
|
}
|
|
|
|
.fc {
|
|
color: #f4f693;
|
|
}
|
|
|
|
.inputClass {
|
|
line-height: 80rpx;
|
|
}
|
|
|
|
.inputClass input {
|
|
background-color: #fff;
|
|
height: 80rpx;
|
|
padding: 10rpx;
|
|
color: #000;
|
|
}
|
|
|
|
.result {
|
|
position: absolute;
|
|
font-size: 100rpx;
|
|
left: 50%;
|
|
top: 800rpx;
|
|
transform: translateX(-50%);
|
|
}
|
|
.u-image{
|
|
background-color: transparent!important;
|
|
}
|
|
</style>
|