You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
37 lines
1.1 KiB
using System.Collections.Generic;
|
|
|
|
namespace BBWY.Client.Models
|
|
{
|
|
public class ServiceOrder : ServiceOrderItemResponse
|
|
{
|
|
public ServiceOrder()
|
|
{
|
|
ThumbnailImageList = new List<string>();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 是否显示商品情况
|
|
/// </summary>
|
|
public bool IsShowProductInfo
|
|
{
|
|
get
|
|
{
|
|
return ProductAppearance != null || ProductFunction != null || ProductHealth != null || ProductPackage != null;
|
|
}
|
|
}
|
|
|
|
public IList<string> ThumbnailImageList { get; set; }
|
|
|
|
public void Init()
|
|
{
|
|
if (!string.IsNullOrEmpty(ImageName))
|
|
{
|
|
var imageNameArray = ImageName.Split(',', System.StringSplitOptions.RemoveEmptyEntries);
|
|
foreach (var imgItemName in imageNameArray)
|
|
{
|
|
ThumbnailImageList.Add($"https://qiyue-qiku.oss-cn-beijing.aliyuncs.com/tuihuo/{imgItemName}.jpg?x-oss-process=image/resize,m_lfit,w_35/quality,q_100");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|