|
@@ -370,13 +370,28 @@
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <th><span class="red">*</span>商品详细信息:</th>
|
|
|
+ <th><span class="red">*</span>资质机构商品详细信息:</th>
|
|
|
<td colspan="3">
|
|
|
<form:textarea path="detailInfo" htmlEscape="false" class="input-xlarge required hide" />
|
|
|
<!-- 富文本编辑器 -->
|
|
|
<div id="detailInfoEditor">${product.detailInfo}</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
+ <tr>
|
|
|
+ <th><span class="red">*</span>商品详情选择:</th>
|
|
|
+ <td colspan="3">
|
|
|
+ <label><input type="radio" name="productDetail" value="1" ${product.productDetail == "1" ? "checked" : ""} />同资质机构商品详情<b class="line">|</b></label>
|
|
|
+ <label><input type="radio" name="productDetail" value="2" ${product.productDetail == "2" || product.productDetail == null ? "checked" : ""} />不同于资质机构商品详情(即使用以下编辑内容)</label>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th><span class="red">*</span>普通机构商品详细信息:</th>
|
|
|
+ <td colspan="3">
|
|
|
+ <form:textarea path="detailInfo2" htmlEscape="false" class="input-xlarge required hide" />
|
|
|
+ <!-- 富文本编辑器 -->
|
|
|
+ <div id="detailInfoEditor2">${product.detailInfo2}</div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
<tr>
|
|
|
<th>订购方案:</th>
|
|
|
<td colspan="3">
|
|
@@ -611,6 +626,16 @@
|
|
|
}).catch(function(error){
|
|
|
console.log(error);
|
|
|
});
|
|
|
+ //富文本框
|
|
|
+ ClassicEditor.create(document.querySelector('#detailInfoEditor2'), {
|
|
|
+ ckfinder: {
|
|
|
+ uploadUrl: '${caimeiCore}/tools/image/upload/ckeditor'
|
|
|
+ }
|
|
|
+ }).then(function(editor) {
|
|
|
+ window.detailInfoEditor2 = editor;
|
|
|
+ }).catch(function(error){
|
|
|
+ console.log(error);
|
|
|
+ });
|
|
|
ClassicEditor.create(document.querySelector('#orderInfoEditor'), {
|
|
|
ckfinder: {
|
|
|
uploadUrl: '${caimeiCore}/tools/image/upload/ckeditor'
|
|
@@ -635,6 +660,8 @@
|
|
|
function checkInfo(){
|
|
|
var detailInfo=detailInfoEditor.getData();
|
|
|
$("#detailInfo").val(detailInfo);
|
|
|
+ var detailInfo2=detailInfoEditor2.getData();
|
|
|
+ $("#detailInfo2").val(detailInfo2);
|
|
|
console.log(detailInfo);
|
|
|
var orderInfo=orderInfoEditor.getData();
|
|
|
$("#orderInfo").val(orderInfo);
|