1微信店铺切换登录 20% 2过滤筛选备注改为全等于 3数据库数据拉回逻辑优化
This commit is contained in:
1 parent
dc83334c59
commit
860b4408ef
37 files changed
+2520
-274
No files matched your search
@@ -490,14 +490,14 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
for ( i= 0; i < productLst.length; i++) {
|
||||
var addBtnItem = productLst[i]; //.parentElement.parentElement.parentElement;
|
||||
var pos = addBtnItem.innerHTML.indexOf('ID:')
|
||||
if (addBtnItem.innerHTML.indexOf('回采') < 0 && pos >= 0) {
|
||||
if (addBtnItem.innerHTML.indexOf('采集') < 0 && pos >= 0) {
|
||||
var sSpuId = addBtnItem.innerHTML.substring(pos + 3);
|
||||
sSpuId = sSpuId.substring(0, sSpuId.indexOf('<span')).trim();
|
||||
//addBtnItem.innerHTML += ""<input type=\""button\"" style=\""display:inline; width:60px; margin-left:10px; margin-top:0px; cursor:pointer; border:1px solid\"" value =\""回采商品\"" onclick=\""shopObj.getProduct('"" + sSpuId + ""','" + this.shop.ShopId + @"')\"">""
|
||||
//addBtnItem.innerHTML += ""<input type=\""button\"" style=\""display:inline; width:60px; margin-left:10px; margin-top:0px; cursor:pointer; border:1px solid\"" value =\""回采商品\"" onclick=\""alert('"" + sSpuId + ""')\"">""
|
||||
//addBtnItem.innerHTML = addBtnItem.innerHTML.replace(""分享 </a></div>"", ""分享 </a></div><input type=\""button\"" style=\""display:inline; width:60px; margin-left:10px; margin-top:0px; cursor:pointer; border:1px solid\"" value =\""回采商品\"" onclick=\""shopObj.getProduct('"" + sSpuId + ""','" + this.shop.ShopId + @"')\"">"");
|
||||
var newDiv = document.createElement(""div"");
|
||||
newDiv.innerHTML = ""<a style=\""display:inline; padding:2px 5px; cursor:pointer; border:1px solid\"" onclick=\""shopObj.getProduct('"" + sSpuId + ""','" + this.shop.ShopId + @"')\"">回采<\a>"";
|
||||
newDiv.innerHTML = ""<a style=\""display:inline; padding:2px 5px; cursor:pointer; border:1px solid\"" onclick=\""shopObj.getProduct('"" + sSpuId + ""','" + this.shop.ShopId + @"', true)\"">回采<\a><a style=\""display:inline; margin-left:2px; padding:2px 5px; cursor:pointer; border:1px solid\"" onclick=\""shopObj.getProduct('"" + sSpuId + ""','" + this.shop.ShopId + @"', false)\"">采集<\a>"";
|
||||
addBtnItem.lastChild.appendChild(newDiv);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user