🐞 fix(removeTag):removeTag

This commit is contained in:
Haiyi 2022-12-13 18:43:55 +08:00
parent a1c0645d39
commit a10872f4c0
4 changed files with 8 additions and 6 deletions

View File

@ -10,6 +10,7 @@ import Popup from '@/components/popup'
import Goods from '@/components/goodsItem'
import BottomCustomer from '@/components/BottomCustomer'
import DotLoading from '@/components/dotLoading'
import { formatDateTime, formatHashTag, formatPriceDiv, formatRemoveHashTag, formatWeightDiv } from '@/common/format'
interface prosObj {
showPopup?: false | true
@ -128,7 +129,7 @@ const ShoppingCart = (props: prosObj, ref) => {
<ScrollView className={styles.scrllStyle} scrollY>
<View className={styles.shopcartBox}>
<View className={styles.topTitle}>
{obj?.code}# {obj?.name}
{formatHashTag(obj?.code, obj?.name)}
</View>
<View className={styles.selectFont}>
1 {selectTotal} {selectNums} {showModefont}

View File

@ -82,7 +82,7 @@ const GoodsItem = (porps: PropGoods) => {
list.map((item, index) => {
return (
<View className={styles.goodsBox} key={index}>
<View className={styles.goodsProduct}>{item.code}# {item.name}</View>
<View className={styles.goodsProduct}>{formatHashTag(item.code, item.name)}</View>
{
item.product_colors.map((it, inx) => {
return (
@ -100,7 +100,7 @@ const GoodsItem = (porps: PropGoods) => {
<View className={styles.clear}> </View>
<View className={styles.itemRight}>
<View className={styles.item_right_top}>
<View className={styles.itemName}>{it.code}{it.name}</View>
<View className={styles.itemName}>{formatHashTag(it?.code, it?.name)}</View>
{/* <View className={styles.itemNums}>x{obj?.sale_mode === 0 ? it.roll : it.length / 100}{obj?.sale_mode === 0 ? '条' : 'm'}</View> */}
{
obj.sale_mode == 0 && <View className={styles.itemNums}>x{obj.stage == 0 || obj.stage == 1 || obj.stage == 2

View File

@ -77,7 +77,7 @@ const GoodsItem = (porps: PropGoods) => {
list.map((item, index) => {
return (
<View className={styles.goodsBox} key={index}>
<View className={styles.goodsProduct}>{item.code}# {item.name}</View>
<View className={styles.goodsProduct}>{formatHashTag(item?.code, item?.name)}</View>
{
item?.product_colors.map((it, inx) => {
return (
@ -96,7 +96,7 @@ const GoodsItem = (porps: PropGoods) => {
<View className={styles.clear}> </View>
<View className={styles.itemRight}>
<View className={styles.item_right_top}>
<View className={styles.itemName}>{it.code}# {it.name}</View>
<View className={styles.itemName}>{formatHashTag(it?.code, it?.name)}</View>
{/* <View className={styles.itemNums}>x{obj?.sale_mode === 0 ? it.roll : it.length / 100}{obj?.sale_mode === 0 ? '条' : 'm'}</View> */}
{
obj.sale_mode == 0 && <View className={styles.itemNums}>x{obj.stage == 0 || obj.stage == 1 || obj.stage == 2

View File

@ -2,6 +2,7 @@ import { Image, View } from '@tarojs/components'
import React, { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react'
import styles from '../goods/index.module.scss'
import LabAndImg from '@/components/LabAndImg'
import { formatDateTime, formatHashTag, formatPriceDiv, formatRemoveHashTag, formatWeightDiv } from '@/common/format'
const Goods = (props: any) => {
const labAndImgObj = useCallback((item) => {
@ -29,7 +30,7 @@ const Goods = (props: any) => {
</>
}
<View className={styles.rightBox}>
<View className={styles.productName}>{props.data?.code}#{props.data?.name}</View>
<View className={styles.productName}>{formatHashTag(props.data?.code, props.data?.name)}</View>
<View className={styles.tips}>{props.data?.component}</View>
<View className={styles.flexTag}>
<View className={styles.tagOne}>{props.data?.width}</View>