(UIImage *)getEdgeLineImageWithType:(ELJSecondhandHomePageSceneFrameType)type {
NSInteger width = self.width;
NSInteger height = self.height;
NSInteger cornerRadius = 5;
NSInteger lineWidth = 1;
// 沿着边框画,会有一半的线宽画到画板外部,留出最小距离
CGFloat minSpace = lineWidth / 2.0;
UIGraphicsBeginImageContextWithOptions(CGSizeMake(self.width, self.height), NO, [UIScreen mainScreen].scale);
CGContextRef context = UIGraphicsGetCurrentContext();
//设置颜色
UIColor *lineColor = [UIColor lj_colorWithHex:0xededed];
[lineColor set];
//画线
CGMutablePathRef path = CGPathCreateMutable();
if (type == ELJSecondhandHomePageSceneFrameTypeLeft) { // 左侧
CGPathMoveToPoint(path, NULL, width, minSpace);
CGPathAddLineToPoint(path, NULL, cornerRadius + minSpace, minSpace);
// 画左上角圆角<