...
|
...
|
@@ -60,13 +60,24 @@ exports.addressAct = (req, res, next) => { |
|
|
}).catch(next);
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 新版地区选择
|
|
|
*/
|
|
|
exports.addressActVue = (req, res) => {
|
|
|
res.render('address/address-act-vue', {
|
|
|
vue: true
|
|
|
vue: true,
|
|
|
localCss: true
|
|
|
});
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* TODO DELETE 模拟省数据
|
|
|
*/
|
|
|
exports.provinces = (req, res) => {
|
|
|
res.json({ "provinces": [{ "name": "北京", "id": "1" }, { "name": "上海", "id": "2" }, { "name": "天津", "id": "3" }, { "name": "重庆", "id": "4" }, { "name": "河北", "id": "5" }, { "name": "山西", "id": "6" }, { "name": "河南", "id": "7" }, { "name": "辽宁", "id": "8" }, { "name": "吉林", "id": "9" }, { "name": "黑龙江", "id": "10" }, { "name": "内蒙古", "id": "11" }, { "name": "江苏", "id": "12" }, { "name": "山东", "id": "13" }, { "name": "安徽", "id": "14" }, { "name": "浙江", "id": "15" }, { "name": "福建", "id": "16" }, { "name": "湖北", "id": "17" }, { "name": "湖南", "id": "18" }, { "name": "广东", "id": "19" }, { "name": "广西", "id": "20" }, { "name": "江西", "id": "21" }, { "name": "四川", "id": "22" }, { "name": "海南", "id": "23" }, { "name": "贵州", "id": "24" }, { "name": "云南", "id": "25" }, { "name": "西藏", "id": "26" }, { "name": "陕西", "id": "27" }, { "name": "甘肃", "id": "28" }, { "name": "青海", "id": "29" }, { "name": "宁夏", "id": "30" }, { "name": "新疆", "id": "31" }, { "name": "台湾", "id": "32" }, { "name": "钓鱼岛", "id": "84" }, { "name": "港澳", "id": "52993" }] });
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 修改地址或者添加新地址
|
|
|
* @param req
|
|
|
* @param res
|
...
|
...
|
@@ -200,6 +211,6 @@ exports.locationList = (req, res, next) => { |
|
|
addressModel.locationList({
|
|
|
uid: req.user.uid
|
|
|
}).then(result => {
|
|
|
res.render('address/location-list', Object.assign(result, {layout: false}));
|
|
|
res.render('address/location-list', Object.assign(result, { layout: false }));
|
|
|
}).catch(next);
|
|
|
}; |
...
|
...
|
|