|
@@ -28,13 +28,19 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import {getNearbyList} from "@/api/discovery";
|
|
|
+import tools from "@/service/tools";
|
|
|
+
|
|
|
export default {
|
|
|
name: "attachment-list",
|
|
|
components: {},
|
|
|
props: {},
|
|
|
data() {
|
|
|
return {
|
|
|
- list:[]
|
|
|
+ page:1,
|
|
|
+ total:undefined,
|
|
|
+ isAjax:false,
|
|
|
+ list:[],
|
|
|
}
|
|
|
},
|
|
|
watch: {},
|
|
@@ -42,7 +48,13 @@ export default {
|
|
|
this.getAttachmentList()
|
|
|
},
|
|
|
methods: {
|
|
|
- getAttachmentList(){
|
|
|
+ async getAttachmentList(){
|
|
|
+ let locationData=await tools.getLocation()
|
|
|
+ getNearbyList({'pageNo':this.page,'pageSize':20,'longitude':locationData.longitude,'latitude':locationData.latitude}).then((res)=>{
|
|
|
+ if(res.code===0){
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
let list=[
|
|
|
{'name':'仰看辉煌仰看辉煌仰看辉煌仰看辉煌','age':18,'sex':'女','constellation':'处女座','img':'/static/img/temporary/1.png'},
|
|
|
{'name':'Maple','age':18,'sex':'女','constellation':'处女座','img':'/static/img/temporary/2.png'},
|