This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vue.filter('dateFormat', function (value) { | |
if(!value) return '' | |
return moment(value).format('YYYY-MM-DD HH:mm:ss') | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 去除输入字符串前后的空格 | |
function trimSpace(string) { | |
return $.trim(string); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 倒计时60秒 | |
var waittime = 60; | |
function countDown(o) { | |
if (waittime === 0) { | |
$(o).val("获取验证码").css("color", "#f23f3f"); | |
waittime = 60; | |
$(o).removeAttr("disabled"); | |
} else { | |
$(o).attr("disabled", true); | |
$(o).val(waittime + "s后重新发送").css("color", "#999"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function(e) { | |
function t(a) { | |
if (i[a]) | |
return i[a].exports; | |
var n = i[a] = { | |
exports: {}, | |
id: a, | |
loaded: !1 | |
}; | |
return e[a].call(n.exports, n, n.exports, t), |