Files
2024-09-27 01:32:49 +08:00

27 lines
573 B
Vue
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script>
export default {
globalData: {
status: {}
},
onLaunch: async function() {
if (this.$utils.isPcClient()) {
uni.showToast({
title: '为了获得更好的交互体验请使用手机访问或者下载APP',
duration: 4000,
icon: 'none'
});
}
},
onShow: async function() {
let address = (await this.$http.indexService.getCityList({})).data;
this.$utils.setLocalStorage("address", address);
},
onHide: function() {
}
};
</script>
<style lang="less">
@import "common/less/tpl/reset";
</style>