index.js 708 Bytes
Newer Older
zhanghaozhe committed
1 2 3
import React from "react"
import { Modal } from "antd-mobile"
import "./index.scss"
xuzhenghua committed
4 5

export default function ({
zhanghaozhe committed
6 7 8 9 10 11 12 13 14
  amount,
  limit_amount,
  onCancel = () => {},
  onConfirm,
}) {
  const content = (
    <>
      <div className="end-expansion-alert-ques">
        {`你的${amount}元优惠券正在膨胀中,
xuzhenghua committed
15
                确定要结束膨胀吗?`}
zhanghaozhe committed
16 17 18 19 20 21 22 23 24 25
      </div>
      <div className="end-expansion-alert-hint">
        {`离${limit_amount}元只差一点点了!继续膨胀,优惠更多哦`}
      </div>
    </>
  )
  Modal.alert("温馨提示", content, [
    { text: "再考虑下", onPress: onCancel, style: { color: "#333" } },
    { text: "确定结束膨胀", onPress: onConfirm },
  ])
xuzhenghua committed
26
}