|
@@ -49,6 +49,7 @@
|
|
<view class="head-name">{{item.realName}}</view>
|
|
<view class="head-name">{{item.realName}}</view>
|
|
<button type="default" class="phone-green-btn bz-tel-btn"
|
|
<button type="default" class="phone-green-btn bz-tel-btn"
|
|
@click.stop="telephone(item)">打电话</button>
|
|
@click.stop="telephone(item)">打电话</button>
|
|
|
|
+ <share ref="shareRef">分享</share>
|
|
</view>
|
|
</view>
|
|
<view @click="lookUserInfo(item)" class="card-body-row">
|
|
<view @click="lookUserInfo(item)" class="card-body-row">
|
|
<view class="card-img-box">
|
|
<view class="card-img-box">
|
|
@@ -94,8 +95,10 @@
|
|
} from "@/api/jiazheng.js"
|
|
} from "@/api/jiazheng.js"
|
|
import dataChecked from './common/dataChecked.vue';
|
|
import dataChecked from './common/dataChecked.vue';
|
|
import searchDialog from "./common/search.vue";
|
|
import searchDialog from "./common/search.vue";
|
|
|
|
+ import share from "./common/share.vue";
|
|
import customTabbarAdminVue from "@/components/custom-tabbar/custom-tabbar-admin.vue";
|
|
import customTabbarAdminVue from "@/components/custom-tabbar/custom-tabbar-admin.vue";
|
|
const searchDialogRef = ref(null);
|
|
const searchDialogRef = ref(null);
|
|
|
|
+ const shareRef = ref(null);
|
|
let allType = ref([])
|
|
let allType = ref([])
|
|
let data = reactive({
|
|
let data = reactive({
|
|
leixing: '全部类型',
|
|
leixing: '全部类型',
|
|
@@ -105,6 +108,8 @@
|
|
sortRule: '', //排序规则(1降序,2升序
|
|
sortRule: '', //排序规则(1降序,2升序
|
|
sortRule: '', //排序类型(1更新时间,2录入时间)
|
|
sortRule: '', //排序类型(1更新时间,2录入时间)
|
|
userName: '',
|
|
userName: '',
|
|
|
|
+ weidu: '',
|
|
|
|
+ jingdu: '',
|
|
list: [], // 考试列表
|
|
list: [], // 考试列表
|
|
loading: false,
|
|
loading: false,
|
|
state: 'more',
|
|
state: 'more',
|
|
@@ -292,7 +297,9 @@
|
|
"size": 10,
|
|
"size": 10,
|
|
"sortRule": data.sortRule,
|
|
"sortRule": data.sortRule,
|
|
"sortType": data.sortType,
|
|
"sortType": data.sortType,
|
|
- "userName": data.userName
|
|
|
|
|
|
+ "userName": data.userName,
|
|
|
|
+ "jingdu": data.jingdu,
|
|
|
|
+ "weidu": data.weidu
|
|
}
|
|
}
|
|
data.list = [];
|
|
data.list = [];
|
|
// 数学
|
|
// 数学
|
|
@@ -325,7 +332,9 @@
|
|
"size": 10,
|
|
"size": 10,
|
|
"sortRule": data.sortRule,
|
|
"sortRule": data.sortRule,
|
|
"sortType": data.sortType,
|
|
"sortType": data.sortType,
|
|
- "userName": data.userName
|
|
|
|
|
|
+ "userName": data.userName,
|
|
|
|
+ "jingdu": data.jingdu,
|
|
|
|
+ "weidu": data.weidu
|
|
}
|
|
}
|
|
if (data.state == 'no-more') return;
|
|
if (data.state == 'no-more') return;
|
|
data.state = 'loading';
|
|
data.state = 'loading';
|
|
@@ -365,8 +374,23 @@
|
|
}));
|
|
}));
|
|
return newList
|
|
return newList
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ function getCurrentWeizhi(){
|
|
|
|
+ console.log('1231231');
|
|
|
|
+ uni.getLocation({
|
|
|
|
+ type: 'gcj02',
|
|
|
|
+ success: function(res) {
|
|
|
|
+ console.log('res', res)
|
|
|
|
+ data.jingdu = res.longitude
|
|
|
|
+ data.weidu = res.latitude
|
|
|
|
+ console.log('当前位置的经度:' + res.longitude);
|
|
|
|
+ console.log('当前位置的纬度:' + res.latitude);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
onLoad(() => {
|
|
onLoad(() => {
|
|
getMore()
|
|
getMore()
|
|
getLeixing()
|
|
getLeixing()
|
|
|
|
+ getCurrentWeizhi()
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|