feat: 客服接入 订单问题修改

This commit is contained in:
2025-10-01 11:21:58 +08:00
parent ce63c1a954
commit 0efcd36aa7
9 changed files with 217 additions and 139 deletions

View File

@@ -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 () => {