提交 77446175 作者: 王定

feat: 添加拨打电话功能权限

上级 ab9c9a7a
......@@ -51,6 +51,9 @@
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
......
......@@ -454,7 +454,7 @@
{
"path": "pages/nongmaojiaoyi/nongmaojiaoyi",
"style": {
"navigationBarTitleText": "农交易",
"navigationBarTitleText": "农交易",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#5DB66F",
"navigationBarTextStyle": "white",
......
......@@ -143,14 +143,18 @@ function createPopupHTML(employment) {
<div>${getDistanceText2(employment)}</div>
</div>
</div>
<div style="color: #5DB66F;margin-top: 6px;line-height: 20px;font-size: 12px;display: flex;align-items: center;">
<div style="color: #5DB66F;margin-top: 6px;line-height: 18px;font-size: 12px;display: flex;align-items: center;">
<image style="width:12px;height:12px;margin-right:7px;" src="./static/images/linghuoyonggong/avatar.png" />
<div>待工人数${employment.workers}名</div>
</div>
<div style="color: #999999;margin-top: 4px;line-height: 20px;font-size: 12px;display: flex;align-items: center;">
<div style="color: #999999;margin-top: 4px;line-height: 18px;font-size: 12px;display: flex;align-items: center;">
<image style="width:11px;height:13px;margin-right:7px;" src="./static/images/linghuoyonggong/skill.png" />
<div>技能:${employment.skills.length ? employment.skills.join("、") : '未填写'}</div>
</div>
<div style="color: #999999;margin-top: 4px;line-height: 18px;font-size: 12px;display: flex;align-items: center;">
<image style="width:11px;height:13px;margin-right:7px;" src="./static/images/linghuoyonggong/address.png" />
<div>地址:${employment.villageFullName}</div>
</div>
<a href="#" onclick="window.navigateToDetail('${employment.id}'); return false;" style="margin-top:8px;background: #5DB66F;text-decoration: none;border-radius: 200px;padding: 10px;text-align: center;color: #FFFFFF;font-size: 12px;display: flex;justify-content: center;align-items: center;">电话沟通</a>
</div>
`;
......@@ -320,7 +324,7 @@ function onCategoryTabClick(tab: any) {
// 在这里添加具体的分类标签点击逻辑
}
function getEmploymentList() {
async function getEmploymentList() {
// 如果正在加载或没有更多数据,直接返回
if (model.loading || (model.total > 0 && model.employmentList.length >= model.total)) {
return
......@@ -328,7 +332,7 @@ function getEmploymentList() {
model.loading = true
try {
if(model.currentEmploymentId == 2){
LinghuoyonggongAPI.getLaborAppList(model.search).then(async (res) => {
await LinghuoyonggongAPI.getLaborAppList(model.search).then(async (res) => {
const { records, total } = res
// 批量处理数据,避免多次DOM操作
const processedRecords = records.map((item) => {
......
......@@ -150,6 +150,8 @@ declare module 'vue' {
IframeVideo: typeof import('./../src/components/IframeVideo/index.vue')['default']
Legend: typeof import('./../src/components/Map/Widgets/Legend/src/Legend.vue')['default']
Mapbox: typeof import('./../src/components/Map/Mapbox/index.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Src: typeof import('./../src/components/Echarts/src/index.vue')['default']
SuccessfulDialog: typeof import('./../src/components/ConfirmDialog/successfulDialog.vue')['default']
Switch: typeof import('./../src/components/Map/Widgets/Switch/src/Switch.vue')['default']
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论