- 代码收藏
- JS 获取图片Base64
- css 缩放
- JS调用浏览器下载
- 腾讯云服务器 数据磁盘扩容
- JS删除指定下标的数组
- Js 关闭chrome内核浏览器 标签页
- js时间转毫秒
- JS 二维数组排序输出HTML
- uniapp webview 加载H5,手机返回键处理成返回上一页,上一个网页
- uniapp uni.navigateTo 跳转失败无效的可能原因
- uniapp 设置顶部状态条背景颜色
- 网口小票打印机IP查看方法
- 梦行表格thead 固定,tbody 滚动CSS代码
- JS操作梦行表格按TR属性值排序
- 浏览器插件开发之检测网络请求参数
- 编辑器追加商品调用按钮
- H5网页不缩放,查看图片时双指缩放时,跳图片URL缩放看图 js代码event.touches.length
- html5属性 contenteditable 在微信手机上不生效,或有时点击没反应,解决方案
- URL***编码
- vscode连接FTP
- CORS测试工具,跨域测试
- geojson 在线预览
编辑器追加商品调用按钮
1js
var apppend_e_select_goods_int;
function apppend_e_select_goods(){
if($(".ke-toolbar").attr('class')){
e_select_goods_v='';
$(".ke-toolbar").append('<span class=e_select_goods d_id="ci_'+get_param('id')+'" value="'+e_select_goods_v+'">加载商品</span>');
clearInterval(apppend_e_select_goods_int);
$(document).on('click','.e_select_goods',function(){
key=$(this).attr('d_id');
keyv=$(this).attr('value');
//keyv=localStorage.getItem(key);
layer.open({
title: '加载商品',
area: [($(window).width()*0.9)+'px', ($(window).height()*0.9)+'px'],
content: '<iframe width="100%" height="550" id="map" frameborder="0" scrolling="yes" marginheight="0" marginwidth="0" src="index.php?monxin=mall.type_goods_two_select&key='+key+'&'+key+'='+keyv+'"></iframe>',
skin: 'yun_video',
btn: ['<div class=save_goods_two_select key='+key+'>保存</div>', '关闭'],
});
$(".yun_video").css('z-index',987673887778);
});
$(document).on('click','.save_goods_two_select',function(){
last_key=$(this).attr('key');
console.log('save_goods_two_select '+last_key+':'+localStorage.getItem(last_key));
$.post('receive.php?token=BDI9P3H7&target=mall::goods&act=get_select_goods_label',{ids:localStorage.getItem(last_key)},function(data){
console.log('get_select_goods_label:'+data);
editor.insertHtml(data);
});
});
}
}
$(document).ready(function(){
apppend_e_select_goods_int=setInterval(function(){
apppend_e_select_goods();
},500);
}); 本页由《梦行文档》生成

