|
@@ -26,6 +26,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+import { serverAPI } from '../../../../utils/vaildInterfacefn.js'
|
|
|
import {institutions_search} from '../../api/index.js'
|
|
import {institutions_search} from '../../api/index.js'
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
@@ -63,14 +64,29 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
async getInstitutions_search() {
|
|
async getInstitutions_search() {
|
|
|
- var institutionSearch = await institutions_search({
|
|
|
|
|
- "radius": this.radius,
|
|
|
|
|
- "institutionalTypeList":this.categoryId,
|
|
|
|
|
- "lat": this.latitude,
|
|
|
|
|
- "lng": this.longitude,
|
|
|
|
|
- "pageNum":1,
|
|
|
|
|
- 'pageSize':10
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ // 自己平台接口调用方式
|
|
|
|
|
+ // var institutionSearch = await institutions_search({
|
|
|
|
|
+ // "radius": this.radius,
|
|
|
|
|
+ // "institutionalTypeList":this.categoryId,
|
|
|
|
|
+ // "lat": this.latitude,
|
|
|
|
|
+ // "lng": this.longitude,
|
|
|
|
|
+ // "pageNum":1,
|
|
|
|
|
+ // 'pageSize':10
|
|
|
|
|
+ // })
|
|
|
|
|
+ // 爱山东平台接口调用方式
|
|
|
|
|
+ var institutionSearch = await serverAPI(
|
|
|
|
|
+ 'zpsmzjjgss',
|
|
|
|
|
+ {
|
|
|
|
|
+ radius: this.radius,
|
|
|
|
|
+ institutionalTypeList:this.categoryId,
|
|
|
|
|
+ lat: this.latitude,
|
|
|
|
|
+ lng: this.longitude,
|
|
|
|
|
+ pageNum:1,
|
|
|
|
|
+ pageSize:10
|
|
|
|
|
+ },
|
|
|
|
|
+ false
|
|
|
|
|
+ )
|
|
|
|
|
+
|
|
|
let merListTemp=[]
|
|
let merListTemp=[]
|
|
|
institutionSearch.rows.forEach((e) => {
|
|
institutionSearch.rows.forEach((e) => {
|
|
|
// e.distance = util.getDistance(this.data.latitude,this.data.longitude,e.lat,e.lng)
|
|
// e.distance = util.getDistance(this.data.latitude,this.data.longitude,e.lat,e.lng)
|