first commit

此提交包含在:
2025-02-20 14:58:55 +08:00
父節點 687bda5ead
當前提交 d7be84fac6
共有 1158 個檔案被更改,包括 127232 行新增0 行删除
+282
查看文件
@@ -0,0 +1,282 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ZHIQIM-CONTEXT PUBLIC "-//ZHIQIM //DTD Zhiqim-Context Configuration 1.5.0//EN" "http://zhiqim.org/xmldtds/zhiqim_context_1_5_0.dtd">
<zhiqim-context>
<!-- 组件配置 -->
<component name="管理台" path="/org/zhiqim/manager/resource"/>
<component name="大文件上传组件" path="/org/zhiqim/uploadlarge/resource"/>
<component name="媒体编辑" path="/com/zhiqim/media/manage/resource"/>
<component name="富文本编辑器" path="/org/zhiqim/texteditor/resource"/>
<!-- 属性配置 -->
<attribute name="系统名称" key="name" value="设计师工作台"/>
<attribute name="系统版本" key="version" value="V4.0"/>
<attribute name="系统引导" key="bootstrap" value="com.zhiqim.yangcai.design.MediaDesignBootstrap" />
<!-- <attribute name="系统引导" key="websocket" value="com.zhiqim.yangcai.design.DesignerWorkListner" />-->
<!-- 接口调用 -->
<action name="接口地址" path="/getFileUrl.htm" class="com.zhiqim.yangcai.design.action.editor.GetFileUrlAction"/>
<action name="手机登录" path="/iphoneLogin.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/editor/iphoneLogin.zml" class="com.zhiqim.yangcai.design.action.editor.IphoneLogintAction" />
<action name="简奈设计平台" interceptor="chkZmrLogin" path="/editorSystem.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/editor/editorSystem.zml" class="com.zhiqim.yangcai.design.action.editor.EditorSystemAction" />
<!-- 拦截器 -->
<interceptor name="长尾词关联拦截器" key="ChkLongTailKeyword" class="com.zhiqim.yangcai.design.ChkLongTailKeyword"/>
<interceptor name="检查插件登录" key="chkPluginLogin" class="com.zhiqim.yangcai.design.ChkPluginInterceptor"/>
<!-- 会话用户 -->
<sessionUser name="会话用户" path="*" class="org.zhiqim.manager.ZmrSessionUser"/>
<!-- 文件下载 -->
<action name="文件下载" path="/downFile.htm" class="com.zhiqim.yangcai.design.action.DownloadFileAction"/>
<action name="文件下载" path="/downQuestionsFile.htm" class="com.zhiqim.yangcai.design.action.DownloadQuestionsFileAction"/>
<action name="文件右边列表" interceptor="chkZmrLogin" path="/attaFileList.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/attaFileList.zml" class="com.zhiqim.yangcai.design.action.AttaFileListAction" />
<action name="订单详情" interceptor="chkZmrLogin" path="/allOrderDetail.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/allOrderDetail.zml" class="com.zhiqim.yangcai.design.action.AttaFileListAction" />
<action name="标签右边列表" interceptor="chkZmrLogin" path="/tagAttaInfoList.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/tagAttaInfoList.zml" class="com.zhiqim.yangcai.design.action.TagAttaInfoListAction" />
<action name="修改模板文件id" interceptor="chkZmrLogin" path="/manager/updateTemplateId.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/editor/updateTemplateId.zml" />
<action name="初稿缩略图" path="/*-FristThumFile.png" class="com.zhiqim.yangcai.design.action.PNGAction"/>
<action name="读取成品文件显示缩略图" path="*-endFile" class="com.zhiqim.yangcai.design.action.ThumImgAction"/>
<action name="申诉显示图片" path="/*-img" class="com.zhiqim.yangcai.design.action.ThumImgAction"/>
<action name="质检违规证据图" path="/*-qcImg" class="com.zhiqim.yangcai.design.action.ThumImgAction"/>
<action name="放大图片" path="/showLargeImg.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/showLargeImg.zml"/>
<!-- 用户退出 -->
<action name="退出" path="/${zhiqim_manager}/logout.htm" redirect="/index.htm" class="com.zhiqim.yangcai.design.action.DesignLogoutAction"/>
<action name="注册" path="/reg.htm" view="/zview/zhiqim_manager/reg.zml" />
<action name="忘记密码" path="/resetPassword.htm" view="/zview/zhiqim_manager/resetPassword.zml" />
<action name="进度备注" interceptor="chkZmrLogin" path="/progressNote.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/order/progressNote.zml" class="com.zhiqim.yangcai.design.action.order.ProgressNoteAction"/>
<action name="退款申诉审核" interceptor="chkZmrLogin" path="/complaintOrder.htm" redirect="/complaintOrder.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/order/complaintOrder.zml" class="com.zhiqim.yangcai.design.action.order.ComplaintOrderAction"/>
<action name="申诉详情预览" interceptor="chkZmrLogin" path="/complaintView.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/order/complaintView.zml" class="com.zhiqim.yangcai.design.action.order.ComplaintViewAction"/>
<action name="我的质检" interceptor="chkZmrLogin" path="/qcPersonal.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/order/qcPersonal.zml" class="com.zhiqim.yangcai.design.action.order.QcPersonalAction"/>
<action name="申请加分" interceptor="chkZmrLogin" path="/qcApplyScore.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/order/qcApplyScore.zml" class="com.zhiqim.yangcai.design.action.order.QcApplyScoreAction" />
<action name="质检加分列表" interceptor="chkZmrLogin" path="/qcApplyScoreList.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/order/qcApplyScoreList.zml" class="com.zhiqim.yangcai.design.action.order.QcApplyScoreListAction"/>
<action name="质检加分详情" interceptor="chkZmrLogin" path="/qcApplyDetail.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/order/qcApplyDetail.zml" class="com.zhiqim.yangcai.design.action.order.QcApplyDetailAction"/>
<action name="质检订单列表" interceptor="chkZmrLogin" path="/qcOrderList.htm" redirect="/qcOrderList.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/order/qcOrderList.zml" class="com.zhiqim.yangcai.design.action.order.QcOrderListAction"/>
<action name="质检判定页面" interceptor="chkZmrLogin" path="/qcJudge.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/order/qcJudge.zml" class="com.zhiqim.yangcai.design.action.order.QcJudgeAction"/>
<action name="质检违规列表" interceptor="chkZmrLogin" path="/qcViolationsList.htm" redirect="/qcViolationsList.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/order/qcViolationsList.zml" class="com.zhiqim.yangcai.design.action.order.QcViolationsListAction"/>
<action name="质检违规详情" interceptor="chkZmrLogin" path="/qcViolationsDetail.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/order/qcViolationsDetail.zml" class="com.zhiqim.yangcai.design.action.order.QcViolationsDetailAction"/>
<!-- 投诉订单 -->
<action name="投诉单列表" interceptor="chkZmrLogin" path="/complainTotalOrderList.htm" redirect="/complainTotalOrderList.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/complain/complainTotalOrderList.zml" class="com.zhiqim.yangcai.design.action.complain.ComplainTotalOrderListAction"/>
<action name="待处理投诉单" interceptor="chkZmrLogin" path="/complainWantDealList.htm" redirect="/complainWantDealList.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/complain/complainWantDealList.zml" class="com.zhiqim.yangcai.design.action.complain.ComplainWantDealListAction"/>
<action name="投诉统计" interceptor="chkZmrLogin" path="/complainFinishList.htm" redirect="/complainFinishList.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/complain/complainFinishList.zml" class="com.zhiqim.yangcai.design.action.complain.ComplainFinishlListAction"/>
<action name="投诉单详情" interceptor="chkZmrLogin" path="/complainDetail.htm" redirect="/complainTotalOrderList.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/complain/complainDetail.zml" class="com.zhiqim.yangcai.design.action.complain.ComplainDetailAction"/>
<action name="投诉单处理" interceptor="chkZmrLogin" path="/complainDeal.htm" redirect="/complainWantDealList.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/complain/complainDeal.zml" class="com.zhiqim.yangcai.design.action.complain.ComplainDealAction"/>
<!-- ************************************************************************************* -->
<!-- 设计订单 -->
<action name="设计订单" interceptor="chkZmrLogin" path="/designOrder.htm" redirect="/designOrder.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/order/designOrder.zml" class="com.zhiqim.yangcai.design.action.order.DesignOrderAction"/>
<action name="历史完成订单" interceptor="chkZmrLogin" path="/designOrderFinish.htm" redirect="/designOrderFinish.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/order/designOrderFinish.zml" class="com.zhiqim.yangcai.design.action.order.DesignOrderFinishAction"/>
<action name="放弃订单" interceptor="chkZmrLogin" path="/waiveOrder.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/order/waiveOrder.zml" class="com.zhiqim.yangcai.design.action.order.WaiveOrderAction"/>
<action name="抢单大厅" interceptor="chkZmrLogin" path="/receiveOrder.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/order/receiveOrder.zml" class="com.zhiqim.yangcai.design.action.order.ReceiveOrderAction"/>
<action name="抢单功能" interceptor="chkZmrLogin" path="/contendOrder.htm" view="/ztmpl/zhiqim_manager/dialog.htm" include="/zview/order/contendOrder.zml" class="com.zhiqim.yangcai.design.action.order.ContendOrderAction"/>
<action name="资料上传" interceptor="chkZmrLogin" path="/uploadData.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/order/uploadData.zml" class="com.zhiqim.yangcai.design.action.order.UploadDataAction"/>
<action name="修改行业" interceptor="chkZmrLogin" path="/modifyIndustry.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/order/modifyIndustry.zml" class="com.zhiqim.yangcai.design.action.order.ModifyIndustryAction"/>
<action name="暂停设计" interceptor="chkZmrLogin" path="/designOrderStop.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/order/designOrderStop.zml"/>
<action name="完成初稿" interceptor="chkZmrLogin" path="/designOrderDraft.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/order/designOrderDraft.zml" />
<action name="申请退款" interceptor="chkZmrLogin" path="/designOrderRefund.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/order/designOrderRefund.zml" class="com.zhiqim.yangcai.design.action.order.DesignOrderRefundAction"/>
<action name="审稿详情" interceptor="chkZmrLogin" path="/checkBackDetail.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/order/checkBackDetail.zml" class="com.zhiqim.yangcai.design.action.order.CheckBackDetailAction"/>
<action name="旺旺订单" interceptor="chkZmrLogin" path="/wangwangOrder.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/order/wangwangOrder.zml" class="com.zhiqim.yangcai.design.action.order.WangwangOrderAction"/>
<!--管理规范-->
<action name="行为规范" interceptor="chkZmrLogin" path="/designStandard.htm" redirect="/designStandard.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/order/designStandard.zml" class="com.zhiqim.yangcai.design.action.order.DesignStandardAction"/>
<action name="行为规范列表" interceptor="chkZmrLogin" path="/designStandardList.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/order/designStandardList.zml" class="com.zhiqim.yangcai.design.action.order.DesignStandardAction" />
<action name="行为规范详情" interceptor="chkZmrLogin" path="/designStandardDetails.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/order/designStandardDetails.zml" class="com.zhiqim.yangcai.design.action.order.DesignStandardDetailsAction" />
<!-- 标签管理 -->
<action name="标签行业" interceptor="chkZmrLogin" path="/labelIndustry.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/label/labelIndustry.zml" class="com.zhiqim.yangcai.design.action.label.LabelIndustryAction"/>
<action name="增加标签行业页面" interceptor="chkZmrLogin" path="/labelIndustryAdd.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/label/labelIndustryAdd.zml" class="com.zhiqim.yangcai.design.action.label.LabelIndustryAction" method="add"/>
<action name="增加标签行业处理" interceptor="chkZmrLogin" path="/labelIndustryInsert.htm" view="/ztmpl/zhiqim_manager/template.htm" redirect="/labelIndustry.htm" success="增加成功" class="com.zhiqim.yangcai.design.action.label.LabelIndustryAction" method="insert"/>
<action name="修改标签行业页面" interceptor="chkZmrLogin" path="/labelIndustryModify.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/label/labelIndustryModify.zml" class="com.zhiqim.yangcai.design.action.label.LabelIndustryAction" method="modify"/>
<action name="修改标签行业处理" interceptor="chkZmrLogin" path="/labelIndustryUpdate.htm" view="/ztmpl/zhiqim_manager/template.htm" redirect="/labelIndustry.htm" success="修改成功" class="com.zhiqim.yangcai.design.action.label.LabelIndustryAction" method="update"/>
<action name="删除标签行业处理" interceptor="chkZmrLogin" path="/labelIndustryDelete.htm" view="/ztmpl/zhiqim_manager/template.htm" redirect="/labelIndustry.htm" success="删除成功" class="com.zhiqim.yangcai.design.action.label.LabelIndustryAction" method="delete"/>
<action name="标签属性" interceptor="chkZmrLogin" path="/labelAttributeCat.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/label/labelAttributeCat.zml" class="com.zhiqim.yangcai.design.action.label.LabelAttributeCatAction"/>
<action name="增加标签属性页面" interceptor="chkZmrLogin" path="/labelAttributeCatAdd.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/label/labelAttributeCatAdd.zml" class="com.zhiqim.yangcai.design.action.label.LabelAttributeCatAction" method="add"/>
<action name="增加标签属性处理" interceptor="chkZmrLogin" path="/labelAttributeCatInsert.htm" view="/ztmpl/zhiqim_manager/template.htm" redirect="/labelAttributeCat.htm" success="增加成功" class="com.zhiqim.yangcai.design.action.label.LabelAttributeCatAction" method="insert"/>
<action name="修改标签属性页面" interceptor="chkZmrLogin" path="/labelAttributeCatModify.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/label/labelAttributeCatModify.zml" class="com.zhiqim.yangcai.design.action.label.LabelAttributeCatAction" method="modify"/>
<action name="修改标签属性处理" interceptor="chkZmrLogin" path="/labelAttributeCatUpdate.htm" view="/ztmpl/zhiqim_manager/template.htm" redirect="/labelAttributeCat.htm" success="修改成功" class="com.zhiqim.yangcai.design.action.label.LabelAttributeCatAction" method="update"/>
<action name="删除标签属性处理" interceptor="chkZmrLogin" path="/labelAttributeCatDelete.htm" view="/ztmpl/zhiqim_manager/template.htm" redirect="/labelAttributeCat.htm" success="删除成功" class="com.zhiqim.yangcai.design.action.label.LabelAttributeCatAction" method="delete"/>
<action name="标签属性值" interceptor="chkZmrLogin" path="/labelAttribute.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/label/labelAttribute.zml" class="com.zhiqim.yangcai.design.action.label.LabelAttributeAction"/>
<action name="添加标签属性值页面" interceptor="chkZmrLogin" path="/labelAttributeAdd.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/label/labelAttributeAdd.zml" class="com.zhiqim.yangcai.design.action.label.LabelAttributeAction" method="add"/>
<action name="添加标签属性值处理" interceptor="chkZmrLogin" path="/labelAttributeInsert.htm" redirect="/labelAttribute.htm" success="添加成功" class="com.zhiqim.yangcai.design.action.label.LabelAttributeAction" method="insert"/>
<action name="修改标签属性值值页面" interceptor="chkZmrLogin" path="/labelAttributeModify.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/label/labelAttributeModify.zml" class="com.zhiqim.yangcai.design.action.label.LabelAttributeAction" method="modify"/>
<action name="修改标签属性值处理" interceptor="chkZmrLogin" path="/labelAttributeUpdate.htm" redirect="/labelAttribute.htm" success="修改成功" class="com.zhiqim.yangcai.design.action.label.LabelAttributeAction" method="update"/>
<action name="删除标签属性值处理" interceptor="chkZmrLogin" path="/labelAttributeDelete.htm" redirect="/labelAttribute.htm" success="删除成功" class="com.zhiqim.yangcai.design.action.label.LabelAttributeAction" method="delete"/>
<!-- 我的模板 -->
<action name="我的草稿模板" interceptor="chkZmrLogin" path="/templateDraftMy.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/template/templateDraftMy.zml" />
<action name="我的订单模板" interceptor="chkZmrLogin" path="/templateOrderMy.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/template/templateOrderMy.zml" />
<action name="我的模板" interceptor="chkZmrLogin" path="/templateMy.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/template/templateMy.zml"/>
<action name="我收藏的" interceptor="chkZmrLogin" path="/templateCollect.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/template/templateCollect.zml"/>
<action name="分享给我的" interceptor="chkZmrLogin" path="/templateShare.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/template/templateShare.zml"/>
<action name="所有模板" interceptor="chkZmrLogin" path="/allTemplate.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/template/allTemplate.zml" />
<action name="精品模板" interceptor="chkZmrLogin" path="/bestTemplate.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/template/bestTemplate.zml" />
<action name="模板审核" interceptor="chkZmrLogin" path="/templateAudit.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/template/templateAudit.zml" />
<action name="精品审核" interceptor="chkZmrLogin" path="/templateBestAudit.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/template/templateBestAudit.zml" />
<action name="模版审核日志" interceptor="chkZmrLogin" path="/desTemplateLogList.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/template/desTemplateLogList.zml" class="com.zhiqim.yangcai.design.action.template.DesTemplateLogAction"/>
<action name="模板关联标签" interceptor="chkZmrLogin" path="/templateLabel.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/template/templateLabel.zml" class="com.zhiqim.yangcai.design.action.template.TemplateLabelAction"/>
<action name="模板详情" interceptor="chkZmrLogin" path="/templateShow.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/template/templateShow.zml" class="com.zhiqim.yangcai.design.action.template.TemplateShowAction"/>
<action name="模板下载" interceptor="chkZmrLogin" path="/templateDownload.htm" class="com.zhiqim.yangcai.design.action.template.TemplateDownloadAction"/>
<action name="新建我的模板" path="/newMyTemplate.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/template/inner/newMyTemplate.zml" class="com.zhiqim.yangcai.design.action.template.NewMyTemplateAction"/>
<action name="用户素材管理" path="/userMaterialList.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/template/userMaterialList.zml" class="com.zhiqim.yangcai.design.action.template.UserMaterialAction" method="list"/>
<action name="添加系统素材" path="/addSysMaterial.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/template/addSysMaterial.zml" class="com.zhiqim.yangcai.design.action.template.UserMaterialAction" method="add"/>
<action name="外部稿件上传" interceptor="chkZmrLogin" path="/externalDraftUpload.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/template/externalDraftUpload.zml"/>
<action name="外部稿件下载" interceptor="chkZmrLogin" path="/externalDraftDownload.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/template/externalDraftDownload.zml" class="com.zhiqim.yangcai.design.action.template.ExternalDraftDownloadAction"/>
<!-- 作品库 -->
<action name="作品上传" interceptor="chkZmrLogin" path="/worksUpload.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/works/worksUpload.zml" class="com.zhiqim.yangcai.design.action.works.WorksUploadAction"/>
<action name="标签关联" interceptor="chkZmrLogin" path="/labelRelation.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/works/labelRelation.zml" class="com.zhiqim.yangcai.design.action.works.LabelRelationAction"/>
<action name="我的作品" interceptor="chkZmrLogin" path="/worksMy.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/works/worksMy.zml" class="com.zhiqim.yangcai.design.action.works.WorksMyAction"/>
<action name="我收藏的" interceptor="chkZmrLogin" path="/worksCollect.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/works/worksCollect.zml" class="com.zhiqim.yangcai.design.action.works.WorksCollectAction"/>
<action name="我的精品" interceptor="chkZmrLogin" path="/worksBest.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/works/worksBest.zml" class="com.zhiqim.yangcai.design.action.works.WorksBestAction"/>
<action name="分享给我的" interceptor="chkZmrLogin" path="/worksShare.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/works/worksShare.zml" class="com.zhiqim.yangcai.design.action.works.WorksShareAction"/>
<action name="小组作品" interceptor="chkZmrLogin" path="/groupWorks.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/works/groupWorks.zml" class="com.zhiqim.yangcai.design.action.works.GroupWorksAction"/>
<action name="所有作品" interceptor="chkZmrLogin" path="/allWorks.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/works/allWorks.zml" class="com.zhiqim.yangcai.design.action.works.AllWorksAction"/>
<action name="精品作品" interceptor="chkZmrLogin" path="/bestWorks.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/works/bestWorks.zml" class="com.zhiqim.yangcai.design.action.works.BestWorksAction"/>
<action name="精品审核" interceptor="chkZmrLogin" path="/worksAudit.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/works/worksAudit.zml" class="com.zhiqim.yangcai.design.action.works.WorksAuditAction"/>
<action name="作品详情" interceptor="chkZmrLogin" path="/worksShow.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/works/worksShow.zml" class="com.zhiqim.yangcai.design.action.works.WorksShowAction"/>
<action name="作品下载" interceptor="chkZmrLogin" path="/worksDownload.htm" class="com.zhiqim.yangcai.design.action.works.WorksDownloadAction"/>
<action name="外网下载" path="/cdrWorksDownload.htm" class="com.zhiqim.yangcai.design.action.works.CdrWorksDownloadAction"/>
<action name="作品列表" interceptor="chkZmrLogin" path="/worksList.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/works/worksList.zml" class="com.zhiqim.yangcai.design.action.works.WorksListAction"/>
<action name="对外所有作品" path="/pcWorks.htm" view="/zview/works/pcWorks.zml" class="com.zhiqim.yangcai.design.action.works.AllWorksAction"/>
<action name="对外作品详情" path="/worksShowPC.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/works/worksShowPC.zml" class="com.zhiqim.yangcai.design.action.works.WorksShowPCAction"/>
<!-- 作品素材管理 -->
<action name="分类列表" interceptor="chkZmrLogin" path="/works/materialCatList.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/works/materialCatList.zml" class="com.zhiqim.yangcai.design.action.works.MaterialCatAction" method="list"/>
<action name="分类增加" interceptor="chkZmrLogin" path="/works/materialCatAdd.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/works/materialCatAdd.zml" class="com.zhiqim.yangcai.design.action.works.MaterialCatAction" method="add"/>
<action name="分类增加处理" interceptor="chkZmrLogin" path="/works/materialCatInsert.htm" redirect="/works/materialCatList.htm" success="增加成功" class="com.zhiqim.yangcai.design.action.works.MaterialCatAction" method="insert"/>
<action name="分类修改" interceptor="chkZmrLogin" path="/works/materialCatModify.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/works/materialCatModify.zml" class="com.zhiqim.yangcai.design.action.works.MaterialCatAction" method="modify"/>
<action name="分类修改处理" interceptor="chkZmrLogin" path="/works/materialCatUpdate.htm" redirect="/works/materialCatList.htm" success="修改成功" class="com.zhiqim.yangcai.design.action.works.MaterialCatAction" method="update"/>
<action name="分类删除处理" interceptor="chkZmrLogin" path="/works/materialCatDelete.htm" redirect="/works/materialCatList.htm" success="删除成功" class="com.zhiqim.yangcai.design.action.works.MaterialCatAction" method="delete"/>
<action name="素材列表" interceptor="chkZmrLogin" path="/works/materialContList.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/works/materialContList.zml" class="com.zhiqim.yangcai.design.action.works.MaterialContAction" method="list"/>
<action name="素材增加" interceptor="chkZmrLogin" path="/works/materialContAdd.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/works/materialContAdd.zml" class="com.zhiqim.yangcai.design.action.works.MaterialContAction" method="add"/>
<action name="素材修改" interceptor="chkZmrLogin" path="/works/materialContModify.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/works/materialContModify.zml" class="com.zhiqim.yangcai.design.action.works.MaterialContAction" method="modify"/>
<!-- 通用 -->
<action name="选择行业" interceptor="chkZmrLogin" path="/industrySelect.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/template/inner/industrySelect.zml" class="com.zhiqim.yangcai.design.action.template.IndustrySelectAction"/>
<!-- 设计师搜索模板管理 -->
<action name="模板预览" interceptor="chkZmrLogin" path="/templatePreview.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/des/templatePreview.zml" class="com.zhiqim.yangcai.design.action.des.TemplatePreviewAction"/>
<action name="电子名片模板预览" interceptor="chkZmrLogin" path="/templateCardPreview.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/des/templateCardPreview.zml" class="com.zhiqim.yangcai.design.action.des.TemplateCardPreviewAction"/>
<action name="模板客户预览" path="/templateCustomerPreview.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/des/templateCustomerPreview.zml" class="com.zhiqim.yangcai.design.action.des.TemplateCustomerPreviewAction"/>
<action name="弹框截图" interceptor="chkZmrLogin" path="/copyImage.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/des/inner/copyImage.zml" />
<action name="H5设计" interceptor="chkZmrLogin" path="/H5DesignView.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/des/H5DesignView.zml"/>
<!-- 考试题库 -->
<action name="考试题库" interceptor="chkZmrLogin" path="/designOrderQuestions.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/order/designOrderQuestions.zml" class="com.zhiqim.yangcai.design.action.order.ConfigQuestionsAction"/>
<action name="新增考试订单" interceptor="chkZmrLogin" path="/configQuestionsAdd.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/order/configQuestionsAdd.zml"/>
<action name="更新考试订单" interceptor="chkZmrLogin" path="/configQuestionsModify.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/order/configQuestionsModify.zml" class="com.zhiqim.yangcai.design.action.order.ConfigQuestionsModifyAciton"/>
<action name="积分细则" interceptor="chkZmrLogin" path="/scoreType.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/score/scoreType.zml" class="com.zhiqim.yangcai.design.action.score.ScoreTypeAction"/>
<action name="设计师积分数据" interceptor="chkZmrLogin" path="/scoreDesignerRecord.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/score/scoreDesignerRecord.zml" class="com.zhiqim.yangcai.design.action.score.ScoreDesignerRecordAction"/>
<action name="积分详情" interceptor="chkZmrLogin" path="/scoreDesignerRecordDetail.htm" view="/ztmpl/zhiqim_manager/dialog.htm" include="/zview/score/scoreDesignerRecordDetail.zml" class="com.zhiqim.yangcai.design.action.score.ScoreDesignerRecordDetailAction"/>
<action name="人工修正" interceptor="chkZmrLogin" path="/scoreDesignerRecordDetailAdd.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/score/scoreDesignerRecordAdd.zml" class="com.zhiqim.yangcai.design.action.score.ScoreDesignerRecordDetailAction" method="add"/>
<action name="人工修正处理" interceptor="chkZmrLogin" path="/scoreDesignerRecordDetailInsert.htm" view="/ztmpl/zhiqim_manager/template.htm" redirect="/scoreDesignerRecord.htm" success="增加成功" class="com.zhiqim.yangcai.design.action.score.ScoreDesignerRecordDetailAction" method="insert"/>
<!-- ************************************************************ -->
<!-- ****************售后部分************************************* -->
<!-- ************************************************************ -->
<action name="售后单列表" interceptor="chkZmrLogin" path="/designAfterOrder.htm" redirect="/designAfterOrder.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/after/designAfterOrder.zml" class="com.zhiqim.yangcai.design.action.after.DesignAfterOrderAction"/>
<action name="售后申诉单列表" interceptor="chkZmrLogin" path="/afterBlameReturn.htm" redirect="/afterBlameReturn.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/after/afterBlameReturn.zml" class="com.zhiqim.yangcai.design.action.after.AfterBlameReturnOrderAction"/>
<action name="需处理的售后单" interceptor="chkZmrLogin" path="/waitHandleAfterOrder.htm" redirect="/waitHandleAfterOrder.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/after/waitHandleAfterOrder.zml" class="com.zhiqim.yangcai.design.action.after.WaitHandleAfterOrderAction"/>
<action name="个人售后单列表" interceptor="chkZmrLogin" path="/personalAfterOrder.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/after/personalAfterOrder.zml" class="com.zhiqim.yangcai.design.action.after.PersonalAfterOrderAction"/>
<action name="我导致的售后单" interceptor="chkZmrLogin" path="/handledAfterOrder.htm" redirect="/handledAfterOrder.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/after/handledAfterOrder.zml" class="com.zhiqim.yangcai.design.action.after.HandledAfterOrderAction"/>
<!-- ****************统计部分************************************* -->
<action name="绩效统计" interceptor="chkZmrLogin" path="/designerPerformance.htm" redirect="/designerPerformance.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/stat/design/designerPerformance.zml" class="com.zhiqim.yangcai.design.action.stat.design.DesignerPerformanceAction"/>
<action name="定稿率统计" interceptor="chkZmrLogin" path="/completeDesignRateStat.htm" redirect="/completeDesignRateStat.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/stat/design/completeDesignRateStat.zml" class="com.zhiqim.yangcai.design.action.stat.design.CompleteDesignRateStatAction"/>
<action name="定稿超时统计" interceptor="chkZmrLogin" path="/timeoutDesignerComplete.htm" redirect="/timeoutDesignerComplete.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/stat/design/timeoutDesignerComplete.zml" class="com.zhiqim.yangcai.design.action.stat.design.TimeoutDesignerCompleteAction"/>
<action name="退款申诉" interceptor="chkZmrLogin" path="/personalRefundComplaint.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/stat/refund/personalRefundComplaint.zml"/>
<action name="退款统计" interceptor="chkZmrLogin" path="/designOrderRefundRateStat.htm" redirect="/designOrderRefundRateStat.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/stat/refund/designOrderRefundRateStat.zml" class="com.zhiqim.yangcai.design.action.stat.design.DesignOrderRefundRateStatAction"/>
<action name="售后统计" interceptor="chkZmrLogin" path="/designAfterStatistics.htm" redirect="/designAfterStatistics.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/stat/after/designAfterStatistics.zml" class="com.zhiqim.yangcai.design.action.stat.after.DesignAfterStatisticsAction"/>
<action name="设计师当月定稿率统计" interceptor="chkZmrLogin" path="/toMonthDesign.htm" redirect="/toMonthDesign.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/stat/design/toMonthDesign.zml" class="com.zhiqim.yangcai.design.action.stat.design.ToMonthDesignStatAction"/>
<!-- ****************统计部分************************************* -->
<!-- 消息盒子 -->
<attribute name="系统引导" key="websocket" value="com.zhiqim.yangcai.design.messagebox.ZqmMessageBoxWS" />
<action name="消息盒子(我接收的)" interceptor="chkZmrLogin" path="/${zhiqim_manager}/message.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/zhiqim_manager/message.zml" class="com.zhiqim.yangcai.design.messagebox.MessageAction"/>
<action name="消息盒子(我发送的)" interceptor="chkZmrLogin" path="/${zhiqim_manager}/messageFromMe.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/zhiqim_manager/messageFromMe.zml" class="com.zhiqim.yangcai.design.messagebox.MessageFromMeAction"/>
<!-- 客户标签 -->
<action name="补充标签" interceptor="chkZmrLogin" path="/fillLabelInfo.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/templateOrder/fillLabelInfo.zml" class="com.zhiqim.yangcai.design.action.template.FillLabelInfoAction" />
<!-- 移动端作品库部分 -->
<action name="移动端作品库首页" path="/mobileWorksHome.htm" view="/ztmpl/zhiqim_manager/empty.htm" include="/zview/mobileWorks/mobileWorksHome.zml" class="com.zhiqim.yangcai.design.action.mobileworks.MobileWorksAction" />
<action name="移动端单个作品详情页" path="/mobileWorkDetail.htm" view="/ztmpl/zhiqim_manager/empty.htm" include="/zview/mobileWorks/mobileWorkDetail.zml" class="com.zhiqim.yangcai.design.action.mobileworks.MobileWorksDetailAction" />
<!-- 移动端模板库部分 -->
<action name="移动端模板库首页" path="/mobileTemplateHome.htm" view="/ztmpl/zhiqim_manager/empty.htm" include="/zview/mobileTemplate/mobileTemplateHome.zml" class="com.zhiqim.yangcai.design.action.mobiletemplate.MobileTemplateAction" />
<action name="移动端单个模板详情页" path="/mobileTemplateDetail.htm" class="com.zhiqim.yangcai.design.action.mobiletemplate.MobileTemplateDetailAction" />
<!-- 秒绘电子名片支持接口 -->
<action name="查询电子名片设计元素json字符串" path="/dzmpSupportList.htm" class="com.zhiqim.yangcai.design.action.dzmpsupport.DzmpSupportAction" method="list" />
<action name="编辑电子名片设计元素json字符串" path="/dzmpSupportUpdate.htm" class="com.zhiqim.yangcai.design.action.dzmpsupport.DzmpSupportAction" method="update" />
<action name="电子名片用户绑定设计平台名片" path="/dzmpUserBindingCard.htm" class="com.zhiqim.yangcai.design.action.dzmpsupport.DzmpUserBindCardAction" />
<!-- 微信公众号对接企业微信API的支持接口 -->
<action name="获取设计师个人信息" path="/wkwechatSupportGetDesignerInfo.htm" class="com.zhiqim.yangcai.design.action.wkwechatsupport.WkwechatSupportAction" />
<action name="定稿线程池统计" interceptor="chkZmrLogin" path="/pdfQueue.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/pdfQueue.zml" class="com.zhiqim.yangcai.design.action.PdfQueueAction" />
<!-- 设计师个人信息 -->
<action name="用户中心" interceptor="chkZmrLogin" path="/${zhiqim_manager}/profile.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/designerworks/profile.zml" class="com.zhiqim.yangcai.design.action.designerworks.ProfileAction" />
<action name="设计师简介" interceptor="chkZmrLogin" path="/designerProfile.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/designerworks/designerProfile.zml" class="com.zhiqim.yangcai.design.action.designerworks.DesignerProfileAction" />
<action name="设计师作品" interceptor="chkZmrLogin" path="/designerWorks.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/designerworks/designerWorks.zml" class="com.zhiqim.yangcai.design.action.designerworks.DesignerWorksAction" />
<action name="设计师注册" interceptor="chkZmrLogin" path="/designerReg.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/designerworks/designerReg.zml" class="com.zhiqim.yangcai.design.action.designerworks.DesignerRegAction" />
<action name="注册审核拒绝" interceptor="chkZmrLogin" path="/regCheckBack.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/designerworks/regCheckBack.zml" class="com.zhiqim.yangcai.design.action.designerworks.RegCheckBackAction" />
<action name="注册审核通过" interceptor="chkZmrLogin" path="/checkApproved.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/designerworks/checkApproved.zml" class="com.zhiqim.yangcai.design.action.designerworks.RegCheckApprovedAction" />
<action name="修改个人接单数量" interceptor="chkZmrLogin" path="/${zhiqim_manager}/modifyOrderNum.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/designerworks/modifyOrderNum.zml" />
<!-- 设计师虚拟账户 -->
<action name="虚拟账户" interceptor="chkZmrLogin" path="/virtualAccount.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/account/virtualAccount.zml" class="com.zhiqim.yangcai.design.action.account.VirtualAccountAction"/>
<action name="虚拟账交易明细" interceptor="chkZmrLogin" path="/virtualAccountTransactionDetails.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/account/virtualAccountTransactionDetails.zml" class="com.zhiqim.yangcai.design.action.account.VirtualAccountTransactionDetailsAction"/>
<action name="虚拟账户明细" interceptor="chkZmrLogin" path="/virtualAccountDetails.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/account/virtualAccountDetails.zml" class="com.zhiqim.yangcai.design.action.account.VirtualAccountDetailsAction"/>
<action name="发放工资" interceptor="chkZmrLogin" path="/sendSalary.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/account/sendSalary.zml" class="com.zhiqim.yangcai.design.action.account.VirtualAccountAction"/>
<action name="冻结资金" interceptor="chkZmrLogin" path="/freezeSalary.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/account/freezeSalary.zml" class="com.zhiqim.yangcai.design.action.account.VirtualAccountAction"/>
<!-- 入驻考核 -->
<action name="入驻考核" interceptor="chkZmrLogin" path="/designerTest.htm " view="/ztmpl/zhiqim_manager/template.htm" include="/zview/order/designerTest.zml" class="com.zhiqim.yangcai.design.action.order.DesignerTestAction"/>
<!-- 前台展示 -->
<action name="问题页" path="/question.htm" view="/zview/article/question.zml" class="com.zhiqim.yangcai.design.action.question.QuestionAction"/>
<action name="搜索页" path="/search.htm" view="/zview/article/search.zml" class="com.zhiqim.yangcai.design.action.question.SearchAction"/>
<!--对外设计师官网帮助文档Api -->
<action name="查询文章富文本内容" path="/categoryLevel2Content.htm" class="com.zhiqim.yangcai.design.action.question.api.CategoryLeval2ContentForUccnAction"/>
<action name="查询二级分类下文章明细" path="/categoryLevel2Detail.htm" class="com.zhiqim.yangcai.design.action.question.api.CategoryLeval2DetailForUccnAction"/>
<action name="模糊搜索" path="/searchForUccn.htm" class="com.zhiqim.yangcai.design.action.question.api.ArticleSearchForUccnAction"/>
<!--公告 -->
<action name="公告首页" interceptor="chkZmrLogin" path="/noticeList.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/notice/noticeList.zml" class="com.zhiqim.yangcai.design.action.notice.NoticeListAction" method="list"/>
<action name="添加公告" interceptor="chkZmrLogin" path="/noticeAdd.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/notice/noticeAdd.zml"/>
<action name="添加公告" interceptor="chkZmrLogin" redirect="/noticeList.htm" path="/noticeAddInfo.htm" success="操作成功" view="/ztmpl/zhiqim_manager/template.htm" class="com.zhiqim.yangcai.design.action.notice.NoticeListAction" method="insert"/>
<action name="修改公告" interceptor="chkZmrLogin" redirect="/noticeList.htm" path="/noticeModify.htm" success="操作成功" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/notice/noticeModify.zml" class="com.zhiqim.yangcai.design.action.notice.NoticeListAction" method="modify"/>
<action name="修改公告" interceptor="chkZmrLogin" redirect="/noticeList.htm" path="/noticeUpdate.htm" success="操作成功" view="/ztmpl/zhiqim_manager/template.htm" class="com.zhiqim.yangcai.design.action.notice.NoticeListAction" method="update"/>
<action name="删除公告" interceptor="chkZmrLogin" redirect="/noticeList.htm" path="/noticeDelete.htm" success="操作成功" view="/ztmpl/zhiqim_manager/template.htm" class="com.zhiqim.yangcai.design.action.notice.NoticeListAction" method="delete"/>
<action name="公告详情" interceptor="chkZmrLogin" path="/noticeInfo.htm" include="/zview/notice/noticeInfo.zml" view="/ztmpl/zhiqim_manager/dialog.htm"/>
<action name="历史公告" interceptor="chkZmrLogin" path="/noticeHistory.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/notice/noticeHistory.zml" class="com.zhiqim.yangcai.design.action.notice.NoticeHistoryAction"/>
<!--待办 -->
<action name="其他待办" interceptor="chkZmrLogin" path="/orderBack.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/order/orderBack.zml" class="com.zhiqim.yangcai.design.action.order.OrderBackLogAction"/>
</zhiqim-context>
+959
查看文件
@@ -0,0 +1,959 @@
<#---------------------------------------------------->
<#-- 以下为变量定义 ------------------------>
<#---------------------------------------------------->
<#--脚注标注-->
<#var zmr_copyname="2023 领淘众创"/>
<#var zmr_copyright="Copyright&nbsp;&nbsp;&copy;&nbsp;"+zmr_copyname+"&nbsp;All&nbsp;Rights&nbsp;Reserved"/>
${Styles.src(zhiqim.css)}
${Scripts.src(zhiqim.js)}
${Styles.src(context.getRootPath("/zinc/css/yangcai_question_main_v1.4.0R2018031701.css"))}
${Scripts.src(context.getRootPath("/zinc/css/zhiqim_search_auto_list_v1.4.0R2018031701.js"))}
<#--属性定义-->
<#var name="设计师工作台"/>
<#var version="V4.0"/>
<#var zhiqim_uploadlarge.js = new ZmrCdnRuntime(context, "/service/res/zhiqim_upload_large_v1.5.0.r2018111001.js")/>
<#--刷新左边区域自定义块-->
<#function zhiqim_manager_topnav_left_defined()>
<a class="nav-item" href="/question.htm" target="_blank">知识库</a>
<div class="my-message" onclick="Z.L.href('${context.getRootPath("/manager/message.htm")}');"><img src="/zinc/images/message_icon.png" /></div>
<script>
Z.onload(function()
{
//工作台任务轮询,3分钟一次
var ajax = new Z.Ajax();
ajax.setClassName("ConsolePresenter");
ajax.setMethodName("doDesignBacklogAffairNum");
ajax.setSuccess(function(responseText){
//Z("#backLogNum").text(responseText);
});
ajax.execute();
setInterval(function()
{
var ajax = new Z.Ajax();
ajax.setClassName("ConsolePresenter");
ajax.setMethodName("doDesignBacklogAffairNum");
ajax.setSuccess(function(responseText){
//Z("#backLogNum").text(responseText);
});
ajax.execute();
}, 180000);
});
</script>
</#function>
<#-- 不同商户展示控制-->
<#function mercolumn_js(pageCode, pageName, orgId)>
${Scripts.src("/zinc/js/mercolumn_2018102301.js")}
<script>
Z.onload(function(){
try{Mercolumn.doShowMerPageColumn('${pageCode}', '${pageName}', '${orgId}');}catch(e){console.error(e)}
})
</script>
</#function>
<#-- 重写模板编辑版本号-->
<#var media_editor_js_version="v1.5.0_r2020121101"/>
<#-- 重写模板定稿、预览-->
<#function zhqim_media_edit_print(mediaId)>
<script>
//提交初稿设计订单
function doSubmitDraftOrderTempalte(mediaId)
{
var dzmpPreviewUrl = "";
var orderIsDzmpCardType = '${orderIsCardType}';
if (orderIsDzmpCardType == 'true') {
// 保存名片关联信息
doUpdateCardInfo('${cardId}','${designId}', false);
dzmpPreviewUrl = "https://design.yangcai365.com/preview/" + '${cardId}' + "&preview=true";
}
// 保存后的回调方法
function callbackAfterSave(mediaId)
{
var ajax2 = new Z.Ajax();
ajax2.setClassName("TemplateOrderPresenter");
ajax2.setMethodName("doSubmitDraftOrderTempalte");
ajax2.addParam("mediaId", mediaId);
ajax2.addParam("dzmpPreviewUrl", encodeURI(dzmpPreviewUrl));
ajax2.setFailure(function(){
setTimeout(function()
{
doDraftOrder_ajaxLoading.close()
Z.failure(ajax2.responseText);
},400);
});
ajax2.setSuccess(function(){
setTimeout(function()
{
doDraftOrder_ajaxLoading.close();
Z.success("初稿成功");
},400);
});
ajax2.execute();
}
// 1:定义加载框
window.doDraftOrder_ajaxLoading = Z.loading({text:"正在提交初稿文件,请稍后...", shadow:true , width:400});
if (hasSvg2pdfAPI)
{
doSubmitDraftLocalSave(callbackAfterSave, mediaId);
}
else
{
doAutoSaveMedia(callbackAfterSave, mediaId, true);
}
}
//完成定稿,预览设计稿
function doPreviewFinalOrderTempalte(mediaId)
{
//生成PDF文件并预览展示,保存后的回调方法
function callbackAfterSave(mediaId)
{
var doHandle = (hasSvg2pdfAPI) ? 0 : 1;
var ajax = new Z.Ajax();
ajax.setClassName("TemplateOrderPresenter");
ajax.setMethodName("doPreviewFinalOrderTempalte");
ajax.addParam("mediaId", mediaId);
ajax.addParam("doHandle", doHandle);
ajax.setFailure(function(){
previewFinal_ajaxLoading.close();
Z.failure(ajax.responseText);
});
ajax.setSuccess(function(){
doPreviewFinalOrderDialog(mediaId);
});
ajax.execute();
}
//检测订单模板的版面数
var ajax = new Z.Ajax();
ajax.setClassName("TemplateOrderPresenter");
ajax.setMethodName("doCheckTempatePage");
ajax.addParam("mediaId", mediaId);
ajax.setFailure(function(){
Z.failure(ajax.responseText);
});
ajax.setSuccess(function()
{
//加载框
window.previewFinal_ajaxLoading = Z.loading({shadow: true, text:"定稿预览处理中...", width:200});
if (hasSvg2pdfAPI)
{
callbackAfterSave(mediaId);
}
else
{
doAutoSaveMedia(callbackAfterSave, mediaId, true);
}
});
ajax.setLoading(document, true);
ajax.execute();
}
//预览定稿展示
function doPreviewFinalOrderDialog(mediaId)
{
if (hasSvg2pdfAPI)
{
ServiceAPI.mediaId = mediaId;
doPreviewFileLocalSave(previewFinal_ajaxLoading);
}
else
{
doPreviewDialogQuery(mediaId);
}
}
function previewPdfLocal()
{//重写pdfMaker,预览pdf方法
// ajax 查询订单金额
var amount = 0;
var ajax = new Z.Ajax();
ajax.setSync();
ajax.setClassName("TemplateOrderPresenter");
ajax.setMethodName("doQueryOrderAmount");
ajax.addParam("mediaId", media.canvas.mediaId);
ajax.setFailure(function(){
previewFinal_ajaxLoading.close();
});
ajax.setSuccess(function(){
amount = parseFloat(this.responseText || 0);
});
ajax.execute();
if (amount <= 0)
return doClearErrorLocalSave("订单金额查询有误!");
previewFinal_ajaxLoading.close();
var mediaId = ServiceAPI.mediaId;
var height = Z.D.clientHeight() - 200;
var html = '<div id="previewId" class="z-text-center" style="height:'+height+'px">';
//html += ' <object type="text/html" width="100%" height="100%" data="'+objUrl+'"></object>';
//html += ' <iframe width="100%" height="100%" src="'+objUrl.+'"></iframe>';
//html += '<embed src="'+objUrl+'" type="application/pdf" width="100%" height="100%">';
//html += '<embed src="'+objUrl+'" type="text/html" width="100%" height="100%">';
//html += ' <object type="application/pdf" width="100%" height="100%" data="'+objUrl+'"></object>';
html += '</div>';
html += '<div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">';
html += ' <button id="save" type="button" class="z-button z-large z-w120 z-cyan"';
html += 'onclick="confirmSubmitFinalOrderTempalte('+mediaId+','+amount+')">完成定稿</button>&nbsp;';
html += ' <button type="button" class="z-button z-large z-mg-l10" onclick="previewPdfDialogLocal.close();">关闭</button>';
html += '</div>';
top.previewPdfDialogLocal = new Z.Dialog();
previewPdfDialogLocal.title = "预览定稿文件";
previewPdfDialogLocal.text = html;
previewPdfDialogLocal.width = parseInt(Z.D.clientWidth()/2);
previewPdfDialogLocal.height = parseInt(height + 60);
previewPdfDialogLocal.fixed = true;
previewPdfDialogLocal.execute();
// 重写弹窗关闭方法
var closeFun = previewPdfDialogLocal.close;
previewPdfDialogLocal.close = function()
{
closeFun.call(previewPdfDialogLocal);
previewPdfDialogLocal = null;
doClearPreviewLocalSave();
}
previewPdfDialogLocal.$title.find(".z-font.z-error").hide();
Z('<i class="z-font z-error"></i>').appendTo(previewPdfDialogLocal.$title).on("click",previewPdfDialogLocal.close);
// pdfJs显示效果
pdfjsLib.renderAllFromData({node:"#previewId",scale:300/72},ServiceAPI.pdfFinaly.result).then(function()
{
// 样式校准
var previewWidth = Z.D.id("previewId").getBoundingClientRect().width - 30;
var $$canvas = Z("#previewId canvas");
$$canvas.each(function($canvas)
{
var canvasWidth = $canvas.width;
if (previewWidth > canvasWidth)
return;
var canvasHeight = $canvas.height;
$canvas.style.width = previewWidth + "px";
$canvas.style.height = previewWidth/canvasWidth*canvasHeight + "px";
});
});
}
//定稿预览显示
function doPreviewDialogQuery(mediaId)
{
//ajax查询处理状态
function doQueryPreviewProgressing(mediaId)
{
var ajax = new Z.Ajax();
ajax.setClassName("TemplateOrderPresenter");
ajax.setMethodName("doQueryPreviewFinalOrderTempalteProgressing");
ajax.addParam("mediaId", mediaId);
ajax.setFailure(function(){
previewFinal_ajaxLoading.close();
Z.failure(ajax.responseText);
});
ajax.setSuccess(function(){
var obj = Z.J.toObject(ajax.responseText);
var mediaHandlePdfModel = obj.mediaHandlePdfModel;
if (mediaHandlePdfModel)
{
console.log("预览处理状态:"+mediaHandlePdfModel.handleStatus)
if (mediaHandlePdfModel.handleStatus == 0 || mediaHandlePdfModel.handleStatus == 1)
{// 待处理 // 处理中
setTimeout(doQueryPreviewProgressing, 5000, mediaId);
}
else if (mediaHandlePdfModel.handleStatus == 3)
{//处理失败
previewFinal_ajaxLoading.close();
Z.failure(mediaHandlePdfModel.errorMsg);
}
else if (mediaHandlePdfModel.handleStatus == 2)
{// 处理完成
previewFinal_ajaxLoading.close();
var height = Z.D.clientHeight() - 200;
var amount = obj.amount;
var html = '<div id="previewId" style="height:'+height+'px">';
html += window.pdfjsLib?'':'<object type="text/html" width="100%" height="100%" data="'+obj.url+'"></object>';
html += '</div>';
html += '<div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">';
html += ' <button id="save" type="button" class="z-button z-large z-w120 z-cyan" onclick="confirmSubmitFinalOrderTempalte('+mediaId+','+amount+')">完成定稿</button>&nbsp;';
html += ' <button type="button" class="z-button z-large z-mg-l10" onclick="Z.Dialog.close(location.hash);">关闭</button>';
html += '</div>';
var dialog = new Z.Dialog();
dialog.title = "预览定稿文件";
dialog.text = html;
dialog.width = parseInt(Z.D.clientWidth()/2);
dialog.height = parseInt(height + 60);
dialog.fixed = true;
dialog.execute();
window.pdfjsLib && pdfjsLib.renderAll("#previewId", obj.url);
}
else
{
previewFinal_ajaxLoading.close();
console.log("定稿预览收到异常处理状态")
}
}
else
{//查不到处理对象
previewFinal_ajaxLoading.close();
console.log("定稿预览找不到处理对象")
Z.failure("预览处理失败");
}
});
ajax.execute();
}
//延时处理 查询
setTimeout(doQueryPreviewProgressing, 500, mediaId);
}
//确认定稿操作
function confirmSubmitFinalOrderTempalte(mediaId, amount)
{
//提交定稿确认弹窗
var tips = "确定完成对稿吗?定稿后该订单模板不再支持修改!";
if (amount >= 10000)
{
tips="此订单金额较大,请仔细核对无误再定稿,以免造成售后损失。定稿后该订单模板不再支持修改!"
}
Z.confirm(tips, function()
{
var ajax = new Z.Ajax();
ajax.setClassName("TemplateOrderPresenter");
ajax.setMethodName("doCheckTempatePage");
ajax.addParam("mediaId", mediaId);
ajax.setFailure(function(){
Z.failure(ajax.responseText);
});
ajax.setSuccess(function()
{
//加载筐
window.submitFinal_ajaxLoading = Z.loading({shadow: true, text:"定稿处理中...", width:180});
var doHandle = (hasSvg2pdfAPI) ? 0 : 1;
var ajax2 = new Z.Ajax();
ajax2.setClassName("TemplateOrderPresenter");
ajax2.setMethodName("doSubmitFinalOrderTempalte");
ajax2.addParam("mediaId", mediaId);
ajax2.addParam("doHandle", doHandle);
ajax2.setFailure(function(){
window.submitFinal_ajaxLoading.close();
Z.failure(ajax2.responseText);
});
ajax2.setSuccess(function()
{
//直接使用预览的pdf文件来定稿
var obj = Z.J.toObject(this.responseText ? this.responseText : "{}");
if(obj.success == "true")
{
submitFinal_ajaxLoading.close();
Z.success("定稿完成", function(){Z.L.reload()});
}
else
{
//重新生成pdf文件来定稿
if (hasSvg2pdfAPI)
{
doSubmitFinalLocalSave(this.responseText);
}
else
{
doSubmitFinalAjaxSave(mediaId);
}
}
});
ajax2.setLoading(document, true);
ajax2.execute();
});
ajax.setLoading("save", '正在提交', {disabled:true});
ajax.execute();
});
}
//客户端提交定稿,生成PDF
function doSubmitFinalLocalSave(responseText)
{
var fileData = Z.J.toObject(responseText);
// 上传完成,更新数据
var callback = function()
{
submitFinal_ajaxLoading.close();
Z.success("定稿完成", function(){Z.L.reload()});
}
//上传pdf
doUploadPdfLocal(fileData.fileName, fileData.uploadPath, callback, {
className: "TemplateOrderPresenter",
methodName: "doSubmitFinalLocalSave",
mediaId: mediaId, // mediaID
mediaUrl: ServiceAPI.imgPath, // 缩略图
pdfPath: fileData.pdfPath, // pdf成品
});
}
//ajax提交定稿,生成PDF
function doSubmitFinalAjaxSave(mediaId)
{//发送异步处理成功
function queryProgressing(mediaId)
{
var ajax = new Z.Ajax();
ajax.setClassName("TemplateOrderPresenter");
ajax.setMethodName("doQueryFinalOrderTemplateProgressing");
ajax.addParam("mediaId", mediaId);
ajax.setFailure(function(){
submitFinal_ajaxLoading.close();
Z.failure(ajax.responseText);
});
ajax.setSuccess(function()
{
var obj = Z.J.toObject(ajax.responseText);
var mediaHandlePdfModel = obj.mediaHandlePdfModel;
if (mediaHandlePdfModel)
{
var handleStatus = mediaHandlePdfModel.handleStatus;
console.log("定稿处理状态:"+handleStatus);
if (handleStatus == 0 || handleStatus == 1)
{//待处理 处理中
setTimeout(queryProgressing, 500, mediaId)
}
else if (handleStatus == 2)
{//处理完成
submitFinal_ajaxLoading.close();
Z.success("定稿完成", function(){Z.L.reload()});
}
else if (handleStatus == 3)
{//处理失败
submitFinajaxaxLoading.close();
Z.failure(mediaHandlePdfModel.errorMsg);
}
else
{
submitFinal_ajaxLoading.close();
console.log("定稿预览收到异常处理状态")
}
}
else
{//查不到处理对象
submitFinal_ajaxLoading.close();
console.log("定稿处理找不到处理对象");
Z.failure("定稿处理失败");
}
});
ajax.execute();
}
setTimeout(queryProgressing, 500, mediaId);
}
</script>
<!-- 模板修改和已定稿的电子名片不支持定稿功能 -->
<#if !isTemplateEdit && editable>
<style>
.topnav .topToolBar .topToolRight{flex-basis: 480px;}
.topnav .topToolRight #draftBtn{background-color:#009049;}
.topnav .topToolRight #finalBtn{background-color:#de1e08;}
</style>
<div id="draftBtn" class="nav topTool" onclick="doSubmitDraftOrderTempalte('${mediaId}');">提交初稿</div>
<div id="finalBtn" class="nav topTool" onclick="doPreviewFinalOrderTempalteCheckLabel('${mediaId}');">完成定稿</div>
</#if>
</#function>
<#-- 重写模板左边订单选项-->
<#function zhqim_media_edit_order_item_defined(mediaId)>
<script>
function openWangWang(buyerNick)
{//打开旺旺
Z("#openFrm").attr("src","http://amos.alicdn.com/msg.aw?v=2&uid="+buyerNick+"&site=cntaobao&s=2&charset=utz-8");
}
function openQQ(userQq)
{//打开QQ
if (!Z.V.isInteger(userQq))
{
Z.alert("客户未提供QQ号,请旺旺联系");
return;
}
Z("#openFrm").attr("src","tencent://message/?uin="+userQq);
}
function doTemplateOrderEdit(mediaId)
{//编辑
Z.l.href ="/zhiqimMediaEditor/mediaDesign.htm?mediaId=" + mediaId;
}
function doTemplateOrderDelete(mediaId, designId)
{//删除
if (Z.V.isEmpty(mediaId))
{
Z.alert("请选择模板");
return;
}
Z.confirm("你确定要删除该模板吗?", function(){
var ajax = new Z.Ajax();
ajax.setClassName("TemplatePresenter");
ajax.setMethodName("doTemplateDelete");
ajax.addParam("mediaId", mediaId);
ajax.addParam("designId", designId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("删除成功", function(){Z.L.reload();});
});
ajax.execute();
});
}
function doTabnavCss(value)
{
if (value == 1)
{
Z("#tabnav_user").addClass("z-active");
Z("#tabnav_template").removeClass("z-active");
Z("#tabnav_user_content").addClass("z-active");
Z("#tabnav_template_content").removeClass("z-active");
}
else if (value == 2)
{
Z("#tabnav_user").removeClass("z-active");
Z("#tabnav_template").addClass("z-active");
Z("#tabnav_user_content").removeClass("z-active");
Z("#tabnav_template_content").addClass("z-active");
}
else if (value == 3)
{
Z("#tabnav_userText").addClass("z-active");
Z("#tabnav_paramText").removeClass("z-active");
Z("#tabnav_userText_content").addClass("z-active");
Z("#tabnav_paramText_content").removeClass("z-active");
}
else if (value == 4)
{
Z("#tabnav_userText").removeClass("z-active");
Z("#tabnav_paramText").addClass("z-active");
Z("#tabnav_userText_content").removeClass("z-active");
Z("#tabnav_paramText_content").addClass("z-active");
}
}
function doQueryOrderInfo(mediaId)
{//订单API
var ajax = new Z.Ajax();
ajax.setClassName("TemplateOrderPresenter");
ajax.setMethodName("doTemplateOrderQuery");
ajax.addParam("mediaId", mediaId);
ajax.setCallback("side_order");
ajax.setLoading("side_order");
ajax.execute();
}
function doCopyOtherPage(mediaSrcId, bid, mediaId)
{//复制其它页
Z.confirm("你确定要复制该版面?", function()
{
// 新建 coverMaterial,字符串传参
var lastBgObj = media.bgList[media.bgList.length - 1];
var newBid = lastBgObj.bid + 1;
var bgObj = new Z.Bg();
bgObj.bid = newBid;
media.bgList.push(bgObj);
var newCMList = setCoverMaterial(bgObj, media.canvas.widthMm, media.canvas.heightMm);
// ajax调用
var ajax = new Z.Ajax();
ajax.setClassName("MediaPresenter");
ajax.setMethodName("doCopyOtherPage");
ajax.addParam("mediaSrcId", mediaSrcId);
ajax.addParam("bid", bid);
ajax.addParam("newBid", newBid);
ajax.addParam("mediaId", mediaId);
ajax.addParam("coverMaterialList", Z.AR.toString(newCMList));
ajax.setFailure(media.bgList.pop);
ajax.setFailureAlert();
ajax.setSuccess(function()
{
//定义 media
var newMedia = Z.J.toObject(this.responseText);
media = new Z.Media({canvas: newMedia.canvas, bgList: newMedia.bgList, materialList: newMedia.materialList, coverMaterialList: newMedia.coverMaterialList});
//刷新画布
loadCanvas();
//刷新版面
refreshPageList();
Z.tips("复制成功");
});
ajax.setLoading(document);
ajax.execute();
});
}
function doDownFile(attaId)
{//下载
Z.l.href ="/templateDownload.htm?attaId=" + attaId + "&type=orderFile";
}
//标签选择客户类型
function doSelectConsumerType(flag){
Z("#consumerType_"+flag).addClass("z-blue").siblings("button").removeClass("z-blue");
}
//通过关键词查主行业
function doQueryIndustryByKey(){
var industryKey=Z("#industryKey").val();
var labelOid = Z("#labelOid").val();
var unmatchkey=Z("#unmatchkey").val();
var ajax = new Z.Ajax();
ajax.setClassName("TemplateOrderPresenter");
ajax.setMethodName("doQueryIndustryByKey");
ajax.addParam("industryKey",industryKey);
ajax.addParam("labelOid",labelOid);
ajax.addParam("unmatchkey",unmatchkey);
ajax.setFailureAlert();
ajax.setSuccess(function(){
var map=Z.J.toObject(this.responseText);
var industrys=map.industrys;
var newUnmatchkey=map.unmatchkey;
var htmlstr="";
Z.each(industrys, function(industry, i){
htmlstr+='<button id="industry_'+industry.industryId+'" type="button" class="z-button z-mg3 main-industry" value="'+industry.industryId+'" onclick="doQueryIndustryLabel('+industry.industryId+')">'+industry.industryName+'</button>';
});
Z("#mainIndustry").html(htmlstr);
Z("#subIndustry").html("");
Z("#applicationScenario").html("");
Z("#designStyle").html("");
Z("#unmatchkey").val(newUnmatchkey);
// 推荐行业页面元素遍历拼接
var recommendIndHtml = "";
var recommendIndustrys = map.recommendIndustryList;
Z.each(recommendIndustrys, function(industry, i){
recommendIndHtml += '<button id="recommend_industry_'+industry.industryId+'" type="button" class="z-button z-mg3 recommend-industry" value="'+industry.industryId+'" onclick="doQueryIndustryLabel('+industry.industryId+', 1)">'+industry.industryName+'</button>';
});
Z("#recommendIndustry").html(recommendIndHtml);
});
ajax.setLoading("queryIndustryByKey", '<i class="z-font z-return"></i>正在处理',{disabled:true});
ajax.execute();
}
function doQueryOrderLabel(mediaId){
var ajax = new Z.Ajax();
ajax.setClassName("TemplateOrderPresenter");
ajax.setMethodName("doTemplateOrderLabelQuery");
ajax.addParam("mediaId", mediaId);
ajax.setCallback("side_label");
ajax.setLoading("side_label");
ajax.execute();
}
//查询标签
function doQueryIndustryLabel(industryId, isRecommend){
if(isRecommend)
{
Z("#recommend_industry_"+industryId).addClass("z-blue").siblings("button").removeClass("z-blue");
Z(".main-industry").removeClass("z-blue");
}
else
{
Z("#industry_"+industryId).addClass("z-blue").siblings("button").removeClass("z-blue");
Z(".recommend-industry").removeClass("z-blue");
}
var ajax = new Z.Ajax();
ajax.setClassName("TemplateOrderPresenter");
ajax.setMethodName("doQueryIndustryLabel");
ajax.addParam("industryId",industryId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
var map=Z.J.toObject(this.responseText);
var htmlSI="";
var htmlAS="";
var htmlDS="";
var labelList=map.labelList;
var dimensionList=map.dimensionList;
var dimensionMap=new Map();
for (var i in dimensionList) {
dimensionMap.set(dimensionList[i].dimensionId,dimensionList[i].dimensionName);
}
Z.each(labelList, function(label, i){
if("子行业"==dimensionMap.get(label.dimensionId)){
htmlSI+='<button id="label_'+label.id+'" type="button" class="z-button z-mg3" value="'+label.id+'" onclick="doLabelSelected('+label.id+')">'+label.labelName+'</button>';
}
if("应用场景"==dimensionMap.get(label.dimensionId)){
htmlAS+='<button id="label_'+label.id+'" type="button" class="z-button z-mg3" value="'+label.id+'" onclick="doLabelSelected('+label.id+')">'+label.labelName+'</button>';
}
if("设计风格"==dimensionMap.get(label.dimensionId)){
htmlDS+='<button id="label_'+label.id+'" type="button" class="z-button z-mg3" value="'+label.id+'" onclick="doLabelSelected('+label.id+')">'+label.labelName+'</button>';
}
});
Z("#subIndustry").html(htmlSI);
Z("#applicationScenario").html(htmlAS);
Z("#designStyle").html(htmlDS);
});
ajax.execute();
}
//选择标签
function doLabelSelected(id){
Z("#label_"+id).addClass("z-blue").siblings("button").removeClass("z-blue");
}
//保存标签
function doSaveLabel(){
var unmatchkey=Z("#unmatchkey").val();
var labelOid = Z("#labelOid").val();
var consumerType=Z("button[id^='consumerType'][class*='z-blue']").val();//客户类型
var industryId=Z("div[id='mainIndustry'] button[class*='z-blue']").val();//主行业
// 如果选择了推荐行业则保存时替换为主行业id
var recommendIndustryId = Z("div[id='recommendIndustry'] button[class*='z-blue']").val();// 推荐行业
if (!industryId)
{
if (Z.V.isEmpty(recommendIndustryId))
{
Z.alert("请选择主行业或者推荐行业");
return;
}
industryId = recommendIndustryId;
}
var subIndustryId=Z("div[id='subIndustry'] button[class*='z-blue']").val();//子行业
var applicationScenarioId=Z("div[id='applicationScenario'] button[class*='z-blue']").val();//应用场景
var designStyleId=Z("div[id='designStyle'] button[class*='z-blue']").val();//设计风格
var ajax = new Z.Ajax();
ajax.setClassName("TemplateOrderPresenter");
ajax.setMethodName("doSaveIndustryLabel");
ajax.addParam("labelOid",labelOid);
ajax.addParam("consumerType",consumerType);
ajax.addParam("industryId",industryId);
ajax.addParam("subIndustryId",subIndustryId);
ajax.addParam("applicationScenarioId",applicationScenarioId);
ajax.addParam("designStyleId",designStyleId);
ajax.addParam("unmatchkey",unmatchkey);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z("#unmatchkey").val("");
Z.alert("保存成功");
});
ajax.setLoading("saveLabel", '<i class="z-font z-return"></i>正在处理',{disabled:true});
ajax.execute();
}
function doCancelLabel(){
Z("button[id^='consumerType'][class*='z-blue']").removeClass("z-blue");
Z("div[id='mainIndustry'] button[class*='z-blue']").removeClass("z-blue");
Z("div[id='subIndustry'] button[class*='z-blue']").removeClass("z-blue");
Z("div[id='applicationScenario'] button[class*='z-blue']").removeClass("z-blue");
Z("div[id='designStyle'] button[class*='z-blue']").removeClass("z-blue");
Z("#subIndustry").html("");
Z("#applicationScenario").html("");
Z("#designStyle").html("");
}
function doPreviewFinalOrderTempalteCheckLabel(mediaId)
{
// 智能电子名片单独的确认页面和后台定稿逻辑
var orderIsDzmpCardType = '${orderIsCardType}';
if (orderIsDzmpCardType == 'true') {
beforeShowDzmpQrcode("endDraft");
return;
}
//常规产品定稿流程
doPreviewFinalOrderTempalte(mediaId);
/* var ajax = new Z.Ajax();
ajax.setClassName("TemplateOrderPresenter");
ajax.setMethodName("doPreviewFinalOrderTempalteCheckLabel");
ajax.addParam("mediaId",mediaId);
ajax.setFailureAlert();
ajax.setSuccess(function(){
var map=Z.J.toObject(this.responseText);
if(map.flag==false){
var dialog = new Z.Dialog();
dialog.title = "补充订单【"+map.designId+"】的标签信息";
dialog.url = "/fillLabelInfo.htm?designId="+map.designId+"&mediaId="+mediaId;
dialog.width = 900;
dialog.height = 360;
dialog.execute();
}else{
}
});
ajax.setLoading("finalBtn", '<i class="z-font z-return"></i>正在处理',{disabled:true});
ajax.execute();
*/
}
</script>
<li onclick="doChangeSidebar(this,'order');doQueryOrderInfo('${mediaId}');"><i class="z-font z-text zi-px24"></i><br>订单</li>
<!-- <li id="label" onclick="doChangeSidebar(this,'label');doQueryOrderLabel('${mediaId}');"><i class="z-font z-add zi-px24"></i><br>标签</li> -->
</#function>
<#--刷新右边区域自定义块-->
<#function zhiqim_manager_topnav_right_defined()>
<script type="text/javascript" src="/zinc/js/designer_2021031501.js?v=20210603"></script>
<#var onlineStatus = DesignerDao.getDesignerStatus(sessionUser)/>
<#--<div class="takeOrder">
<span>自动接单</span>
<div id="switch-work" style="cursor: pointer;" class="switch <#if onlineStatus gt 0>switch-active</#if>"></div>
</div>-->
</#function>
<!-- 重写我的素材选项-->
<#function zhqim_media_my_material_defined()>
<script>
var allMaterialCatList = Z.J.toObject('${Global.get(MaterialCatCache.class).list()}'); // 素材分类对象
Z.onload(function(){
doQueryUserMaterial("1");
});
function doQueryUserMaterial(page)
{//查询我的素材
var ajax = new Z.Ajax();
ajax.setClassName("UserMaterialPresenter");
ajax.setMethodName("doQueryUserMaterial");
ajax.addParam("page", page);
ajax.setFailureAlert();
ajax.setSuccess(function()
{
var list = Z.J.toObject(this.responseText);
var ulHtml = "<ul>";
for(var i=0;i<list.length;i++)
{
var data = list[i];
ulHtml += '<li class="userMaterialListItem" onclick=addSvgCodeFromMine("' + data.svgId + '",' + 'doUseUserMaterial); oncontextmenu=\'tagMenuShowMine(event, "' + data.svgId + '");\'>' + data.svgCode;
ulHtml += '</li>';
}
ulHtml += "</ul>";
Z("#collection_result>.result-ul").html("").append(Z(ulHtml));
});
ajax.execute();
}
function doUseUserMaterial(svgId)
{//使用素材
// 主方法,ajax 调用
var ajax = new Z.Ajax();
ajax.setClassName("UserMaterialPresenter");
ajax.setMethodName("getUserMaterialSvg");
ajax.addParam(svgId);
ajax.setFailure(function(){Z.failure(this.responseText);});
ajax.setSuccess(function(){analysisOfResponseMine(this.responseText);});
ajax.execute();
}
function doAddUserMaterial(typeCode, catCode, keywords, svgCode)
{//添加素材
var ajax = new Z.Ajax();
ajax.setClassName("UserMaterialPresenter");
ajax.setMethodName("doAddUserMaterial");
ajax.addParam("typeCode", typeCode);
ajax.addParam("catCode", catCode);
ajax.addParam("keywords", keywords);
ajax.addParam("svgCode", svgCode);
ajax.setFailureAlert();
ajax.setSuccess(function()
{
Z.alert("添加成功", function(){doQueryUserMaterial("1");});
});
ajax.execute();
}
function doDelUserMaterial(elem)
{//删除个人素材
var svgId = Z(elem).attr("data-svgid");
var ajax = new Z.Ajax();
ajax.setClassName("UserMaterialPresenter");
ajax.setMethodName("doDelUserMaterial");
ajax.addParam(svgId);
ajax.setFailure(function(){Z.failure(this.responseText);});
ajax.setSuccess(function(){doQueryUserMaterial("1");});
ajax.execute();
}
/** 标签右键菜单 **/
function tagMenuShowMine(event, svgId)
{
Z.E.forbidden(event);
createContextMenu({
"event": event,
"elemId": "tagUserMaterialMenu",
"editItem": [
["删除素材","doDelUserMaterial(this)"]
]
});
Z("#tagUserMaterialMenu ul:nth-child(1)>li:first-child").attr("data-svgid",svgId);
}
</script>
<style>
.userMaterialListItem{padding:5px;}
.userMaterialListItem > svg{height:auto;}
.
</style>
<div class="side-btnList">
<span class="side-btnSelect active" data-type="0">全部</span>
<span class="side-btnSelect" data-type="1" style="pointer-events:none;opacity:.7;">文字</span>
<span class="side-btnSelect" data-type="2" style="pointer-events:none;opacity:.7;">图片</span>
<span class="side-btnSelect" data-type="3" style="pointer-events:none;opacity:.7;">形状</span>
<span class="side-btnSelect" data-type="4" style="pointer-events:none;opacity:.7;">二维码</span>
</div>
<div class="bjbox">
<div id="collection_result" class="bjimg materialListShow">
<div class="result-ul"></div>
<div class="result-page"><span></span></div>
<div class="result-tips z-text-center z-hide">已经到底了!!</div>
</div>
</div>
</#function>
<#--计算左侧宽高值-->
<#function yangcai_calc_Left_width_height(width, height)>
<script>
function calcLeftWidthHeight()
{
Z("#left").css("width", Z.D.clientWidth() - ${zmr_sidebar_width} - 20 - ${width} - 5);//左20PD,右5PD
Z("#left").css("height", Z.D.clientHeight() - ${zmr_topnav_height} - ${zmr_breadcrumb_height} - 20 - ${height} - 5);//上20PD,下5PD
}
Z.onload(calcLeftWidthHeight);
Z(window).resize(calcLeftWidthHeight);
</script>
</#function>
<#--计算指定元素的宽度-->
<#function yangcai_designer_calc_width(width, containerId)>
<script>
function calcLeftWidthHeight()
{
Z("#${containerId}").css("width", Z.D.clientWidth() - ${zmr_sidebar_width} - 20 - ${width} - 5);//左20PD,右5PD
}
Z.onload(calcLeftWidthHeight);
Z(window).resize(calcLeftWidthHeight);
</script>
</#function>
<#function sweet_alert_reuse_method()>
${Scripts.src("/zinc/js/sweetalert2.min.js")}
<link rel="stylesheet" href="/zinc/css/sweetalert2.min.css">
</#function>
<#function Mydome()>
<link rel="stylesheet" href="/zinc/css/dome.css">
</#function>