+
+
+
+ 选择门店
+
+ )}
+ extra={(
+
+
+ {selectedStore?.name || '请选择门店'}
+
+
+
+ )}
+ onClick={openStorePopup}
+ />
+ |
+
+ {
+ address && (
+ Taro.navigateTo({url: '/user/address/index'})}>
+
+
+
+
+ 送至
+
+ {address.province} {address.city} {address.region} {address.address}
+
+
+
+ {address.name} {address.phone}
-
- )}
+
+ |
+ )
+ }
+ {!address && (
+ Taro.navigateTo({url: '/user/address/index'})}>
+
+
+ 添加收货地址
+
+ |
+ )}
+
- {/* 虚拟礼品卡和服务礼品卡的地址选填 */}
- {gift.type !== 10 && (
-
- 使用地址(选填)
-
-
- )}
-
- {/* 使用备注 */}
-
- 使用备注(选填)
-
+
+ )}
+ />
+
- {/* 使用说明 */}
-
-
- {gift.type === 10 && '💡 实物礼品卡使用后请到指定地址领取商品'}
- {gift.type === 20 && '💡 虚拟礼品卡使用后将自动发放到您的账户'}
- {gift.type === 30 && '💡 服务礼品卡使用后请联系客服预约服务时间'}
-
-
+ {/*
*/}
+ {/* */}
+ {/* {payment?.name}*/}
+ {/* */}
+ {/* */}
+ {/* )}*/}
+ {/* onClick={() => setIsVisible(true)}*/}
+ {/* />*/}
+ {/* | */}
-
-
- >
- ) : (
- /* 使用成功页面 */
-
-
-
- {/**/}
-
-
- 使用成功!
-
- {gift.type === 10 && '请到指定地址领取您的商品'}
- {gift.type === 20 && '虚拟商品已发放到您的账户'}
- {gift.type === 30 && '请联系客服预约服务时间'}
+ 关闭
-
- {gift.contactInfo && (
-
- 客服联系方式
- {gift.contactInfo}
-
- )}
-
-
-
-
+
+ {storeLoading ? (
+
+ 加载中...
+
+ ) : (
+
+ {stores.map((s) => {
+ const isActive = !!selectedStore?.id && selectedStore.id === s.id
+ return (
+ {s.name || `门店${s.id}`}}
+ description={s.address || ''}
+ onClick={async () => {
+ let storeToSave: ShopStore = s
+ if (s?.id) {
+ try {
+ const full = await getShopStore(s.id)
+ if (full) storeToSave = full
+ } catch (_e) {
+ // keep base item
+ }
+ }
+ setSelectedStore(storeToSave)
+ saveSelectedStoreToStorage(storeToSave)
+ setStorePopupVisible(false)
+ Taro.showToast({title: '门店已切换', icon: 'success'})
+ }}
+ />
+ )
+ })}
+ {!stores.length && (
+ | 暂无门店数据} />
+ )}
+ | |
+ )}
- )}
-
+
+
+
+
+
+
+
+
+ 使用水票:
+ {getFinalPrice().toFixed(2)}
+
+
+
+
+
+
+
+
);
};
-export default GiftCardUse;
+export default OrderConfirm;