收货地址组件返回区域等级
This commit is contained in:
@@ -7,7 +7,7 @@ import InfiniteScroll from "@/components/infiniteScroll";
|
||||
import styles from "./index.module.scss"
|
||||
import { useCallback, useEffect, useRef, useState } from "react";
|
||||
import Taro from "@tarojs/taro";
|
||||
import { goLink } from "@/common/common";
|
||||
import { alert, goLink } from "@/common/common";
|
||||
import {GetShoppingCartApi, DelShoppingCartApi} from "@/api/shopCart"
|
||||
import { formatHashTag, formatImgUrl, formatMillionYuan } from "@/common/fotmat";
|
||||
|
||||
@@ -184,6 +184,16 @@ export default ({show = false, onClose}: param) => {
|
||||
const formatCount = useCallback((item) => {
|
||||
return item.sale_mode == 0? item.roll + '件': item.length + 'm'
|
||||
}, [])
|
||||
|
||||
//去结算
|
||||
const orderDetail = () => {
|
||||
if(selectIndex == -1 ) {
|
||||
console.log(selectIndex, selectIds.current)
|
||||
alert.error('请选择面料')
|
||||
}
|
||||
goLink('/pages/order/index',{ids:selectIds.current, sale_mode:selectIndex})
|
||||
|
||||
}
|
||||
|
||||
return (
|
||||
<View className={styles.shop_cart_main}>
|
||||
@@ -241,7 +251,7 @@ export default ({show = false, onClose}: param) => {
|
||||
<View className={styles.price_real}><text>¥</text>200</View>
|
||||
<View className={styles.price_forecast}>预估金额</View>
|
||||
</View>
|
||||
<View className={styles.goPay} onClick={() => goLink('/pages/order/index')}>
|
||||
<View className={styles.goPay} onClick={() => orderDetail()}>
|
||||
去结算
|
||||
</View>
|
||||
</View>
|
||||
@@ -250,4 +260,5 @@ export default ({show = false, onClose}: param) => {
|
||||
</Popup>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user