feat: 客服接入 订单问题修改
This commit is contained in:
@@ -144,6 +144,14 @@ function Coursel(props) {
|
||||
getImagesMsg(image_list || []);
|
||||
}, [image_list]);
|
||||
|
||||
function previewImage(current_url) {
|
||||
// console.log(image_list, "image_list");
|
||||
Taro.previewImage({
|
||||
current: current_url,
|
||||
urls: list?.length > 0 ? list.map((c) => c.url) : [],
|
||||
});
|
||||
}
|
||||
|
||||
return (
|
||||
<View className="detail-swiper-container">
|
||||
<View
|
||||
@@ -152,7 +160,11 @@ function Coursel(props) {
|
||||
>
|
||||
{list.map((item, index) => {
|
||||
return (
|
||||
<View className="detail-swiper-item" key={index}>
|
||||
<View
|
||||
className="detail-swiper-item"
|
||||
key={index}
|
||||
onClick={() => previewImage(item.url)}
|
||||
>
|
||||
<Image
|
||||
src={item.url}
|
||||
mode="aspectFill"
|
||||
@@ -1140,10 +1152,15 @@ function Index() {
|
||||
const sharePopupRef = useRef<any>(null);
|
||||
const commentRef = useRef();
|
||||
|
||||
useEffect(() => {
|
||||
updateLocation();
|
||||
fetchUserInfo();
|
||||
}, []);
|
||||
|
||||
useDidShow(async () => {
|
||||
await updateLocation();
|
||||
await fetchUserInfo();
|
||||
// await fetchDetail();
|
||||
// await updateLocation();
|
||||
// await fetchUserInfo();
|
||||
await fetchDetail();
|
||||
});
|
||||
|
||||
const updateLocation = async () => {
|
||||
|
||||
Reference in New Issue
Block a user