Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
YuDingChen authored Aug 28, 2022
1 parent 080b685 commit 960718d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions wfjs/frog.mobile.attribute.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* 元素自定义属性
*/
var Attribute = {
initUI: function() {
/*
* 给单选挑选人员组件统一添加点击方法
*/
$('body').on("click", "*[onPickUser]", function (event) {
var sourceTarget = this;
var functionName = $(this).attr("onPickUser");
if ($.trim(functionName) == "" || typeof(eval(functionName)) != "function") {
weui.topTips("提供的回调方法不存在,请修改!");
} else {
layer.open({
id: 'selectUserDialog',
type: 1,
content: '',
anim: 'up',
style: 'position: absolute; left: 10px; top:10px; bottom:10px; right: 10px; border: none; border-radius: 4px; -webkit-animation-duration: .5s; animation-duration: .5s;',
success: function() {
$('.layui-m-layercont').load("/wfPage/preSelectPerson?singleFlag=true&callbackMethod=" + functionName, function() {
acceptSourceTargetForPickUser(sourceTarget);
});
}
});
}
});
}
}

0 comments on commit 960718d

Please sign in to comment.