商城测试版v7
This commit is contained in:
parent
a59d608f09
commit
2468f40c45
@ -1,32 +0,0 @@
|
||||
import { Component } from 'react'
|
||||
import ContextBlueTooth from "@/use/contextBlueTooth"
|
||||
import { Provider } from 'react-redux'
|
||||
import configStore from './store'
|
||||
|
||||
import './app.scss'
|
||||
|
||||
const store = configStore()
|
||||
class App extends Component {
|
||||
|
||||
componentDidMount () {}
|
||||
|
||||
componentDidShow () {}
|
||||
|
||||
componentDidHide () {}
|
||||
|
||||
componentDidCatchError () {}
|
||||
|
||||
// this.props.children 是将要会渲染的页面
|
||||
render () {
|
||||
return (
|
||||
|
||||
<ContextBlueTooth>
|
||||
<Provider store={store}>
|
||||
{this.props.children}
|
||||
</Provider>
|
||||
</ContextBlueTooth>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export default App
|
@ -1,20 +1,19 @@
|
||||
import {Image, ScrollView, View, Text, CustomWrapper } from "@tarojs/components"
|
||||
import {View, Text } from "@tarojs/components"
|
||||
import Popup from "@/components/popup"
|
||||
import LoadingCard from "@/components/loadingCard";
|
||||
import Search from "@/components/search";
|
||||
import InfiniteScroll from "@/components/infiniteScroll";
|
||||
import Counter from "../counter";
|
||||
import Big from 'big.js'
|
||||
import classnames from "classnames";
|
||||
import styles from "./index.module.scss"
|
||||
import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
||||
import { memo, useCallback, useEffect, useRef, useState } from "react";
|
||||
import { useSelector } from "@/reducers/hooks"
|
||||
import {GetColorList} from "@/api/materialColor"
|
||||
import {AddShoppingCartApi} from "@/api/shopCart"
|
||||
import Taro, { useRouter } from "@tarojs/taro";
|
||||
import UseLogin from "@/use/useLogin"
|
||||
import { formatHashTag, formatPriceDiv, formatRemoveHashTag } from "@/common/fotmat";
|
||||
import { debounce, getFilterData } from "@/common/util";
|
||||
import { formatHashTag, formatPriceDiv } from "@/common/fotmat";
|
||||
import { getFilterData } from "@/common/util";
|
||||
import LabAndImg from "@/components/LabAndImg";
|
||||
import VirtualList from '@tarojs/components/virtual-list'
|
||||
import useCommonData from "@/use/useCommonData";
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
import { Button, CustomWrapper, RichText, Text, View } from '@tarojs/components'
|
||||
import { Button, RichText, Text, View } from '@tarojs/components'
|
||||
import Taro, { useDidShow, usePullDownRefresh, useRouter } from '@tarojs/taro';
|
||||
import classnames from "classnames";
|
||||
import DesSwiper from './components/swiper';
|
||||
@ -221,9 +221,7 @@ export default (props:Params) => {
|
||||
|| <View className={styles.buy_btn} onClick={() => placeOrder('to_order')}>选购商品</View>
|
||||
}
|
||||
</View>
|
||||
<CustomWrapper>
|
||||
<OrderCount show={showOrderCount} onClose={() => setShowOrderCount(false)} title={productName} productId={productInfo.id}/>
|
||||
</CustomWrapper>
|
||||
<OrderCount show={showOrderCount} onClose={() => setShowOrderCount(false)} title={productName} productId={productInfo.id}/>
|
||||
<ShopCart show={showCart} onClose={() => setShowCart(false)}/>
|
||||
<AddCollection show={collectionShow} onAdd={onAdd} onClose={closeCollection}/>
|
||||
<View className='common_safe_area_y'></View>
|
||||
|
@ -16,7 +16,6 @@ import { alert } from "@/common/common"
|
||||
import { useRouter } from "@tarojs/runtime"
|
||||
import ApplyRefund from "../order/components/applyRefund"
|
||||
import ReturnRecord from "../order/components/returnRecord"
|
||||
import ScanPayCheck from "../order/components/scanPayCheck"
|
||||
|
||||
export default () => {
|
||||
const {checkLogin} = useLogin()
|
||||
|
Loading…
x
Reference in New Issue
Block a user