Authored by 姜敏

帮助中心左侧交互修复

... ... @@ -17,6 +17,7 @@ var path = require('path');
const uuid = require('uuid');
const os = require('os');
const regMobile = /(\d{3})\d{4}(\d{4})/;// 正则匹配替换手机号码中间4位
const regEmail = /(\d{3})\d{4}/;// 正则匹配替换邮箱中间4位
const captchaUrl = helpers.urlFormat('/passport/images', {t: Date.now()});
... ... @@ -164,7 +165,7 @@ const bindEmail = (req, res, next) => {
if (result.info.verify_email !== '') {
let info = result.info;
info.ellipsisEmail = info.verify_email.substring(0, 3) + '****' + info.verify_email.substring(7, 11);
info.ellipsisEmail = info.verify_email.replace(regEmail, '$1****');
info.checkCode = settingModel.cipheriv(info.uid + '.completeverify');
res.display('index', {
module: 'me',
... ... @@ -289,7 +290,7 @@ const success = (req, res)=> {
};
/*
* post1 第一步的post请求
* post1 第一步身份验证的post请求
* */
const validate1 = (req, res)=> {
co(function *() {
... ... @@ -314,7 +315,7 @@ const validate1 = (req, res)=> {
};
/*
* post2 第二步的post请求
* post2 第二步具体操作的post请求
* */
const validate2 = (req, res)=> {
co(function *() {
... ... @@ -366,7 +367,7 @@ function getfilePath(req, res, next) {
req.filePath = filePath;
req.pipe(uploadStream);
uploadStream.on('finish', function() {
uploadStream.on('finish', function () {
next();
});
}
... ...
... ... @@ -4,9 +4,13 @@
* @date: 2016/07/25
*/
var queryId = location.search.split("=")[1] || "1";
var $cate = $(".cateId-" + queryId);
/**
* 目录切换
*/
$(document).on("click", ".big-category .plus", function () {
var $parent = $(this).parent();//当前一级分类
var className = $parent.attr("class").split(" ")[1];
... ... @@ -24,5 +28,12 @@ $(document).on("click", ".big-category .plus", function () {
}
});
if (!$cate.hasClass("big-category")) {
var parentId = queryId.substr(0, 1);
$(".parentId-" + parentId).show();
$(".cateId-" + parentId).find(".plus").css("background-image", "url('../img/help/minus.png')");
}
... ...
.nav {
li {
padding: 10px 30px;
padding: 10px 15px;
width: 200px;
font-size: 14px;
}
... ... @@ -11,6 +11,7 @@
}
.plus {
cursor: pointer;
margin-right: 10px;
height: 14px;
width: 14px;
... ...