Authored by hongweigao

home下文件大写字母转小写

... ... @@ -4,7 +4,7 @@
const Promise = require('bluebird');
const co = Promise.coroutine;
let CouponsModel = require('../models/CouponsModel');
let CouponsModel = require('../models/coupons-model');
const helpers = global.yoho.helpers;
... ...
... ... @@ -8,7 +8,7 @@
const Promise = require('bluebird');
const co = Promise.coroutine;
const CurrencyModel = require('../models/CurrencyModel');
const CurrencyModel = require('../models/currency-model');
const moment = require('moment');
const convertUnitTime = (src) => {
... ...
... ... @@ -8,8 +8,8 @@
const Promise = require('bluebird');
const co = Promise.coroutine;
const OrderData = require('../models/OrderData');
const IndexModel = require('../models/IndexModel');
const OrderData = require('../models/order-data');
const IndexModel = require('../models/index-model');
const index = (req, res, next)=>{
... ...
'use strict';
const Promise = require('bluebird');
const co = Promise.coroutine;
const RedenvelopesModel = require('../models/RedenvelopesModel');
const RedenvelopesModel = require('../models/redenvelopes-model');
const index = (req, res, next)=>{
let $uid = '8041246';// req.user.uid;
... ...
... ... @@ -2,7 +2,7 @@
const Promise = require('bluebird');
const co = Promise.coroutine;
const UserData = require('../models/UserData');
const UserData = require('../models/user-data');
const moment = require('moment');
const helpers = global.yoho.helpers;
... ...
... ... @@ -4,7 +4,7 @@
const Promise = require('bluebird');
const co = Promise.coroutine;
const UserData = require('./UserData');
const UserData = require('./user-data');
const helpers = global.yoho.helpers;
... ...
... ... @@ -11,7 +11,7 @@ const helpers = global.yoho.helpers;
const api = global.yoho.API;
const _ = require('lodash');
const Image = require('../../../utils/images');
const CurrencyData = require('./CurrencyData');
const CurrencyData = require('./currency-data');
const SearchData = require('./SearchData');
// 使用 product中的分页逻辑
... ...
... ... @@ -5,14 +5,14 @@
const Promise = require('bluebird');
const co = Promise.coroutine;
const OrderData = require('./OrderData');
const OrderModel = require('./OrderModel');
const OrderData = require('./order-data');
const OrderModel = require('./order-model');
const helpers = global.yoho.helpers;
const api = global.yoho.API;
const searchApi = global.yoho.SearchAPI;
const BrandData = require('./BrandData');
const IndexData = require('./IndexData');
const IndexData = require('./index-data');
const SearchData = require('./SearchData');
const HelperHome = require('./HelperHome');
... ...
'use strict';
const Promise = require('bluebird');
const co = Promise.coroutine;
const RedenvelopesData = require('./RedenvelopesData.js');
const RedenvelopesData = require('./redenvelopes-data.js');
const redenvelopesList = uid=>{
return co(function*() {
... ...
... ... @@ -20,13 +20,13 @@ const commentController = require(`${cRoot}/comment`);
const messageController = require(`${cRoot}/message`);
// const returnsController = require(`${cRoot}/returns`);
// const IndexController = require(`${cRoot}/Index`);
// const CurrencyController = require(`${cRoot}/Currency`);
// const IndexController = require(`${cRoot}/index`);
// const CurrencyController = require(`${cRoot}/currency`);
const personalController = require(`${cRoot}/qrcode`);
// const RedenvelopesController = require(`${cRoot}/Redenvelopes`);
// const RedenvelopesController = require(`${cRoot}/redenvelopes`);
// const VipController = require(`${cRoot}/vip`);
// const FavoriteController = require(`${cRoot}/Favorite`);
// const FavoriteController = require(`${cRoot}/favorite`);
// const CouponsController = require(`${cRoot}/coupons`);
const UserController = require(`${cRoot}/user`);
... ...
... ... @@ -97,7 +97,7 @@ var address = {
oldLi.removeClass('preferred');
oldBtn.html('<span>设为常用地址</span>');
curBtn.attr('class', 'btn-c2 default-btn');
oldBtn.html('<span>设为常用地址</span>');
curBtn.html('<span>已设为常用地址</span>');
curLi.addClass('preferred');
} else {
active = new Alert('设置失败');
... ...
... ... @@ -113,6 +113,7 @@ var address = {
the.loadAreaData(pCode, the.cityDomId, '请选择城市', pCode);
$('#' + the.areaDomId).hide();
$('#' + the.streetsDomId).hide().empty();
the.showAreaSel(domOptions.dispDomId);
});
... ... @@ -125,6 +126,7 @@ var address = {
the.loadAreaData(pCode, the.areaDomId, '请选择区县', pCode);
$('#' + the.areaDomId).show();
$('#' + the.streetsDomId).hide().empty();
the.showAreaSel(domOptions.dispDomId);
});
... ...