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