File tree Expand file tree Collapse file tree 3 files changed +31
-24
lines changed Expand file tree Collapse file tree 3 files changed +31
-24
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <button >test</button >
3
+ </template >
Original file line number Diff line number Diff line change 1
1
{
2
2
"easycom" : {
3
- "^u-(.*)" : " @/uview-ui/components/u-$1/u-$1.vue"
3
+ "^u-(.*)" : " @/uview-ui/components/u-$1/u-$1.vue" ,
4
+ "^lb-(.*)" : " @/components/lb-$1/lb-$1.vue"
4
5
},
5
6
"pages" : [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
6
7
{
Original file line number Diff line number Diff line change 12
12
<u-button type =" warning" >警告按钮</u-button >
13
13
<u-button type =" error" >危险按钮</u-button >
14
14
15
+ <!-- 自定义的组件,已配置easycom,无需引入 -->
16
+ <lb-button ></lb-button >
17
+
15
18
<!-- 自定义tabbar -->
16
19
<!-- <u-tabbar :list="vuex_tabbar" :mid-button="true"></u-tabbar> -->
17
20
</view >
18
21
</template >
19
22
20
23
<script >
21
24
export default {
22
- data () {
23
- return {
24
- title: ' Hello lanba jam!'
25
- }
26
- },
27
- onLoad () {
28
- this .$u .vuex (' vuex_user.name' , ' 诗圣 ' );
29
- this .$u .toast (' Hello uView!' );
30
- // this.getInfo()
31
- },
32
- methods: {
33
- onToPage () {
34
- uni .navigateTo ({
35
- url: ' /pages_sub/home/index'
36
- });
37
- },
38
- async getInfo () {
39
- let params = {
40
- id: 222
41
- }
42
- let res = await this .$u .api .getInfo (params)
43
- }
44
- }
25
+ data () {
26
+ return {
27
+ title: " Hello lanba jam!"
28
+ };
29
+ },
30
+ onLoad () {
31
+ this .$u .vuex (" vuex_user.name" , " 诗圣 " );
32
+ this .$u .toast (" Hello uView!" );
33
+ // this.getInfo()
34
+ },
35
+ methods: {
36
+ onToPage () {
37
+ uni .navigateTo ({
38
+ url: " /pages_sub/home/index"
39
+ });
40
+ },
41
+ async getInfo () {
42
+ let params = {
43
+ id: 222
44
+ };
45
+ let res = await this .$u .api .getInfo (params);
46
+ }
47
+ },
45
48
}
46
49
</script >
47
50
You can’t perform that action at this time.
0 commit comments