| | |
| | | { |
| | | // 用于显示的商品格式 |
| | | var thisGoods = { |
| | | auctionId: mo[i][0].key, // 商品id |
| | | pictUrl: mo[i][2].key, // 商品图片 |
| | | title: mo[i][3].key, // 商品名称 |
| | | pictUrl: mo[i][0].key, // 商品图片 |
| | | title: mo[i][1].key, // 商品名称 |
| | | auctionId: mo[i][2].key, // 商品id |
| | | }; |
| | | back.push(thisGoods); |
| | | } |
| | |
| | | <script type="text/javascript"> |
| | | |
| | | // 上次点击的特色来源记录 |
| | | var beforeTeSe = ""; |
| | | var beforeTeSe = "";
|
| | | var requestData = null; |
| | | // ==================================================================================== 页面数据 |
| | | doui.onReady({ |
| | | success: function () |
| | |
| | | el: "#thisTable", |
| | | // 表格请求回调 |
| | | touchSearch: function (optC) |
| | | { |
| | | { |
| | | requestData = {
|
| | | pageIndex: optC.table.page, // 页码
|
| | | pageSize: optC.table.pageSize, // 每页数量
|
| | | cid: optC.screen[0].result[0], // 类目
|
| | | key:optC.input[0].result
|
| | | } |
| | | // 发起请求 |
| | | doui.showLoading({ content: "加载商品" }); |
| | | doui.request({ |
| | | type: "jsonp", |
| | | url: gethttp() + "/admin/new/api/v1/taobao/searchDaTaoKe", |
| | | data: { |
| | | pageIndex: optC.table.page, // 页码 |
| | | pageSize: optC.table.pageSize, // 每页数量 |
| | | cid: optC.screen[0].result[0], // 类目 |
| | | key:optC.input[0].result |
| | | }, |
| | | data: requestData, |
| | | success: function (res) |
| | | { |
| | | doui.hideLoading(); |
| | |
| | | var thatTr = { |
| | | check: false, |
| | | td: [ |
| | | { title: "商品id", key: mo[i].auctionId, value: mo[i].auctionId }, |
| | | { title: "已经精选", key: mo[i].isExistence, value: mo[i].isExistence==1?"是":"否", "class": mo[i].isExistence==1?"font-green":"font-red" }, |
| | | { title: "商品图片", key: mo[i].pictUrl, value: mo[i].pictUrl, dataType: "img" }, |
| | | { title: "商品名称", key: mo[i].title, value: mo[i].title }, |
| | | { title: "商品链接", key: mo[i].auctionUrl, value: mo[i].auctionUrl, dataType: "link" }, |
| | | { title: "商品id", key: mo[i].auctionId, value: mo[i].auctionId }, |
| | | { title: "月销量", key: mo[i].biz30day, value: mo[i].biz30day }, |
| | | { title: "在售价格", key: mo[i].zkPrice, value: "¥"+mo[i].zkPrice }, |
| | | { title: "券后价", key: mo[i].couponPrice, value: "¥"+mo[i].couponPrice }, |
| | | { title: "优惠券", key: mo[i].couponInfo, value: mo[i].couponInfo }, |
| | | { title: "已经精选", key: mo[i].isExistence, value: mo[i].isExistence==1?"是":"否", "class": mo[i].isExistence==1?"font-green":"font-red" }, |
| | | { title: "优惠券剩余数量", key: mo[i].couponLeftCount, value: mo[i].couponLeftCount }, |
| | | { title: "佣金", key: mo[i].tkRate, value: mo[i].tkRate+"%" }, |
| | | { title: "预计收益", key: mo[i].estimateProfit, value: "¥"+mo[i].estimateProfit }, |
| | |
| | | adminDom.table.thead({ |
| | | show: true, |
| | | th: [ |
| | | { title: "商品ID", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "已入精选?", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "商品图片", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "商品名称", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "商品链接", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "月销量", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "在售价格", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "券后价格", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "优惠券", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "优惠券剩余数量", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "佣金", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "预计收益", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "贴上标签", width: "", orderUp: "", orderDown: "", |
| | | { title: "商品图片", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "商品名称", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "商品ID", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "月销量", width: "0.4rem", orderUp: "", orderDown: "" }, |
| | | { title: "在售价格", width: "0.4rem", orderUp: "", orderDown: "" }, |
| | | { title: "券后价格", width: "0.4rem", orderUp: "", orderDown: "" }, |
| | | { title: "优惠券", width: "0.4rem", orderUp: "", orderDown: "" }, |
| | | { title: "已入精选", width: "0.4rem", orderUp: "", orderDown: "" }, |
| | | { title: "优惠券剩余数量", width: "0.4rem", orderUp: "", orderDown: "" }, |
| | | { title: "佣金", width: "0.4rem", orderUp: "", orderDown: "" }, |
| | | { title: "预计收益", width: "0.4rem", orderUp: "", orderDown: "" }, |
| | | { title: "贴上标签", width: "0.6rem", orderUp: "", orderDown: "", |
| | | edit: { type: "text", placeholder: "可输入多个,以空格隔开(可不填)" } |
| | | } |
| | | ] |
| | |
| | | { |
| | | // 获取选择的商品id组 |
| | | var zu_id = new Array(); |
| | | for (var i = 0, mo = back.list; i < mo.length; i++) { zu_id.push(mo[i][0].key); } |
| | | for (var i = 0, mo = back.list; i < mo.length; i++) { zu_id.push(mo[i][2].key); }
|
| | | requestData.auctionIds = JSON.stringify(zu_id);
|
| | | requestData.lableNames = there.list[11].key;
|
| | | |
| | | // 发起请求 |
| | | doui.showLoading({ content: "正在添加" }); |
| | | doui.request({ |
| | | type: "jsonp", |
| | | url: gethttp() + "/admin/new/api/v1/qualityFactory/addBatch", |
| | | data: { |
| | | auctionIds: JSON.stringify(zu_id), |
| | | lableNames: there.list[12].key, |
| | | }, |
| | | data: requestData, |
| | | success: function (res) |
| | | { |
| | | doui.hideLoading(); |
| | |
| | | success: function (res) { saveData = res; } |
| | | }); |
| | | // 与本次选择串接 |
| | | saveData = saveData.concat(back.list); |
| | | saveData = saveData.concat(back.list);
|
| | | |
| | | alert(JSON.stringify(back.list));
|
| | | alert(JSON.stringify(saveData));
|
| | | |
| | | // 本地保存 |
| | | doui.localStorageSet({ |
| | | key: "goodsGroup", |
| | |
| | | var thatTr = { |
| | | check: false, |
| | | td: [ |
| | | { title: "商品id", key: mo[i].selectionGoods.taoBaoGoodsBrief.auctionId, value: mo[i].selectionGoods.taoBaoGoodsBrief.auctionId }, |
| | | { title: "销售状态", key: mo[i].saleStae, value: mo[i].saleStae==0?"在售":"停售", "class": mo[i].saleStae==0?"font-green":"font-red" }, |
| | | { title: "商品图片", key: mo[i].selectionGoods.taoBaoGoodsBrief.pictUrl, value: mo[i].selectionGoods.taoBaoGoodsBrief.pictUrl, dataType: "img" }, |
| | | { title: "商品名称", key: mo[i].selectionGoods.taoBaoGoodsBrief.title, value: mo[i].selectionGoods.taoBaoGoodsBrief.title }, |
| | | { title: "店铺名称", key: mo[i].selectionGoods.taoBaoGoodsBrief.shopTitle, value: mo[i].selectionGoods.taoBaoGoodsBrief.shopTitle }, |
| | | { title: "商品id", key: mo[i].selectionGoods.taoBaoGoodsBrief.auctionId, value: mo[i].selectionGoods.taoBaoGoodsBrief.auctionId }, |
| | | { title: "商品链接", key: mo[i].selectionGoods.taoBaoGoodsBrief.auctionUrl, value: mo[i].selectionGoods.taoBaoGoodsBrief.auctionUrl, dataType: "link" }, |
| | | { title: "销售状态", key: mo[i].saleStae, value: mo[i].saleStae==0?"在售":"停售", "class": mo[i].saleStae==0?"font-green":"font-red" }, |
| | | { title: "店铺名称", key: mo[i].selectionGoods.taoBaoGoodsBrief.shopTitle, value: mo[i].selectionGoods.taoBaoGoodsBrief.shopTitle }, |
| | | { title: "月销量", key: mo[i].selectionGoods.taoBaoGoodsBrief.biz30day, value: mo[i].selectionGoods.taoBaoGoodsBrief.biz30day }, |
| | | { title: "在售价格", key: mo[i].selectionGoods.taoBaoGoodsBrief.zkPrice, value: "¥"+mo[i].selectionGoods.taoBaoGoodsBrief.zkPrice }, |
| | | { title: "券后价格", key: mo[i].couponPrice, value: "¥"+mo[i].couponPrice }, |
| | |
| | | adminDom.table.thead({ |
| | | show: true, |
| | | th: [ |
| | | { title: "商品ID", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "销售状态", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "商品图片", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "商品名称", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "店铺名称", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "商品链接", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "月销量", width: "", orderUp: "1", orderDown: "2" }, |
| | | { title: "在售价格", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "券后价格", width: "", orderUp: "3", orderDown: "4" }, |
| | | { title: "优惠力度", width: "", orderUp: "7", orderDown: "8" }, |
| | | { title: "优惠券", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "佣金", width: "", orderUp: "5", orderDown: "6" }, |
| | | { title: "预计收益", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "贴上标签", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "来源库", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "自动规则", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "更新时间", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "精选ID", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "系统ID", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "商品图片", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "商品名称", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "商品ID", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "商品链接", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "销售状态", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "店铺名称", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "月销量", width: "0.6rem", orderUp: "1", orderDown: "2" }, |
| | | { title: "在售价格", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "券后价格", width: "0.6rem", orderUp: "3", orderDown: "4" }, |
| | | { title: "优惠力度", width: "0.6rem", orderUp: "7", orderDown: "8" }, |
| | | { title: "优惠券", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "佣金", width: "0.6rem", orderUp: "5", orderDown: "6" }, |
| | | { title: "预计收益", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "贴上标签", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "来源库", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "自动规则", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "更新时间", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "精选ID", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "系统ID", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | ] |
| | | }); |
| | | // 工具栏 |
| | |
| | | // 获取选择的系统id组 |
| | | var objC = { |
| | | id: back.list[0][17].key, |
| | | title: back.list[0][3].key, |
| | | pictUrl: back.list[0][2].key, |
| | | title: back.list[0][1].key, |
| | | pictUrl: back.list[0][0].key, |
| | | }; |
| | | // 显示弹框 |
| | | doui.domShow({ |
| | |
| | | var thatTr = { |
| | | check: false, |
| | | td: [ |
| | | { title: "商品id", key: mo[i].auctionId, value: mo[i].auctionId }, |
| | | { title: "已经精选", key: mo[i].isExistence, value: mo[i].isExistence==1?"是":"否", "class": mo[i].isExistence==1?"font-green":"font-red" }, |
| | | { title: "商品图片", key: mo[i].pictUrl, value: mo[i].pictUrl, dataType: "img" }, |
| | | { title: "商品名称", key: mo[i].title, value: mo[i].title }, |
| | | { title: "店铺名称", key: mo[i].shopTitle, value: mo[i].shopTitle }, |
| | | { title: "商品id", key: mo[i].auctionId, value: mo[i].auctionId }, |
| | | { title: "商品链接", key: mo[i].auctionUrl, value: mo[i].auctionUrl, dataType: "link" }, |
| | | { title: "月销量", key: mo[i].biz30day, value: mo[i].biz30day }, |
| | | { title: "在售价格", key: mo[i].zkPrice, value: "¥"+mo[i].zkPrice }, |
| | | { title: "券后价", key: mo[i].couponPrice, value: "¥"+mo[i].couponPrice }, |
| | | { title: "优惠券", key: mo[i].couponInfo, value: mo[i].couponInfo }, |
| | | { title: "已经精选", key: mo[i].isExistence, value: mo[i].isExistence==1?"是":"否", "class": mo[i].isExistence==1?"font-green":"font-red" }, |
| | | { title: "优惠券剩余数量", key: mo[i].couponLeftCount, value: mo[i].couponLeftCount }, |
| | | { title: "佣金", key: mo[i].tkRate, value: mo[i].tkRate+"%" }, |
| | | { title: "预计收益", key: mo[i].estimateProfit, value: "¥"+mo[i].estimateProfit }, |
| | | { title: "预计收益", key: mo[i].estimateProfit, value: "¥"+mo[i].estimateProfit },
|
| | | { title: "店铺名称", key: mo[i].shopTitle, value: mo[i].shopTitle }, |
| | | { title: "贴上标签", key: "", value: "(加入精选所需)", "class": "font-gray" }, |
| | | ], |
| | | }; |
| | |
| | | // 表格头排 |
| | | adminDom.table.thead({ |
| | | show: true, |
| | | th: [ |
| | | { title: "商品ID", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "已入精选?", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "商品图片", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "商品名称", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "店铺名称", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "商品链接", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "月销量", width: "", orderUp: "8", orderDown: "9" }, |
| | | { title: "在售价格", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "券后价格", width: "", orderUp: "4", orderDown: "3" }, |
| | | { title: "优惠券", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "优惠券剩余数量", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "佣金", width: "", orderUp: "1", orderDown: "2" }, |
| | | { title: "预计收益", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "贴上标签", width: "", orderUp: "", orderDown: "", |
| | | th: [
|
| | | { title: "商品图片", width: "0.4rem", orderUp: "", orderDown: "" },
|
| | | { title: "商品名称", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "商品ID", width: "0.6rem", orderUp: "", orderDown: "" },
|
| | | { title: "商品链接", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "月销量", width: "0.4rem", orderUp: "8", orderDown: "9" }, |
| | | { title: "在售价格", width: "0.4rem", orderUp: "", orderDown: "" },
|
| | | { title: "券后价格", width: "0.4rem", orderUp: "4", orderDown: "3" },
|
| | | { title: "优惠券", width: "0.6rem", orderUp: "", orderDown: "" },
|
| | | { title: "已入精选", width: "0.4rem", orderUp: "", orderDown: "" },
|
| | | { title: "优惠券剩余数量", width: "0.4rem", orderUp: "", orderDown: "" },
|
| | | { title: "佣金", width: "0.4rem", orderUp: "1", orderDown: "2" },
|
| | | { title: "预计收益", width: "0.4rem", orderUp: "", orderDown: "" }, |
| | | { title: "店铺名称", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "贴上标签", width: "0.6rem", orderUp: "", orderDown: "", |
| | | edit: { type: "text", placeholder: "可输入多个,以空格隔开(可不填)" } |
| | | } |
| | | ] |
| | |
| | | { |
| | | // 获取选择的商品id组 |
| | | var zu_id = new Array(); |
| | | for (var i = 0, mo = back.list; i < mo.length; i++) { zu_id.push(mo[i][0].key); } |
| | | for (var i = 0, mo = back.list; i < mo.length; i++) { zu_id.push(mo[i][2].key); } |
| | | // 请求参数包装 |
| | | requestData.auctionIds = JSON.stringify(zu_id); |
| | | requestData.lableNames = there.list[13].key; |
| | |
| | | <script type="text/javascript"> |
| | | |
| | | // 上次点击的特色来源记录 |
| | | var beforeTeSe = ""; |
| | | var beforeTeSe = "";
|
| | | var requestData = null; |
| | | // ==================================================================================== 页面数据 |
| | | doui.onReady({ |
| | | success: function () |
| | |
| | | el: "#thisTable", |
| | | // 表格请求回调 |
| | | touchSearch: function (optC) |
| | | { |
| | | { |
| | | requestData = {
|
| | | pageIndex: optC.table.page, // 页码
|
| | | pageSize: optC.table.pageSize, // 每页数量
|
| | | superName: optC.screen[0].result[0], // 特色来源
|
| | | subName: optC.screen[1].result[0], // 类目
|
| | | } |
| | | // 发起请求 |
| | | doui.showLoading({ content: "加载商品" }); |
| | | doui.request({ |
| | | type: "jsonp", |
| | | url: gethttp() + "/admin/new/api/v1/taobao/searchMaterial", |
| | | data: { |
| | | pageIndex: optC.table.page, // 页码 |
| | | pageSize: optC.table.pageSize, // 每页数量 |
| | | superName: optC.screen[0].result[0], // 特色来源 |
| | | subName: optC.screen[1].result[0], // 类目 |
| | | }, |
| | | data: requestData, |
| | | success: function (res) |
| | | { |
| | | doui.hideLoading(); |
| | |
| | | var thatTr = { |
| | | check: false, |
| | | td: [ |
| | | { title: "商品id", key: mo[i].auctionId, value: mo[i].auctionId }, |
| | | { title: "已经精选", key: mo[i].isExistence, value: mo[i].isExistence==1?"是":"否", "class": mo[i].isExistence==1?"font-green":"font-red" }, |
| | | { title: "商品图片", key: mo[i].pictUrl, value: mo[i].pictUrl, dataType: "img" }, |
| | | { title: "商品名称", key: mo[i].title, value: mo[i].title }, |
| | | { title: "商品id", key: mo[i].auctionId, value: mo[i].auctionId }, |
| | | { title: "商品链接", key: mo[i].auctionUrl, value: mo[i].auctionUrl, dataType: "link" }, |
| | | { title: "月销量", key: mo[i].biz30day, value: mo[i].biz30day }, |
| | | { title: "在售价格", key: mo[i].zkPrice, value: "¥"+mo[i].zkPrice }, |
| | | { title: "券后价", key: mo[i].couponPrice, value: "¥"+mo[i].couponPrice }, |
| | | { title: "优惠券", key: mo[i].couponInfo, value: mo[i].couponInfo }, |
| | | { title: "已经精选", key: mo[i].isExistence, value: mo[i].isExistence==1?"是":"否", "class": mo[i].isExistence==1?"font-green":"font-red" }, |
| | | { title: "优惠券剩余数量", key: mo[i].couponLeftCount, value: mo[i].couponLeftCount }, |
| | | { title: "佣金", key: mo[i].tkRate, value: mo[i].tkRate+"%" }, |
| | | { title: "预计收益", key: mo[i].estimateProfit, value: "¥"+mo[i].estimateProfit }, |
| | |
| | | adminDom.table.thead({ |
| | | show: true, |
| | | th: [ |
| | | { title: "商品ID", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "已入精选?", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "商品图片", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "商品名称", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "商品链接", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "月销量", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "在售价格", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "券后价格", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "优惠券", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "优惠券剩余数量", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "佣金", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "预计收益", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "贴上标签", width: "", orderUp: "", orderDown: "", |
| | | { title: "商品图片", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "商品名称", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "商品ID", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "商品链接", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "月销量", width: "0.4rem", orderUp: "", orderDown: "" }, |
| | | { title: "在售价格", width: "0.4rem", orderUp: "", orderDown: "" }, |
| | | { title: "券后价格", width: "0.4rem", orderUp: "", orderDown: "" }, |
| | | { title: "优惠券", width: "0.4rem", orderUp: "", orderDown: "" }, |
| | | { title: "已入精选", width: "0.4rem", orderUp: "", orderDown: "" }, |
| | | { title: "优惠券剩余数量", width: "0.4rem", orderUp: "", orderDown: "" }, |
| | | { title: "佣金", width: "0.4rem", orderUp: "", orderDown: "" }, |
| | | { title: "预计收益", width: "0.4rem", orderUp: "", orderDown: "" }, |
| | | { title: "贴上标签", width: "0.6rem", orderUp: "", orderDown: "", |
| | | edit: { type: "text", placeholder: "可输入多个,以空格隔开(可不填)" } |
| | | } |
| | | ] |
| | |
| | | { |
| | | // 获取选择的商品id组 |
| | | var zu_id = new Array(); |
| | | for (var i = 0, mo = back.list; i < mo.length; i++) { zu_id.push(mo[i][0].key); } |
| | | for (var i = 0, mo = back.list; i < mo.length; i++) { zu_id.push(mo[i][2].key); }
|
| | | requestData.auctionIds = JSON.stringify(zu_id);
|
| | | requestData.lableNames = there.list[12].key; |
| | | // 发起请求 |
| | | doui.showLoading({ content: "正在添加" }); |
| | | doui.request({ |
| | | type: "jsonp", |
| | | url: gethttp() + "/admin/new/api/v1/qualityFactory/addBatch", |
| | | data: { |
| | | auctionIds: JSON.stringify(zu_id), |
| | | lableNames: there.list[12].key, |
| | | }, |
| | | url: gethttp() + "/admin/new/api/v1/taobao/addTBGoodsFactory", |
| | | data: requestData, |
| | | success: function (res) |
| | | { |
| | | doui.hideLoading(); |