Skip to content

Commit 427660b

Browse files
committed
将页面和组件文件名统一为index
补充遗漏的修改
1 parent 3bcf2ca commit 427660b

File tree

17 files changed

+28
-26
lines changed

17 files changed

+28
-26
lines changed

app.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@
77
"tabBar": {
88
"custom": true,
99
"list": [
10-
{ "pagePath": "pages/home/index", "text": "首页" },
11-
{ "pagePath": "pages/my/index", "text": "我的" }
10+
{
11+
"pagePath": "pages/home/index",
12+
"text": "首页"
13+
},
14+
{
15+
"pagePath": "pages/my/index",
16+
"text": "我的"
17+
}
1218
]
1319
},
1420
"window": {

custom-tab-bar/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
// custom-tab-bar/index.js
22
Component({
33

4-
/**
5-
* 组件的初始数据
6-
*/
4+
/** 组件的初始数据 */
75
data: {
86
value: 'home',
97
list: [
@@ -12,9 +10,7 @@ Component({
1210
],
1311
},
1412

15-
/**
16-
* 组件的方法列表
17-
*/
13+
/** 组件的方法列表 */
1814
methods: {
1915
onChange(event) {
2016
const { value } = event.detail

pages/city-picker/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// pages/city-picker/city-picker.js
1+
// pages/city-picker/index.js
22
import { fetchCurrentCity } from '../../services/location'
33
const app = getApp()
44

pages/city-picker/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* pages/city-picker/city-picker.wxss */
1+
/* pages/city-picker/index.wxss */
22
@import '/style/global.less';
33

44
.page {

pages/city-picker/index.wxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<!--pages/city-picker/city-picker.wxml-->
2-
<t-navbar title="选择城市" fixed left-arrow />
1+
<!--pages/city-picker/index.wxml-->
2+
<t-navbar title="选择城市" left-arrow />
33
<view class="current" bind:tap="selectCity" data-city="{{ currentCity }}">
44
<t-icon name="location" size="48rpx" />
55
<text>{{ loading ? '正在定位...' : currentCity || '定位失败' }}</text>

pages/home/components/card/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// pages/home/components/card/card.js
1+
// pages/home/components/card/index.js
22
Component({
33
/** 组件的属性列表 */
44
properties: {

pages/home/components/card/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* pages/home/components/card/card.wxss */
1+
/* pages/home/components/card/index.wxss */
22
.card {
33
position: relative;
44
display: flex;

pages/home/components/card/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!--pages/home/components/card/card.wxml-->
1+
<!--pages/home/components/card/index.wxml-->
22
<view class="card" bind:tap="handleTapCard">
33
<image class="image" src="{{ activity.image }}" mode="aspectFill" />
44
<view class="content">

pages/home/components/loading-card/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// pages/home/components/loading-card/loading-card.js
1+
// pages/home/components/loading-card/index.js
22
Component({
33
/**
44
* 组件的属性列表

pages/home/components/loading-card/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* pages/home/components/loading-card/loading-card.wxss */
1+
/* pages/home/components/loading-card/index.wxss */
22
.card {
33
position: relative;
44
display: flex;

0 commit comments

Comments
 (0)