pref:移除多余代码

This commit is contained in:
Qingtian239113
2022-03-28 16:40:09 +08:00
parent a3d42fdd40
commit faa9c7bdfc
6 changed files with 1 additions and 49 deletions

View File

@@ -1,37 +1,9 @@
const config = require('./config/config');
export default { export default {
pages: [ pages: [
// tab切换 // tab切换
"pages/tabs/home", "pages/tabs/home",
"pages/tabs/mine", "pages/tabs/mine",
"pages/login/index",
"pages/common/webview",
// home
"pages/home/pay",
"pages/home/payDetail",
"pages/home/news/index",
"pages/home/owner/index",
// mine
"pages/mine/set/index",
"pages/mine/set/contact",
"pages/mine/set/agreement",
"pages/mine/order/index",
"pages/mine/give/index",
"pages/mine/receive",
],
subpackages: [
{
root: "pages_goods/",
pages: [
// 藏品详情
"goods/detail",
]
},
], ],
plugins: {}, plugins: {},
window: { window: {
@@ -41,7 +13,6 @@ export default {
navigationBarTextStyle: 'white', navigationBarTextStyle: 'white',
backgroundColorTop: "#000506", backgroundColorTop: "#000506",
backgroundColorBottom: "#000506", backgroundColorBottom: "#000506",
...config.app.window,
}, },
tabBar: { tabBar: {
list: [ list: [

View File

@@ -2,7 +2,6 @@ import {Component} from 'react'
import './app.less' import './app.less'
import 'taro-ui/dist/style/index.scss' import 'taro-ui/dist/style/index.scss'
import Taro from '@tarojs/taro'; import Taro from '@tarojs/taro';
import HttpUtils from "@/https/HttpUtils";
class App extends Component { class App extends Component {

View File

@@ -1,13 +1,10 @@
@import './assets/less/constant.less';
page { page {
color: white; color: white;
background-color: @bgColor;
font-family: serif; font-family: serif;
} }
.primaryColor { .primaryColor {
color: @primaryColor;
} }
.empty { .empty {
@@ -33,7 +30,6 @@ page {
} }
.primaryBtn { .primaryBtn {
background: @primaryColor;
color: white; color: white;
font-size: 30px; font-size: 30px;
display: flex; display: flex;
@@ -62,5 +58,4 @@ page {
.wx-swiper-dot; .wx-swiper-dot;
width: 36px !important; width: 36px !important;
border-radius: 16px !important; border-radius: 16px !important;
background: linear-gradient(@primaryTopColor, @primaryColor) !important;
} }

View File

@@ -6,7 +6,6 @@ import GcImage from "@/components/GcImage";
import less from './home.module.less'; import less from './home.module.less';
import Taro, {usePullDownRefresh, useReachBottom} from '@tarojs/taro' import Taro, {usePullDownRefresh, useReachBottom} from '@tarojs/taro'
import RouteGo from "@/route/RouteGo"; import RouteGo from "@/route/RouteGo";
import CustomTabBar from "@/components/CustomTabBar";
import PageContainer from "@/components/PageContainer"; import PageContainer from "@/components/PageContainer";
export default () => { export default () => {
@@ -101,8 +100,6 @@ export default () => {
</Flex> </Flex>
<CustomTabBar tabIdx={1}/>
</PageContainer> </PageContainer>
} }

View File

@@ -2,14 +2,13 @@ import React, {useRef, useState} from "react";
import Flex from "@/components/Flex"; import Flex from "@/components/Flex";
import {Text, View} from "@tarojs/components"; import {Text, View} from "@tarojs/components";
import less from "./mine.module.less"; import less from "./mine.module.less";
import Taro, {usePullDownRefresh, useShareAppMessage, useDidShow} from "@tarojs/taro"; import Taro, {useDidShow, usePullDownRefresh, useShareAppMessage} from "@tarojs/taro";
import HttpUtils from "@/https/HttpUtils"; import HttpUtils from "@/https/HttpUtils";
import GcImage from "@/components/GcImage"; import GcImage from "@/components/GcImage";
import RouteGo from "@/route/RouteGo"; import RouteGo from "@/route/RouteGo";
import EmptyView from "@/components/EmptyView"; import EmptyView from "@/components/EmptyView";
import Common from "@/utils/Common"; import Common from "@/utils/Common";
import config from "@/config/config"; import config from "@/config/config";
import CustomTabBar from "@/components/CustomTabBar";
export default () => { export default () => {
@@ -125,7 +124,5 @@ export default () => {
{renderGoods()} {renderGoods()}
</Flex> </Flex>
<CustomTabBar tabIdx={2}/>
</Flex> </Flex>
} }

View File

@@ -1,4 +1,3 @@
@import "src/assets/less/constant.less";
.mine { .mine {
width: 100vw; width: 100vw;
@@ -41,9 +40,6 @@
color: white; color: white;
margin: 0 11px; margin: 0 11px;
text {
color: @mineGoodsNumColor;
}
} }
.lingqu { .lingqu {
@@ -65,7 +61,6 @@
width: calc((100% - 44px) / 2); width: calc((100% - 44px) / 2);
margin: 22px 11px 0; margin: 22px 11px 0;
position: relative; position: relative;
background: @goodsBg;
border-radius: 46px; border-radius: 46px;
.picture { .picture {
@@ -94,10 +89,8 @@
margin-top: 12px; margin-top: 12px;
.tagsItem { .tagsItem {
background-color: @goodsTagBg;
padding: 4px 12px; padding: 4px 12px;
font-size: 20px; font-size: 20px;
color: @goodsTagColor;
border-radius: 32px; border-radius: 32px;
margin-right: 24px; margin-right: 24px;
} }