import * as React from 'react'; class CouponFun { static getCircle(bgColor) { let str = ''; let style = ''; if (bgColor) { style = "background-color:" + bgColor } let width = 7; let OW = document.documentElement.clientWidth;//设备的宽度; let len = Math.ceil(OW / width) for (let i = 0; i < len; i++) { str += ''; } return {__html: str}; } static initParams(source) { let obj = {}; for (var key in source) { if (key != 'list') { obj[key] = source[key]; } } let newObj = obj; return newObj; } } export default CouponFun;