Merge branch 'dev_2.3_shops' into grey
# Conflicts: # dist/yohobuy-portal-fe/5.0.2/jquery/baserule.Brandmodel.js # dist/yohobuy-portal-fe/5.0.2/jquery/baserule.CateSize.js # dist/yohobuy-portal-fe/5.0.2/jquery/baserule.CateSizeAttr.js # dist/yohobuy-portal-fe/5.0.2/jquery/baserule.Porattr.js # dist/yohobuy-portal-fe/5.0.2/jquery/baserule.SizeAttribute.js # dist/yohobuy-portal-fe/5.0.2/jquery/baserule.Sizelibrary.js # dist/yohobuy-portal-fe/5.0.2/jquery/baserule.color.Edit.js # dist/yohobuy-portal-fe/5.0.2/jquery/baserule.color.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/brand.Edit.js # dist/yohobuy-portal-fe/5.0.2/jquery/brand.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/category.Edit.js # dist/yohobuy-portal-fe/5.0.2/jquery/category.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/common.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/common.Login.js # dist/yohobuy-portal-fe/5.0.2/jquery/customService.BlackList.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.audit.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.basegoods.Batch.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.basegoods.Edit.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.basegoods.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.basegoods.Info.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.batchSetPortal.Batch.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.batchUpdateStudentPrice.Batch.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.cod.Brand.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.cod.Goods.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.cod.Upload.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.limitcategory.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.netsale.Batch.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.netsale.Edit.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.netsale.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.price.BrandCooperation.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.price.PriceChange.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.priceExport.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.priceManage.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.specialgoods.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.yohoCoin.Audit.js # dist/yohobuy-portal-fe/5.0.2/jquery/goods.yohoCoin.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/guang.articleCategory.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/guang.author.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/guang.brandConcern.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/guang.comment.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/guang.info.Edit.js # dist/yohobuy-portal-fe/5.0.2/jquery/guang.info.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/guang.plusStar.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/guang.plusStarCategory.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/guang.tag.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/guang.tagCategory.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/help.Category.js # dist/yohobuy-portal-fe/5.0.2/jquery/help.Content.js # dist/yohobuy-portal-fe/5.0.2/jquery/index.js # dist/yohobuy-portal-fe/5.0.2/jquery/libs.js # dist/yohobuy-portal-fe/5.0.2/jquery/marketing.BrandCoupon.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/marketing.CouponList.AddOrUpdate.js # dist/yohobuy-portal-fe/5.0.2/jquery/marketing.CouponList.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/marketing.CouponSend.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/marketing.CouponSend.PublicCoupon.js # dist/yohobuy-portal-fe/5.0.2/jquery/marketing.CouponSend.Send.js # dist/yohobuy-portal-fe/5.0.2/jquery/marketing.CouponSend.SendHistory.js # dist/yohobuy-portal-fe/5.0.2/jquery/marketing.CouponSend.UseHistory.js # dist/yohobuy-portal-fe/5.0.2/jquery/marketing.LimitCode.Edit.js # dist/yohobuy-portal-fe/5.0.2/jquery/marketing.LimitCode.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/marketing.LimitCode.Info.js # dist/yohobuy-portal-fe/5.0.2/jquery/marketing.ProductPool.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/marketing.PromotionCode.Edit.js # dist/yohobuy-portal-fe/5.0.2/jquery/marketing.PromotionCode.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/marketing.QueryCoupon.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/marketing.Vip.Add.js # dist/yohobuy-portal-fe/5.0.2/jquery/marketing.Vip.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.activitytemplate.Edit.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.activitytemplate.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.activitytemplate.Product.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.category.Edit.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.category.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.couponActivity.Add.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.couponActivity.Edit.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.couponActivity.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.couponSend.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.entrance.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.generateLinks.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.hotRankTag.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.hotsuggest.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.icon.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.limit.Edit.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.limit.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.notice.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.officialAccounts.Edit.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.officialAccounts.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.payment.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.salecategory.Edit.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.salecategory.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.salecategory.TagMgmt.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.shopsVersionUpdate.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.staticFile.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.subject.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.suggest.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.version.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.webshare.Edit.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.webshare.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/operations.ziplist.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/resource.platformManage.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/resource.resourceManage.ContentManage.js # dist/yohobuy-portal-fe/5.0.2/jquery/resource.resourceManage.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/resource.resourceSortManage.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/searchWords.HotBrand.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/searchWords.SearchWords.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/shootMeter.MeterSize.Add.js # dist/yohobuy-portal-fe/5.0.2/jquery/shootMeter.MeterSize.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/shootMeter.Model.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/shootMeter.ProPhoto.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/shootMeter.ShootRequire.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/shootMeter.TryInfo.Batch.js # dist/yohobuy-portal-fe/5.0.2/jquery/shootMeter.TryInfo.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/shootMeter.TryModel.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/shop.Administrator.js # dist/yohobuy-portal-fe/5.0.2/jquery/shop.Decoration.js # dist/yohobuy-portal-fe/5.0.2/jquery/shop.DecorationBLK.js # dist/yohobuy-portal-fe/5.0.2/jquery/shop.DecorationList.js # dist/yohobuy-portal-fe/5.0.2/jquery/shop.Edit.js # dist/yohobuy-portal-fe/5.0.2/jquery/shop.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/shop.Info.js # dist/yohobuy-portal-fe/5.0.2/jquery/shop.ShopCategory.Batch.js # dist/yohobuy-portal-fe/5.0.2/jquery/shop.ShopCategory.Edit.js # dist/yohobuy-portal-fe/5.0.2/jquery/shop.ShopCategory.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/shop.ShopCategory.Info.js # dist/yohobuy-portal-fe/5.0.2/jquery/supplier.Edit.js # dist/yohobuy-portal-fe/5.0.2/jquery/supplier.Index.js # dist/yohobuy-portal-fe/5.0.2/jquery/supplier.Info.js # server/controllers/common.select.js # server/controllers/goods.basegoods.js # server/controllers/goods.netsale.js # server/controllers/marketing.QueryCoupon.js # server/controllers/operations.generateLinks.js # server/index.js # server/interfaces/common.select.js # server/interfaces/common.yohosearch.js # server/interfaces/goods.audio.js # server/interfaces/goods.basegoods.js # server/interfaces/goods.netsale.js # server/interfaces/marketing.CouponList.js # server/interfaces/marketing.QueryCoupon.js # server/interfaces/operations.activitytemplate.js # server/interfaces/operations.payment.js # server/interfaces/operations.webshare.js # server/views/goods/basegoods/Batch.html # server/views/goods/basegoods/Edit.html # server/views/goods/basegoods/Index.html # server/views/goods/basegoods/Info.html # server/views/goods/netsale/Batch.html # server/views/goods/netsale/Index.html # server/views/goods/netsale/__partail/add_info.html # server/views/goods/netsale/__partail/basic_info.html # server/views/goods/netsale/__partail/goods_sort.html # server/views/marketing/CouponList/AddOrUpdate.html # server/views/marketing/CouponList/Index.html # server/views/operations/activitytemplate/Product.html # server/views/operations/generateLinks/Index.html # server/views/operations/icon/Index.html # server/views/operations/payment/Index.html # server/views/operations/webshare/Edit.html # server/views/resource/__partail/weiqingting.html
Showing
4 changed files
with
30 additions
and
2 deletions
@@ -94,7 +94,8 @@ | @@ -94,7 +94,8 @@ | ||
94 | <label>店铺简介:</label> | 94 | <label>店铺简介:</label> |
95 | </div> | 95 | </div> |
96 | <div class="col-sm-7"> | 96 | <div class="col-sm-7"> |
97 | - <textarea class="form-control" form="storeForm" rows="10" name="shopIntro" id="shopIntro"><%data.shopIntro%></textarea> | 97 | + <script id="edit-shop-intro" type="text/plain" style="width:100%;height:500px;"></script> |
98 | + <input id="shopIntro" type="hidden" placeholder="店铺简介" value="<%data.shopIntro%>"> | ||
98 | </div> | 99 | </div> |
99 | </div> | 100 | </div> |
100 | <div class="form-group"> | 101 | <div class="form-group"> |
@@ -45,7 +45,10 @@ | @@ -45,7 +45,10 @@ | ||
45 | </div> | 45 | </div> |
46 | <div class="row show-grid"> | 46 | <div class="row show-grid"> |
47 | <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">店铺简介:</div> | 47 | <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">店铺简介:</div> |
48 | - <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8"><%data.shopIntro%></div> | 48 | + <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8"> |
49 | + <script id="edit-shop-intro" type="text/plain" style="width:100%;height:500px;"></script> | ||
50 | + <input id="shopIntro" type="hidden" placeholder="店铺简介" value="<%data.shopIntro%>"> | ||
51 | + </div> | ||
49 | </div> | 52 | </div> |
50 | <div class="row show-grid"> | 53 | <div class="row show-grid"> |
51 | <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">店铺状态:</div> | 54 | <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">店铺状态:</div> |
@@ -2,8 +2,15 @@ | @@ -2,8 +2,15 @@ | ||
2 | 'use strict'; | 2 | 'use strict'; |
3 | var $ = require('jquery'), | 3 | var $ = require('jquery'), |
4 | common=require('../../common/common'); | 4 | common=require('../../common/common'); |
5 | + | ||
6 | +require('../../common/umeditor.config'); | ||
7 | +require('../../common/umeditor'); | ||
8 | +require('../../common/zh-cn'); | ||
9 | + | ||
5 | var e=new common.edit("#storeForm",{bucket:"yhb-img01"}); | 10 | var e=new common.edit("#storeForm",{bucket:"yhb-img01"}); |
6 | 11 | ||
12 | +window.UMshopintro = UM.getEditor('edit-shop-intro'); | ||
13 | + | ||
7 | var Bll={ | 14 | var Bll={ |
8 | toast:function(content,url,id){ | 15 | toast:function(content,url,id){ |
9 | common.dialog.confirm("温馨提示",content,function(){ | 16 | common.dialog.confirm("温馨提示",content,function(){ |
@@ -92,6 +99,11 @@ e.on("render",function(){ | @@ -92,6 +99,11 @@ e.on("render",function(){ | ||
92 | // Array.prototype.push.apply(g2.__rows, a); | 99 | // Array.prototype.push.apply(g2.__rows, a); |
93 | g2.init(g2.__rows); | 100 | g2.init(g2.__rows); |
94 | } | 101 | } |
102 | + | ||
103 | + var shopIntroContent = $('#shopIntro').val(); | ||
104 | + if(shopIntroContent) { | ||
105 | + UMshopintro.setContent(shopIntroContent); | ||
106 | + } | ||
95 | }); | 107 | }); |
96 | 108 | ||
97 | e.on("bind",function(){ | 109 | e.on("bind",function(){ |
@@ -263,6 +275,7 @@ e.init(); | @@ -263,6 +275,7 @@ e.init(); | ||
263 | var submit=function(callback){ | 275 | var submit=function(callback){ |
264 | e.submit($("#storeForm").attr("action"),function(option){ | 276 | e.submit($("#storeForm").attr("action"),function(option){ |
265 | option.data=$.extend({},option.data,_arr); | 277 | option.data=$.extend({},option.data,_arr); |
278 | + option.data.shopIntro = UMshopintro.getContent(); | ||
266 | console.log(option.data); | 279 | console.log(option.data); |
267 | option.success=function(res){ | 280 | option.success=function(res){ |
268 | if(res.code=="200"){ | 281 | if(res.code=="200"){ |
@@ -4,6 +4,10 @@ | @@ -4,6 +4,10 @@ | ||
4 | var $ = require('jquery'), | 4 | var $ = require('jquery'), |
5 | common=require('../../common/common'); | 5 | common=require('../../common/common'); |
6 | 6 | ||
7 | +require('../../common/umeditor.config'); | ||
8 | +require('../../common/umeditor'); | ||
9 | +require('../../common/zh-cn'); | ||
10 | + | ||
7 | var ENUM={ | 11 | var ENUM={ |
8 | shopNature:{1:'旗舰店',2:'专卖店'}, | 12 | shopNature:{1:'旗舰店',2:'专卖店'}, |
9 | shopsType:{1:'单品店',2:'多品店'}, | 13 | shopsType:{1:'单品店',2:'多品店'}, |
@@ -64,3 +68,10 @@ if($("#shopRelationList").val()){ | @@ -64,3 +68,10 @@ if($("#shopRelationList").val()){ | ||
64 | var a=JSON.parse($("#shopRelationList").val()); | 68 | var a=JSON.parse($("#shopRelationList").val()); |
65 | g2.init(a); | 69 | g2.init(a); |
66 | } | 70 | } |
71 | + | ||
72 | +window.UMshopintro = UM.getEditor('edit-shop-intro'); | ||
73 | +window.UMshopintro.setDisabled('fullscreen'); | ||
74 | +var shopIntroContent = $('#shopIntro').val(); | ||
75 | +if(shopIntroContent) { | ||
76 | + UMshopintro.setContent(shopIntroContent); | ||
77 | +} |
-
Please register or login to post a comment