Commit 8c17b208 by Jaxon

chore: 迁移全局样式从SASS到SCSS并更新应用配置

- 将全局样式从app.sass迁移至app.scss并删除旧文件
- 格式化app.json缩进,新增两个分包页面
1 parent 3d5de6da
{ {
"pages": [
"pages/loading/loading",
"pages/wxLogin/wxLogin",
"pages/nothing/nothing",
"pages/webView/webView",
"pages/tab/index/index",
"pages/tab/crew/crew",
"pages/tab/learningCenter/learningCenter",
"pages/tab/mine/mine"
],
"requiredPrivateInfos": [
"getLocation",
"chooseLocation"
],
"lazyCodeLoading": "requiredComponents",
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
},
"tabBar": {
"color": "#999999",
"selectedColor": "#2C66F7",
"backgroundColor": "#FFFFFF",
"borderStyle": "white",
"list": [
{
"pagePath": "pages/tab/index/index",
"text": "工作台",
"iconPath": "images/tab-home.png",
"selectedIconPath": "images/tab-home-active.png"
},
{
"pagePath": "pages/tab/crew/crew",
"text": "团队",
"iconPath": "images/tab-crew.png",
"selectedIconPath": "images/tab-crew-active.png"
},
{
"pagePath": "pages/tab/learningCenter/learningCenter",
"text": "学习中心",
"iconPath": "images/tab-learning.png",
"selectedIconPath": "images/tab-learning-active.png"
},
{
"pagePath": "pages/tab/mine/mine",
"text": "我的",
"iconPath": "images/tab-mine.png",
"selectedIconPath": "images/tab-mine-active.png"
}
]
},
"subpackages": [
{
"root": "packageIndex",
"name": "packageIndex",
"pages": [
"pages/dailySupervisionReport/dailySupervisionReport",
"pages/recordingReview/recordingReview",
"pages/recordingReviewDetail/recordingReviewDetail",
"pages/submitRecordingReview/submitRecordingReview",
"pages/weeklyReview/weeklyReview",
"pages/monthlyPlan/monthlyPlan",
"pages/specialTask/specialTask"
]
},
{
"root": "packageCrew",
"name": "packageCrew",
"pages": [
"pages/peopleOverview/peopleOverview",
"pages/storeTransfer/storeTransfer",
"pages/receptionRecording/receptionRecording",
"pages/recordingDetail/recordingDetail",
"pages/mentoring/mentoring"
]
},
{
"root": "packageLearningCenter",
"name": "packageLearningCenter",
"pages": [
"pages/coursePush/coursePush"
]
}
],
"preloadRule": {},
"usingComponents": {
"gl-textarea": "/components/GlTextarea/GlTextarea",
"gl-cell": "/components/GlCell/GlCell",
"gl-cust-form": "/components/GLCustForm/GLCustForm",
"calendar": "/components/Calendar/Calendar",
"navigation-bar": "/components/navigationBar/navigationBar",
"popup": "/components/Popup/Popup",
"search-input": "/components/SearchInput/SearchInput",
"tab-bar": "/components/TabBar/TabBar",
"modal": "components/modal/modal",
"gl-image": "components/GlImage/index",
"van-field": "@vant/weapp/field/index",
"van-radio-group": "@vant/weapp/radio-group/index",
"van-radio": "@vant/weapp/radio/index",
"van-popup": "@vant/weapp/popup/index",
"van-dialog": "@vant/weapp/dialog/index",
"van-uploader": "@vant/weapp/uploader/index",
"glsx-privacy": "glsk-applet-component/GlsxPrivacy/index",
"empty-data": "/components/EmptyData/EmptyData",
"van-switch": "@vant/weapp/switch/index"
},
"resolveAlias": {
"~/*": "/*"
},
"sitemapLocation": "sitemap.json",
"__usePrivacyCheck__": true,
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
}
}
\ No newline at end of file \ No newline at end of file
"pages": [
"pages/loading/loading",
"pages/wxLogin/wxLogin",
"pages/nothing/nothing",
"pages/webView/webView",
"pages/tab/index/index",
"pages/tab/crew/crew",
"pages/tab/learningCenter/learningCenter",
"pages/tab/mine/mine"
],
"requiredPrivateInfos": ["getLocation", "chooseLocation"],
"lazyCodeLoading": "requiredComponents",
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
},
"tabBar": {
"color": "#999999",
"selectedColor": "#2C66F7",
"backgroundColor": "#FFFFFF",
"borderStyle": "white",
"list": [
{
"pagePath": "pages/tab/index/index",
"text": "工作台",
"iconPath": "images/tab-home.png",
"selectedIconPath": "images/tab-home-active.png"
},
{
"pagePath": "pages/tab/crew/crew",
"text": "团队",
"iconPath": "images/tab-crew.png",
"selectedIconPath": "images/tab-crew-active.png"
},
{
"pagePath": "pages/tab/learningCenter/learningCenter",
"text": "学习中心",
"iconPath": "images/tab-learning.png",
"selectedIconPath": "images/tab-learning-active.png"
},
{
"pagePath": "pages/tab/mine/mine",
"text": "我的",
"iconPath": "images/tab-mine.png",
"selectedIconPath": "images/tab-mine-active.png"
}
]
},
"subpackages": [
{
"root": "packageIndex",
"name": "packageIndex",
"pages": [
"pages/dailySupervisionReport/dailySupervisionReport",
"pages/recordingReview/recordingReview",
"pages/recordingReviewDetail/recordingReviewDetail",
"pages/submitRecordingReview/submitRecordingReview",
"pages/weeklyReview/weeklyReview",
"pages/monthlyPlan/monthlyPlan",
"pages/specialTask/specialTask",
"pages/stationStaffPerformance/stationStaffPerformance",
"pages/storePerformance/storePerformance"
]
},
{
"root": "packageCrew",
"name": "packageCrew",
"pages": [
"pages/peopleOverview/peopleOverview",
"pages/storeTransfer/storeTransfer",
"pages/receptionRecording/receptionRecording",
"pages/recordingDetail/recordingDetail",
"pages/mentoring/mentoring"
]
},
{
"root": "packageLearningCenter",
"name": "packageLearningCenter",
"pages": ["pages/coursePush/coursePush"]
}
],
"preloadRule": {},
"usingComponents": {
"gl-textarea": "/components/GlTextarea/GlTextarea",
"gl-cell": "/components/GlCell/GlCell",
"gl-cust-form": "/components/GLCustForm/GLCustForm",
"calendar": "/components/Calendar/Calendar",
"navigation-bar": "/components/navigationBar/navigationBar",
"popup": "/components/Popup/Popup",
"search-input": "/components/SearchInput/SearchInput",
"tab-bar": "/components/TabBar/TabBar",
"modal": "components/modal/modal",
"gl-image": "components/GlImage/index",
"van-field": "@vant/weapp/field/index",
"van-radio-group": "@vant/weapp/radio-group/index",
"van-radio": "@vant/weapp/radio/index",
"van-popup": "@vant/weapp/popup/index",
"van-dialog": "@vant/weapp/dialog/index",
"van-uploader": "@vant/weapp/uploader/index",
"glsx-privacy": "glsk-applet-component/GlsxPrivacy/index",
"empty-data": "/components/EmptyData/EmptyData",
"van-switch": "@vant/weapp/switch/index"
},
"resolveAlias": {
"~/*": "/*"
},
"sitemapLocation": "sitemap.json",
"__usePrivacyCheck__": true,
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
}
}
@font-face { @font-face {
font-family: "numberNor"; font-family: "numberNor";
src: url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-500-Medium.ttf"); src: url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-500-Medium.ttf");
} }
@font-face { @font-face {
font-family: "numberBold"; font-family: "numberBold";
src: url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.ttf"); src: url("https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.ttf");
} }
page { page {
/* 兼容 IOS<11.2 先constant再env */ --primary-color: #2c66f7;
--constantSafeAreaInsetBottom: constant(safe-area-inset-bottom); --text-color: #333;
/* 兼容 IOS>11.2 */ /* 兼容 IOS<11.2 先constant再env */
--envSafeAreaInsetBottom: env(safe-area-inset-bottom); --constantSafeAreaInsetBottom: constant(safe-area-inset-bottom);
/* 兼容 IOS>11.2 */
@for $i from 1 through 1300 { --envSafeAreaInsetBottom: env(safe-area-inset-bottom);
--fontSize#{$i}: calc(#{$i}vmin / 7.5);
--fontSizeContent#{$i}: calc(#{$i}vmin / 7.176); @for $i from 1 through 1300 {
} --fontSize#{$i}: calc(#{$i}vmin / 7.5);
--fontSizeContent#{$i}: calc(#{$i}vmin / 7.176);
@media screen and (min-device-width: 768px) and (-webkit-min-device-pixel-ratio: 1) { }
@for $i from 1 through 1300 {
--fontSize#{$i}: calc(#{$i}vmin / 8.5); @media screen and (min-device-width: 768px) and (-webkit-min-device-pixel-ratio: 1) {
--fontSizeContent#{$i}: calc(#{$i}vmin / 6.719); @for $i from 1 through 1300 {
} --fontSize#{$i}: calc(#{$i}vmin / 8.5);
} --fontSizeContent#{$i}: calc(#{$i}vmin / 6.719);
}
image { }
width: 100%;
height: 100%; image {
vertical-align: top; width: 100%;
} height: 100%;
vertical-align: top;
.y-center { }
top: 50%;
transform: translateY(-50%); .y-center {
} top: 50%;
transform: translateY(-50%);
.x-center { }
left: 50%;
transform: translateX(-50%); .x-center {
} left: 50%;
transform: translateX(-50%);
.box-center { }
position: absolute;
top: 50%; .box-center {
left: 50%; position: absolute;
transform: translate(-50%, -50%); top: 50%;
} left: 50%;
transform: translate(-50%, -50%);
.text-hide { }
white-space: nowrap;
overflow: hidden; .text-hide {
text-overflow: ellipsis; white-space: nowrap;
} overflow: hidden;
text-overflow: ellipsis;
.text-center { }
display: flex;
align-items: center; .text-center {
justify-content: center; display: flex;
} align-items: center;
justify-content: center;
}
.two-text {
display: inline-block; .two-text {
overflow: hidden; display: inline-block;
text-overflow: ellipsis; overflow: hidden;
-webkit-line-clamp: 2; text-overflow: ellipsis;
-webkit-box-orient: vertical; -webkit-line-clamp: 2;
} -webkit-box-orient: vertical;
}
.isFullSucreen {
box-sizing: border-box; .isFullSucreen {
padding-bottom: constant(safe-area-inset-bottom) !important; box-sizing: border-box;
padding-bottom: env(safe-area-inset-bottom) !important; padding-bottom: constant(safe-area-inset-bottom) !important;
// padding-bottom: 34px !important; padding-bottom: env(safe-area-inset-bottom) !important;
} // padding-bottom: 34px !important;
}
.isFullSucreen-bottom {
bottom: 34px !important; .isFullSucreen-bottom {
} bottom: 34px !important;
}
.list-nothing {
padding: var(--fontSize30) 0; .list-nothing {
text-align: center; padding: var(--fontSize30) 0;
font-size: var(--fontSize24); text-align: center;
color: #999999; font-size: var(--fontSize24);
} color: #999999;
}
.list-not {
display: flex; .list-not {
align-items: center; display: flex;
justify-content: center; align-items: center;
color: #999; justify-content: center;
font-size: var(--fontSize24); color: #999;
height: 100%; font-size: var(--fontSize24);
} height: 100%;
}
.bgcw {
background-color: #fff; .bgcw {
} background-color: #fff;
}
} }
.flex{ .flex {
display: flex; display: flex;
align-items: center; align-items: center;
}
\ No newline at end of file \ No newline at end of file
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!