47 lines
1.0 KiB
Plaintext
47 lines
1.0 KiB
Plaintext
<script setup lang="ts">
|
|
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
|
|
onLaunch(() => {
|
|
console.log("App Launch");
|
|
});
|
|
onShow(() => {
|
|
console.log("App Show");
|
|
});
|
|
onHide(() => {
|
|
console.log("App Hide");
|
|
});
|
|
|
|
const getUpData=()=>{
|
|
// #ifdef APP
|
|
// plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
|
|
// NvpMerchService.GetAppVersion().then(res=>{
|
|
// console.log('wgtinfo.versionCode',wgtinfo.versionCode);
|
|
// if (res.data.version > wgtinfo.versionCode) {
|
|
// setTimeout(function() {
|
|
// uni.navigateTo({
|
|
// url: "/pages/upData/upData?info=" +
|
|
// encodeURIComponent(
|
|
// JSON.stringify(res.data))
|
|
// })
|
|
// }, 1000)
|
|
// }
|
|
// })
|
|
// })
|
|
// #endif
|
|
|
|
}
|
|
|
|
</script>
|
|
<style lang="scss">
|
|
|
|
@import "uview-plus/index.scss";
|
|
@import "colorui/main.css";
|
|
@import "colorui/icon.css";
|
|
page {
|
|
--nav-mian: #F84F28; //全局颜色
|
|
--nav-vice: #F59D77; //副颜色
|
|
--nav-diluted: #F2C0A3; //淡颜色
|
|
|
|
}
|
|
|
|
|
|
</style> |