Authored by xuhongyun

build

... ... @@ -14753,6 +14753,62 @@ webpackJsonp([41],[
return false;
});
var taobaoUrl = window.NETSALEDATA.productUrlBo.taobaoUrl || "";
var tmallUrl = window.NETSALEDATA.productUrlBo.tmallUrl || "";
var jdUrl = window.NETSALEDATA.productUrlBo.jdUrl || "";
$("#taobaoUrl").val(taobaoUrl);
$("#tmallUrl").val(tmallUrl);
$("#jdUrl").val(jdUrl);
$("#taobaoUrl").on('change', function() { taobaoUrl = $("#taobaoUrl").val(); });
$("#tmallUrl").on('change', function() { tmallUrl = $("#tmallUrl").val(); });
$("#jdUrl").on('change', function() { jdUrl = $("#jdUrl").val(); });
$("#save-urlList").on('click', function() {
common.util.__ajax({
url: '/netSale/saveProductUrlList',
data: {
productSkn: window.NETSALEDATA.baseProductInfo.baseProduct.productSkn,
taobaoUrl: taobaoUrl,
tmallUrl : tmallUrl,
jdUrl : jdUrl
}
});
return false;
});
$("#save-jdUrl").on('click', function(){
common.util.__ajax({
url: '/ChannelProductController/synChannelProduct',
data: {
skn: window.NETSALEDATA.baseProductInfo.baseProduct.productSkn,
url : $("#jdUrl").val(),
type : 3 //类型(1-天猫;2-淘宝;3-京东)
}
});
return false;
});
$("#save-tmallUrl").on('click', function(){
common.util.__ajax({
url: '/ChannelProductController/synChannelProduct',
data: {
skn: window.NETSALEDATA.baseProductInfo.baseProduct.productSkn,
url : $("#tmallUrl").val(),
type : 1 //类型(1-天猫;2-淘宝;3-京东)
}
});
return false;
});
$("#save-taobaoUrl").on('click', function(){
common.util.__ajax({
url: '/ChannelProductController/synChannelProduct',
data: {
skn: window.NETSALEDATA.baseProductInfo.baseProduct.productSkn,
url : $("#taobaoUrl").val(),
type : 2 //类型(1-天猫;2-淘宝;3-京东)
}
});
return false;
});
// window.GOLABDATA.on('TYsearchKey', function () {
// var washTips = $("#washTips").val() || "";
// var productMaterial = $("#material").val() || "";
... ...
... ... @@ -120,4 +120,8 @@ module.exports=function(app) {
app.post("/guang/article/queryArticlesBySKN","netsale_queryArticlesBySKN");
/*保存店铺商品搜索顺序*/
app.post("/netSale/saveShopsSearchSort","netsale_saveShopsSearchSort");
/*保存商品链接*/
app.post("/netSale/saveProductUrlList","netsale_saveProductUrlList");
/*立即比价商品链接*/
app.post("/ChannelProductController/synChannelProduct","netsale_synChannelProduct");
}
\ No newline at end of file
... ...
... ... @@ -45,9 +45,9 @@ var apiCofig = {
//root:__dirname,
EnvConst:{
// domain:"http://192.168.102.48:8088/platform",
// domain:"http://127.0.0.1:8080/platform",
domain:"http://127.0.0.1:8088/platform",
// domain:"http://172.16.6.200:8088/platform",
domain:"http://192.168.102.27:8088/platform",
//domain:"http://192.168.102.202:8088/platform",
yohoSearch: 'http://192.168.102.216:8080/yohosearch',
system:Iaccount
... ...
... ... @@ -398,6 +398,25 @@ module.exports={
params: [
{name: 'searchSortList', type: 'string'}
]
},
saveProductUrlList:{
title:'保存商品链接',
url: '/product/saveProductUrlList',
params: [
{name: 'productSkn', type: 'number'},
{name: 'taobaoUrl', type: 'string'},
{name: 'tmallUrl', type: 'string'},
{name: 'jdUrl', type: 'string'}
]
},
synChannelProduct:{
title:'触发比价商品链接',
url: '/ChannelProductController/synChannelProduct',
params: [
{name: 'skn', type: 'number'},
{name: 'url', type: 'string'},
{name: 'type', type: 'number'}
]
}
}
}
\ No newline at end of file
... ...
... ... @@ -56,6 +56,43 @@
</div>
</div>
<!-- 商品链接 -->
<div class="panel panel-primary">
<div class="panel-heading">
<a class="netsale-position" href="javascript:;" name="position10"></a>
<div class="panel-btns" style="display: none;">
<a href="" class="panel-minimize tooltips maximize" data-toggle="tooltip" title=""><i class="fa fa-plus"></i></a>
</div>
<h2 class="panel-title">商品链接</h2>
</div>
<div class="panel-body" style="display: none;">
<div class="form-group">
<label class="col-sm-1 control-label height40" for="jdUrl">京东商城链接:</label>
<div class="col-sm-11">
<input type="text" class="form-control" id="jdUrl" style="display: initial; width: 93%" />
<button class="btn btn-primary" id="save-jdUrl">立即比价</button>
</div>
</div>
<div class="form-group">
<label class="col-sm-1 control-label height40" for="tmallUrl">天猫商城链接:</label>
<div class="col-sm-11">
<input type="text" class="form-control" id="tmallUrl" style="display: initial; width: 93%"/>
<button class="btn btn-primary" id="save-tmallUrl">立即比价</button>
</div>
</div>
<div class="form-group">
<label class="col-sm-1 control-label height40" for="taobaoUrl">淘宝企业店链接:</label>
<div class="col-sm-11">
<input type="text" class="form-control" id="taobaoUrl" style="display: initial; width: 93%"/>
<button class="btn btn-primary" id="save-taobaoUrl">立即比价</button>
</div>
</div>
</div>
<div class="panel-footer" style="display: none;">
<button class="btn btn-primary" id="save-urlList">保存</button>
</div>
</div>
<div class="panel panel-primary">
<div class="panel-heading">
<a class="netsale-position" href="javascript:;" name="position9"></a>
... ...
... ... @@ -93,8 +93,8 @@
<div class="col-sm-1 control-label">
<label>店铺简介:</label>
</div>
<div class="col-sm-7">
<script id="edit-shop-intro" type="text/plain" style="width:100%;height:500px;"></script>
<div class="col-sm-8">
<script id="edit-shop-intro" type="text/plain" style="width:89%;height:500px;"></script>
<input id="shopIntro" type="hidden" placeholder="店铺简介" value="<%data.shopIntro%>">
</div>
</div>
... ...