|
@@ -268,7 +268,7 @@ const getProviceCityInfo = (parentId, checkValue) => { |
|
@@ -268,7 +268,7 @@ const getProviceCityInfo = (parentId, checkValue) => { |
268
|
|
268
|
|
269
|
const getUserInfo = (channel, uid) => {
|
269
|
const getUserInfo = (channel, uid) => {
|
270
|
|
270
|
|
271
|
- return co(function*(){
|
271
|
+ return co(function*() {
|
272
|
|
272
|
|
273
|
let result = yield api.all([
|
273
|
let result = yield api.all([
|
274
|
headerModel.requestHeaderData(channel),
|
274
|
headerModel.requestHeaderData(channel),
|
|
@@ -411,7 +411,7 @@ const getUserInfo = (channel, uid) => { |
|
@@ -411,7 +411,7 @@ const getUserInfo = (channel, uid) => { |
411
|
areaCode = result[3].data.area_code || '';
|
411
|
areaCode = result[3].data.area_code || '';
|
412
|
|
412
|
|
413
|
console.info(areaCode);
|
413
|
console.info(areaCode);
|
414
|
-
|
414
|
+
|
415
|
let proviceOpts = yield getProviceCityInfo(0, areaCode.substr(0, 2)),
|
415
|
let proviceOpts = yield getProviceCityInfo(0, areaCode.substr(0, 2)),
|
416
|
cityOpts = [{value: 0, text: '请选择市'}],
|
416
|
cityOpts = [{value: 0, text: '请选择市'}],
|
417
|
areaOpts = [{value: 0, text: '请选择区县'}];
|
417
|
areaOpts = [{value: 0, text: '请选择区县'}];
|
|
@@ -422,7 +422,7 @@ const getUserInfo = (channel, uid) => { |
|
@@ -422,7 +422,7 @@ const getUserInfo = (channel, uid) => { |
422
|
|
422
|
|
423
|
if (areaCode.length > 4) {
|
423
|
if (areaCode.length > 4) {
|
424
|
areaOpts = yield getProviceCityInfo(areaCode.substr(0, 4), areaCode);
|
424
|
areaOpts = yield getProviceCityInfo(areaCode.substr(0, 4), areaCode);
|
425
|
- }
|
425
|
+ }
|
426
|
|
426
|
|
427
|
finalResult.contactInfo = {
|
427
|
finalResult.contactInfo = {
|
428
|
subTitle: '联系信息',
|
428
|
subTitle: '联系信息',
|
|
@@ -689,13 +689,13 @@ const isBrandName = (req) => { |
|
@@ -689,13 +689,13 @@ const isBrandName = (req) => { |
689
|
code: 200,
|
689
|
code: 200,
|
690
|
message: '',
|
690
|
message: '',
|
691
|
data: brandInfo
|
691
|
data: brandInfo
|
692
|
- }
|
|
|
693
|
- }else {
|
692
|
+ };
|
|
|
693
|
+ } else {
|
694
|
return {
|
694
|
return {
|
695
|
code: 400,
|
695
|
code: 400,
|
696
|
message: '很抱歉,您要添加的品牌不在我们的品牌库中。',
|
696
|
message: '很抱歉,您要添加的品牌不在我们的品牌库中。',
|
697
|
data: ''
|
697
|
data: ''
|
698
|
- }
|
698
|
+ };
|
699
|
}
|
699
|
}
|
700
|
|
700
|
|
701
|
});
|
701
|
});
|
|
@@ -704,7 +704,7 @@ const isBrandName = (req) => { |
|
@@ -704,7 +704,7 @@ const isBrandName = (req) => { |
704
|
const getProviceList = (pid) => {
|
704
|
const getProviceList = (pid) => {
|
705
|
return co(function*() {
|
705
|
return co(function*() {
|
706
|
let proList = yield userApi.getProviceCityInfo(pid);
|
706
|
let proList = yield userApi.getProviceCityInfo(pid);
|
707
|
-
|
707
|
+
|
708
|
return proList.data;
|
708
|
return proList.data;
|
709
|
})();
|
709
|
})();
|
710
|
};
|
710
|
};
|