商城测试版v7

This commit is contained in:
czm 2022-07-23 21:20:18 +08:00
parent c4684c11b8
commit 7e12050a94
20 changed files with 129 additions and 100 deletions

View File

@ -11,7 +11,7 @@ export const BASE_URL = `https://test.zzfzyc.com/lymarket` // 测试环境
// export const BASE_URL = `https://dev.zzfzyc.com/lymarket` // 开发环境 // export const BASE_URL = `https://dev.zzfzyc.com/lymarket` // 开发环境
// export const BASE_URL = `https://www.zzfzyc.com/lymarket` // 正式环境 // export const BASE_URL = `https://www.zzfzyc.com/lymarket` // 正式环境
// export const BASE_URL = `http://192.168.1.5:40001/lymarket` // 王霞 // export const BASE_URL = `http://192.168.1.5:40001/lymarket` // 王霞
// export const BASE_URL = `http://192.168.1.7:50002/lymarket` // 添 // export const BASE_URL = `http://192.168.1.7:50001/lymarket` // 添
// export const BASE_URL = `http://192.168.1.42:50001/lymarket` // 杰 // export const BASE_URL = `http://192.168.1.42:50001/lymarket` // 杰
// CDN // CDN

View File

@ -67,7 +67,7 @@ export const REFUND_STATUS = {
//申请单退款状态枚举 //申请单退款状态枚举
export const REFUND_STATUS_ORDER = { export const REFUND_STATUS_ORDER = {
ReturnApplyOrderTypeAdvanceReceiptRefund: {value:1, label:'预收退款'}, // 预收退款 ReturnApplyOrderTypeAdvanceReceiptRefund: {value:2, label:'预收退款'}, // 预收退款
ReturnApplyOrderTypeReturnForRefund: {value:2, label:'退货退款'}, // 退货退款 ReturnApplyOrderTypeReturnForRefund: {value:1, label:'退货退款'}, // 退货退款
ReturnApplyOrderTypeSalesRefund: {value:3, label:'销售退款'}, // 销售退款 ReturnApplyOrderTypeSalesRefund: {value:3, label:'销售退款'}, // 销售退款
} }

View File

@ -43,8 +43,10 @@ export default memo(({value, onClick, showStatus = false}:Param) => {
setLabAndImgShow(false) setLabAndImgShow(false)
}, []) }, [])
const onShowLabAndImg = () => { const onShowLabAndImg = () => {
onClick?.(value)
if(!showStatus) return false if(!showStatus) return false
setLabAndImgShow(true) setLabAndImgShow(true)
} }
return ( return (

View File

@ -63,13 +63,13 @@ export default memo(({orderInfo, onClick, fixedBottom = true}:Param) => {
return orderInfo?.is_quality_check return orderInfo?.is_quality_check
} }
}, },
{ // {
id: 5, // id: 5,
label: '上传物流', // label: '上传物流',
validatarFunc: (orderInfo) => { // validatarFunc: (orderInfo) => {
return orderInfo?.stage == ReturnStageWaitCheck.value // return orderInfo?.stage == ReturnStageWaitCheck.value
} // }
}, // },
{ {
id: 6, id: 6,
label: '取消退款', label: '取消退款',

View File

@ -1,6 +1,6 @@
import { View } from "@tarojs/components" import { View } from "@tarojs/components"
import classnames from "classnames"; import classnames from "classnames";
import { useEffect, useState } from "react"; import { forwardRef, useEffect, useImperativeHandle, useState } from "react";
import styles from "./index.module.scss" import styles from "./index.module.scss"
type params = { type params = {
@ -9,7 +9,7 @@ type params = {
status?: false|true //是否选中 status?: false|true //是否选中
disabled?: false|true //是否禁用 disabled?: false|true //是否禁用
} }
export default ({onSelect, onClose, status = false, disabled = false}: params) => { export default forwardRef(({onSelect, onClose, status = false, disabled = false}: params, ref) => {
const [selected, SetSelected] = useState(false) const [selected, SetSelected] = useState(false)
const onSelectEven = () => { const onSelectEven = () => {
if(disabled) return false if(disabled) return false
@ -21,6 +21,9 @@ export default ({onSelect, onClose, status = false, disabled = false}: params) =
} }
SetSelected(res) SetSelected(res)
} }
useImperativeHandle(ref, () => ({
onSelectEven
}))
useEffect(() => { useEffect(() => {
SetSelected(status) SetSelected(status)
}, [status]) }, [status])
@ -33,4 +36,4 @@ export default ({onSelect, onClose, status = false, disabled = false}: params) =
</View> </View>
</> </>
) )
} })

View File

@ -45,6 +45,7 @@
color: $color_main; color: $color_main;
background: #ecf5ff; background: #ecf5ff;
border: 2px solid #007aff; border: 2px solid #007aff;
box-sizing: border-box;
width: 161.75px; width: 161.75px;
height: 65.2px; height: 65.2px;
} }
@ -102,6 +103,7 @@
width: 552px; width: 552px;
height: 82px; height: 82px;
border: 2px solid #cde5ff; border: 2px solid #cde5ff;
box-sizing: border-box;
font-size: $font_size_big; font-size: $font_size_big;
border-radius: 40px; border-radius: 40px;
margin-bottom: 20px; margin-bottom: 20px;

View File

@ -273,6 +273,17 @@ export default ({show = false, onClose, intoStatus='shop'}: param) => {
//绑定业务员和电话号码 //绑定业务员和电话号码
const [showBindSalesman, setShowBindSalesman] = useState(false) const [showBindSalesman, setShowBindSalesman] = useState(false)
//显示图片弹窗
const [showLabImage, setShowLabImage] = useState(false)
const [labImageValue, setLabImageValue] = useState()
const getLabAndImg = useCallback((val) => {
setShowLabImage(() => true)
setLabImageValue(val)
}, [])
const closeLabImgShow = useCallback(() => {
setShowLabImage(() => false)
}, [])
return ( return (
<View className={styles.shop_cart_main}> <View className={styles.shop_cart_main}>
<Popup showTitle={false} show={showPopup} onClose={() => closePopup()} > <Popup showTitle={false} show={showPopup} onClose={() => closePopup()} >
@ -300,7 +311,7 @@ export default ({show = false, onClose, intoStatus='shop'}: param) => {
<MCheckbox disabled={selectIndex!=-1&&selectIndex!=item.sale_mode} status={!!checkboxData[item.id]} onSelect={() => selectCallBack(item)} onClose={() => colseCallBack(item)}/> <MCheckbox disabled={selectIndex!=-1&&selectIndex!=item.sale_mode} status={!!checkboxData[item.id]} onSelect={() => selectCallBack(item)} onClose={() => colseCallBack(item)}/>
</View> </View>
<View className={styles.img}> <View className={styles.img}>
<LabAndImg value={{lab:item.lab,rgb:item.rgb,texture_url:item.texture_url, title:item.product_color_code}}/> <LabAndImg value={{lab:item.lab,rgb:item.rgb,texture_url:item.texture_url, title:item.product_color_code}} showStatus={false} onClick={getLabAndImg}/>
</View> </View>
<View className={styles.product_item_name}> <View className={styles.product_item_name}>
<View className={styles.product_item_name_header}> <View className={styles.product_item_name_header}>
@ -353,8 +364,13 @@ export default ({show = false, onClose, intoStatus='shop'}: param) => {
</View> </View>
</View> </View>
</Popup> </Popup>
<View>
<BindSalesmanPopup show={showBindSalesman} onClose={() => setShowBindSalesman(false)}/> <BindSalesmanPopup show={showBindSalesman} onClose={() => setShowBindSalesman(false)}/>
</View> </View>
<View>
<LabAndImgShow value={labImageValue} show={showLabImage} onClose={closeLabImgShow}/>
</View>
</View>
) )
} }

View File

@ -198,14 +198,25 @@ export default memo(({show = false, onClose, title = '', productId = 0}: param)
return <View className={styles.priceText}><Text>¥</Text>{price}<Text> /{selectList[selectIndex].eunit}</Text></View> return <View className={styles.priceText}><Text>¥</Text>{price}<Text> /{selectList[selectIndex].eunit}</Text></View>
}, [selectIndex]) }, [selectIndex])
//显示图片弹窗
const [showLabImage, setShowLabImage] = useState(false)
const [labImageValue, setLabImageValue] = useState()
const getLabAndImg = useCallback((val) => {
setShowLabImage(() => true)
setLabImageValue(val)
}, [])
const closeLabImgShow = useCallback(() => {
setShowLabImage(() => false)
}, [])
//虚拟滚动 //虚拟滚动
const Rows = useCallback(({id, index, style, data}:any) => { const Rows = memo(({id, index, style, data}:any) => {
let item = data[index] let item = data[index]
return ( return (
<> <>
{item&&<View className={styles.item} key={item.id}> {item&&<View className={styles.item} key={item.id}>
<View className={styles.item_color}> <View className={styles.item_color}>
<LabAndImg value={{lab:item.lab,rgb:item.rgb,texture_url:item.texture_url, title:item.code}} showStatus={false}/> <LabAndImg value={{lab:item.lab,rgb:item.rgb,texture_url:item.texture_url, title:item.code}} showStatus={false} onClick={getLabAndImg}/>
</View> </View>
<View className={styles.item_con}> <View className={styles.item_con}>
<View className={styles.title}>{formatHashTag(item.code, item.name)}</View> <View className={styles.title}>{formatHashTag(item.code, item.name)}</View>
@ -233,7 +244,7 @@ export default memo(({show = false, onClose, title = '', productId = 0}: param)
} }
</> </>
) )
}, [list]) })
return ( return (
<View className={styles.shop_cart_main}> <View className={styles.shop_cart_main}>
@ -262,38 +273,6 @@ export default memo(({show = false, onClose, title = '', productId = 0}: param)
<View className={styles.product_color_con}> <View className={styles.product_color_con}>
{(list.length <= 0 && colorState.loading)&&<LoadingCard/>} {(list.length <= 0 && colorState.loading)&&<LoadingCard/>}
{(list.length > 0&& !colorState.loading)&& {(list.length > 0&& !colorState.loading)&&
// <InfiniteScroll moreStatus={false}>
// <View className={styles.color_con}>
// {list.map(item => {
// return <View className={styles.item} key={item.id}>
// <View className={styles.item_color}>
// <LabAndImg value={{lab:item.lab,rgb:item.rgb,texture_url:item.texture_url}}/>
// </View>
// <View className={styles.item_con}>
// <View className={styles.title}>{formatHashTag(item.code, item.name)}</View>
// <View className={styles.num}>
// {formatPrice(item)}
// </View>
// </View>
// <View className={styles.btn_con}>
// {!item.show&&<View className={styles.btn} onClick={() => onAdd(item)}>添加</View>
// ||<View className={styles.btn_count}>
// <Counter
// onBlue={(e) => getInputValue(e, item)}
// defaultNum={item.count}
// step={selectList[selectIndex].step}
// digits={selectList[selectIndex].digits}
// onClickBtn={(e) => getInputValue(e, item)}
// unit={selectList[selectIndex].unit}
// minNum={selectList[selectIndex].minNum}
// maxNum={selectList[selectIndex].maxNum}
// />
// </View>}
// </View>
// </View>
// })}
// </View>
// </InfiniteScroll>}
<View className={styles.color_con}> <View className={styles.color_con}>
<VirtualList <VirtualList
className={styles.virtual_list} className={styles.virtual_list}
@ -319,6 +298,9 @@ export default memo(({show = false, onClose, title = '', productId = 0}: param)
</View> </View>
<View className="common_safe_area_y"></View> <View className="common_safe_area_y"></View>
</Popup> </Popup>
<View>
<LabAndImgShow value={labImageValue} show={showLabImage} onClose={closeLabImgShow}/>
</View>
</View> </View>
) )
}) })

View File

@ -21,7 +21,8 @@
line-height: 44px; line-height: 44px;
} }
.search_input{ .search_input{
width: 300px; flex:1;
margin-left: 20px;
} }
} }
.products{ .products{

View File

@ -91,8 +91,8 @@ import { throttle } from "@/common/util";
name: address?.name, name: address?.name,
phone: address?.phone, phone: address?.phone,
shipment_mode: address?.shipment_mode, shipment_mode: address?.shipment_mode,
take_goods_address: address?.take_goods_address, take_goods_address: preViewOrder?.take_goods_address,
take_goods_phone: address?.take_goods_phone, take_goods_phone: preViewOrder?.take_goods_phone,
} }
}, [preViewOrder]) }, [preViewOrder])

View File

@ -1,23 +1,18 @@
import { GetAddressListApi } from "@/api/addressList";
import { addressListApi } from "@/api/addressManager";
import { EditSaleOrderAddressApi, EditSaleOrderShipmentModeApi } from "@/api/order"; import { EditSaleOrderAddressApi, EditSaleOrderShipmentModeApi } from "@/api/order";
import { alert } from "@/common/common"; import { alert, goLink } from "@/common/common";
import { ORDER_STATUS } from "@/common/enum"; import { ORDER_STATUS } from "@/common/enum";
import { debounce } from "@/common/util"; import { debounce, throttle } from "@/common/util";
import AddressList from "@/components/AddressList"; import AddressList from "@/components/AddressList";
import Popup from "@/components/popup"; import Popup from "@/components/popup";
import { Text, View } from "@tarojs/components" import { Text, View } from "@tarojs/components"
import classnames from "classnames"; import classnames from "classnames";
import { forwardRef, memo, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react"; import { forwardRef, memo, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
import Taro from "@tarojs/taro";
import styles from './index.module.scss' import styles from './index.module.scss'
export type AddressInfoParam = {
province_name: string,
city_name: string,
district_name: string,
address_detail: string,
id?: number,
name: string,
phone: string,
}
type Param = { type Param = {
onSelect?: (val:any) => void, //选择地址 onSelect?: (val:any) => void, //选择地址
disabled?: false|true, //true禁用后只用于展示 disabled?: false|true, //true禁用后只用于展示
@ -61,7 +56,6 @@ export default memo(forwardRef(({onSelect, onChangeShipmentMode, orderInfo, stat
} }
}, [orderInfo]) }, [orderInfo])
//打开地址列表 //打开地址列表
const [showAddressList, setShowAddressList] = useState(false) const [showAddressList, setShowAddressList] = useState(false)
const changeShow = () => { const changeShow = () => {
@ -77,12 +71,39 @@ export default memo(forwardRef(({onSelect, onChangeShipmentMode, orderInfo, stat
//收货方法,1:自提2物流 //收货方法,1:自提2物流
const [receivingStatus, setReceivingStatus] = useState(2) const [receivingStatus, setReceivingStatus] = useState(2)
const {fetchData: shipmentModeFetchData} = EditSaleOrderShipmentModeApi() const {fetchData: shipmentModeFetchData} = EditSaleOrderShipmentModeApi()
const onReceivingStatus = (value, e) => { const onReceivingStatus = async (value, e) => {
e.stopPropagation() e.stopPropagation()
if(limitEdit()) changeReceivingStatus(value) if(limitEdit()) changeReceivingStatus(value)
} }
//当没有地址时获取地址列表中的第一个数据
const {fetchData: addressListFetchData} = addressListApi()
const getAddressListOne = async () => {
if(orderInfo?.address_detail) return true
let res = await addressListFetchData()
if( res.data.list && res.data.list?.length > 0 ) {
let info = res.data.list[0]
await addressFetchData({id: orderInfo?.id, address_id: info.id})
setAddressInfo((e) => ({...e, ...info, target_user_name: info.name, target_user_phone: info.phone}))
return true
} else {
Taro.showModal({
content: '您还没有地址,请前去新增地址',
success: function (res) {
if (res.confirm) {
goLink('/pages/addressManager/index')
} else if (res.cancel) {
console.log('用户点击取消')
}
}
})
return false
}
}
const changeReceivingStatus = debounce(async (value) => { const changeReceivingStatus = debounce(async (value) => {
if(!orderInfo || value == receivingStatus) return false if(!orderInfo || value == receivingStatus) return false
if(status == 1) { if(status == 1) {
@ -90,16 +111,20 @@ export default memo(forwardRef(({onSelect, onChangeShipmentMode, orderInfo, stat
setReceivingStatus(value) setReceivingStatus(value)
return false return false
} }
if(value == 2) {
let res = await getAddressListOne()
if(!res) return false
}
alert.loading('正在修改') alert.loading('正在修改')
const res = await shipmentModeFetchData({id: orderInfo.id, shipment_mode:value}) const res = await shipmentModeFetchData({id: orderInfo.id, shipment_mode:value})
if(res.success) { if(res.success) {
alert.success('收货方式修改成功') alert.success('收货方式修改成功')
onChangeShipmentMode?.(value) onChangeShipmentMode?.(value)
setReceivingStatus(value) setReceivingStatus(() => value)
} else { } else {
alert.none(res.msg) alert.none(res.msg)
} }
}, 10) }, 300)
//修改地址 //修改地址
const [addressId, setAddressId] = useState(0) const [addressId, setAddressId] = useState(0)
@ -109,7 +134,7 @@ export default memo(forwardRef(({onSelect, onChangeShipmentMode, orderInfo, stat
if(status == 1) { if(status == 1) {
setShowAddressList(() => false) setShowAddressList(() => false)
setAddressId(value.id) setAddressId(value.id)
setAddressInfo(() => value) setAddressInfo((e) => ({...e, ...value, target_user_name: value.name, target_user_phone: value.phone}))
onSelect?.(value) onSelect?.(value)
return false return false
} }
@ -120,13 +145,13 @@ export default memo(forwardRef(({onSelect, onChangeShipmentMode, orderInfo, stat
onSelect?.(value) onSelect?.(value)
setShowAddressList(() => false) setShowAddressList(() => false)
setAddressId(value.id) setAddressId(value.id)
setAddressInfo(() => value) setAddressInfo((e) => ({...e, ...value, target_user_name: value.name, target_user_phone: value.phone}))
} else { } else {
alert.none(res.msg) alert.none(res.msg)
} }
} }
//根据订单状态判断是否可修改 //根据订单状态判断是否可修改
const limitEdit = () => { const limitEdit = () => {
let res = [ let res = [
SaleorderstatusWaitingPrePayment.value, SaleorderstatusWaitingPrePayment.value,
@ -149,11 +174,13 @@ export default memo(forwardRef(({onSelect, onChangeShipmentMode, orderInfo, stat
//地址格式 //地址格式
const formatAddress = useMemo(() => { const formatAddress = useMemo(() => {
if(receivingStatus == 2) { if(receivingStatus == 2) {
console.log('take_goods_addressbb::', addressInfo)
return addressInfo?.province_name?addressInfo.province_name + addressInfo.city_name + addressInfo.district_name + addressInfo.address_detail:'' return addressInfo?.province_name?addressInfo.province_name + addressInfo.city_name + addressInfo.district_name + addressInfo.address_detail:''
} else { } else {
console.log('take_goods_address::', addressInfo)
return addressInfo?.take_goods_address return addressInfo?.take_goods_address
} }
}, [addressInfo, receivingStatus]) }, [receivingStatus, addressInfo])
return ( return (
<View> <View>
@ -165,8 +192,8 @@ export default memo(forwardRef(({onSelect, onChangeShipmentMode, orderInfo, stat
{(receivingStatus == 2 && !logisticsShow)&&<Text className={classnames(styles.moreIconfont,'iconfont icon-a-moreback')}></Text>} {(receivingStatus == 2 && !logisticsShow)&&<Text className={classnames(styles.moreIconfont,'iconfont icon-a-moreback')}></Text>}
</View> </View>
<View className={styles.order_address_text_name}> <View className={styles.order_address_text_name}>
<Text>{receivingStatus == 1?'管理员':addressInfo?.name}</Text> <Text>{receivingStatus == 1?'管理员':addressInfo?.target_user_name}</Text>
<Text>{receivingStatus == 1?addressInfo?.take_goods_phone: addressInfo?.phone}</Text> <Text>{receivingStatus == 1?addressInfo?.take_goods_phone: addressInfo?.target_user_phone}</Text>
</View> </View>
</View> </View>
{!logisticsShow&&<View className={styles.updateBtn}> {!logisticsShow&&<View className={styles.updateBtn}>

View File

@ -1,5 +1,5 @@
import { Text, View } from "@tarojs/components"; import { Text, View } from "@tarojs/components";
import { memo, useCallback, useEffect, useMemo, useState } from "react"; import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
import AmountShow from "../amountShow"; import AmountShow from "../amountShow";
import classnames from "classnames"; import classnames from "classnames";
import styles from './index.module.scss' import styles from './index.module.scss'
@ -86,9 +86,13 @@ export default memo(({show = false, onClose, orderInfo, onSubmitSuccess}:Param)
}, [show, orderInfo]) }, [show, orderInfo])
//预存款选择 //预存款选择
const advanceRef = useRef<any>(null)
const advanceSelectData = useCallback((val) => { const advanceSelectData = useCallback((val) => {
setSubmitData((e) => ({...e, payment_method:val})) setSubmitData((e) => ({...e, payment_method:val}))
}, []) }, [])
const changeSelect = () => {
advanceRef.current.onSelectEven()
}
//账期选择 //账期选择
const periodSelectData = (val) => { const periodSelectData = (val) => {
@ -155,10 +159,6 @@ export default memo(({show = false, onClose, orderInfo, onSubmitSuccess}:Param)
) )
}, [payInfo]) }, [payInfo])
//选择改变
const changeSelect = () => {
}
//在线支付所需数据 //在线支付所需数据
const onlinePayData = useMemo(() => { const onlinePayData = useMemo(() => {
return {...orderInfo, offline_remittance_information: payInfo?.offline_remittance_information} return {...orderInfo, offline_remittance_information: payInfo?.offline_remittance_information}
@ -199,7 +199,7 @@ export default memo(({show = false, onClose, orderInfo, onSubmitSuccess}:Param)
</View> </View>
{advance_payment} {advance_payment}
</View> </View>
<MCheckbox status={submitData.payment_method == PaymentMethodPreDeposit.value} onSelect={() => advanceSelectData(PaymentMethodPreDeposit.value)} onClose={() => advanceSelectData(null)}/> <MCheckbox ref={advanceRef} status={submitData.payment_method == PaymentMethodPreDeposit.value} onSelect={() => advanceSelectData(PaymentMethodPreDeposit.value)} onClose={() => advanceSelectData(null)}/>
</View> </View>
{show_account_payment&&<View className={styles.payment_list_item}> {show_account_payment&&<View className={styles.payment_list_item}>
<View className={styles.payment_list_item_left}> <View className={styles.payment_list_item_left}>

View File

@ -70,7 +70,7 @@ export default memo(({show = true, onClose, company, orderInfo}:Param) => {
client: orderInfo.purchaser_name, //客户名称 client: orderInfo.purchaser_name, //客户名称
phone: userPhone(orderInfo), //收货手机号码 phone: userPhone(orderInfo), //收货手机号码
order_total_length: (orderInfo.total_number/100).toString(), //订单布匹长度 order_total_length: (orderInfo.total_number/100).toString(), //订单布匹长度
order_total_price: formatPriceDiv(orderInfo.total_sale_price).toString(), //订单价格 order_total_price: formatPriceDiv(orderInfo.total_should_collect_money).toString(), //订单价格
order_total_num: (orderInfo.total_number) + '', order_total_num: (orderInfo.total_number) + '',
qrcode:"", //跳转链接 qrcode:"", //跳转链接
order_total_weight: formatWeightDiv(orderInfo.total_weight||orderInfo.total_estimate_weight).toString(), //订单布匹重量 order_total_weight: formatWeightDiv(orderInfo.total_weight||orderInfo.total_estimate_weight).toString(), //订单布匹重量

View File

@ -74,7 +74,7 @@ export default memo(({show = true, onClose, company, orderInfo}:Param) => {
client: orderInfo.purchaser_name, //客户名称 client: orderInfo.purchaser_name, //客户名称
phone: userPhone(orderInfo), //收货手机号码 phone: userPhone(orderInfo), //收货手机号码
order_total_length: (orderInfo.total_number/100).toString(), //订单布匹长度 order_total_length: (orderInfo.total_number/100).toString(), //订单布匹长度
order_total_price: formatPriceDiv(orderInfo.total_sale_price).toString(), //订单价格 order_total_price: formatPriceDiv(orderInfo.total_should_collect_money).toString(), //订单价格
order_total_num: (orderInfo.total_number).toString(), order_total_num: (orderInfo.total_number).toString(),
qrcode:"", //跳转链接 qrcode:"", //跳转链接
order_total_weight: formatWeightDiv(orderInfo.total_weight||orderInfo.total_estimate_weight).toString(), //订单布匹重量 order_total_weight: formatWeightDiv(orderInfo.total_weight||orderInfo.total_estimate_weight).toString(), //订单布匹重量

View File

@ -106,8 +106,8 @@ import styles from './index.module.scss'
city_name: orderDetail?.city_name, city_name: orderDetail?.city_name,
district_name: orderDetail?.district_name, district_name: orderDetail?.district_name,
address_detail: orderDetail?.address_detail, address_detail: orderDetail?.address_detail,
name: orderDetail?.target_user_name, target_user_name: orderDetail?.target_user_name,
phone: orderDetail?.target_user_phone, target_user_phone: orderDetail?.target_user_phone,
shipment_mode: orderDetail?.shipment_mode, shipment_mode: orderDetail?.shipment_mode,
id: orderDetail?.id, id: orderDetail?.id,
sale_mode: orderDetail?.sale_mode, sale_mode: orderDetail?.sale_mode,

View File

@ -135,9 +135,7 @@
} }
} }
.list{ .list{
flex:1; height: calc(100vh - 440px);
display: flex;
flex-direction: column;
.list_num { .list_num {
font-size: $font_size_min; font-size: $font_size_min;
color:$color_font_two; color:$color_font_two;
@ -148,8 +146,7 @@
box-shadow: 0px 5px 5px #ccc; box-shadow: 0px 5px 5px #ccc;
} }
.scroll{ .scroll{
flex:1; height: 100%;
height:0;
padding-top: 3px; padding-top: 3px;
} }
.product_list{ .product_list{
@ -162,6 +159,7 @@
background-color: #fff; background-color: #fff;
border-radius: 20px; border-radius: 20px;
margin-bottom: 20px; margin-bottom: 20px;
box-shadow: 0px 3px 10px 0px rgba(0,0,0,0.1) ;
.product_img{ .product_img{
width: 100%; width: 100%;
height: 224px; height: 224px;

View File

@ -197,9 +197,8 @@ export default () => {
<View className={styles.list}> <View className={styles.list}>
<View className={classnames(styles.list_num, scrollStatus&&styles.list_num_shadow)}> ({materialList.total})</View> <View className={classnames(styles.list_num, scrollStatus&&styles.list_num_shadow)}> ({materialList.total})</View>
<View className={styles.scroll}> <View className={styles.scroll}>
<InfiniteScroll <InfiniteScroll
selfonScrollToLower={() => getScrolltolower()} selfonScrollToLower={getScrolltolower}
selfOnScroll={(e) => onscroll(e)} selfOnScroll={(e) => onscroll(e)}
statusMore={statusMore} statusMore={statusMore}
> >

View File

@ -47,7 +47,7 @@
.history_header { .history_header {
width:100%; width:100%;
display: flex; display: flex;
justify-content: space-between; // justify-content: space-between;
font-size: $font_size_medium; font-size: $font_size_medium;
.history_header_title { .history_header_title {
font-size: $font_size; font-size: $font_size;
@ -55,8 +55,9 @@
font-weight: 700; font-weight: 700;
} }
.miconfont{ .miconfont{
font-size: 30px; font-size: 40px;
color: $color_font_three; color: $color_font_three;
margin-left: 20px;
} }
} }
.list{ .list{

View File

@ -80,7 +80,7 @@ export default () => {
{searchData?.historyField.length > 0 && <View className={styles.history}> {searchData?.historyField.length > 0 && <View className={styles.history}>
<View className={styles.history_header}> <View className={styles.history_header}>
<View className={styles.history_header_title}></View> <View className={styles.history_header_title}></View>
<View className={classnames('iconfont icon-shanchu', styles.miconfont)}></View> {/* <View className={classnames('iconfont icon-shanchu', styles.miconfont)}></View> */}
</View> </View>
<View className={styles.list}> <View className={styles.list}>
{searchData?.historyField?.map((item, index) => <View key={index} className={styles.item} onClick={() => searchEvent(item.search_key, false)}>{item.search_key}</View>)} {searchData?.historyField?.map((item, index) => <View key={index} className={styles.item} onClick={() => searchEvent(item.search_key, false)}>{item.search_key}</View>)}

View File

@ -2,7 +2,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100vh; height: 100vh;
background-color: $color_bg_one; background-color: #F8F8F8;
.search{ .search{
padding: 20px; padding: 20px;
} }
@ -118,9 +118,7 @@
} }
} }
.list{ .list{
flex:1; height: calc(100vh - 330px);
display: flex;
flex-direction: column;
.list_num { .list_num {
font-size: $font_size_min; font-size: $font_size_min;
color:$color_font_two; color:$color_font_two;
@ -131,8 +129,7 @@
box-shadow: 0px 5px 5px #ccc; box-shadow: 0px 5px 5px #ccc;
} }
.scroll{ .scroll{
flex:1; height: 100%;
height:0;
padding-top: 3px; padding-top: 3px;
} }
.product_list{ .product_list{
@ -145,6 +142,7 @@
background-color: #fff; background-color: #fff;
border-radius: 20px; border-radius: 20px;
margin-bottom: 20px; margin-bottom: 20px;
box-shadow: 0px 3px 10px 0px rgba(0,0,0,0.1) ;
.product_img{ .product_img{
width: 100%; width: 100%;
height: 224px; height: 224px;