{if tpl.id == "order_list"}
${tpl.label|default:""|escape|filterHref}
{if tpl.action}
{/if}
{elseif tpl.id == "qiyu_template_goods"}
${tpl.p_name}
${tpl.p_stock}
${tpl.p_price}
${tpl.p_count}
${tpl.p_status}
{elseif tpl.id == "order_detail"}
${tpl.label|default:""|escape|filterHref}
-
${tpl.status}
-
${tpl.user_name}
-
${tpl.orderNo}
{list tpl.date as dateItem}
-
${dateItem}
{/list}
{elseif tpl.id == "order_logistic"}
${tpl.label|default:""|escape|filterHref}
${tpl.title.label}
{list tpl.list as item}
-
${item.logistic}
${item.timestamp}
{/list}
{if tpl.action}
{/if}
{elseif tpl.id == "order_status"}
${tpl.label|default:""|escape|filterHref}
${tpl.title}
{list tpl.list as item}
-
{/list}
{elseif tpl.id == "refund_detail"}
${tpl.label|default:""|escape|filterHref}
${tpl.state.name}
{list tpl.list as item}
-
${item}
{/list}
{elseif tpl.id == "action_list"}
${tpl.label|default:""|escape|filterHref}
{list tpl.list as item}
-
{if item.type == "url"}
${item.p_name}
{else}
{/if}
{/list}
{elseif tpl.id == "active_page"}
${tpl.content}
{if tpl.action}
{/if}
{elseif tpl.id == "error_msg"}
{elseif tpl.id == "bot_form"}
{if !tpl.submitted}
{/if}
{elseif tpl.id == "qiyu_template_botForm"}
{list tpl.forms as item}
-
{if item.value}
{if item.type == "image"}
${item.value.name}
${item.value.size|fileSizeFormat}
{else}
${item.value}
{/if}
{/if}
{/list}
{elseif tpl.id == "static_union"}
{elseif tpl.id == "card_layout"}
${tpl.label|default:""|escape}
{list tpl.list as group}
{if group.action.type == "block"}
-
{elseif group.action.type == "popup"}
-
{elseif group.action.type == "url"}
-
{else}
-
{/if}
{list group.list as tr}
-
{list tr as td}
-
{if td.type == "text"}
${td.value}
{elseif td.type == "image"}

{else}
[暂不支持的消息类型]
{/if}
{/list}
{/list}
{/list}
{if tpl.action}
{/if}
{elseif tpl.id == "detail_view"}
-
{list tpl.thumbnail.list as tr}
-
{list tr as td}
-
{if td.type == "text"}
${td.value}
{elseif td.type == "image"}

{else}
[暂不支持的消息类型]
{/if}
{/list}
{/list}
{if tpl.thumbnail.action}
{/if}
{elseif tpl.id == "mix_reply"}
0)} style="display:none" {/if}>${tpl.label}
{else}
${tpl.label|default:"未知消息类型"}
{/if}
{if xlist[y-1]}
{if (y==0 || (x.time - xlist[y-1].time) >= (5*60*1000)) && !x.state}
${x.time|timeformat:(y==0?y:xlist[y-1].time)}
{/if}
{/if}
{if !isLeft}

{elseif x.from.portrait}

{elseif ext.isRobot}

{else}

{/if}
{if x.type=="image"}
{elseif x.type=="audio"}
${x.content.dur|duration}
{elseif x.type == "file"}
${file(x)}
{elseif x.type=="qa-list" || x.type=="qa"}
{if x.type=="qa-list"}
${x.label|default:""|text2portrait}
{else}
${x.content|default:""|text2portrait}
{/if}
{if KNOWLEDGE_STATISTICS}
{if x.evaluation}
{if x.evaluation_reason && x.evaluation==3}
${x.evalcontent|escapeWithoutSpace|trim|text2portrait}
${x.evaluation_guide}
✓ 评价提交成功
{/if}
{/if}
{/if}
{elseif x.type == "crm-thirdorder"}
${thirdOrderList(x)}
{elseif x.type == "productinfo" && (x.show == 1 || x.showCustomMsg == 1)}
{elseif x.type=="rich"}
${x.content|default:""|text2portrait}
{else}
${x.richContent|default:x.content|filterTagA|escapeWithoutSpace|complete|text2portrait}
{/if}
{if x.state === -1}
{elseif x.state === 1}
{/if}
{if x.ext && x.ext.auditResult==1 && !isLeft}
${x.ext|formatTrashWords}
{/if}
{if x.ext.auditResult!=1 && x.staffReadState}
{if x.ishistory}
{if x.read == 1}
已读
{elseif x.read == 0}
未读
{/if}
{else}
{if x.fromUser && !ext.isRobot}
{if x.read == 1}
已读
{elseif x.read == 0}
未读
{/if}
{/if}
{/if}
{/if}
{/if}
{/list}