|
@@ -129,5 +129,25 @@ export default () => {
|
129
|
129
|
})
|
130
|
130
|
}
|
131
|
131
|
|
132
|
|
- return { dicts, getDict }
|
|
132
|
+ //
|
|
133
|
+ const getBusinessCity = (areaType, pcode) => {
|
|
134
|
+ if (1 === areaType) {
|
|
135
|
+ pcode = '025'
|
|
136
|
+ }
|
|
137
|
+
|
|
138
|
+ request({
|
|
139
|
+ url: '/comm/dict/business-city',
|
|
140
|
+ params: { areaType, pcode }
|
|
141
|
+ }).then(res => {
|
|
142
|
+ if (1 === type) {
|
|
143
|
+ // 区县
|
|
144
|
+ dicts['roomDistrict'] = res
|
|
145
|
+ } else {
|
|
146
|
+ // 商圈
|
|
147
|
+ dicts['roomDistrict'] = res
|
|
148
|
+ }
|
|
149
|
+ })
|
|
150
|
+ }
|
|
151
|
+
|
|
152
|
+ return { dicts, getDict, getBusinessCity }
|
133
|
153
|
}
|