first commit
This commit is contained in:
26
芳林公司项目/zyhelp/App.vue
Executable file
26
芳林公司项目/zyhelp/App.vue
Executable file
@@ -0,0 +1,26 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user