|
|
@@ -120,12 +120,14 @@ export default function CancelReasonDialog({
|
|
|
<div
|
|
|
key={reasonText}
|
|
|
data-testid={`cancel-reason-${reasonText}`}
|
|
|
- className={`px-3 py-2 rounded border cursor-pointer transition-colors ${
|
|
|
+ className={`px-3 py-2 rounded border cursor-pointer transition-colors select-none ${
|
|
|
selectedReason === reasonText
|
|
|
? 'border-primary bg-primary/10'
|
|
|
: 'border-gray-300 bg-white hover:bg-gray-50'
|
|
|
}`}
|
|
|
onClick={() => handleReasonSelect(reasonText)}
|
|
|
+ // 添加Taro小程序兼容的点击事件处理
|
|
|
+ onTap={() => handleReasonSelect(reasonText)}
|
|
|
>
|
|
|
<span
|
|
|
className={`text-sm ${
|