-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.vue
40 lines (35 loc) · 910 Bytes
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<script>
import Common from "@/static/js/common.js";
import Http from "@/static/js/ajax.js";
import Bus from "@/static/js/bus.js";
export default {
onLaunch: function () {
console.log("App Launch");
const http = new Http();
const common = new Common();
const Router = common.router();
uni.$com = common;
uni.$toast = common.showToast;
uni.$router = new Router();
uni.$ajax = http.ajax.bind(http);
uni.$imgBaseUrl = "https://yuequn.ozkoalas.cn";
uni.$bus = new Bus();
uni.$checkTapTooFaster = common.checkTapTooFaster; //频繁点击
},
onShow: function () {
console.log("App Show");
},
onHide: function () {
console.log("App Hide");
},
};
</script>
<style>
/* 解决头条小程序组件内引入字体不生效的问题 */
/* #ifdef MP-TOUTIAO */
@font-face {
font-family: uniicons;
src: url("/static/uni.ttf");
}
/* #endif */
</style>