mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-14 17:41:45 +08:00
fix:修改
This commit is contained in:
@@ -6,14 +6,15 @@ require("dotenv-flow").config();
|
||||
|
||||
const DIST_PATH = `dist/${process.env.TARO_ENV}`;
|
||||
const APP_ENVS = getEnvs();
|
||||
|
||||
|
||||
|
||||
const CONST_ENVS = {
|
||||
APP_NAME: pkg.app_name,
|
||||
APP_AUTH_PAGE:
|
||||
process.env.TARO_ENV == "h5"
|
||||
? "/subpage/pages/auth/login"
|
||||
: "/subpage/pages/auth/wxauth",
|
||||
APP_HOME_PAGE:'/pages/index',
|
||||
: "/subpage/pages/auth/wxauth",
|
||||
...APP_ENVS
|
||||
};
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ import SpFloatPrivacy from './sp-float-privacy'
|
||||
import SearchBar from './search-bar'
|
||||
import SpNavBar from './sp-nav-bar'
|
||||
import SpNote from './sp-note'
|
||||
import SpNote2 from './sp-note/index2'
|
||||
import SpPageNote from './sp-pagenote'
|
||||
import SpTimer from './sp-timer'
|
||||
import SpRecommend from './sp-recommend'
|
||||
@@ -31,11 +32,13 @@ import SpImgPicker from './img-picker'
|
||||
import SpCell from './sp-cell'
|
||||
import FloatMenuMeiQia from './float-menus/meiqia'
|
||||
|
||||
import GoodsItem from './goods-item'
|
||||
|
||||
export { default as Loading } from './loading'
|
||||
export { default as Price } from './price'
|
||||
export { default as BackToTop } from './back-to-top'
|
||||
export { default as GoodsBuyPanel } from './goods-buy-panel'
|
||||
export { default as GoodsItem } from './goods-item'
|
||||
|
||||
export { default as TabBar } from './tab-bar'
|
||||
export { default as TagsBar } from './tags-bar'
|
||||
export { default as FilterBar } from './filter-bar'
|
||||
@@ -66,9 +69,11 @@ export { default as PointTag } from './point-tag'
|
||||
export { default as CouponModal } from './coupon-modal'
|
||||
export { default as PrivacyConfirmModal } from './privacy-confirm-modal'
|
||||
|
||||
|
||||
export default {}
|
||||
|
||||
export {
|
||||
GoodsItem,
|
||||
SpImg,
|
||||
SpMoreImg,
|
||||
SpLogin,
|
||||
@@ -78,6 +83,7 @@ export {
|
||||
SearchBar,
|
||||
SpNavBar,
|
||||
SpNote,
|
||||
SpNote2,
|
||||
SpPageNote,
|
||||
SpTimer,
|
||||
SpRecommend,
|
||||
|
||||
36
src/components/sp-note/index2.js
Normal file
36
src/components/sp-note/index2.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import Taro, { Component } from '@tarojs/taro'
|
||||
import { View, Text, Image } from '@tarojs/components'
|
||||
import { classNames } from '@/utils'
|
||||
|
||||
import './index2.scss'
|
||||
|
||||
export default class NoteIndex extends Component {
|
||||
static options = {
|
||||
addGlobalClass: true
|
||||
}
|
||||
|
||||
resolveUrl (img) {
|
||||
return `/assets/imgs/${img}`
|
||||
}
|
||||
|
||||
render () {
|
||||
const { img, imgStyle, styles, className, isUrl } = this.props
|
||||
|
||||
return (
|
||||
<View
|
||||
className={classNames('note', img ? 'note__has-img' : null, className)}
|
||||
// style={styleNames(styles)}
|
||||
>
|
||||
{
|
||||
img && (<Image
|
||||
className='note__img'
|
||||
mode='aspectFill'
|
||||
// style={styleNames(imgStyle)}
|
||||
src={isUrl ? img : this.resolveUrl(img)}
|
||||
/>)
|
||||
}
|
||||
<Text calssName='note__text'>{this.props.children}</Text>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
}
|
||||
17
src/components/sp-note/index2.scss
Normal file
17
src/components/sp-note/index2.scss
Normal file
@@ -0,0 +1,17 @@
|
||||
@import '../../style/imports';
|
||||
|
||||
.note {
|
||||
text-align: center;
|
||||
&__has-img {
|
||||
padding: 120px 0 0;
|
||||
}
|
||||
&__img {
|
||||
width: 76px * 4;
|
||||
height: 85px * 4;
|
||||
margin: 0 auto 48px;
|
||||
display: block;
|
||||
}
|
||||
&__text {
|
||||
color: $color-gray;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -62,7 +62,7 @@
|
||||
}
|
||||
|
||||
.cart-list {
|
||||
padding: $edge-size;
|
||||
padding: $edge-size;
|
||||
&__shop {
|
||||
margin: 0 0 20px;
|
||||
padding: 0 0 4px;
|
||||
|
||||
Reference in New Issue
Block a user