1 Star 0 Fork 74

Y洋 / 人人商城文档

forked from yoby / 人人商城文档 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
商城js.md 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
yoby 提交于 2017-11-30 17:26 . 1

FoxUI方法

FoxUI.loader.show('mini');//loading
FoxUI.loader.hide();

FoxUI.toast.show('取消支付');//自动消失
FoxUI.alert('下单失败');


FoxUI.confirm('内容','标题',function(){
		console.log("确定");
	},function(){
		console.log("取消");
	});

FoxUI.message.show({
                            title: "很遗憾,您没有中奖!",
                            icon: 'icon icon-wrong',
                            content: '',
                            buttons: [{
                                text: '确定', extraClass: 'btn-danger', onclick: function () {
                                    console.log(11)
                                }
                            }]
                        });	

调用clipboard.min.js不使用flash复制插件

    require([myconfig.path+'dist/clipboard.min.js'], function(Clipboard){
   var clipboard = new Clipboard('.jsclip', {
   text: function(e) {
    return $(e).data('url')||$(e).data('href');
    }
   });
   clipboard.on('success', function(e) {
   tip.msgbox.suc('复制成功');
   
   });
  })
PHP
1
https://gitee.com/leeyang94/eshop.git
git@gitee.com:leeyang94/eshop.git
leeyang94
eshop
人人商城文档
master

搜索帮助