...
|
...
|
@@ -2,8 +2,15 @@ |
|
|
'use strict';
|
|
|
var $ = require('jquery'),
|
|
|
common=require('../../common/common');
|
|
|
|
|
|
require('../../common/umeditor.config');
|
|
|
require('../../common/umeditor');
|
|
|
require('../../common/zh-cn');
|
|
|
|
|
|
var e=new common.edit("#storeForm",{bucket:"yhb-img01"});
|
|
|
|
|
|
window.UMshopintro = UM.getEditor('edit-shop-intro');
|
|
|
|
|
|
var Bll={
|
|
|
toast:function(content,url,id){
|
|
|
common.dialog.confirm("温馨提示",content,function(){
|
...
|
...
|
@@ -92,6 +99,11 @@ e.on("render",function(){ |
|
|
// Array.prototype.push.apply(g2.__rows, a);
|
|
|
g2.init(g2.__rows);
|
|
|
}
|
|
|
|
|
|
var shopIntroContent = $('#shopIntro').val();
|
|
|
if(shopIntroContent) {
|
|
|
UMshopintro.setContent(shopIntroContent);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
e.on("bind",function(){
|
...
|
...
|
@@ -263,6 +275,7 @@ e.init(); |
|
|
var submit=function(callback){
|
|
|
e.submit($("#storeForm").attr("action"),function(option){
|
|
|
option.data=$.extend({},option.data,_arr);
|
|
|
option.data.shopIntro = UMshopintro.getContent();
|
|
|
console.log(option.data);
|
|
|
option.success=function(res){
|
|
|
if(res.code=="200"){
|
...
|
...
|
|